configure revision ec318dbf
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xwud 1.0.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwud/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/xwud/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='xwud'
614PACKAGE_TARNAME='xwud'
615PACKAGE_VERSION='1.0.6'
616PACKAGE_STRING='xwud 1.0.6'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xwud/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
657XWUD_LIBS
658XWUD_CFLAGS
659MAN_SUBSTS
660XORG_MAN_PAGE
661ADMIN_MAN_DIR
662DRIVER_MAN_DIR
663MISC_MAN_DIR
664FILE_MAN_DIR
665LIB_MAN_DIR
666APP_MAN_DIR
667ADMIN_MAN_SUFFIX
668DRIVER_MAN_SUFFIX
669MISC_MAN_SUFFIX
670FILE_MAN_SUFFIX
671LIB_MAN_SUFFIX
672APP_MAN_SUFFIX
673SED
674host_os
675host_vendor
676host_cpu
677host
678build_os
679build_vendor
680build_cpu
681build
682INSTALL_CMD
683PKG_CONFIG_LIBDIR
684PKG_CONFIG_PATH
685PKG_CONFIG
686CHANGELOG_CMD
687STRICT_CFLAGS
688CWARNFLAGS
689BASE_CFLAGS
690am__fastdepCC_FALSE
691am__fastdepCC_TRUE
692CCDEPMODE
693am__nodep
694AMDEPBACKSLASH
695AMDEP_FALSE
696AMDEP_TRUE
697am__include
698DEPDIR
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
706AM_BACKSLASH
707AM_DEFAULT_VERBOSITY
708AM_DEFAULT_V
709AM_V
710CSCOPE
711ETAGS
712CTAGS
713am__untar
714am__tar
715AMTAR
716am__leading_dot
717SET_MAKE
718AWK
719mkdir_p
720MKDIR_P
721INSTALL_STRIP_PROGRAM
722STRIP
723install_sh
724MAKEINFO
725AUTOHEADER
726AUTOMAKE
727AUTOCONF
728ACLOCAL
729VERSION
730PACKAGE
731CYGPATH_W
732am__isrc
733INSTALL_DATA
734INSTALL_SCRIPT
735INSTALL_PROGRAM
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755runstatedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL
775am__quote'
776ac_subst_files=''
777ac_user_opts='
778enable_option_checking
779enable_silent_rules
780enable_dependency_tracking
781enable_selective_werror
782enable_strict_compilation
783'
784      ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792PKG_CONFIG
793PKG_CONFIG_PATH
794PKG_CONFIG_LIBDIR
795XWUD_CFLAGS
796XWUD_LIBS'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835runstatedir='${localstatedir}/run'
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
847
848ac_prev=
849ac_dashdash=
850for ac_option
851do
852  # If the previous option needs an argument, assign it.
853  if test -n "$ac_prev"; then
854    eval $ac_prev=\$ac_option
855    ac_prev=
856    continue
857  fi
858
859  case $ac_option in
860  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861  *=)   ac_optarg= ;;
862  *)    ac_optarg=yes ;;
863  esac
864
865  case $ac_dashdash$ac_option in
866  --)
867    ac_dashdash=yes ;;
868
869  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870    ac_prev=bindir ;;
871  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872    bindir=$ac_optarg ;;
873
874  -build | --build | --buil | --bui | --bu)
875    ac_prev=build_alias ;;
876  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877    build_alias=$ac_optarg ;;
878
879  -cache-file | --cache-file | --cache-fil | --cache-fi \
880  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881    ac_prev=cache_file ;;
882  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884    cache_file=$ac_optarg ;;
885
886  --config-cache | -C)
887    cache_file=config.cache ;;
888
889  -datadir | --datadir | --datadi | --datad)
890    ac_prev=datadir ;;
891  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892    datadir=$ac_optarg ;;
893
894  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895  | --dataroo | --dataro | --datar)
896    ac_prev=datarootdir ;;
897  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899    datarootdir=$ac_optarg ;;
900
901  -disable-* | --disable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: \`$ac_useropt'"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=no ;;
916
917  -docdir | --docdir | --docdi | --doc | --do)
918    ac_prev=docdir ;;
919  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920    docdir=$ac_optarg ;;
921
922  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923    ac_prev=dvidir ;;
924  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925    dvidir=$ac_optarg ;;
926
927  -enable-* | --enable-*)
928    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929    # Reject names that are not valid shell variable names.
930    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931      as_fn_error $? "invalid feature name: \`$ac_useropt'"
932    ac_useropt_orig=$ac_useropt
933    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934    case $ac_user_opts in
935      *"
936"enable_$ac_useropt"
937"*) ;;
938      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939	 ac_unrecognized_sep=', ';;
940    esac
941    eval enable_$ac_useropt=\$ac_optarg ;;
942
943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945  | --exec | --exe | --ex)
946    ac_prev=exec_prefix ;;
947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949  | --exec=* | --exe=* | --ex=*)
950    exec_prefix=$ac_optarg ;;
951
952  -gas | --gas | --ga | --g)
953    # Obsolete; use --with-gas.
954    with_gas=yes ;;
955
956  -help | --help | --hel | --he | -h)
957    ac_init_help=long ;;
958  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959    ac_init_help=recursive ;;
960  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961    ac_init_help=short ;;
962
963  -host | --host | --hos | --ho)
964    ac_prev=host_alias ;;
965  -host=* | --host=* | --hos=* | --ho=*)
966    host_alias=$ac_optarg ;;
967
968  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969    ac_prev=htmldir ;;
970  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971  | --ht=*)
972    htmldir=$ac_optarg ;;
973
974  -includedir | --includedir | --includedi | --included | --include \
975  | --includ | --inclu | --incl | --inc)
976    ac_prev=includedir ;;
977  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978  | --includ=* | --inclu=* | --incl=* | --inc=*)
979    includedir=$ac_optarg ;;
980
981  -infodir | --infodir | --infodi | --infod | --info | --inf)
982    ac_prev=infodir ;;
983  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984    infodir=$ac_optarg ;;
985
986  -libdir | --libdir | --libdi | --libd)
987    ac_prev=libdir ;;
988  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989    libdir=$ac_optarg ;;
990
991  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992  | --libexe | --libex | --libe)
993    ac_prev=libexecdir ;;
994  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995  | --libexe=* | --libex=* | --libe=*)
996    libexecdir=$ac_optarg ;;
997
998  -localedir | --localedir | --localedi | --localed | --locale)
999    ac_prev=localedir ;;
1000  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001    localedir=$ac_optarg ;;
1002
1003  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004  | --localstate | --localstat | --localsta | --localst | --locals)
1005    ac_prev=localstatedir ;;
1006  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008    localstatedir=$ac_optarg ;;
1009
1010  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011    ac_prev=mandir ;;
1012  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013    mandir=$ac_optarg ;;
1014
1015  -nfp | --nfp | --nf)
1016    # Obsolete; use --without-fp.
1017    with_fp=no ;;
1018
1019  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020  | --no-cr | --no-c | -n)
1021    no_create=yes ;;
1022
1023  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025    no_recursion=yes ;;
1026
1027  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029  | --oldin | --oldi | --old | --ol | --o)
1030    ac_prev=oldincludedir ;;
1031  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034    oldincludedir=$ac_optarg ;;
1035
1036  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037    ac_prev=prefix ;;
1038  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039    prefix=$ac_optarg ;;
1040
1041  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042  | --program-pre | --program-pr | --program-p)
1043    ac_prev=program_prefix ;;
1044  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046    program_prefix=$ac_optarg ;;
1047
1048  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049  | --program-suf | --program-su | --program-s)
1050    ac_prev=program_suffix ;;
1051  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053    program_suffix=$ac_optarg ;;
1054
1055  -program-transform-name | --program-transform-name \
1056  | --program-transform-nam | --program-transform-na \
1057  | --program-transform-n | --program-transform- \
1058  | --program-transform | --program-transfor \
1059  | --program-transfo | --program-transf \
1060  | --program-trans | --program-tran \
1061  | --progr-tra | --program-tr | --program-t)
1062    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1071
1072  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073    ac_prev=pdfdir ;;
1074  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075    pdfdir=$ac_optarg ;;
1076
1077  -psdir | --psdir | --psdi | --psd | --ps)
1078    ac_prev=psdir ;;
1079  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080    psdir=$ac_optarg ;;
1081
1082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083  | -silent | --silent | --silen | --sile | --sil)
1084    silent=yes ;;
1085
1086  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087  | --runstate | --runstat | --runsta | --runst | --runs \
1088  | --run | --ru | --r)
1089    ac_prev=runstatedir ;;
1090  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092  | --run=* | --ru=* | --r=*)
1093    runstatedir=$ac_optarg ;;
1094
1095  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096    ac_prev=sbindir ;;
1097  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098  | --sbi=* | --sb=*)
1099    sbindir=$ac_optarg ;;
1100
1101  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103  | --sharedst | --shareds | --shared | --share | --shar \
1104  | --sha | --sh)
1105    ac_prev=sharedstatedir ;;
1106  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109  | --sha=* | --sh=*)
1110    sharedstatedir=$ac_optarg ;;
1111
1112  -site | --site | --sit)
1113    ac_prev=site ;;
1114  -site=* | --site=* | --sit=*)
1115    site=$ac_optarg ;;
1116
1117  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118    ac_prev=srcdir ;;
1119  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120    srcdir=$ac_optarg ;;
1121
1122  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123  | --syscon | --sysco | --sysc | --sys | --sy)
1124    ac_prev=sysconfdir ;;
1125  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127    sysconfdir=$ac_optarg ;;
1128
1129  -target | --target | --targe | --targ | --tar | --ta | --t)
1130    ac_prev=target_alias ;;
1131  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132    target_alias=$ac_optarg ;;
1133
1134  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135    verbose=yes ;;
1136
1137  -version | --version | --versio | --versi | --vers | -V)
1138    ac_init_version=: ;;
1139
1140  -with-* | --with-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: \`$ac_useropt'"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=\$ac_optarg ;;
1155
1156  -without-* | --without-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: \`$ac_useropt'"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=no ;;
1171
1172  --x)
1173    # Obsolete; use --with-x.
1174    with_x=yes ;;
1175
1176  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177  | --x-incl | --x-inc | --x-in | --x-i)
1178    ac_prev=x_includes ;;
1179  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181    x_includes=$ac_optarg ;;
1182
1183  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185    ac_prev=x_libraries ;;
1186  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188    x_libraries=$ac_optarg ;;
1189
1190  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191Try \`$0 --help' for more information"
1192    ;;
1193
1194  *=*)
1195    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196    # Reject names that are not valid shell variable names.
1197    case $ac_envvar in #(
1198      '' | [0-9]* | *[!_$as_cr_alnum]* )
1199      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200    esac
1201    eval $ac_envvar=\$ac_optarg
1202    export $ac_envvar ;;
1203
1204  *)
1205    # FIXME: should be removed in autoconf 3.0.
1206    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210    ;;
1211
1212  esac
1213done
1214
1215if test -n "$ac_prev"; then
1216  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217  as_fn_error $? "missing argument to $ac_option"
1218fi
1219
1220if test -n "$ac_unrecognized_opts"; then
1221  case $enable_option_checking in
1222    no) ;;
1223    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225  esac
1226fi
1227
1228# Check all directory arguments for consistency.
1229for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230		datadir sysconfdir sharedstatedir localstatedir includedir \
1231		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232		libdir localedir mandir runstatedir
1233do
1234  eval ac_val=\$$ac_var
1235  # Remove trailing slashes.
1236  case $ac_val in
1237    */ )
1238      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239      eval $ac_var=\$ac_val;;
1240  esac
1241  # Be sure to have absolute directory names.
1242  case $ac_val in
1243    [\\/$]* | ?:[\\/]* )  continue;;
1244    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245  esac
1246  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247done
1248
1249# There might be people who depend on the old broken behavior: `$host'
1250# used to hold the argument of --host etc.
1251# FIXME: To remove some day.
1252build=$build_alias
1253host=$host_alias
1254target=$target_alias
1255
1256# FIXME: To remove some day.
1257if test "x$host_alias" != x; then
1258  if test "x$build_alias" = x; then
1259    cross_compiling=maybe
1260  elif test "x$build_alias" != "x$host_alias"; then
1261    cross_compiling=yes
1262  fi
1263fi
1264
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
1269
1270
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274  as_fn_error $? "working directory cannot be determined"
1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276  as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279# Find the source files, if location was not specified.
1280if test -z "$srcdir"; then
1281  ac_srcdir_defaulted=yes
1282  # Try the directory containing this script, then the parent directory.
1283  ac_confdir=`$as_dirname -- "$as_myself" ||
1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286	 X"$as_myself" : 'X\(//\)$' \| \
1287	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288printf "%s\n" X"$as_myself" |
1289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\/\)[^/].*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\).*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  s/.*/./; q'`
1306  srcdir=$ac_confdir
1307  if test ! -r "$srcdir/$ac_unique_file"; then
1308    srcdir=..
1309  fi
1310else
1311  ac_srcdir_defaulted=no
1312fi
1313if test ! -r "$srcdir/$ac_unique_file"; then
1314  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316fi
1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318ac_abs_confdir=`(
1319	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320	pwd)`
1321# When building in place, set srcdir=.
1322if test "$ac_abs_confdir" = "$ac_pwd"; then
1323  srcdir=.
1324fi
1325# Remove unnecessary trailing slashes from srcdir.
1326# Double slashes in file names in object file debugging info
1327# mess up M-x gdb in Emacs.
1328case $srcdir in
1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330esac
1331for ac_var in $ac_precious_vars; do
1332  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_env_${ac_var}_value=\$${ac_var}
1334  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336done
1337
1338#
1339# Report the --help message.
1340#
1341if test "$ac_init_help" = "long"; then
1342  # Omit some internal or obsolete options to make the list less imposing.
1343  # This message is too long to be a string in the A/UX 3.1 sh.
1344  cat <<_ACEOF
1345\`configure' configures xwud 1.0.6 to adapt to many kinds of systems.
1346
1347Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352Defaults for the options are specified in brackets.
1353
1354Configuration:
1355  -h, --help              display this help and exit
1356      --help=short        display options specific to this package
1357      --help=recursive    display the short help of all the included packages
1358  -V, --version           display version information and exit
1359  -q, --quiet, --silent   do not print \`checking ...' messages
1360      --cache-file=FILE   cache test results in FILE [disabled]
1361  -C, --config-cache      alias for \`--cache-file=config.cache'
1362  -n, --no-create         do not create output files
1363      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364
1365Installation directories:
1366  --prefix=PREFIX         install architecture-independent files in PREFIX
1367                          [$ac_default_prefix]
1368  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                          [PREFIX]
1370
1371By default, \`make install' will install all the files in
1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374for instance \`--prefix=\$HOME'.
1375
1376For better control, use the options below.
1377
1378Fine tuning of the installation directories:
1379  --bindir=DIR            user executables [EPREFIX/bin]
1380  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1386  --libdir=DIR            object code libraries [EPREFIX/lib]
1387  --includedir=DIR        C header files [PREFIX/include]
1388  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394  --docdir=DIR            documentation root [DATAROOTDIR/doc/xwud]
1395  --htmldir=DIR           html documentation [DOCDIR]
1396  --dvidir=DIR            dvi documentation [DOCDIR]
1397  --pdfdir=DIR            pdf documentation [DOCDIR]
1398  --psdir=DIR             ps documentation [DOCDIR]
1399_ACEOF
1400
1401  cat <<\_ACEOF
1402
1403Program names:
1404  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408System types:
1409  --build=BUILD     configure for building on BUILD [guessed]
1410  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415  case $ac_init_help in
1416     short | recursive ) echo "Configuration of xwud 1.0.6:";;
1417   esac
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --enable-silent-rules   less verbose build output (undo: "make V=1")
1425  --disable-silent-rules  verbose build output (undo: "make V=0")
1426  --enable-dependency-tracking
1427                          do not reject slow dependency extractors
1428  --disable-dependency-tracking
1429                          speeds up one-time build
1430  --disable-selective-werror
1431                          Turn off selective compiler errors. (default:
1432                          enabled)
1433  --enable-strict-compilation
1434                          Enable all warnings from compiler and make them
1435                          errors (default: disabled)
1436
1437Some influential environment variables:
1438  CC          C compiler command
1439  CFLAGS      C compiler flags
1440  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441              nonstandard directory <lib dir>
1442  LIBS        libraries to pass to the linker, e.g. -l<library>
1443  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444              you have headers in a nonstandard directory <include dir>
1445  PKG_CONFIG  path to pkg-config utility
1446  PKG_CONFIG_PATH
1447              directories to add to pkg-config's search path
1448  PKG_CONFIG_LIBDIR
1449              path overriding pkg-config's built-in search path
1450  XWUD_CFLAGS C compiler flags for XWUD, overriding pkg-config
1451  XWUD_LIBS   linker flags for XWUD, overriding pkg-config
1452
1453Use these variables to override the choices made by `configure' or to help
1454it to find libraries and programs with nonstandard names/locations.
1455
1456Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwud/issues>.
1457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462  # If there are subdirs, report their specific --help.
1463  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464    test -d "$ac_dir" ||
1465      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466      continue
1467    ac_builddir=.
1468
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
1472  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1473  # A ".." for each directory in $ac_dir_suffix.
1474  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475  case $ac_top_builddir_sub in
1476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478  esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
1484
1485case $srcdir in
1486  .)  # We are building in place.
1487    ac_srcdir=.
1488    ac_top_srcdir=$ac_top_builddir_sub
1489    ac_abs_top_srcdir=$ac_pwd ;;
1490  [\\/]* | ?:[\\/]* )  # Absolute name.
1491    ac_srcdir=$srcdir$ac_dir_suffix;
1492    ac_top_srcdir=$srcdir
1493    ac_abs_top_srcdir=$srcdir ;;
1494  *) # Relative name.
1495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496    ac_top_srcdir=$ac_top_build_prefix$srcdir
1497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498esac
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501    cd "$ac_dir" || { ac_status=$?; continue; }
1502    # Check for configure.gnu first; this name is used for a wrapper for
1503    # Metaconfig's "Configure" on case-insensitive file systems.
1504    if test -f "$ac_srcdir/configure.gnu"; then
1505      echo &&
1506      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507    elif test -f "$ac_srcdir/configure"; then
1508      echo &&
1509      $SHELL "$ac_srcdir/configure" --help=recursive
1510    else
1511      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512    fi || ac_status=$?
1513    cd "$ac_pwd" || { ac_status=$?; break; }
1514  done
1515fi
1516
1517test -n "$ac_init_help" && exit $ac_status
1518if $ac_init_version; then
1519  cat <<\_ACEOF
1520xwud configure 1.0.6
1521generated by GNU Autoconf 2.71
1522
1523Copyright (C) 2021 Free Software Foundation, Inc.
1524This configure script is free software; the Free Software Foundation
1525gives unlimited permission to copy, distribute and modify it.
1526_ACEOF
1527  exit
1528fi
1529
1530## ------------------------ ##
1531## Autoconf initialization. ##
1532## ------------------------ ##
1533
1534# ac_fn_c_try_compile LINENO
1535# --------------------------
1536# Try to compile conftest.$ac_ext, and return whether this succeeded.
1537ac_fn_c_try_compile ()
1538{
1539  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540  rm -f conftest.$ac_objext conftest.beam
1541  if { { ac_try="$ac_compile"
1542case "(($ac_try" in
1543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544  *) ac_try_echo=$ac_try;;
1545esac
1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547printf "%s\n" "$ac_try_echo"; } >&5
1548  (eval "$ac_compile") 2>conftest.err
1549  ac_status=$?
1550  if test -s conftest.err; then
1551    grep -v '^ *+' conftest.err >conftest.er1
1552    cat conftest.er1 >&5
1553    mv -f conftest.er1 conftest.err
1554  fi
1555  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556  test $ac_status = 0; } && {
1557	 test -z "$ac_c_werror_flag" ||
1558	 test ! -s conftest.err
1559       } && test -s conftest.$ac_objext
1560then :
1561  ac_retval=0
1562else $as_nop
1563  printf "%s\n" "$as_me: failed program was:" >&5
1564sed 's/^/| /' conftest.$ac_ext >&5
1565
1566	ac_retval=1
1567fi
1568  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569  as_fn_set_status $ac_retval
1570
1571} # ac_fn_c_try_compile
1572
1573# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1574# ------------------------------------------------------------------
1575# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1576# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1577ac_fn_check_decl ()
1578{
1579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580  as_decl_name=`echo $2|sed 's/ *(.*//'`
1581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1582printf %s "checking whether $as_decl_name is declared... " >&6; }
1583if eval test \${$3+y}
1584then :
1585  printf %s "(cached) " >&6
1586else $as_nop
1587  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1588  eval ac_save_FLAGS=\$$6
1589  as_fn_append $6 " $5"
1590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591/* end confdefs.h.  */
1592$4
1593int
1594main (void)
1595{
1596#ifndef $as_decl_name
1597#ifdef __cplusplus
1598  (void) $as_decl_use;
1599#else
1600  (void) $as_decl_name;
1601#endif
1602#endif
1603
1604  ;
1605  return 0;
1606}
1607_ACEOF
1608if ac_fn_c_try_compile "$LINENO"
1609then :
1610  eval "$3=yes"
1611else $as_nop
1612  eval "$3=no"
1613fi
1614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1615  eval $6=\$ac_save_FLAGS
1616
1617fi
1618eval ac_res=\$$3
1619	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620printf "%s\n" "$ac_res" >&6; }
1621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623} # ac_fn_check_decl
1624
1625# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626# -------------------------------------------------------
1627# Tests whether HEADER exists and can be compiled using the include files in
1628# INCLUDES, setting the cache variable VAR accordingly.
1629ac_fn_c_check_header_compile ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633printf %s "checking for $2... " >&6; }
1634if eval test \${$3+y}
1635then :
1636  printf %s "(cached) " >&6
1637else $as_nop
1638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h.  */
1640$4
1641#include <$2>
1642_ACEOF
1643if ac_fn_c_try_compile "$LINENO"
1644then :
1645  eval "$3=yes"
1646else $as_nop
1647  eval "$3=no"
1648fi
1649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1650fi
1651eval ac_res=\$$3
1652	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653printf "%s\n" "$ac_res" >&6; }
1654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656} # ac_fn_c_check_header_compile
1657
1658# ac_fn_c_try_link LINENO
1659# -----------------------
1660# Try to link conftest.$ac_ext, and return whether this succeeded.
1661ac_fn_c_try_link ()
1662{
1663  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1665  if { { ac_try="$ac_link"
1666case "(($ac_try" in
1667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668  *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671printf "%s\n" "$ac_try_echo"; } >&5
1672  (eval "$ac_link") 2>conftest.err
1673  ac_status=$?
1674  if test -s conftest.err; then
1675    grep -v '^ *+' conftest.err >conftest.er1
1676    cat conftest.er1 >&5
1677    mv -f conftest.er1 conftest.err
1678  fi
1679  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680  test $ac_status = 0; } && {
1681	 test -z "$ac_c_werror_flag" ||
1682	 test ! -s conftest.err
1683       } && test -s conftest$ac_exeext && {
1684	 test "$cross_compiling" = yes ||
1685	 test -x conftest$ac_exeext
1686       }
1687then :
1688  ac_retval=0
1689else $as_nop
1690  printf "%s\n" "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693	ac_retval=1
1694fi
1695  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697  # interfere with the next link command; also delete a directory that is
1698  # left behind by Apple's compiler.  We do this before executing the actions.
1699  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701  as_fn_set_status $ac_retval
1702
1703} # ac_fn_c_try_link
1704ac_configure_args_raw=
1705for ac_arg
1706do
1707  case $ac_arg in
1708  *\'*)
1709    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1710  esac
1711  as_fn_append ac_configure_args_raw " '$ac_arg'"
1712done
1713
1714case $ac_configure_args_raw in
1715  *$as_nl*)
1716    ac_safe_unquote= ;;
1717  *)
1718    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1719    ac_unsafe_a="$ac_unsafe_z#~"
1720    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1721    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1722esac
1723
1724cat >config.log <<_ACEOF
1725This file contains any messages produced by compilers while
1726running configure, to aid debugging if configure makes a mistake.
1727
1728It was created by xwud $as_me 1.0.6, which was
1729generated by GNU Autoconf 2.71.  Invocation command line was
1730
1731  $ $0$ac_configure_args_raw
1732
1733_ACEOF
1734exec 5>>config.log
1735{
1736cat <<_ASUNAME
1737## --------- ##
1738## Platform. ##
1739## --------- ##
1740
1741hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745uname -v = `(uname -v) 2>/dev/null || echo unknown`
1746
1747/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1749
1750/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1751/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1752/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1754/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1755/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1756/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1757
1758_ASUNAME
1759
1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761for as_dir in $PATH
1762do
1763  IFS=$as_save_IFS
1764  case $as_dir in #(((
1765    '') as_dir=./ ;;
1766    */) ;;
1767    *) as_dir=$as_dir/ ;;
1768  esac
1769    printf "%s\n" "PATH: $as_dir"
1770  done
1771IFS=$as_save_IFS
1772
1773} >&5
1774
1775cat >&5 <<_ACEOF
1776
1777
1778## ----------- ##
1779## Core tests. ##
1780## ----------- ##
1781
1782_ACEOF
1783
1784
1785# Keep a trace of the command line.
1786# Strip out --no-create and --no-recursion so they do not pile up.
1787# Strip out --silent because we don't want to record it for future runs.
1788# Also quote any args containing shell meta-characters.
1789# Make two passes to allow for proper duplicate-argument suppression.
1790ac_configure_args=
1791ac_configure_args0=
1792ac_configure_args1=
1793ac_must_keep_next=false
1794for ac_pass in 1 2
1795do
1796  for ac_arg
1797  do
1798    case $ac_arg in
1799    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1800    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1801    | -silent | --silent | --silen | --sile | --sil)
1802      continue ;;
1803    *\'*)
1804      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1805    esac
1806    case $ac_pass in
1807    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1808    2)
1809      as_fn_append ac_configure_args1 " '$ac_arg'"
1810      if test $ac_must_keep_next = true; then
1811	ac_must_keep_next=false # Got value, back to normal.
1812      else
1813	case $ac_arg in
1814	  *=* | --config-cache | -C | -disable-* | --disable-* \
1815	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1816	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1817	  | -with-* | --with-* | -without-* | --without-* | --x)
1818	    case "$ac_configure_args0 " in
1819	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1820	    esac
1821	    ;;
1822	  -* ) ac_must_keep_next=true ;;
1823	esac
1824      fi
1825      as_fn_append ac_configure_args " '$ac_arg'"
1826      ;;
1827    esac
1828  done
1829done
1830{ ac_configure_args0=; unset ac_configure_args0;}
1831{ ac_configure_args1=; unset ac_configure_args1;}
1832
1833# When interrupted or exit'd, cleanup temporary files, and complete
1834# config.log.  We remove comments because anyway the quotes in there
1835# would cause problems or look ugly.
1836# WARNING: Use '\'' to represent an apostrophe within the trap.
1837# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1838trap 'exit_status=$?
1839  # Sanitize IFS.
1840  IFS=" ""	$as_nl"
1841  # Save into config.log some information that might help in debugging.
1842  {
1843    echo
1844
1845    printf "%s\n" "## ---------------- ##
1846## Cache variables. ##
1847## ---------------- ##"
1848    echo
1849    # The following way of writing the cache mishandles newlines in values,
1850(
1851  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1852    eval ac_val=\$$ac_var
1853    case $ac_val in #(
1854    *${as_nl}*)
1855      case $ac_var in #(
1856      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1857printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1858      esac
1859      case $ac_var in #(
1860      _ | IFS | as_nl) ;; #(
1861      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1862      *) { eval $ac_var=; unset $ac_var;} ;;
1863      esac ;;
1864    esac
1865  done
1866  (set) 2>&1 |
1867    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1868    *${as_nl}ac_space=\ *)
1869      sed -n \
1870	"s/'\''/'\''\\\\'\'''\''/g;
1871	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1872      ;; #(
1873    *)
1874      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1875      ;;
1876    esac |
1877    sort
1878)
1879    echo
1880
1881    printf "%s\n" "## ----------------- ##
1882## Output variables. ##
1883## ----------------- ##"
1884    echo
1885    for ac_var in $ac_subst_vars
1886    do
1887      eval ac_val=\$$ac_var
1888      case $ac_val in
1889      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890      esac
1891      printf "%s\n" "$ac_var='\''$ac_val'\''"
1892    done | sort
1893    echo
1894
1895    if test -n "$ac_subst_files"; then
1896      printf "%s\n" "## ------------------- ##
1897## File substitutions. ##
1898## ------------------- ##"
1899      echo
1900      for ac_var in $ac_subst_files
1901      do
1902	eval ac_val=\$$ac_var
1903	case $ac_val in
1904	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905	esac
1906	printf "%s\n" "$ac_var='\''$ac_val'\''"
1907      done | sort
1908      echo
1909    fi
1910
1911    if test -s confdefs.h; then
1912      printf "%s\n" "## ----------- ##
1913## confdefs.h. ##
1914## ----------- ##"
1915      echo
1916      cat confdefs.h
1917      echo
1918    fi
1919    test "$ac_signal" != 0 &&
1920      printf "%s\n" "$as_me: caught signal $ac_signal"
1921    printf "%s\n" "$as_me: exit $exit_status"
1922  } >&5
1923  rm -f core *.core core.conftest.* &&
1924    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925    exit $exit_status
1926' 0
1927for ac_signal in 1 2 13 15; do
1928  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1929done
1930ac_signal=0
1931
1932# confdefs.h avoids OS command line length limits that DEFS can exceed.
1933rm -f -r conftest* confdefs.h
1934
1935printf "%s\n" "/* confdefs.h */" > confdefs.h
1936
1937# Predefined preprocessor variables.
1938
1939printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1940
1941printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1942
1943printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1944
1945printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1946
1947printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1948
1949printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1950
1951
1952# Let the site file select an alternate cache file if it wants to.
1953# Prefer an explicitly selected file to automatically selected ones.
1954if test -n "$CONFIG_SITE"; then
1955  ac_site_files="$CONFIG_SITE"
1956elif test "x$prefix" != xNONE; then
1957  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1958else
1959  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1960fi
1961
1962for ac_site_file in $ac_site_files
1963do
1964  case $ac_site_file in #(
1965  */*) :
1966     ;; #(
1967  *) :
1968    ac_site_file=./$ac_site_file ;;
1969esac
1970  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1971    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1972printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1973    sed 's/^/| /' "$ac_site_file" >&5
1974    . "$ac_site_file" \
1975      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1976printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1977as_fn_error $? "failed to load site script $ac_site_file
1978See \`config.log' for more details" "$LINENO" 5; }
1979  fi
1980done
1981
1982if test -r "$cache_file"; then
1983  # Some versions of bash will fail to source /dev/null (special files
1984  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1985  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1986    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1987printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1988    case $cache_file in
1989      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1990      *)                      . "./$cache_file";;
1991    esac
1992  fi
1993else
1994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1995printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1996  >$cache_file
1997fi
1998
1999# Test code for whether the C compiler supports C89 (global declarations)
2000ac_c_conftest_c89_globals='
2001/* Does the compiler advertise C89 conformance?
2002   Do not test the value of __STDC__, because some compilers set it to 0
2003   while being otherwise adequately conformant. */
2004#if !defined __STDC__
2005# error "Compiler does not advertise C89 conformance"
2006#endif
2007
2008#include <stddef.h>
2009#include <stdarg.h>
2010struct stat;
2011/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2012struct buf { int x; };
2013struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2014static char *e (p, i)
2015     char **p;
2016     int i;
2017{
2018  return p[i];
2019}
2020static char *f (char * (*g) (char **, int), char **p, ...)
2021{
2022  char *s;
2023  va_list v;
2024  va_start (v,p);
2025  s = g (p, va_arg (v,int));
2026  va_end (v);
2027  return s;
2028}
2029
2030/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2031   function prototypes and stuff, but not \xHH hex character constants.
2032   These do not provoke an error unfortunately, instead are silently treated
2033   as an "x".  The following induces an error, until -std is added to get
2034   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2035   array size at least.  It is necessary to write \x00 == 0 to get something
2036   that is true only with -std.  */
2037int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2038
2039/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2040   inside strings and character constants.  */
2041#define FOO(x) '\''x'\''
2042int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2043
2044int test (int i, double x);
2045struct s1 {int (*f) (int a);};
2046struct s2 {int (*f) (double a);};
2047int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2048               int, int);'
2049
2050# Test code for whether the C compiler supports C89 (body of main).
2051ac_c_conftest_c89_main='
2052ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2053'
2054
2055# Test code for whether the C compiler supports C99 (global declarations)
2056ac_c_conftest_c99_globals='
2057// Does the compiler advertise C99 conformance?
2058#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2059# error "Compiler does not advertise C99 conformance"
2060#endif
2061
2062#include <stdbool.h>
2063extern int puts (const char *);
2064extern int printf (const char *, ...);
2065extern int dprintf (int, const char *, ...);
2066extern void *malloc (size_t);
2067
2068// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2069// dprintf is used instead of fprintf to avoid needing to declare
2070// FILE and stderr.
2071#define debug(...) dprintf (2, __VA_ARGS__)
2072#define showlist(...) puts (#__VA_ARGS__)
2073#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2074static void
2075test_varargs_macros (void)
2076{
2077  int x = 1234;
2078  int y = 5678;
2079  debug ("Flag");
2080  debug ("X = %d\n", x);
2081  showlist (The first, second, and third items.);
2082  report (x>y, "x is %d but y is %d", x, y);
2083}
2084
2085// Check long long types.
2086#define BIG64 18446744073709551615ull
2087#define BIG32 4294967295ul
2088#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2089#if !BIG_OK
2090  #error "your preprocessor is broken"
2091#endif
2092#if BIG_OK
2093#else
2094  #error "your preprocessor is broken"
2095#endif
2096static long long int bignum = -9223372036854775807LL;
2097static unsigned long long int ubignum = BIG64;
2098
2099struct incomplete_array
2100{
2101  int datasize;
2102  double data[];
2103};
2104
2105struct named_init {
2106  int number;
2107  const wchar_t *name;
2108  double average;
2109};
2110
2111typedef const char *ccp;
2112
2113static inline int
2114test_restrict (ccp restrict text)
2115{
2116  // See if C++-style comments work.
2117  // Iterate through items via the restricted pointer.
2118  // Also check for declarations in for loops.
2119  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2120    continue;
2121  return 0;
2122}
2123
2124// Check varargs and va_copy.
2125static bool
2126test_varargs (const char *format, ...)
2127{
2128  va_list args;
2129  va_start (args, format);
2130  va_list args_copy;
2131  va_copy (args_copy, args);
2132
2133  const char *str = "";
2134  int number = 0;
2135  float fnumber = 0;
2136
2137  while (*format)
2138    {
2139      switch (*format++)
2140	{
2141	case '\''s'\'': // string
2142	  str = va_arg (args_copy, const char *);
2143	  break;
2144	case '\''d'\'': // int
2145	  number = va_arg (args_copy, int);
2146	  break;
2147	case '\''f'\'': // float
2148	  fnumber = va_arg (args_copy, double);
2149	  break;
2150	default:
2151	  break;
2152	}
2153    }
2154  va_end (args_copy);
2155  va_end (args);
2156
2157  return *str && number && fnumber;
2158}
2159'
2160
2161# Test code for whether the C compiler supports C99 (body of main).
2162ac_c_conftest_c99_main='
2163  // Check bool.
2164  _Bool success = false;
2165  success |= (argc != 0);
2166
2167  // Check restrict.
2168  if (test_restrict ("String literal") == 0)
2169    success = true;
2170  char *restrict newvar = "Another string";
2171
2172  // Check varargs.
2173  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2174  test_varargs_macros ();
2175
2176  // Check flexible array members.
2177  struct incomplete_array *ia =
2178    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2179  ia->datasize = 10;
2180  for (int i = 0; i < ia->datasize; ++i)
2181    ia->data[i] = i * 1.234;
2182
2183  // Check named initializers.
2184  struct named_init ni = {
2185    .number = 34,
2186    .name = L"Test wide string",
2187    .average = 543.34343,
2188  };
2189
2190  ni.number = 58;
2191
2192  int dynamic_array[ni.number];
2193  dynamic_array[0] = argv[0][0];
2194  dynamic_array[ni.number - 1] = 543;
2195
2196  // work around unused variable warnings
2197  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2198	 || dynamic_array[ni.number - 1] != 543);
2199'
2200
2201# Test code for whether the C compiler supports C11 (global declarations)
2202ac_c_conftest_c11_globals='
2203// Does the compiler advertise C11 conformance?
2204#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2205# error "Compiler does not advertise C11 conformance"
2206#endif
2207
2208// Check _Alignas.
2209char _Alignas (double) aligned_as_double;
2210char _Alignas (0) no_special_alignment;
2211extern char aligned_as_int;
2212char _Alignas (0) _Alignas (int) aligned_as_int;
2213
2214// Check _Alignof.
2215enum
2216{
2217  int_alignment = _Alignof (int),
2218  int_array_alignment = _Alignof (int[100]),
2219  char_alignment = _Alignof (char)
2220};
2221_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2222
2223// Check _Noreturn.
2224int _Noreturn does_not_return (void) { for (;;) continue; }
2225
2226// Check _Static_assert.
2227struct test_static_assert
2228{
2229  int x;
2230  _Static_assert (sizeof (int) <= sizeof (long int),
2231                  "_Static_assert does not work in struct");
2232  long int y;
2233};
2234
2235// Check UTF-8 literals.
2236#define u8 syntax error!
2237char const utf8_literal[] = u8"happens to be ASCII" "another string";
2238
2239// Check duplicate typedefs.
2240typedef long *long_ptr;
2241typedef long int *long_ptr;
2242typedef long_ptr long_ptr;
2243
2244// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2245struct anonymous
2246{
2247  union {
2248    struct { int i; int j; };
2249    struct { int k; long int l; } w;
2250  };
2251  int m;
2252} v1;
2253'
2254
2255# Test code for whether the C compiler supports C11 (body of main).
2256ac_c_conftest_c11_main='
2257  _Static_assert ((offsetof (struct anonymous, i)
2258		   == offsetof (struct anonymous, w.k)),
2259		  "Anonymous union alignment botch");
2260  v1.i = 2;
2261  v1.w.k = 5;
2262  ok |= v1.i != 5;
2263'
2264
2265# Test code for whether the C compiler supports C11 (complete).
2266ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2267${ac_c_conftest_c99_globals}
2268${ac_c_conftest_c11_globals}
2269
2270int
2271main (int argc, char **argv)
2272{
2273  int ok = 0;
2274  ${ac_c_conftest_c89_main}
2275  ${ac_c_conftest_c99_main}
2276  ${ac_c_conftest_c11_main}
2277  return ok;
2278}
2279"
2280
2281# Test code for whether the C compiler supports C99 (complete).
2282ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2283${ac_c_conftest_c99_globals}
2284
2285int
2286main (int argc, char **argv)
2287{
2288  int ok = 0;
2289  ${ac_c_conftest_c89_main}
2290  ${ac_c_conftest_c99_main}
2291  return ok;
2292}
2293"
2294
2295# Test code for whether the C compiler supports C89 (complete).
2296ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2297
2298int
2299main (int argc, char **argv)
2300{
2301  int ok = 0;
2302  ${ac_c_conftest_c89_main}
2303  return ok;
2304}
2305"
2306
2307as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2308as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2309as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2310as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2311as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2312as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2313as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2314as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2315as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2316
2317# Auxiliary files required by this configure script.
2318ac_aux_files="config.guess config.sub compile missing install-sh"
2319
2320# Locations in which to look for auxiliary files.
2321ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2322
2323# Search for a directory containing all of the required auxiliary files,
2324# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2325# If we don't find one directory that contains all the files we need,
2326# we report the set of missing files from the *first* directory in
2327# $ac_aux_dir_candidates and give up.
2328ac_missing_aux_files=""
2329ac_first_candidate=:
2330printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332as_found=false
2333for as_dir in $ac_aux_dir_candidates
2334do
2335  IFS=$as_save_IFS
2336  case $as_dir in #(((
2337    '') as_dir=./ ;;
2338    */) ;;
2339    *) as_dir=$as_dir/ ;;
2340  esac
2341  as_found=:
2342
2343  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2344  ac_aux_dir_found=yes
2345  ac_install_sh=
2346  for ac_aux in $ac_aux_files
2347  do
2348    # As a special case, if "install-sh" is required, that requirement
2349    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2350    # and $ac_install_sh is set appropriately for whichever one is found.
2351    if test x"$ac_aux" = x"install-sh"
2352    then
2353      if test -f "${as_dir}install-sh"; then
2354        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2355        ac_install_sh="${as_dir}install-sh -c"
2356      elif test -f "${as_dir}install.sh"; then
2357        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2358        ac_install_sh="${as_dir}install.sh -c"
2359      elif test -f "${as_dir}shtool"; then
2360        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2361        ac_install_sh="${as_dir}shtool install -c"
2362      else
2363        ac_aux_dir_found=no
2364        if $ac_first_candidate; then
2365          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2366        else
2367          break
2368        fi
2369      fi
2370    else
2371      if test -f "${as_dir}${ac_aux}"; then
2372        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2373      else
2374        ac_aux_dir_found=no
2375        if $ac_first_candidate; then
2376          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2377        else
2378          break
2379        fi
2380      fi
2381    fi
2382  done
2383  if test "$ac_aux_dir_found" = yes; then
2384    ac_aux_dir="$as_dir"
2385    break
2386  fi
2387  ac_first_candidate=false
2388
2389  as_found=false
2390done
2391IFS=$as_save_IFS
2392if $as_found
2393then :
2394
2395else $as_nop
2396  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2397fi
2398
2399
2400# These three variables are undocumented and unsupported,
2401# and are intended to be withdrawn in a future Autoconf release.
2402# They can cause serious problems if a builder's source tree is in a directory
2403# whose full name contains unusual characters.
2404if test -f "${ac_aux_dir}config.guess"; then
2405  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2406fi
2407if test -f "${ac_aux_dir}config.sub"; then
2408  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2409fi
2410if test -f "$ac_aux_dir/configure"; then
2411  ac_configure="$SHELL ${ac_aux_dir}configure"
2412fi
2413
2414# Check that the precious variables saved in the cache have kept the same
2415# value.
2416ac_cache_corrupted=false
2417for ac_var in $ac_precious_vars; do
2418  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2419  eval ac_new_set=\$ac_env_${ac_var}_set
2420  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2421  eval ac_new_val=\$ac_env_${ac_var}_value
2422  case $ac_old_set,$ac_new_set in
2423    set,)
2424      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2425printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2426      ac_cache_corrupted=: ;;
2427    ,set)
2428      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2429printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2430      ac_cache_corrupted=: ;;
2431    ,);;
2432    *)
2433      if test "x$ac_old_val" != "x$ac_new_val"; then
2434	# differences in whitespace do not lead to failure.
2435	ac_old_val_w=`echo x $ac_old_val`
2436	ac_new_val_w=`echo x $ac_new_val`
2437	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2438	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2439printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2440	  ac_cache_corrupted=:
2441	else
2442	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2443printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2444	  eval $ac_var=\$ac_old_val
2445	fi
2446	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2447printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2448	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2449printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2450      fi;;
2451  esac
2452  # Pass precious variables to config.status.
2453  if test "$ac_new_set" = set; then
2454    case $ac_new_val in
2455    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2456    *) ac_arg=$ac_var=$ac_new_val ;;
2457    esac
2458    case " $ac_configure_args " in
2459      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2460      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2461    esac
2462  fi
2463done
2464if $ac_cache_corrupted; then
2465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2468printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2469  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2470	    and start over" "$LINENO" 5
2471fi
2472## -------------------- ##
2473## Main body of script. ##
2474## -------------------- ##
2475
2476ac_ext=c
2477ac_cpp='$CPP $CPPFLAGS'
2478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481
2482
2483
2484ac_config_headers="$ac_config_headers config.h"
2485
2486
2487# Initialize Automake
2488am__api_version='1.16'
2489
2490
2491
2492  # Find a good install program.  We prefer a C program (faster),
2493# so one script is as good as another.  But avoid the broken or
2494# incompatible versions:
2495# SysV /etc/install, /usr/sbin/install
2496# SunOS /usr/etc/install
2497# IRIX /sbin/install
2498# AIX /bin/install
2499# AmigaOS /C/install, which installs bootblocks on floppy discs
2500# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503# OS/2's system install, which has a completely different semantic
2504# ./install, which can be erroneously created by make from ./install.sh.
2505# Reject install programs that cannot install multiple files.
2506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2507printf %s "checking for a BSD-compatible install... " >&6; }
2508if test -z "$INSTALL"; then
2509if test ${ac_cv_path_install+y}
2510then :
2511  printf %s "(cached) " >&6
2512else $as_nop
2513  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516  IFS=$as_save_IFS
2517  case $as_dir in #(((
2518    '') as_dir=./ ;;
2519    */) ;;
2520    *) as_dir=$as_dir/ ;;
2521  esac
2522    # Account for fact that we put trailing slashes in our PATH walk.
2523case $as_dir in #((
2524  ./ | /[cC]/* | \
2525  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2526  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2527  /usr/ucb/* ) ;;
2528  *)
2529    # OSF1 and SCO ODT 3.0 have their own names for install.
2530    # Don't use installbsd from OSF since it installs stuff as root
2531    # by default.
2532    for ac_prog in ginstall scoinst install; do
2533      for ac_exec_ext in '' $ac_executable_extensions; do
2534	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2535	  if test $ac_prog = install &&
2536	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537	    # AIX install.  It has an incompatible calling convention.
2538	    :
2539	  elif test $ac_prog = install &&
2540	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2541	    # program-specific install script used by HP pwplus--don't use.
2542	    :
2543	  else
2544	    rm -rf conftest.one conftest.two conftest.dir
2545	    echo one > conftest.one
2546	    echo two > conftest.two
2547	    mkdir conftest.dir
2548	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2549	      test -s conftest.one && test -s conftest.two &&
2550	      test -s conftest.dir/conftest.one &&
2551	      test -s conftest.dir/conftest.two
2552	    then
2553	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2554	      break 3
2555	    fi
2556	  fi
2557	fi
2558      done
2559    done
2560    ;;
2561esac
2562
2563  done
2564IFS=$as_save_IFS
2565
2566rm -rf conftest.one conftest.two conftest.dir
2567
2568fi
2569  if test ${ac_cv_path_install+y}; then
2570    INSTALL=$ac_cv_path_install
2571  else
2572    # As a last resort, use the slow shell script.  Don't cache a
2573    # value for INSTALL within a source directory, because that will
2574    # break other packages using the cache if that directory is
2575    # removed, or if the value is a relative name.
2576    INSTALL=$ac_install_sh
2577  fi
2578fi
2579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2580printf "%s\n" "$INSTALL" >&6; }
2581
2582# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2583# It thinks the first close brace ends the variable substitution.
2584test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2585
2586test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2587
2588test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2589
2590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2591printf %s "checking whether build environment is sane... " >&6; }
2592# Reject unsafe characters in $srcdir or the absolute working directory
2593# name.  Accept space and tab only in the latter.
2594am_lf='
2595'
2596case `pwd` in
2597  *[\\\"\#\$\&\'\`$am_lf]*)
2598    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2599esac
2600case $srcdir in
2601  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2602    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2603esac
2604
2605# Do 'set' in a subshell so we don't clobber the current shell's
2606# arguments.  Must try -L first in case configure is actually a
2607# symlink; some systems play weird games with the mod time of symlinks
2608# (eg FreeBSD returns the mod time of the symlink's containing
2609# directory).
2610if (
2611   am_has_slept=no
2612   for am_try in 1 2; do
2613     echo "timestamp, slept: $am_has_slept" > conftest.file
2614     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2615     if test "$*" = "X"; then
2616	# -L didn't work.
2617	set X `ls -t "$srcdir/configure" conftest.file`
2618     fi
2619     if test "$*" != "X $srcdir/configure conftest.file" \
2620	&& test "$*" != "X conftest.file $srcdir/configure"; then
2621
2622	# If neither matched, then we have a broken ls.  This can happen
2623	# if, for instance, CONFIG_SHELL is bash and it inherits a
2624	# broken ls alias from the environment.  This has actually
2625	# happened.  Such a system could not be considered "sane".
2626	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2627  alias in your environment" "$LINENO" 5
2628     fi
2629     if test "$2" = conftest.file || test $am_try -eq 2; then
2630       break
2631     fi
2632     # Just in case.
2633     sleep 1
2634     am_has_slept=yes
2635   done
2636   test "$2" = conftest.file
2637   )
2638then
2639   # Ok.
2640   :
2641else
2642   as_fn_error $? "newly created file is older than distributed files!
2643Check your system clock" "$LINENO" 5
2644fi
2645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646printf "%s\n" "yes" >&6; }
2647# If we didn't sleep, we still need to ensure time stamps of config.status and
2648# generated files are strictly newer.
2649am_sleep_pid=
2650if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2651  ( sleep 1 ) &
2652  am_sleep_pid=$!
2653fi
2654
2655rm -f conftest.file
2656
2657test "$program_prefix" != NONE &&
2658  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2659# Use a double $ so make ignores it.
2660test "$program_suffix" != NONE &&
2661  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2662# Double any \ or $.
2663# By default was `s,x,x', remove it if useless.
2664ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2665program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2666
2667
2668# Expand $ac_aux_dir to an absolute path.
2669am_aux_dir=`cd "$ac_aux_dir" && pwd`
2670
2671
2672  if test x"${MISSING+set}" != xset; then
2673  MISSING="\${SHELL} '$am_aux_dir/missing'"
2674fi
2675# Use eval to expand $SHELL
2676if eval "$MISSING --is-lightweight"; then
2677  am_missing_run="$MISSING "
2678else
2679  am_missing_run=
2680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2681printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2682fi
2683
2684if test x"${install_sh+set}" != xset; then
2685  case $am_aux_dir in
2686  *\ * | *\	*)
2687    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2688  *)
2689    install_sh="\${SHELL} $am_aux_dir/install-sh"
2690  esac
2691fi
2692
2693# Installed binaries are usually stripped using 'strip' when the user
2694# run "make install-strip".  However 'strip' might not be the right
2695# tool to use in cross-compilation environments, therefore Automake
2696# will honor the 'STRIP' environment variable to overrule this program.
2697if test "$cross_compiling" != no; then
2698  if test -n "$ac_tool_prefix"; then
2699  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2700set dummy ${ac_tool_prefix}strip; ac_word=$2
2701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702printf %s "checking for $ac_word... " >&6; }
2703if test ${ac_cv_prog_STRIP+y}
2704then :
2705  printf %s "(cached) " >&6
2706else $as_nop
2707  if test -n "$STRIP"; then
2708  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713  IFS=$as_save_IFS
2714  case $as_dir in #(((
2715    '') as_dir=./ ;;
2716    */) ;;
2717    *) as_dir=$as_dir/ ;;
2718  esac
2719    for ac_exec_ext in '' $ac_executable_extensions; do
2720  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2721    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2722    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2723    break 2
2724  fi
2725done
2726  done
2727IFS=$as_save_IFS
2728
2729fi
2730fi
2731STRIP=$ac_cv_prog_STRIP
2732if test -n "$STRIP"; then
2733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2734printf "%s\n" "$STRIP" >&6; }
2735else
2736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737printf "%s\n" "no" >&6; }
2738fi
2739
2740
2741fi
2742if test -z "$ac_cv_prog_STRIP"; then
2743  ac_ct_STRIP=$STRIP
2744  # Extract the first word of "strip", so it can be a program name with args.
2745set dummy strip; ac_word=$2
2746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747printf %s "checking for $ac_word... " >&6; }
2748if test ${ac_cv_prog_ac_ct_STRIP+y}
2749then :
2750  printf %s "(cached) " >&6
2751else $as_nop
2752  if test -n "$ac_ct_STRIP"; then
2753  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758  IFS=$as_save_IFS
2759  case $as_dir in #(((
2760    '') as_dir=./ ;;
2761    */) ;;
2762    *) as_dir=$as_dir/ ;;
2763  esac
2764    for ac_exec_ext in '' $ac_executable_extensions; do
2765  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2766    ac_cv_prog_ac_ct_STRIP="strip"
2767    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2768    break 2
2769  fi
2770done
2771  done
2772IFS=$as_save_IFS
2773
2774fi
2775fi
2776ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2777if test -n "$ac_ct_STRIP"; then
2778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2779printf "%s\n" "$ac_ct_STRIP" >&6; }
2780else
2781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782printf "%s\n" "no" >&6; }
2783fi
2784
2785  if test "x$ac_ct_STRIP" = x; then
2786    STRIP=":"
2787  else
2788    case $cross_compiling:$ac_tool_warned in
2789yes:)
2790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2791printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2792ac_tool_warned=yes ;;
2793esac
2794    STRIP=$ac_ct_STRIP
2795  fi
2796else
2797  STRIP="$ac_cv_prog_STRIP"
2798fi
2799
2800fi
2801INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2802
2803
2804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2805printf %s "checking for a race-free mkdir -p... " >&6; }
2806if test -z "$MKDIR_P"; then
2807  if test ${ac_cv_path_mkdir+y}
2808then :
2809  printf %s "(cached) " >&6
2810else $as_nop
2811  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2813do
2814  IFS=$as_save_IFS
2815  case $as_dir in #(((
2816    '') as_dir=./ ;;
2817    */) ;;
2818    *) as_dir=$as_dir/ ;;
2819  esac
2820    for ac_prog in mkdir gmkdir; do
2821	 for ac_exec_ext in '' $ac_executable_extensions; do
2822	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2823	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2824	     'mkdir ('*'coreutils) '* | \
2825	     'BusyBox '* | \
2826	     'mkdir (fileutils) '4.1*)
2827	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2828	       break 3;;
2829	   esac
2830	 done
2831       done
2832  done
2833IFS=$as_save_IFS
2834
2835fi
2836
2837  test -d ./--version && rmdir ./--version
2838  if test ${ac_cv_path_mkdir+y}; then
2839    MKDIR_P="$ac_cv_path_mkdir -p"
2840  else
2841    # As a last resort, use the slow shell script.  Don't cache a
2842    # value for MKDIR_P within a source directory, because that will
2843    # break other packages using the cache if that directory is
2844    # removed, or if the value is a relative name.
2845    MKDIR_P="$ac_install_sh -d"
2846  fi
2847fi
2848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2849printf "%s\n" "$MKDIR_P" >&6; }
2850
2851for ac_prog in gawk mawk nawk awk
2852do
2853  # Extract the first word of "$ac_prog", so it can be a program name with args.
2854set dummy $ac_prog; ac_word=$2
2855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856printf %s "checking for $ac_word... " >&6; }
2857if test ${ac_cv_prog_AWK+y}
2858then :
2859  printf %s "(cached) " >&6
2860else $as_nop
2861  if test -n "$AWK"; then
2862  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2863else
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867  IFS=$as_save_IFS
2868  case $as_dir in #(((
2869    '') as_dir=./ ;;
2870    */) ;;
2871    *) as_dir=$as_dir/ ;;
2872  esac
2873    for ac_exec_ext in '' $ac_executable_extensions; do
2874  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2875    ac_cv_prog_AWK="$ac_prog"
2876    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2877    break 2
2878  fi
2879done
2880  done
2881IFS=$as_save_IFS
2882
2883fi
2884fi
2885AWK=$ac_cv_prog_AWK
2886if test -n "$AWK"; then
2887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2888printf "%s\n" "$AWK" >&6; }
2889else
2890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891printf "%s\n" "no" >&6; }
2892fi
2893
2894
2895  test -n "$AWK" && break
2896done
2897
2898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2899printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2900set x ${MAKE-make}
2901ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2902if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2903then :
2904  printf %s "(cached) " >&6
2905else $as_nop
2906  cat >conftest.make <<\_ACEOF
2907SHELL = /bin/sh
2908all:
2909	@echo '@@@%%%=$(MAKE)=@@@%%%'
2910_ACEOF
2911# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2912case `${MAKE-make} -f conftest.make 2>/dev/null` in
2913  *@@@%%%=?*=@@@%%%*)
2914    eval ac_cv_prog_make_${ac_make}_set=yes;;
2915  *)
2916    eval ac_cv_prog_make_${ac_make}_set=no;;
2917esac
2918rm -f conftest.make
2919fi
2920if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922printf "%s\n" "yes" >&6; }
2923  SET_MAKE=
2924else
2925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926printf "%s\n" "no" >&6; }
2927  SET_MAKE="MAKE=${MAKE-make}"
2928fi
2929
2930rm -rf .tst 2>/dev/null
2931mkdir .tst 2>/dev/null
2932if test -d .tst; then
2933  am__leading_dot=.
2934else
2935  am__leading_dot=_
2936fi
2937rmdir .tst 2>/dev/null
2938
2939# Check whether --enable-silent-rules was given.
2940if test ${enable_silent_rules+y}
2941then :
2942  enableval=$enable_silent_rules;
2943fi
2944
2945case $enable_silent_rules in # (((
2946  yes) AM_DEFAULT_VERBOSITY=0;;
2947   no) AM_DEFAULT_VERBOSITY=1;;
2948    *) AM_DEFAULT_VERBOSITY=1;;
2949esac
2950am_make=${MAKE-make}
2951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2952printf %s "checking whether $am_make supports nested variables... " >&6; }
2953if test ${am_cv_make_support_nested_variables+y}
2954then :
2955  printf %s "(cached) " >&6
2956else $as_nop
2957  if printf "%s\n" 'TRUE=$(BAR$(V))
2958BAR0=false
2959BAR1=true
2960V=1
2961am__doit:
2962	@$(TRUE)
2963.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2964  am_cv_make_support_nested_variables=yes
2965else
2966  am_cv_make_support_nested_variables=no
2967fi
2968fi
2969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2970printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2971if test $am_cv_make_support_nested_variables = yes; then
2972    AM_V='$(V)'
2973  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2974else
2975  AM_V=$AM_DEFAULT_VERBOSITY
2976  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2977fi
2978AM_BACKSLASH='\'
2979
2980if test "`cd $srcdir && pwd`" != "`pwd`"; then
2981  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2982  # is not polluted with repeated "-I."
2983  am__isrc=' -I$(srcdir)'
2984  # test to see if srcdir already configured
2985  if test -f $srcdir/config.status; then
2986    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2987  fi
2988fi
2989
2990# test whether we have cygpath
2991if test -z "$CYGPATH_W"; then
2992  if (cygpath --version) >/dev/null 2>/dev/null; then
2993    CYGPATH_W='cygpath -w'
2994  else
2995    CYGPATH_W=echo
2996  fi
2997fi
2998
2999
3000# Define the identity of the package.
3001 PACKAGE='xwud'
3002 VERSION='1.0.6'
3003
3004
3005printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3006
3007
3008printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3009
3010# Some tools Automake needs.
3011
3012ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3013
3014
3015AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3016
3017
3018AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3019
3020
3021AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3022
3023
3024MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3025
3026# For better backward compatibility.  To be removed once Automake 1.9.x
3027# dies out for good.  For more background, see:
3028# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3029# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3030mkdir_p='$(MKDIR_P)'
3031
3032# We need awk for the "check" target (and possibly the TAP driver).  The
3033# system "awk" is bad on some platforms.
3034# Always define AMTAR for backward compatibility.  Yes, it's still used
3035# in the wild :-(  We should find a proper way to deprecate it ...
3036AMTAR='$${TAR-tar}'
3037
3038
3039# We'll loop over all known methods to create a tar archive until one works.
3040_am_tools='gnutar  pax cpio none'
3041
3042am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3043
3044
3045
3046
3047
3048# Variables for tags utilities; see am/tags.am
3049if test -z "$CTAGS"; then
3050  CTAGS=ctags
3051fi
3052
3053if test -z "$ETAGS"; then
3054  ETAGS=etags
3055fi
3056
3057if test -z "$CSCOPE"; then
3058  CSCOPE=cscope
3059fi
3060
3061
3062
3063# POSIX will say in a future version that running "rm -f" with no argument
3064# is OK; and we want to be able to make that assumption in our Makefile
3065# recipes.  So use an aggressive probe to check that the usage we want is
3066# actually supported "in the wild" to an acceptable degree.
3067# See automake bug#10828.
3068# To make any issue more visible, cause the running configure to be aborted
3069# by default if the 'rm' program in use doesn't match our expectations; the
3070# user can still override this though.
3071if rm -f && rm -fr && rm -rf; then : OK; else
3072  cat >&2 <<'END'
3073Oops!
3074
3075Your 'rm' program seems unable to run without file operands specified
3076on the command line, even when the '-f' option is present.  This is contrary
3077to the behaviour of most rm programs out there, and not conforming with
3078the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3079
3080Please tell bug-automake@gnu.org about your system, including the value
3081of your $PATH and any error possibly output before this message.  This
3082can help us improve future automake versions.
3083
3084END
3085  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3086    echo 'Configuration will proceed anyway, since you have set the' >&2
3087    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3088    echo >&2
3089  else
3090    cat >&2 <<'END'
3091Aborting the configuration process, to ensure you take notice of the issue.
3092
3093You can download and install GNU coreutils to get an 'rm' implementation
3094that behaves properly: <https://www.gnu.org/software/coreutils/>.
3095
3096If you want to complete the configuration process using your problematic
3097'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3098to "yes", and re-run configure.
3099
3100END
3101    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3102  fi
3103fi
3104
3105
3106# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127DEPDIR="${am__leading_dot}deps"
3128
3129ac_config_commands="$ac_config_commands depfiles"
3130
3131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3132printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3133cat > confinc.mk << 'END'
3134am__doit:
3135	@echo this is the am__doit target >confinc.out
3136.PHONY: am__doit
3137END
3138am__include="#"
3139am__quote=
3140# BSD make does it like this.
3141echo '.include "confinc.mk" # ignored' > confmf.BSD
3142# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3143echo 'include confinc.mk # ignored' > confmf.GNU
3144_am_result=no
3145for s in GNU BSD; do
3146  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3147   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }
3151  case $?:`cat confinc.out 2>/dev/null` in #(
3152  '0:this is the am__doit target') :
3153    case $s in #(
3154  BSD) :
3155    am__include='.include' am__quote='"' ;; #(
3156  *) :
3157    am__include='include' am__quote='' ;;
3158esac ;; #(
3159  *) :
3160     ;;
3161esac
3162  if test "$am__include" != "#"; then
3163    _am_result="yes ($s style)"
3164    break
3165  fi
3166done
3167rm -f confinc.* confmf.*
3168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3169printf "%s\n" "${_am_result}" >&6; }
3170
3171# Check whether --enable-dependency-tracking was given.
3172if test ${enable_dependency_tracking+y}
3173then :
3174  enableval=$enable_dependency_tracking;
3175fi
3176
3177if test "x$enable_dependency_tracking" != xno; then
3178  am_depcomp="$ac_aux_dir/depcomp"
3179  AMDEPBACKSLASH='\'
3180  am__nodep='_no'
3181fi
3182 if test "x$enable_dependency_tracking" != xno; then
3183  AMDEP_TRUE=
3184  AMDEP_FALSE='#'
3185else
3186  AMDEP_TRUE='#'
3187  AMDEP_FALSE=
3188fi
3189
3190
3191ac_ext=c
3192ac_cpp='$CPP $CPPFLAGS'
3193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196if test -n "$ac_tool_prefix"; then
3197  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3198set dummy ${ac_tool_prefix}gcc; ac_word=$2
3199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200printf %s "checking for $ac_word... " >&6; }
3201if test ${ac_cv_prog_CC+y}
3202then :
3203  printf %s "(cached) " >&6
3204else $as_nop
3205  if test -n "$CC"; then
3206  ac_cv_prog_CC="$CC" # Let the user override the test.
3207else
3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH
3210do
3211  IFS=$as_save_IFS
3212  case $as_dir in #(((
3213    '') as_dir=./ ;;
3214    */) ;;
3215    *) as_dir=$as_dir/ ;;
3216  esac
3217    for ac_exec_ext in '' $ac_executable_extensions; do
3218  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3219    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3220    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3221    break 2
3222  fi
3223done
3224  done
3225IFS=$as_save_IFS
3226
3227fi
3228fi
3229CC=$ac_cv_prog_CC
3230if test -n "$CC"; then
3231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3232printf "%s\n" "$CC" >&6; }
3233else
3234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235printf "%s\n" "no" >&6; }
3236fi
3237
3238
3239fi
3240if test -z "$ac_cv_prog_CC"; then
3241  ac_ct_CC=$CC
3242  # Extract the first word of "gcc", so it can be a program name with args.
3243set dummy gcc; ac_word=$2
3244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245printf %s "checking for $ac_word... " >&6; }
3246if test ${ac_cv_prog_ac_ct_CC+y}
3247then :
3248  printf %s "(cached) " >&6
3249else $as_nop
3250  if test -n "$ac_ct_CC"; then
3251  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3252else
3253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254for as_dir in $PATH
3255do
3256  IFS=$as_save_IFS
3257  case $as_dir in #(((
3258    '') as_dir=./ ;;
3259    */) ;;
3260    *) as_dir=$as_dir/ ;;
3261  esac
3262    for ac_exec_ext in '' $ac_executable_extensions; do
3263  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3264    ac_cv_prog_ac_ct_CC="gcc"
3265    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3266    break 2
3267  fi
3268done
3269  done
3270IFS=$as_save_IFS
3271
3272fi
3273fi
3274ac_ct_CC=$ac_cv_prog_ac_ct_CC
3275if test -n "$ac_ct_CC"; then
3276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3277printf "%s\n" "$ac_ct_CC" >&6; }
3278else
3279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280printf "%s\n" "no" >&6; }
3281fi
3282
3283  if test "x$ac_ct_CC" = x; then
3284    CC=""
3285  else
3286    case $cross_compiling:$ac_tool_warned in
3287yes:)
3288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3289printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3290ac_tool_warned=yes ;;
3291esac
3292    CC=$ac_ct_CC
3293  fi
3294else
3295  CC="$ac_cv_prog_CC"
3296fi
3297
3298if test -z "$CC"; then
3299          if test -n "$ac_tool_prefix"; then
3300    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3301set dummy ${ac_tool_prefix}cc; ac_word=$2
3302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303printf %s "checking for $ac_word... " >&6; }
3304if test ${ac_cv_prog_CC+y}
3305then :
3306  printf %s "(cached) " >&6
3307else $as_nop
3308  if test -n "$CC"; then
3309  ac_cv_prog_CC="$CC" # Let the user override the test.
3310else
3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312for as_dir in $PATH
3313do
3314  IFS=$as_save_IFS
3315  case $as_dir in #(((
3316    '') as_dir=./ ;;
3317    */) ;;
3318    *) as_dir=$as_dir/ ;;
3319  esac
3320    for ac_exec_ext in '' $ac_executable_extensions; do
3321  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3322    ac_cv_prog_CC="${ac_tool_prefix}cc"
3323    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3324    break 2
3325  fi
3326done
3327  done
3328IFS=$as_save_IFS
3329
3330fi
3331fi
3332CC=$ac_cv_prog_CC
3333if test -n "$CC"; then
3334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3335printf "%s\n" "$CC" >&6; }
3336else
3337  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338printf "%s\n" "no" >&6; }
3339fi
3340
3341
3342  fi
3343fi
3344if test -z "$CC"; then
3345  # Extract the first word of "cc", so it can be a program name with args.
3346set dummy cc; ac_word=$2
3347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348printf %s "checking for $ac_word... " >&6; }
3349if test ${ac_cv_prog_CC+y}
3350then :
3351  printf %s "(cached) " >&6
3352else $as_nop
3353  if test -n "$CC"; then
3354  ac_cv_prog_CC="$CC" # Let the user override the test.
3355else
3356  ac_prog_rejected=no
3357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358for as_dir in $PATH
3359do
3360  IFS=$as_save_IFS
3361  case $as_dir in #(((
3362    '') as_dir=./ ;;
3363    */) ;;
3364    *) as_dir=$as_dir/ ;;
3365  esac
3366    for ac_exec_ext in '' $ac_executable_extensions; do
3367  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3368    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3369       ac_prog_rejected=yes
3370       continue
3371     fi
3372    ac_cv_prog_CC="cc"
3373    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3374    break 2
3375  fi
3376done
3377  done
3378IFS=$as_save_IFS
3379
3380if test $ac_prog_rejected = yes; then
3381  # We found a bogon in the path, so make sure we never use it.
3382  set dummy $ac_cv_prog_CC
3383  shift
3384  if test $# != 0; then
3385    # We chose a different compiler from the bogus one.
3386    # However, it has the same basename, so the bogon will be chosen
3387    # first if we set CC to just the basename; use the full file name.
3388    shift
3389    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3390  fi
3391fi
3392fi
3393fi
3394CC=$ac_cv_prog_CC
3395if test -n "$CC"; then
3396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3397printf "%s\n" "$CC" >&6; }
3398else
3399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400printf "%s\n" "no" >&6; }
3401fi
3402
3403
3404fi
3405if test -z "$CC"; then
3406  if test -n "$ac_tool_prefix"; then
3407  for ac_prog in cl.exe
3408  do
3409    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3410set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412printf %s "checking for $ac_word... " >&6; }
3413if test ${ac_cv_prog_CC+y}
3414then :
3415  printf %s "(cached) " >&6
3416else $as_nop
3417  if test -n "$CC"; then
3418  ac_cv_prog_CC="$CC" # Let the user override the test.
3419else
3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH
3422do
3423  IFS=$as_save_IFS
3424  case $as_dir in #(((
3425    '') as_dir=./ ;;
3426    */) ;;
3427    *) as_dir=$as_dir/ ;;
3428  esac
3429    for ac_exec_ext in '' $ac_executable_extensions; do
3430  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3431    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3432    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3433    break 2
3434  fi
3435done
3436  done
3437IFS=$as_save_IFS
3438
3439fi
3440fi
3441CC=$ac_cv_prog_CC
3442if test -n "$CC"; then
3443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444printf "%s\n" "$CC" >&6; }
3445else
3446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447printf "%s\n" "no" >&6; }
3448fi
3449
3450
3451    test -n "$CC" && break
3452  done
3453fi
3454if test -z "$CC"; then
3455  ac_ct_CC=$CC
3456  for ac_prog in cl.exe
3457do
3458  # Extract the first word of "$ac_prog", so it can be a program name with args.
3459set dummy $ac_prog; ac_word=$2
3460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461printf %s "checking for $ac_word... " >&6; }
3462if test ${ac_cv_prog_ac_ct_CC+y}
3463then :
3464  printf %s "(cached) " >&6
3465else $as_nop
3466  if test -n "$ac_ct_CC"; then
3467  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472  IFS=$as_save_IFS
3473  case $as_dir in #(((
3474    '') as_dir=./ ;;
3475    */) ;;
3476    *) as_dir=$as_dir/ ;;
3477  esac
3478    for ac_exec_ext in '' $ac_executable_extensions; do
3479  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3480    ac_cv_prog_ac_ct_CC="$ac_prog"
3481    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3482    break 2
3483  fi
3484done
3485  done
3486IFS=$as_save_IFS
3487
3488fi
3489fi
3490ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491if test -n "$ac_ct_CC"; then
3492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493printf "%s\n" "$ac_ct_CC" >&6; }
3494else
3495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496printf "%s\n" "no" >&6; }
3497fi
3498
3499
3500  test -n "$ac_ct_CC" && break
3501done
3502
3503  if test "x$ac_ct_CC" = x; then
3504    CC=""
3505  else
3506    case $cross_compiling:$ac_tool_warned in
3507yes:)
3508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510ac_tool_warned=yes ;;
3511esac
3512    CC=$ac_ct_CC
3513  fi
3514fi
3515
3516fi
3517if test -z "$CC"; then
3518  if test -n "$ac_tool_prefix"; then
3519  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3520set dummy ${ac_tool_prefix}clang; ac_word=$2
3521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522printf %s "checking for $ac_word... " >&6; }
3523if test ${ac_cv_prog_CC+y}
3524then :
3525  printf %s "(cached) " >&6
3526else $as_nop
3527  if test -n "$CC"; then
3528  ac_cv_prog_CC="$CC" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533  IFS=$as_save_IFS
3534  case $as_dir in #(((
3535    '') as_dir=./ ;;
3536    */) ;;
3537    *) as_dir=$as_dir/ ;;
3538  esac
3539    for ac_exec_ext in '' $ac_executable_extensions; do
3540  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3541    ac_cv_prog_CC="${ac_tool_prefix}clang"
3542    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3543    break 2
3544  fi
3545done
3546  done
3547IFS=$as_save_IFS
3548
3549fi
3550fi
3551CC=$ac_cv_prog_CC
3552if test -n "$CC"; then
3553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554printf "%s\n" "$CC" >&6; }
3555else
3556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557printf "%s\n" "no" >&6; }
3558fi
3559
3560
3561fi
3562if test -z "$ac_cv_prog_CC"; then
3563  ac_ct_CC=$CC
3564  # Extract the first word of "clang", so it can be a program name with args.
3565set dummy clang; ac_word=$2
3566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567printf %s "checking for $ac_word... " >&6; }
3568if test ${ac_cv_prog_ac_ct_CC+y}
3569then :
3570  printf %s "(cached) " >&6
3571else $as_nop
3572  if test -n "$ac_ct_CC"; then
3573  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3574else
3575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576for as_dir in $PATH
3577do
3578  IFS=$as_save_IFS
3579  case $as_dir in #(((
3580    '') as_dir=./ ;;
3581    */) ;;
3582    *) as_dir=$as_dir/ ;;
3583  esac
3584    for ac_exec_ext in '' $ac_executable_extensions; do
3585  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3586    ac_cv_prog_ac_ct_CC="clang"
3587    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3588    break 2
3589  fi
3590done
3591  done
3592IFS=$as_save_IFS
3593
3594fi
3595fi
3596ac_ct_CC=$ac_cv_prog_ac_ct_CC
3597if test -n "$ac_ct_CC"; then
3598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3599printf "%s\n" "$ac_ct_CC" >&6; }
3600else
3601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602printf "%s\n" "no" >&6; }
3603fi
3604
3605  if test "x$ac_ct_CC" = x; then
3606    CC=""
3607  else
3608    case $cross_compiling:$ac_tool_warned in
3609yes:)
3610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3611printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3612ac_tool_warned=yes ;;
3613esac
3614    CC=$ac_ct_CC
3615  fi
3616else
3617  CC="$ac_cv_prog_CC"
3618fi
3619
3620fi
3621
3622
3623test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3625as_fn_error $? "no acceptable C compiler found in \$PATH
3626See \`config.log' for more details" "$LINENO" 5; }
3627
3628# Provide some information about the compiler.
3629printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3630set X $ac_compile
3631ac_compiler=$2
3632for ac_option in --version -v -V -qversion -version; do
3633  { { ac_try="$ac_compiler $ac_option >&5"
3634case "(($ac_try" in
3635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636  *) ac_try_echo=$ac_try;;
3637esac
3638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639printf "%s\n" "$ac_try_echo"; } >&5
3640  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3641  ac_status=$?
3642  if test -s conftest.err; then
3643    sed '10a\
3644... rest of stderr output deleted ...
3645         10q' conftest.err >conftest.er1
3646    cat conftest.er1 >&5
3647  fi
3648  rm -f conftest.er1 conftest.err
3649  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650  test $ac_status = 0; }
3651done
3652
3653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654/* end confdefs.h.  */
3655
3656int
3657main (void)
3658{
3659
3660  ;
3661  return 0;
3662}
3663_ACEOF
3664ac_clean_files_save=$ac_clean_files
3665ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3666# Try to create an executable without -o first, disregard a.out.
3667# It will help us diagnose broken compilers, and finding out an intuition
3668# of exeext.
3669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3670printf %s "checking whether the C compiler works... " >&6; }
3671ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3672
3673# The possible output files:
3674ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3675
3676ac_rmfiles=
3677for ac_file in $ac_files
3678do
3679  case $ac_file in
3680    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3681    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3682  esac
3683done
3684rm -f $ac_rmfiles
3685
3686if { { ac_try="$ac_link_default"
3687case "(($ac_try" in
3688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689  *) ac_try_echo=$ac_try;;
3690esac
3691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692printf "%s\n" "$ac_try_echo"; } >&5
3693  (eval "$ac_link_default") 2>&5
3694  ac_status=$?
3695  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696  test $ac_status = 0; }
3697then :
3698  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3699# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3700# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3701# so that the user can short-circuit this test for compilers unknown to
3702# Autoconf.
3703for ac_file in $ac_files ''
3704do
3705  test -f "$ac_file" || continue
3706  case $ac_file in
3707    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3708	;;
3709    [ab].out )
3710	# We found the default executable, but exeext='' is most
3711	# certainly right.
3712	break;;
3713    *.* )
3714	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3715	then :; else
3716	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3717	fi
3718	# We set ac_cv_exeext here because the later test for it is not
3719	# safe: cross compilers may not add the suffix if given an `-o'
3720	# argument, so we may need to know it at that point already.
3721	# Even if this section looks crufty: it has the advantage of
3722	# actually working.
3723	break;;
3724    * )
3725	break;;
3726  esac
3727done
3728test "$ac_cv_exeext" = no && ac_cv_exeext=
3729
3730else $as_nop
3731  ac_file=''
3732fi
3733if test -z "$ac_file"
3734then :
3735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736printf "%s\n" "no" >&6; }
3737printf "%s\n" "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3742as_fn_error 77 "C compiler cannot create executables
3743See \`config.log' for more details" "$LINENO" 5; }
3744else $as_nop
3745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3746printf "%s\n" "yes" >&6; }
3747fi
3748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3749printf %s "checking for C compiler default output file name... " >&6; }
3750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3751printf "%s\n" "$ac_file" >&6; }
3752ac_exeext=$ac_cv_exeext
3753
3754rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3755ac_clean_files=$ac_clean_files_save
3756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3757printf %s "checking for suffix of executables... " >&6; }
3758if { { ac_try="$ac_link"
3759case "(($ac_try" in
3760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761  *) ac_try_echo=$ac_try;;
3762esac
3763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764printf "%s\n" "$ac_try_echo"; } >&5
3765  (eval "$ac_link") 2>&5
3766  ac_status=$?
3767  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768  test $ac_status = 0; }
3769then :
3770  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3771# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3772# work properly (i.e., refer to `conftest.exe'), while it won't with
3773# `rm'.
3774for ac_file in conftest.exe conftest conftest.*; do
3775  test -f "$ac_file" || continue
3776  case $ac_file in
3777    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3778    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3779	  break;;
3780    * ) break;;
3781  esac
3782done
3783else $as_nop
3784  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3786as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3787See \`config.log' for more details" "$LINENO" 5; }
3788fi
3789rm -f conftest conftest$ac_cv_exeext
3790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3791printf "%s\n" "$ac_cv_exeext" >&6; }
3792
3793rm -f conftest.$ac_ext
3794EXEEXT=$ac_cv_exeext
3795ac_exeext=$EXEEXT
3796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797/* end confdefs.h.  */
3798#include <stdio.h>
3799int
3800main (void)
3801{
3802FILE *f = fopen ("conftest.out", "w");
3803 return ferror (f) || fclose (f) != 0;
3804
3805  ;
3806  return 0;
3807}
3808_ACEOF
3809ac_clean_files="$ac_clean_files conftest.out"
3810# Check that the compiler produces executables we can run.  If not, either
3811# the compiler is broken, or we cross compile.
3812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3813printf %s "checking whether we are cross compiling... " >&6; }
3814if test "$cross_compiling" != yes; then
3815  { { ac_try="$ac_link"
3816case "(($ac_try" in
3817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818  *) ac_try_echo=$ac_try;;
3819esac
3820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821printf "%s\n" "$ac_try_echo"; } >&5
3822  (eval "$ac_link") 2>&5
3823  ac_status=$?
3824  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825  test $ac_status = 0; }
3826  if { ac_try='./conftest$ac_cv_exeext'
3827  { { case "(($ac_try" in
3828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829  *) ac_try_echo=$ac_try;;
3830esac
3831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832printf "%s\n" "$ac_try_echo"; } >&5
3833  (eval "$ac_try") 2>&5
3834  ac_status=$?
3835  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836  test $ac_status = 0; }; }; then
3837    cross_compiling=no
3838  else
3839    if test "$cross_compiling" = maybe; then
3840	cross_compiling=yes
3841    else
3842	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3844as_fn_error 77 "cannot run C compiled programs.
3845If you meant to cross compile, use \`--host'.
3846See \`config.log' for more details" "$LINENO" 5; }
3847    fi
3848  fi
3849fi
3850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3851printf "%s\n" "$cross_compiling" >&6; }
3852
3853rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3854ac_clean_files=$ac_clean_files_save
3855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3856printf %s "checking for suffix of object files... " >&6; }
3857if test ${ac_cv_objext+y}
3858then :
3859  printf %s "(cached) " >&6
3860else $as_nop
3861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862/* end confdefs.h.  */
3863
3864int
3865main (void)
3866{
3867
3868  ;
3869  return 0;
3870}
3871_ACEOF
3872rm -f conftest.o conftest.obj
3873if { { ac_try="$ac_compile"
3874case "(($ac_try" in
3875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876  *) ac_try_echo=$ac_try;;
3877esac
3878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879printf "%s\n" "$ac_try_echo"; } >&5
3880  (eval "$ac_compile") 2>&5
3881  ac_status=$?
3882  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883  test $ac_status = 0; }
3884then :
3885  for ac_file in conftest.o conftest.obj conftest.*; do
3886  test -f "$ac_file" || continue;
3887  case $ac_file in
3888    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3889    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3890       break;;
3891  esac
3892done
3893else $as_nop
3894  printf "%s\n" "$as_me: failed program was:" >&5
3895sed 's/^/| /' conftest.$ac_ext >&5
3896
3897{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3899as_fn_error $? "cannot compute suffix of object files: cannot compile
3900See \`config.log' for more details" "$LINENO" 5; }
3901fi
3902rm -f conftest.$ac_cv_objext conftest.$ac_ext
3903fi
3904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3905printf "%s\n" "$ac_cv_objext" >&6; }
3906OBJEXT=$ac_cv_objext
3907ac_objext=$OBJEXT
3908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3909printf %s "checking whether the compiler supports GNU C... " >&6; }
3910if test ${ac_cv_c_compiler_gnu+y}
3911then :
3912  printf %s "(cached) " >&6
3913else $as_nop
3914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915/* end confdefs.h.  */
3916
3917int
3918main (void)
3919{
3920#ifndef __GNUC__
3921       choke me
3922#endif
3923
3924  ;
3925  return 0;
3926}
3927_ACEOF
3928if ac_fn_c_try_compile "$LINENO"
3929then :
3930  ac_compiler_gnu=yes
3931else $as_nop
3932  ac_compiler_gnu=no
3933fi
3934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3935ac_cv_c_compiler_gnu=$ac_compiler_gnu
3936
3937fi
3938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3939printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3940ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941
3942if test $ac_compiler_gnu = yes; then
3943  GCC=yes
3944else
3945  GCC=
3946fi
3947ac_test_CFLAGS=${CFLAGS+y}
3948ac_save_CFLAGS=$CFLAGS
3949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3950printf %s "checking whether $CC accepts -g... " >&6; }
3951if test ${ac_cv_prog_cc_g+y}
3952then :
3953  printf %s "(cached) " >&6
3954else $as_nop
3955  ac_save_c_werror_flag=$ac_c_werror_flag
3956   ac_c_werror_flag=yes
3957   ac_cv_prog_cc_g=no
3958   CFLAGS="-g"
3959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960/* end confdefs.h.  */
3961
3962int
3963main (void)
3964{
3965
3966  ;
3967  return 0;
3968}
3969_ACEOF
3970if ac_fn_c_try_compile "$LINENO"
3971then :
3972  ac_cv_prog_cc_g=yes
3973else $as_nop
3974  CFLAGS=""
3975      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976/* end confdefs.h.  */
3977
3978int
3979main (void)
3980{
3981
3982  ;
3983  return 0;
3984}
3985_ACEOF
3986if ac_fn_c_try_compile "$LINENO"
3987then :
3988
3989else $as_nop
3990  ac_c_werror_flag=$ac_save_c_werror_flag
3991	 CFLAGS="-g"
3992	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h.  */
3994
3995int
3996main (void)
3997{
3998
3999  ;
4000  return 0;
4001}
4002_ACEOF
4003if ac_fn_c_try_compile "$LINENO"
4004then :
4005  ac_cv_prog_cc_g=yes
4006fi
4007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4008fi
4009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4010fi
4011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4012   ac_c_werror_flag=$ac_save_c_werror_flag
4013fi
4014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4015printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4016if test $ac_test_CFLAGS; then
4017  CFLAGS=$ac_save_CFLAGS
4018elif test $ac_cv_prog_cc_g = yes; then
4019  if test "$GCC" = yes; then
4020    CFLAGS="-g -O2"
4021  else
4022    CFLAGS="-g"
4023  fi
4024else
4025  if test "$GCC" = yes; then
4026    CFLAGS="-O2"
4027  else
4028    CFLAGS=
4029  fi
4030fi
4031ac_prog_cc_stdc=no
4032if test x$ac_prog_cc_stdc = xno
4033then :
4034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4035printf %s "checking for $CC option to enable C11 features... " >&6; }
4036if test ${ac_cv_prog_cc_c11+y}
4037then :
4038  printf %s "(cached) " >&6
4039else $as_nop
4040  ac_cv_prog_cc_c11=no
4041ac_save_CC=$CC
4042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h.  */
4044$ac_c_conftest_c11_program
4045_ACEOF
4046for ac_arg in '' -std=gnu11
4047do
4048  CC="$ac_save_CC $ac_arg"
4049  if ac_fn_c_try_compile "$LINENO"
4050then :
4051  ac_cv_prog_cc_c11=$ac_arg
4052fi
4053rm -f core conftest.err conftest.$ac_objext conftest.beam
4054  test "x$ac_cv_prog_cc_c11" != "xno" && break
4055done
4056rm -f conftest.$ac_ext
4057CC=$ac_save_CC
4058fi
4059
4060if test "x$ac_cv_prog_cc_c11" = xno
4061then :
4062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063printf "%s\n" "unsupported" >&6; }
4064else $as_nop
4065  if test "x$ac_cv_prog_cc_c11" = x
4066then :
4067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4068printf "%s\n" "none needed" >&6; }
4069else $as_nop
4070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4071printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4072     CC="$CC $ac_cv_prog_cc_c11"
4073fi
4074  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4075  ac_prog_cc_stdc=c11
4076fi
4077fi
4078if test x$ac_prog_cc_stdc = xno
4079then :
4080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4081printf %s "checking for $CC option to enable C99 features... " >&6; }
4082if test ${ac_cv_prog_cc_c99+y}
4083then :
4084  printf %s "(cached) " >&6
4085else $as_nop
4086  ac_cv_prog_cc_c99=no
4087ac_save_CC=$CC
4088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089/* end confdefs.h.  */
4090$ac_c_conftest_c99_program
4091_ACEOF
4092for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4093do
4094  CC="$ac_save_CC $ac_arg"
4095  if ac_fn_c_try_compile "$LINENO"
4096then :
4097  ac_cv_prog_cc_c99=$ac_arg
4098fi
4099rm -f core conftest.err conftest.$ac_objext conftest.beam
4100  test "x$ac_cv_prog_cc_c99" != "xno" && break
4101done
4102rm -f conftest.$ac_ext
4103CC=$ac_save_CC
4104fi
4105
4106if test "x$ac_cv_prog_cc_c99" = xno
4107then :
4108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4109printf "%s\n" "unsupported" >&6; }
4110else $as_nop
4111  if test "x$ac_cv_prog_cc_c99" = x
4112then :
4113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4114printf "%s\n" "none needed" >&6; }
4115else $as_nop
4116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4117printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4118     CC="$CC $ac_cv_prog_cc_c99"
4119fi
4120  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4121  ac_prog_cc_stdc=c99
4122fi
4123fi
4124if test x$ac_prog_cc_stdc = xno
4125then :
4126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4127printf %s "checking for $CC option to enable C89 features... " >&6; }
4128if test ${ac_cv_prog_cc_c89+y}
4129then :
4130  printf %s "(cached) " >&6
4131else $as_nop
4132  ac_cv_prog_cc_c89=no
4133ac_save_CC=$CC
4134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135/* end confdefs.h.  */
4136$ac_c_conftest_c89_program
4137_ACEOF
4138for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4139do
4140  CC="$ac_save_CC $ac_arg"
4141  if ac_fn_c_try_compile "$LINENO"
4142then :
4143  ac_cv_prog_cc_c89=$ac_arg
4144fi
4145rm -f core conftest.err conftest.$ac_objext conftest.beam
4146  test "x$ac_cv_prog_cc_c89" != "xno" && break
4147done
4148rm -f conftest.$ac_ext
4149CC=$ac_save_CC
4150fi
4151
4152if test "x$ac_cv_prog_cc_c89" = xno
4153then :
4154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4155printf "%s\n" "unsupported" >&6; }
4156else $as_nop
4157  if test "x$ac_cv_prog_cc_c89" = x
4158then :
4159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160printf "%s\n" "none needed" >&6; }
4161else $as_nop
4162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4163printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4164     CC="$CC $ac_cv_prog_cc_c89"
4165fi
4166  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4167  ac_prog_cc_stdc=c89
4168fi
4169fi
4170
4171ac_ext=c
4172ac_cpp='$CPP $CPPFLAGS'
4173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176
4177
4178  ac_ext=c
4179ac_cpp='$CPP $CPPFLAGS'
4180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4184printf %s "checking whether $CC understands -c and -o together... " >&6; }
4185if test ${am_cv_prog_cc_c_o+y}
4186then :
4187  printf %s "(cached) " >&6
4188else $as_nop
4189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190/* end confdefs.h.  */
4191
4192int
4193main (void)
4194{
4195
4196  ;
4197  return 0;
4198}
4199_ACEOF
4200  # Make sure it works both with $CC and with simple cc.
4201  # Following AC_PROG_CC_C_O, we do the test twice because some
4202  # compilers refuse to overwrite an existing .o file with -o,
4203  # though they will create one.
4204  am_cv_prog_cc_c_o=yes
4205  for am_i in 1 2; do
4206    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4207   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } \
4211         && test -f conftest2.$ac_objext; then
4212      : OK
4213    else
4214      am_cv_prog_cc_c_o=no
4215      break
4216    fi
4217  done
4218  rm -f core conftest*
4219  unset am_i
4220fi
4221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4222printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4223if test "$am_cv_prog_cc_c_o" != yes; then
4224   # Losing compiler, so override with the script.
4225   # FIXME: It is wrong to rewrite CC.
4226   # But if we don't then we get into trouble of one sort or another.
4227   # A longer-term fix would be to have automake use am__CC in this case,
4228   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4229   CC="$am_aux_dir/compile $CC"
4230fi
4231ac_ext=c
4232ac_cpp='$CPP $CPPFLAGS'
4233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236
4237
4238depcc="$CC"   am_compiler_list=
4239
4240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4241printf %s "checking dependency style of $depcc... " >&6; }
4242if test ${am_cv_CC_dependencies_compiler_type+y}
4243then :
4244  printf %s "(cached) " >&6
4245else $as_nop
4246  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4247  # We make a subdir and do the tests there.  Otherwise we can end up
4248  # making bogus files that we don't know about and never remove.  For
4249  # instance it was reported that on HP-UX the gcc test will end up
4250  # making a dummy file named 'D' -- because '-MD' means "put the output
4251  # in D".
4252  rm -rf conftest.dir
4253  mkdir conftest.dir
4254  # Copy depcomp to subdir because otherwise we won't find it if we're
4255  # using a relative directory.
4256  cp "$am_depcomp" conftest.dir
4257  cd conftest.dir
4258  # We will build objects and dependencies in a subdirectory because
4259  # it helps to detect inapplicable dependency modes.  For instance
4260  # both Tru64's cc and ICC support -MD to output dependencies as a
4261  # side effect of compilation, but ICC will put the dependencies in
4262  # the current directory while Tru64 will put them in the object
4263  # directory.
4264  mkdir sub
4265
4266  am_cv_CC_dependencies_compiler_type=none
4267  if test "$am_compiler_list" = ""; then
4268     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4269  fi
4270  am__universal=false
4271  case " $depcc " in #(
4272     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4273     esac
4274
4275  for depmode in $am_compiler_list; do
4276    # Setup a source with many dependencies, because some compilers
4277    # like to wrap large dependency lists on column 80 (with \), and
4278    # we should not choose a depcomp mode which is confused by this.
4279    #
4280    # We need to recreate these files for each test, as the compiler may
4281    # overwrite some of them when testing with obscure command lines.
4282    # This happens at least with the AIX C compiler.
4283    : > sub/conftest.c
4284    for i in 1 2 3 4 5 6; do
4285      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4286      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4287      # Solaris 10 /bin/sh.
4288      echo '/* dummy */' > sub/conftst$i.h
4289    done
4290    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4291
4292    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4293    # mode.  It turns out that the SunPro C++ compiler does not properly
4294    # handle '-M -o', and we need to detect this.  Also, some Intel
4295    # versions had trouble with output in subdirs.
4296    am__obj=sub/conftest.${OBJEXT-o}
4297    am__minus_obj="-o $am__obj"
4298    case $depmode in
4299    gcc)
4300      # This depmode causes a compiler race in universal mode.
4301      test "$am__universal" = false || continue
4302      ;;
4303    nosideeffect)
4304      # After this tag, mechanisms are not by side-effect, so they'll
4305      # only be used when explicitly requested.
4306      if test "x$enable_dependency_tracking" = xyes; then
4307	continue
4308      else
4309	break
4310      fi
4311      ;;
4312    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4313      # This compiler won't grok '-c -o', but also, the minuso test has
4314      # not run yet.  These depmodes are late enough in the game, and
4315      # so weak that their functioning should not be impacted.
4316      am__obj=conftest.${OBJEXT-o}
4317      am__minus_obj=
4318      ;;
4319    none) break ;;
4320    esac
4321    if depmode=$depmode \
4322       source=sub/conftest.c object=$am__obj \
4323       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4324       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4325         >/dev/null 2>conftest.err &&
4326       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4327       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4328       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4329       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4330      # icc doesn't choke on unknown options, it will just issue warnings
4331      # or remarks (even with -Werror).  So we grep stderr for any message
4332      # that says an option was ignored or not supported.
4333      # When given -MP, icc 7.0 and 7.1 complain thusly:
4334      #   icc: Command line warning: ignoring option '-M'; no argument required
4335      # The diagnosis changed in icc 8.0:
4336      #   icc: Command line remark: option '-MP' not supported
4337      if (grep 'ignoring option' conftest.err ||
4338          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4339        am_cv_CC_dependencies_compiler_type=$depmode
4340        break
4341      fi
4342    fi
4343  done
4344
4345  cd ..
4346  rm -rf conftest.dir
4347else
4348  am_cv_CC_dependencies_compiler_type=none
4349fi
4350
4351fi
4352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4353printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4354CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4355
4356 if
4357  test "x$enable_dependency_tracking" != xno \
4358  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4359  am__fastdepCC_TRUE=
4360  am__fastdepCC_FALSE='#'
4361else
4362  am__fastdepCC_TRUE='#'
4363  am__fastdepCC_FALSE=
4364fi
4365
4366
4367
4368
4369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4370printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4371if test ${ac_cv_c_undeclared_builtin_options+y}
4372then :
4373  printf %s "(cached) " >&6
4374else $as_nop
4375  ac_save_CFLAGS=$CFLAGS
4376   ac_cv_c_undeclared_builtin_options='cannot detect'
4377   for ac_arg in '' -fno-builtin; do
4378     CFLAGS="$ac_save_CFLAGS $ac_arg"
4379     # This test program should *not* compile successfully.
4380     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h.  */
4382
4383int
4384main (void)
4385{
4386(void) strchr;
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391if ac_fn_c_try_compile "$LINENO"
4392then :
4393
4394else $as_nop
4395  # This test program should compile successfully.
4396        # No library function is consistently available on
4397        # freestanding implementations, so test against a dummy
4398        # declaration.  Include always-available headers on the
4399        # off chance that they somehow elicit warnings.
4400        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h.  */
4402#include <float.h>
4403#include <limits.h>
4404#include <stdarg.h>
4405#include <stddef.h>
4406extern void ac_decl (int, char *);
4407
4408int
4409main (void)
4410{
4411(void) ac_decl (0, (char *) 0);
4412  (void) ac_decl;
4413
4414  ;
4415  return 0;
4416}
4417_ACEOF
4418if ac_fn_c_try_compile "$LINENO"
4419then :
4420  if test x"$ac_arg" = x
4421then :
4422  ac_cv_c_undeclared_builtin_options='none needed'
4423else $as_nop
4424  ac_cv_c_undeclared_builtin_options=$ac_arg
4425fi
4426          break
4427fi
4428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4429fi
4430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4431    done
4432    CFLAGS=$ac_save_CFLAGS
4433
4434fi
4435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4436printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4437  case $ac_cv_c_undeclared_builtin_options in #(
4438  'cannot detect') :
4439    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4441as_fn_error $? "cannot make $CC report undeclared builtins
4442See \`config.log' for more details" "$LINENO" 5; } ;; #(
4443  'none needed') :
4444    ac_c_undeclared_builtin_options='' ;; #(
4445  *) :
4446    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4447esac
4448
4449ac_header= ac_cache=
4450for ac_item in $ac_header_c_list
4451do
4452  if test $ac_cache; then
4453    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4454    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4455      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4456    fi
4457    ac_header= ac_cache=
4458  elif test $ac_header; then
4459    ac_cache=$ac_item
4460  else
4461    ac_header=$ac_item
4462  fi
4463done
4464
4465
4466
4467
4468
4469
4470
4471
4472if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4473then :
4474
4475printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4476
4477fi
4478
4479
4480
4481
4482ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4483if test "x$ac_cv_have_decl___clang__" = xyes
4484then :
4485  CLANGCC="yes"
4486else $as_nop
4487  CLANGCC="no"
4488fi
4489ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4490if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4491then :
4492  INTELCC="yes"
4493else $as_nop
4494  INTELCC="no"
4495fi
4496ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4497if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4498then :
4499  SUNCC="yes"
4500else $as_nop
4501  SUNCC="no"
4502fi
4503
4504
4505
4506
4507
4508
4509
4510
4511if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4512	if test -n "$ac_tool_prefix"; then
4513  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4514set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516printf %s "checking for $ac_word... " >&6; }
4517if test ${ac_cv_path_PKG_CONFIG+y}
4518then :
4519  printf %s "(cached) " >&6
4520else $as_nop
4521  case $PKG_CONFIG in
4522  [\\/]* | ?:[\\/]*)
4523  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4524  ;;
4525  *)
4526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH
4528do
4529  IFS=$as_save_IFS
4530  case $as_dir in #(((
4531    '') as_dir=./ ;;
4532    */) ;;
4533    *) as_dir=$as_dir/ ;;
4534  esac
4535    for ac_exec_ext in '' $ac_executable_extensions; do
4536  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4537    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4538    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4539    break 2
4540  fi
4541done
4542  done
4543IFS=$as_save_IFS
4544
4545  ;;
4546esac
4547fi
4548PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4549if test -n "$PKG_CONFIG"; then
4550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4551printf "%s\n" "$PKG_CONFIG" >&6; }
4552else
4553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554printf "%s\n" "no" >&6; }
4555fi
4556
4557
4558fi
4559if test -z "$ac_cv_path_PKG_CONFIG"; then
4560  ac_pt_PKG_CONFIG=$PKG_CONFIG
4561  # Extract the first word of "pkg-config", so it can be a program name with args.
4562set dummy pkg-config; ac_word=$2
4563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564printf %s "checking for $ac_word... " >&6; }
4565if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4566then :
4567  printf %s "(cached) " >&6
4568else $as_nop
4569  case $ac_pt_PKG_CONFIG in
4570  [\\/]* | ?:[\\/]*)
4571  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4572  ;;
4573  *)
4574  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577  IFS=$as_save_IFS
4578  case $as_dir in #(((
4579    '') as_dir=./ ;;
4580    */) ;;
4581    *) as_dir=$as_dir/ ;;
4582  esac
4583    for ac_exec_ext in '' $ac_executable_extensions; do
4584  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4585    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4586    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4587    break 2
4588  fi
4589done
4590  done
4591IFS=$as_save_IFS
4592
4593  ;;
4594esac
4595fi
4596ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4597if test -n "$ac_pt_PKG_CONFIG"; then
4598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4599printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4600else
4601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602printf "%s\n" "no" >&6; }
4603fi
4604
4605  if test "x$ac_pt_PKG_CONFIG" = x; then
4606    PKG_CONFIG=""
4607  else
4608    case $cross_compiling:$ac_tool_warned in
4609yes:)
4610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4611printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4612ac_tool_warned=yes ;;
4613esac
4614    PKG_CONFIG=$ac_pt_PKG_CONFIG
4615  fi
4616else
4617  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4618fi
4619
4620fi
4621if test -n "$PKG_CONFIG"; then
4622	_pkg_min_version=0.9.0
4623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4624printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4625	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4627printf "%s\n" "yes" >&6; }
4628	else
4629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630printf "%s\n" "no" >&6; }
4631		PKG_CONFIG=""
4632	fi
4633fi
4634
4635
4636  # Make sure we can run config.sub.
4637$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4638  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4639
4640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4641printf %s "checking build system type... " >&6; }
4642if test ${ac_cv_build+y}
4643then :
4644  printf %s "(cached) " >&6
4645else $as_nop
4646  ac_build_alias=$build_alias
4647test "x$ac_build_alias" = x &&
4648  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4649test "x$ac_build_alias" = x &&
4650  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4651ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4652  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4653
4654fi
4655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4656printf "%s\n" "$ac_cv_build" >&6; }
4657case $ac_cv_build in
4658*-*-*) ;;
4659*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4660esac
4661build=$ac_cv_build
4662ac_save_IFS=$IFS; IFS='-'
4663set x $ac_cv_build
4664shift
4665build_cpu=$1
4666build_vendor=$2
4667shift; shift
4668# Remember, the first character of IFS is used to create $*,
4669# except with old shells:
4670build_os=$*
4671IFS=$ac_save_IFS
4672case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4673
4674
4675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4676printf %s "checking host system type... " >&6; }
4677if test ${ac_cv_host+y}
4678then :
4679  printf %s "(cached) " >&6
4680else $as_nop
4681  if test "x$host_alias" = x; then
4682  ac_cv_host=$ac_cv_build
4683else
4684  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4685    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4686fi
4687
4688fi
4689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4690printf "%s\n" "$ac_cv_host" >&6; }
4691case $ac_cv_host in
4692*-*-*) ;;
4693*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4694esac
4695host=$ac_cv_host
4696ac_save_IFS=$IFS; IFS='-'
4697set x $ac_cv_host
4698shift
4699host_cpu=$1
4700host_vendor=$2
4701shift; shift
4702# Remember, the first character of IFS is used to create $*,
4703# except with old shells:
4704host_os=$*
4705IFS=$ac_save_IFS
4706case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4707
4708
4709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4710printf %s "checking for a sed that does not truncate output... " >&6; }
4711if test ${ac_cv_path_SED+y}
4712then :
4713  printf %s "(cached) " >&6
4714else $as_nop
4715            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4716     for ac_i in 1 2 3 4 5 6 7; do
4717       ac_script="$ac_script$as_nl$ac_script"
4718     done
4719     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4720     { ac_script=; unset ac_script;}
4721     if test -z "$SED"; then
4722  ac_path_SED_found=false
4723  # Loop through the user's path and test for each of PROGNAME-LIST
4724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727  IFS=$as_save_IFS
4728  case $as_dir in #(((
4729    '') as_dir=./ ;;
4730    */) ;;
4731    *) as_dir=$as_dir/ ;;
4732  esac
4733    for ac_prog in sed gsed
4734   do
4735    for ac_exec_ext in '' $ac_executable_extensions; do
4736      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4737      as_fn_executable_p "$ac_path_SED" || continue
4738# Check for GNU ac_path_SED and select it if it is found.
4739  # Check for GNU $ac_path_SED
4740case `"$ac_path_SED" --version 2>&1` in
4741*GNU*)
4742  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4743*)
4744  ac_count=0
4745  printf %s 0123456789 >"conftest.in"
4746  while :
4747  do
4748    cat "conftest.in" "conftest.in" >"conftest.tmp"
4749    mv "conftest.tmp" "conftest.in"
4750    cp "conftest.in" "conftest.nl"
4751    printf "%s\n" '' >> "conftest.nl"
4752    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4753    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4754    as_fn_arith $ac_count + 1 && ac_count=$as_val
4755    if test $ac_count -gt ${ac_path_SED_max-0}; then
4756      # Best one so far, save it but keep looking for a better one
4757      ac_cv_path_SED="$ac_path_SED"
4758      ac_path_SED_max=$ac_count
4759    fi
4760    # 10*(2^10) chars as input seems more than enough
4761    test $ac_count -gt 10 && break
4762  done
4763  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4764esac
4765
4766      $ac_path_SED_found && break 3
4767    done
4768  done
4769  done
4770IFS=$as_save_IFS
4771  if test -z "$ac_cv_path_SED"; then
4772    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4773  fi
4774else
4775  ac_cv_path_SED=$SED
4776fi
4777
4778fi
4779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4780printf "%s\n" "$ac_cv_path_SED" >&6; }
4781 SED="$ac_cv_path_SED"
4782  rm -f conftest.sed
4783
4784
4785
4786
4787
4788
4789# Check whether --enable-selective-werror was given.
4790if test ${enable_selective_werror+y}
4791then :
4792  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4793else $as_nop
4794  SELECTIVE_WERROR=yes
4795fi
4796
4797
4798
4799
4800
4801# -v is too short to test reliably with XORG_TESTSET_CFLAG
4802if test "x$SUNCC" = "xyes"; then
4803    BASE_CFLAGS="-v"
4804else
4805    BASE_CFLAGS=""
4806fi
4807
4808# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822xorg_testset_save_CFLAGS="$CFLAGS"
4823
4824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4827printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4828if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4829then :
4830  printf %s "(cached) " >&6
4831else $as_nop
4832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834int i;
4835_ACEOF
4836if ac_fn_c_try_compile "$LINENO"
4837then :
4838  xorg_cv_cc_flag_unknown_warning_option=yes
4839else $as_nop
4840  xorg_cv_cc_flag_unknown_warning_option=no
4841fi
4842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4843fi
4844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4845printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4846	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4847	CFLAGS="$xorg_testset_save_CFLAGS"
4848fi
4849
4850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4851	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4852		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4853	fi
4854	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4856printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4857if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4858then :
4859  printf %s "(cached) " >&6
4860else $as_nop
4861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862/* end confdefs.h.  */
4863int i;
4864_ACEOF
4865if ac_fn_c_try_compile "$LINENO"
4866then :
4867  xorg_cv_cc_flag_unused_command_line_argument=yes
4868else $as_nop
4869  xorg_cv_cc_flag_unused_command_line_argument=no
4870fi
4871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4872fi
4873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4874printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4875	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4876	CFLAGS="$xorg_testset_save_CFLAGS"
4877fi
4878
4879found="no"
4880
4881	if test $found = "no" ; then
4882		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4883			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4884		fi
4885
4886		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4887			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4888		fi
4889
4890		CFLAGS="$CFLAGS -Wall"
4891
4892		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4893printf %s "checking if $CC supports -Wall... " >&6; }
4894		cacheid=xorg_cv_cc_flag__Wall
4895		if eval test \${$cacheid+y}
4896then :
4897  printf %s "(cached) " >&6
4898else $as_nop
4899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h.  */
4901int i;
4902int
4903main (void)
4904{
4905
4906  ;
4907  return 0;
4908}
4909_ACEOF
4910if ac_fn_c_try_link "$LINENO"
4911then :
4912  eval $cacheid=yes
4913else $as_nop
4914  eval $cacheid=no
4915fi
4916rm -f core conftest.err conftest.$ac_objext conftest.beam \
4917    conftest$ac_exeext conftest.$ac_ext
4918fi
4919
4920
4921		CFLAGS="$xorg_testset_save_CFLAGS"
4922
4923		eval supported=\$$cacheid
4924		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4925printf "%s\n" "$supported" >&6; }
4926		if test "$supported" = "yes" ; then
4927			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4928			found="yes"
4929		fi
4930	fi
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946xorg_testset_save_CFLAGS="$CFLAGS"
4947
4948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4949	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4950	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4951printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4952if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4953then :
4954  printf %s "(cached) " >&6
4955else $as_nop
4956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957/* end confdefs.h.  */
4958int i;
4959_ACEOF
4960if ac_fn_c_try_compile "$LINENO"
4961then :
4962  xorg_cv_cc_flag_unknown_warning_option=yes
4963else $as_nop
4964  xorg_cv_cc_flag_unknown_warning_option=no
4965fi
4966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4967fi
4968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4969printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4970	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4971	CFLAGS="$xorg_testset_save_CFLAGS"
4972fi
4973
4974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4975	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4976		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4977	fi
4978	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4979	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4980printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4981if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4982then :
4983  printf %s "(cached) " >&6
4984else $as_nop
4985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986/* end confdefs.h.  */
4987int i;
4988_ACEOF
4989if ac_fn_c_try_compile "$LINENO"
4990then :
4991  xorg_cv_cc_flag_unused_command_line_argument=yes
4992else $as_nop
4993  xorg_cv_cc_flag_unused_command_line_argument=no
4994fi
4995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4996fi
4997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4998printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4999	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5000	CFLAGS="$xorg_testset_save_CFLAGS"
5001fi
5002
5003found="no"
5004
5005	if test $found = "no" ; then
5006		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5007			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5008		fi
5009
5010		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5011			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5012		fi
5013
5014		CFLAGS="$CFLAGS -Wpointer-arith"
5015
5016		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5017printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5018		cacheid=xorg_cv_cc_flag__Wpointer_arith
5019		if eval test \${$cacheid+y}
5020then :
5021  printf %s "(cached) " >&6
5022else $as_nop
5023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h.  */
5025int i;
5026int
5027main (void)
5028{
5029
5030  ;
5031  return 0;
5032}
5033_ACEOF
5034if ac_fn_c_try_link "$LINENO"
5035then :
5036  eval $cacheid=yes
5037else $as_nop
5038  eval $cacheid=no
5039fi
5040rm -f core conftest.err conftest.$ac_objext conftest.beam \
5041    conftest$ac_exeext conftest.$ac_ext
5042fi
5043
5044
5045		CFLAGS="$xorg_testset_save_CFLAGS"
5046
5047		eval supported=\$$cacheid
5048		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5049printf "%s\n" "$supported" >&6; }
5050		if test "$supported" = "yes" ; then
5051			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5052			found="yes"
5053		fi
5054	fi
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070xorg_testset_save_CFLAGS="$CFLAGS"
5071
5072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5073	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5075printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5076if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5077then :
5078  printf %s "(cached) " >&6
5079else $as_nop
5080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081/* end confdefs.h.  */
5082int i;
5083_ACEOF
5084if ac_fn_c_try_compile "$LINENO"
5085then :
5086  xorg_cv_cc_flag_unknown_warning_option=yes
5087else $as_nop
5088  xorg_cv_cc_flag_unknown_warning_option=no
5089fi
5090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5091fi
5092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5093printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5094	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5095	CFLAGS="$xorg_testset_save_CFLAGS"
5096fi
5097
5098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5099	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5100		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5101	fi
5102	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5103	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5104printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5105if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5106then :
5107  printf %s "(cached) " >&6
5108else $as_nop
5109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110/* end confdefs.h.  */
5111int i;
5112_ACEOF
5113if ac_fn_c_try_compile "$LINENO"
5114then :
5115  xorg_cv_cc_flag_unused_command_line_argument=yes
5116else $as_nop
5117  xorg_cv_cc_flag_unused_command_line_argument=no
5118fi
5119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5120fi
5121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5122printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5124	CFLAGS="$xorg_testset_save_CFLAGS"
5125fi
5126
5127found="no"
5128
5129	if test $found = "no" ; then
5130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5132		fi
5133
5134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5136		fi
5137
5138		CFLAGS="$CFLAGS -Wmissing-declarations"
5139
5140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5141printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5142		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5143		if eval test \${$cacheid+y}
5144then :
5145  printf %s "(cached) " >&6
5146else $as_nop
5147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148/* end confdefs.h.  */
5149int i;
5150int
5151main (void)
5152{
5153
5154  ;
5155  return 0;
5156}
5157_ACEOF
5158if ac_fn_c_try_link "$LINENO"
5159then :
5160  eval $cacheid=yes
5161else $as_nop
5162  eval $cacheid=no
5163fi
5164rm -f core conftest.err conftest.$ac_objext conftest.beam \
5165    conftest$ac_exeext conftest.$ac_ext
5166fi
5167
5168
5169		CFLAGS="$xorg_testset_save_CFLAGS"
5170
5171		eval supported=\$$cacheid
5172		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5173printf "%s\n" "$supported" >&6; }
5174		if test "$supported" = "yes" ; then
5175			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5176			found="yes"
5177		fi
5178	fi
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194xorg_testset_save_CFLAGS="$CFLAGS"
5195
5196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5199printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5200if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5201then :
5202  printf %s "(cached) " >&6
5203else $as_nop
5204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205/* end confdefs.h.  */
5206int i;
5207_ACEOF
5208if ac_fn_c_try_compile "$LINENO"
5209then :
5210  xorg_cv_cc_flag_unknown_warning_option=yes
5211else $as_nop
5212  xorg_cv_cc_flag_unknown_warning_option=no
5213fi
5214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5215fi
5216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5217printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5219	CFLAGS="$xorg_testset_save_CFLAGS"
5220fi
5221
5222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5225	fi
5226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5227	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5228printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5229if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5230then :
5231  printf %s "(cached) " >&6
5232else $as_nop
5233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234/* end confdefs.h.  */
5235int i;
5236_ACEOF
5237if ac_fn_c_try_compile "$LINENO"
5238then :
5239  xorg_cv_cc_flag_unused_command_line_argument=yes
5240else $as_nop
5241  xorg_cv_cc_flag_unused_command_line_argument=no
5242fi
5243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5244fi
5245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5248	CFLAGS="$xorg_testset_save_CFLAGS"
5249fi
5250
5251found="no"
5252
5253	if test $found = "no" ; then
5254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256		fi
5257
5258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5260		fi
5261
5262		CFLAGS="$CFLAGS -Wformat=2"
5263
5264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5265printf %s "checking if $CC supports -Wformat=2... " >&6; }
5266		cacheid=xorg_cv_cc_flag__Wformat_2
5267		if eval test \${$cacheid+y}
5268then :
5269  printf %s "(cached) " >&6
5270else $as_nop
5271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h.  */
5273int i;
5274int
5275main (void)
5276{
5277
5278  ;
5279  return 0;
5280}
5281_ACEOF
5282if ac_fn_c_try_link "$LINENO"
5283then :
5284  eval $cacheid=yes
5285else $as_nop
5286  eval $cacheid=no
5287fi
5288rm -f core conftest.err conftest.$ac_objext conftest.beam \
5289    conftest$ac_exeext conftest.$ac_ext
5290fi
5291
5292
5293		CFLAGS="$xorg_testset_save_CFLAGS"
5294
5295		eval supported=\$$cacheid
5296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5297printf "%s\n" "$supported" >&6; }
5298		if test "$supported" = "yes" ; then
5299			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5300			found="yes"
5301		fi
5302	fi
5303
5304	if test $found = "no" ; then
5305		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5306			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5307		fi
5308
5309		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5310			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5311		fi
5312
5313		CFLAGS="$CFLAGS -Wformat"
5314
5315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5316printf %s "checking if $CC supports -Wformat... " >&6; }
5317		cacheid=xorg_cv_cc_flag__Wformat
5318		if eval test \${$cacheid+y}
5319then :
5320  printf %s "(cached) " >&6
5321else $as_nop
5322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323/* end confdefs.h.  */
5324int i;
5325int
5326main (void)
5327{
5328
5329  ;
5330  return 0;
5331}
5332_ACEOF
5333if ac_fn_c_try_link "$LINENO"
5334then :
5335  eval $cacheid=yes
5336else $as_nop
5337  eval $cacheid=no
5338fi
5339rm -f core conftest.err conftest.$ac_objext conftest.beam \
5340    conftest$ac_exeext conftest.$ac_ext
5341fi
5342
5343
5344		CFLAGS="$xorg_testset_save_CFLAGS"
5345
5346		eval supported=\$$cacheid
5347		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5348printf "%s\n" "$supported" >&6; }
5349		if test "$supported" = "yes" ; then
5350			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5351			found="yes"
5352		fi
5353	fi
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371xorg_testset_save_CFLAGS="$CFLAGS"
5372
5373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5374	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5376printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5377if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5378then :
5379  printf %s "(cached) " >&6
5380else $as_nop
5381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h.  */
5383int i;
5384_ACEOF
5385if ac_fn_c_try_compile "$LINENO"
5386then :
5387  xorg_cv_cc_flag_unknown_warning_option=yes
5388else $as_nop
5389  xorg_cv_cc_flag_unknown_warning_option=no
5390fi
5391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5392fi
5393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5394printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5395	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5396	CFLAGS="$xorg_testset_save_CFLAGS"
5397fi
5398
5399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5400	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5401		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5402	fi
5403	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5404	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5405printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5406if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5407then :
5408  printf %s "(cached) " >&6
5409else $as_nop
5410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411/* end confdefs.h.  */
5412int i;
5413_ACEOF
5414if ac_fn_c_try_compile "$LINENO"
5415then :
5416  xorg_cv_cc_flag_unused_command_line_argument=yes
5417else $as_nop
5418  xorg_cv_cc_flag_unused_command_line_argument=no
5419fi
5420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5421fi
5422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5423printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5424	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5425	CFLAGS="$xorg_testset_save_CFLAGS"
5426fi
5427
5428found="no"
5429
5430	if test $found = "no" ; then
5431		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5432			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5433		fi
5434
5435		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5436			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5437		fi
5438
5439		CFLAGS="$CFLAGS -Wstrict-prototypes"
5440
5441		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5442printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5443		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5444		if eval test \${$cacheid+y}
5445then :
5446  printf %s "(cached) " >&6
5447else $as_nop
5448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h.  */
5450int i;
5451int
5452main (void)
5453{
5454
5455  ;
5456  return 0;
5457}
5458_ACEOF
5459if ac_fn_c_try_link "$LINENO"
5460then :
5461  eval $cacheid=yes
5462else $as_nop
5463  eval $cacheid=no
5464fi
5465rm -f core conftest.err conftest.$ac_objext conftest.beam \
5466    conftest$ac_exeext conftest.$ac_ext
5467fi
5468
5469
5470		CFLAGS="$xorg_testset_save_CFLAGS"
5471
5472		eval supported=\$$cacheid
5473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5474printf "%s\n" "$supported" >&6; }
5475		if test "$supported" = "yes" ; then
5476			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5477			found="yes"
5478		fi
5479	fi
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495xorg_testset_save_CFLAGS="$CFLAGS"
5496
5497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5498	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5500printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5501if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5502then :
5503  printf %s "(cached) " >&6
5504else $as_nop
5505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506/* end confdefs.h.  */
5507int i;
5508_ACEOF
5509if ac_fn_c_try_compile "$LINENO"
5510then :
5511  xorg_cv_cc_flag_unknown_warning_option=yes
5512else $as_nop
5513  xorg_cv_cc_flag_unknown_warning_option=no
5514fi
5515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5516fi
5517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5518printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5519	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5520	CFLAGS="$xorg_testset_save_CFLAGS"
5521fi
5522
5523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5524	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5525		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5526	fi
5527	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5529printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5530if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5531then :
5532  printf %s "(cached) " >&6
5533else $as_nop
5534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535/* end confdefs.h.  */
5536int i;
5537_ACEOF
5538if ac_fn_c_try_compile "$LINENO"
5539then :
5540  xorg_cv_cc_flag_unused_command_line_argument=yes
5541else $as_nop
5542  xorg_cv_cc_flag_unused_command_line_argument=no
5543fi
5544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5545fi
5546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5547printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5548	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5549	CFLAGS="$xorg_testset_save_CFLAGS"
5550fi
5551
5552found="no"
5553
5554	if test $found = "no" ; then
5555		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5556			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5557		fi
5558
5559		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5560			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5561		fi
5562
5563		CFLAGS="$CFLAGS -Wmissing-prototypes"
5564
5565		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5566printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5567		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5568		if eval test \${$cacheid+y}
5569then :
5570  printf %s "(cached) " >&6
5571else $as_nop
5572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h.  */
5574int i;
5575int
5576main (void)
5577{
5578
5579  ;
5580  return 0;
5581}
5582_ACEOF
5583if ac_fn_c_try_link "$LINENO"
5584then :
5585  eval $cacheid=yes
5586else $as_nop
5587  eval $cacheid=no
5588fi
5589rm -f core conftest.err conftest.$ac_objext conftest.beam \
5590    conftest$ac_exeext conftest.$ac_ext
5591fi
5592
5593
5594		CFLAGS="$xorg_testset_save_CFLAGS"
5595
5596		eval supported=\$$cacheid
5597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5598printf "%s\n" "$supported" >&6; }
5599		if test "$supported" = "yes" ; then
5600			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5601			found="yes"
5602		fi
5603	fi
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619xorg_testset_save_CFLAGS="$CFLAGS"
5620
5621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5622	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5624printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5625if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5626then :
5627  printf %s "(cached) " >&6
5628else $as_nop
5629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h.  */
5631int i;
5632_ACEOF
5633if ac_fn_c_try_compile "$LINENO"
5634then :
5635  xorg_cv_cc_flag_unknown_warning_option=yes
5636else $as_nop
5637  xorg_cv_cc_flag_unknown_warning_option=no
5638fi
5639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5640fi
5641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5642printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5644	CFLAGS="$xorg_testset_save_CFLAGS"
5645fi
5646
5647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5650	fi
5651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5652	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5653printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5654if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5655then :
5656  printf %s "(cached) " >&6
5657else $as_nop
5658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h.  */
5660int i;
5661_ACEOF
5662if ac_fn_c_try_compile "$LINENO"
5663then :
5664  xorg_cv_cc_flag_unused_command_line_argument=yes
5665else $as_nop
5666  xorg_cv_cc_flag_unused_command_line_argument=no
5667fi
5668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5669fi
5670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5671printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5673	CFLAGS="$xorg_testset_save_CFLAGS"
5674fi
5675
5676found="no"
5677
5678	if test $found = "no" ; then
5679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681		fi
5682
5683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5685		fi
5686
5687		CFLAGS="$CFLAGS -Wnested-externs"
5688
5689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5690printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5691		cacheid=xorg_cv_cc_flag__Wnested_externs
5692		if eval test \${$cacheid+y}
5693then :
5694  printf %s "(cached) " >&6
5695else $as_nop
5696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697/* end confdefs.h.  */
5698int i;
5699int
5700main (void)
5701{
5702
5703  ;
5704  return 0;
5705}
5706_ACEOF
5707if ac_fn_c_try_link "$LINENO"
5708then :
5709  eval $cacheid=yes
5710else $as_nop
5711  eval $cacheid=no
5712fi
5713rm -f core conftest.err conftest.$ac_objext conftest.beam \
5714    conftest$ac_exeext conftest.$ac_ext
5715fi
5716
5717
5718		CFLAGS="$xorg_testset_save_CFLAGS"
5719
5720		eval supported=\$$cacheid
5721		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5722printf "%s\n" "$supported" >&6; }
5723		if test "$supported" = "yes" ; then
5724			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5725			found="yes"
5726		fi
5727	fi
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743xorg_testset_save_CFLAGS="$CFLAGS"
5744
5745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5746	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5748printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5749if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5750then :
5751  printf %s "(cached) " >&6
5752else $as_nop
5753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754/* end confdefs.h.  */
5755int i;
5756_ACEOF
5757if ac_fn_c_try_compile "$LINENO"
5758then :
5759  xorg_cv_cc_flag_unknown_warning_option=yes
5760else $as_nop
5761  xorg_cv_cc_flag_unknown_warning_option=no
5762fi
5763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5764fi
5765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5766printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5768	CFLAGS="$xorg_testset_save_CFLAGS"
5769fi
5770
5771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5774	fi
5775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5777printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5778if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5779then :
5780  printf %s "(cached) " >&6
5781else $as_nop
5782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783/* end confdefs.h.  */
5784int i;
5785_ACEOF
5786if ac_fn_c_try_compile "$LINENO"
5787then :
5788  xorg_cv_cc_flag_unused_command_line_argument=yes
5789else $as_nop
5790  xorg_cv_cc_flag_unused_command_line_argument=no
5791fi
5792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5793fi
5794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5795printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5797	CFLAGS="$xorg_testset_save_CFLAGS"
5798fi
5799
5800found="no"
5801
5802	if test $found = "no" ; then
5803		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5805		fi
5806
5807		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5809		fi
5810
5811		CFLAGS="$CFLAGS -Wbad-function-cast"
5812
5813		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5814printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5815		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5816		if eval test \${$cacheid+y}
5817then :
5818  printf %s "(cached) " >&6
5819else $as_nop
5820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h.  */
5822int i;
5823int
5824main (void)
5825{
5826
5827  ;
5828  return 0;
5829}
5830_ACEOF
5831if ac_fn_c_try_link "$LINENO"
5832then :
5833  eval $cacheid=yes
5834else $as_nop
5835  eval $cacheid=no
5836fi
5837rm -f core conftest.err conftest.$ac_objext conftest.beam \
5838    conftest$ac_exeext conftest.$ac_ext
5839fi
5840
5841
5842		CFLAGS="$xorg_testset_save_CFLAGS"
5843
5844		eval supported=\$$cacheid
5845		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5846printf "%s\n" "$supported" >&6; }
5847		if test "$supported" = "yes" ; then
5848			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5849			found="yes"
5850		fi
5851	fi
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867xorg_testset_save_CFLAGS="$CFLAGS"
5868
5869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5870	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5872printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5873if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5874then :
5875  printf %s "(cached) " >&6
5876else $as_nop
5877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h.  */
5879int i;
5880_ACEOF
5881if ac_fn_c_try_compile "$LINENO"
5882then :
5883  xorg_cv_cc_flag_unknown_warning_option=yes
5884else $as_nop
5885  xorg_cv_cc_flag_unknown_warning_option=no
5886fi
5887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5888fi
5889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5890printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5891	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5892	CFLAGS="$xorg_testset_save_CFLAGS"
5893fi
5894
5895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5896	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5897		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5898	fi
5899	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5901printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5902if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5903then :
5904  printf %s "(cached) " >&6
5905else $as_nop
5906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h.  */
5908int i;
5909_ACEOF
5910if ac_fn_c_try_compile "$LINENO"
5911then :
5912  xorg_cv_cc_flag_unused_command_line_argument=yes
5913else $as_nop
5914  xorg_cv_cc_flag_unused_command_line_argument=no
5915fi
5916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5917fi
5918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5919printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5920	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5921	CFLAGS="$xorg_testset_save_CFLAGS"
5922fi
5923
5924found="no"
5925
5926	if test $found = "no" ; then
5927		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5928			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5929		fi
5930
5931		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5932			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5933		fi
5934
5935		CFLAGS="$CFLAGS -Wold-style-definition"
5936
5937		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5938printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5939		cacheid=xorg_cv_cc_flag__Wold_style_definition
5940		if eval test \${$cacheid+y}
5941then :
5942  printf %s "(cached) " >&6
5943else $as_nop
5944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945/* end confdefs.h.  */
5946int i;
5947int
5948main (void)
5949{
5950
5951  ;
5952  return 0;
5953}
5954_ACEOF
5955if ac_fn_c_try_link "$LINENO"
5956then :
5957  eval $cacheid=yes
5958else $as_nop
5959  eval $cacheid=no
5960fi
5961rm -f core conftest.err conftest.$ac_objext conftest.beam \
5962    conftest$ac_exeext conftest.$ac_ext
5963fi
5964
5965
5966		CFLAGS="$xorg_testset_save_CFLAGS"
5967
5968		eval supported=\$$cacheid
5969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5970printf "%s\n" "$supported" >&6; }
5971		if test "$supported" = "yes" ; then
5972			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5973			found="yes"
5974		fi
5975	fi
5976
5977	if test $found = "no" ; then
5978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5980		fi
5981
5982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5984		fi
5985
5986		CFLAGS="$CFLAGS -fd"
5987
5988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5989printf %s "checking if $CC supports -fd... " >&6; }
5990		cacheid=xorg_cv_cc_flag__fd
5991		if eval test \${$cacheid+y}
5992then :
5993  printf %s "(cached) " >&6
5994else $as_nop
5995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h.  */
5997int i;
5998int
5999main (void)
6000{
6001
6002  ;
6003  return 0;
6004}
6005_ACEOF
6006if ac_fn_c_try_link "$LINENO"
6007then :
6008  eval $cacheid=yes
6009else $as_nop
6010  eval $cacheid=no
6011fi
6012rm -f core conftest.err conftest.$ac_objext conftest.beam \
6013    conftest$ac_exeext conftest.$ac_ext
6014fi
6015
6016
6017		CFLAGS="$xorg_testset_save_CFLAGS"
6018
6019		eval supported=\$$cacheid
6020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6021printf "%s\n" "$supported" >&6; }
6022		if test "$supported" = "yes" ; then
6023			BASE_CFLAGS="$BASE_CFLAGS -fd"
6024			found="yes"
6025		fi
6026	fi
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042xorg_testset_save_CFLAGS="$CFLAGS"
6043
6044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6045	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6047printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6048if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6049then :
6050  printf %s "(cached) " >&6
6051else $as_nop
6052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053/* end confdefs.h.  */
6054int i;
6055_ACEOF
6056if ac_fn_c_try_compile "$LINENO"
6057then :
6058  xorg_cv_cc_flag_unknown_warning_option=yes
6059else $as_nop
6060  xorg_cv_cc_flag_unknown_warning_option=no
6061fi
6062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6063fi
6064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6067	CFLAGS="$xorg_testset_save_CFLAGS"
6068fi
6069
6070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6073	fi
6074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6077if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6078then :
6079  printf %s "(cached) " >&6
6080else $as_nop
6081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h.  */
6083int i;
6084_ACEOF
6085if ac_fn_c_try_compile "$LINENO"
6086then :
6087  xorg_cv_cc_flag_unused_command_line_argument=yes
6088else $as_nop
6089  xorg_cv_cc_flag_unused_command_line_argument=no
6090fi
6091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6092fi
6093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6094printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6096	CFLAGS="$xorg_testset_save_CFLAGS"
6097fi
6098
6099found="no"
6100
6101	if test $found = "no" ; then
6102		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6104		fi
6105
6106		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6108		fi
6109
6110		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6111
6112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6113printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6114		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6115		if eval test \${$cacheid+y}
6116then :
6117  printf %s "(cached) " >&6
6118else $as_nop
6119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120/* end confdefs.h.  */
6121int i;
6122int
6123main (void)
6124{
6125
6126  ;
6127  return 0;
6128}
6129_ACEOF
6130if ac_fn_c_try_link "$LINENO"
6131then :
6132  eval $cacheid=yes
6133else $as_nop
6134  eval $cacheid=no
6135fi
6136rm -f core conftest.err conftest.$ac_objext conftest.beam \
6137    conftest$ac_exeext conftest.$ac_ext
6138fi
6139
6140
6141		CFLAGS="$xorg_testset_save_CFLAGS"
6142
6143		eval supported=\$$cacheid
6144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6145printf "%s\n" "$supported" >&6; }
6146		if test "$supported" = "yes" ; then
6147			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6148			found="yes"
6149		fi
6150	fi
6151
6152
6153
6154
6155
6156# This chunk adds additional warnings that could catch undesired effects.
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170xorg_testset_save_CFLAGS="$CFLAGS"
6171
6172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6176if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6177then :
6178  printf %s "(cached) " >&6
6179else $as_nop
6180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181/* end confdefs.h.  */
6182int i;
6183_ACEOF
6184if ac_fn_c_try_compile "$LINENO"
6185then :
6186  xorg_cv_cc_flag_unknown_warning_option=yes
6187else $as_nop
6188  xorg_cv_cc_flag_unknown_warning_option=no
6189fi
6190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6191fi
6192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6195	CFLAGS="$xorg_testset_save_CFLAGS"
6196fi
6197
6198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6201	fi
6202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6205if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6206then :
6207  printf %s "(cached) " >&6
6208else $as_nop
6209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h.  */
6211int i;
6212_ACEOF
6213if ac_fn_c_try_compile "$LINENO"
6214then :
6215  xorg_cv_cc_flag_unused_command_line_argument=yes
6216else $as_nop
6217  xorg_cv_cc_flag_unused_command_line_argument=no
6218fi
6219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6220fi
6221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6224	CFLAGS="$xorg_testset_save_CFLAGS"
6225fi
6226
6227found="no"
6228
6229	if test $found = "no" ; then
6230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6232		fi
6233
6234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6236		fi
6237
6238		CFLAGS="$CFLAGS -Wunused"
6239
6240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6241printf %s "checking if $CC supports -Wunused... " >&6; }
6242		cacheid=xorg_cv_cc_flag__Wunused
6243		if eval test \${$cacheid+y}
6244then :
6245  printf %s "(cached) " >&6
6246else $as_nop
6247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248/* end confdefs.h.  */
6249int i;
6250int
6251main (void)
6252{
6253
6254  ;
6255  return 0;
6256}
6257_ACEOF
6258if ac_fn_c_try_link "$LINENO"
6259then :
6260  eval $cacheid=yes
6261else $as_nop
6262  eval $cacheid=no
6263fi
6264rm -f core conftest.err conftest.$ac_objext conftest.beam \
6265    conftest$ac_exeext conftest.$ac_ext
6266fi
6267
6268
6269		CFLAGS="$xorg_testset_save_CFLAGS"
6270
6271		eval supported=\$$cacheid
6272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6273printf "%s\n" "$supported" >&6; }
6274		if test "$supported" = "yes" ; then
6275			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6276			found="yes"
6277		fi
6278	fi
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294xorg_testset_save_CFLAGS="$CFLAGS"
6295
6296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6299printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6300if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6301then :
6302  printf %s "(cached) " >&6
6303else $as_nop
6304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305/* end confdefs.h.  */
6306int i;
6307_ACEOF
6308if ac_fn_c_try_compile "$LINENO"
6309then :
6310  xorg_cv_cc_flag_unknown_warning_option=yes
6311else $as_nop
6312  xorg_cv_cc_flag_unknown_warning_option=no
6313fi
6314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6315fi
6316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6317printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6319	CFLAGS="$xorg_testset_save_CFLAGS"
6320fi
6321
6322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6325	fi
6326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6327	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6328printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6329if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6330then :
6331  printf %s "(cached) " >&6
6332else $as_nop
6333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h.  */
6335int i;
6336_ACEOF
6337if ac_fn_c_try_compile "$LINENO"
6338then :
6339  xorg_cv_cc_flag_unused_command_line_argument=yes
6340else $as_nop
6341  xorg_cv_cc_flag_unused_command_line_argument=no
6342fi
6343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6344fi
6345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6346printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6347	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6348	CFLAGS="$xorg_testset_save_CFLAGS"
6349fi
6350
6351found="no"
6352
6353	if test $found = "no" ; then
6354		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6356		fi
6357
6358		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360		fi
6361
6362		CFLAGS="$CFLAGS -Wuninitialized"
6363
6364		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6365printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6366		cacheid=xorg_cv_cc_flag__Wuninitialized
6367		if eval test \${$cacheid+y}
6368then :
6369  printf %s "(cached) " >&6
6370else $as_nop
6371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h.  */
6373int i;
6374int
6375main (void)
6376{
6377
6378  ;
6379  return 0;
6380}
6381_ACEOF
6382if ac_fn_c_try_link "$LINENO"
6383then :
6384  eval $cacheid=yes
6385else $as_nop
6386  eval $cacheid=no
6387fi
6388rm -f core conftest.err conftest.$ac_objext conftest.beam \
6389    conftest$ac_exeext conftest.$ac_ext
6390fi
6391
6392
6393		CFLAGS="$xorg_testset_save_CFLAGS"
6394
6395		eval supported=\$$cacheid
6396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6397printf "%s\n" "$supported" >&6; }
6398		if test "$supported" = "yes" ; then
6399			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6400			found="yes"
6401		fi
6402	fi
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418xorg_testset_save_CFLAGS="$CFLAGS"
6419
6420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6423printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6424if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6425then :
6426  printf %s "(cached) " >&6
6427else $as_nop
6428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429/* end confdefs.h.  */
6430int i;
6431_ACEOF
6432if ac_fn_c_try_compile "$LINENO"
6433then :
6434  xorg_cv_cc_flag_unknown_warning_option=yes
6435else $as_nop
6436  xorg_cv_cc_flag_unknown_warning_option=no
6437fi
6438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6439fi
6440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6441printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6442	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6443	CFLAGS="$xorg_testset_save_CFLAGS"
6444fi
6445
6446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6447	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6448		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6449	fi
6450	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6452printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6453if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6454then :
6455  printf %s "(cached) " >&6
6456else $as_nop
6457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458/* end confdefs.h.  */
6459int i;
6460_ACEOF
6461if ac_fn_c_try_compile "$LINENO"
6462then :
6463  xorg_cv_cc_flag_unused_command_line_argument=yes
6464else $as_nop
6465  xorg_cv_cc_flag_unused_command_line_argument=no
6466fi
6467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6468fi
6469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6470printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6471	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6472	CFLAGS="$xorg_testset_save_CFLAGS"
6473fi
6474
6475found="no"
6476
6477	if test $found = "no" ; then
6478		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6479			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6480		fi
6481
6482		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6483			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6484		fi
6485
6486		CFLAGS="$CFLAGS -Wshadow"
6487
6488		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6489printf %s "checking if $CC supports -Wshadow... " >&6; }
6490		cacheid=xorg_cv_cc_flag__Wshadow
6491		if eval test \${$cacheid+y}
6492then :
6493  printf %s "(cached) " >&6
6494else $as_nop
6495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h.  */
6497int i;
6498int
6499main (void)
6500{
6501
6502  ;
6503  return 0;
6504}
6505_ACEOF
6506if ac_fn_c_try_link "$LINENO"
6507then :
6508  eval $cacheid=yes
6509else $as_nop
6510  eval $cacheid=no
6511fi
6512rm -f core conftest.err conftest.$ac_objext conftest.beam \
6513    conftest$ac_exeext conftest.$ac_ext
6514fi
6515
6516
6517		CFLAGS="$xorg_testset_save_CFLAGS"
6518
6519		eval supported=\$$cacheid
6520		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6521printf "%s\n" "$supported" >&6; }
6522		if test "$supported" = "yes" ; then
6523			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6524			found="yes"
6525		fi
6526	fi
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542xorg_testset_save_CFLAGS="$CFLAGS"
6543
6544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6545	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6546	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6547printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6548if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6549then :
6550  printf %s "(cached) " >&6
6551else $as_nop
6552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553/* end confdefs.h.  */
6554int i;
6555_ACEOF
6556if ac_fn_c_try_compile "$LINENO"
6557then :
6558  xorg_cv_cc_flag_unknown_warning_option=yes
6559else $as_nop
6560  xorg_cv_cc_flag_unknown_warning_option=no
6561fi
6562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6563fi
6564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6565printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6566	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6567	CFLAGS="$xorg_testset_save_CFLAGS"
6568fi
6569
6570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6571	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6572		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6573	fi
6574	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6575	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6576printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6577if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6578then :
6579  printf %s "(cached) " >&6
6580else $as_nop
6581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582/* end confdefs.h.  */
6583int i;
6584_ACEOF
6585if ac_fn_c_try_compile "$LINENO"
6586then :
6587  xorg_cv_cc_flag_unused_command_line_argument=yes
6588else $as_nop
6589  xorg_cv_cc_flag_unused_command_line_argument=no
6590fi
6591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6592fi
6593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6594printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6596	CFLAGS="$xorg_testset_save_CFLAGS"
6597fi
6598
6599found="no"
6600
6601	if test $found = "no" ; then
6602		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6604		fi
6605
6606		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6608		fi
6609
6610		CFLAGS="$CFLAGS -Wmissing-noreturn"
6611
6612		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6613printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6614		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6615		if eval test \${$cacheid+y}
6616then :
6617  printf %s "(cached) " >&6
6618else $as_nop
6619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h.  */
6621int i;
6622int
6623main (void)
6624{
6625
6626  ;
6627  return 0;
6628}
6629_ACEOF
6630if ac_fn_c_try_link "$LINENO"
6631then :
6632  eval $cacheid=yes
6633else $as_nop
6634  eval $cacheid=no
6635fi
6636rm -f core conftest.err conftest.$ac_objext conftest.beam \
6637    conftest$ac_exeext conftest.$ac_ext
6638fi
6639
6640
6641		CFLAGS="$xorg_testset_save_CFLAGS"
6642
6643		eval supported=\$$cacheid
6644		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6645printf "%s\n" "$supported" >&6; }
6646		if test "$supported" = "yes" ; then
6647			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6648			found="yes"
6649		fi
6650	fi
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666xorg_testset_save_CFLAGS="$CFLAGS"
6667
6668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6670	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6671printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6672if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6673then :
6674  printf %s "(cached) " >&6
6675else $as_nop
6676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h.  */
6678int i;
6679_ACEOF
6680if ac_fn_c_try_compile "$LINENO"
6681then :
6682  xorg_cv_cc_flag_unknown_warning_option=yes
6683else $as_nop
6684  xorg_cv_cc_flag_unknown_warning_option=no
6685fi
6686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6687fi
6688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6689printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6690	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6691	CFLAGS="$xorg_testset_save_CFLAGS"
6692fi
6693
6694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6695	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6697	fi
6698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6699	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6700printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6701if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6702then :
6703  printf %s "(cached) " >&6
6704else $as_nop
6705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706/* end confdefs.h.  */
6707int i;
6708_ACEOF
6709if ac_fn_c_try_compile "$LINENO"
6710then :
6711  xorg_cv_cc_flag_unused_command_line_argument=yes
6712else $as_nop
6713  xorg_cv_cc_flag_unused_command_line_argument=no
6714fi
6715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6716fi
6717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6718printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6719	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6720	CFLAGS="$xorg_testset_save_CFLAGS"
6721fi
6722
6723found="no"
6724
6725	if test $found = "no" ; then
6726		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6728		fi
6729
6730		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6732		fi
6733
6734		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6735
6736		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6737printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6738		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6739		if eval test \${$cacheid+y}
6740then :
6741  printf %s "(cached) " >&6
6742else $as_nop
6743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744/* end confdefs.h.  */
6745int i;
6746int
6747main (void)
6748{
6749
6750  ;
6751  return 0;
6752}
6753_ACEOF
6754if ac_fn_c_try_link "$LINENO"
6755then :
6756  eval $cacheid=yes
6757else $as_nop
6758  eval $cacheid=no
6759fi
6760rm -f core conftest.err conftest.$ac_objext conftest.beam \
6761    conftest$ac_exeext conftest.$ac_ext
6762fi
6763
6764
6765		CFLAGS="$xorg_testset_save_CFLAGS"
6766
6767		eval supported=\$$cacheid
6768		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6769printf "%s\n" "$supported" >&6; }
6770		if test "$supported" = "yes" ; then
6771			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6772			found="yes"
6773		fi
6774	fi
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790xorg_testset_save_CFLAGS="$CFLAGS"
6791
6792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6793	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6794	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6795printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6796if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6797then :
6798  printf %s "(cached) " >&6
6799else $as_nop
6800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801/* end confdefs.h.  */
6802int i;
6803_ACEOF
6804if ac_fn_c_try_compile "$LINENO"
6805then :
6806  xorg_cv_cc_flag_unknown_warning_option=yes
6807else $as_nop
6808  xorg_cv_cc_flag_unknown_warning_option=no
6809fi
6810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6811fi
6812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6813printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6814	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6815	CFLAGS="$xorg_testset_save_CFLAGS"
6816fi
6817
6818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6819	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6820		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821	fi
6822	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6823	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6824printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6825if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6826then :
6827  printf %s "(cached) " >&6
6828else $as_nop
6829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830/* end confdefs.h.  */
6831int i;
6832_ACEOF
6833if ac_fn_c_try_compile "$LINENO"
6834then :
6835  xorg_cv_cc_flag_unused_command_line_argument=yes
6836else $as_nop
6837  xorg_cv_cc_flag_unused_command_line_argument=no
6838fi
6839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6840fi
6841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6842printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6843	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6844	CFLAGS="$xorg_testset_save_CFLAGS"
6845fi
6846
6847found="no"
6848
6849	if test $found = "no" ; then
6850		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6852		fi
6853
6854		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6856		fi
6857
6858		CFLAGS="$CFLAGS -Wredundant-decls"
6859
6860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6861printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6862		cacheid=xorg_cv_cc_flag__Wredundant_decls
6863		if eval test \${$cacheid+y}
6864then :
6865  printf %s "(cached) " >&6
6866else $as_nop
6867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868/* end confdefs.h.  */
6869int i;
6870int
6871main (void)
6872{
6873
6874  ;
6875  return 0;
6876}
6877_ACEOF
6878if ac_fn_c_try_link "$LINENO"
6879then :
6880  eval $cacheid=yes
6881else $as_nop
6882  eval $cacheid=no
6883fi
6884rm -f core conftest.err conftest.$ac_objext conftest.beam \
6885    conftest$ac_exeext conftest.$ac_ext
6886fi
6887
6888
6889		CFLAGS="$xorg_testset_save_CFLAGS"
6890
6891		eval supported=\$$cacheid
6892		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6893printf "%s\n" "$supported" >&6; }
6894		if test "$supported" = "yes" ; then
6895			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6896			found="yes"
6897		fi
6898	fi
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914xorg_testset_save_CFLAGS="$CFLAGS"
6915
6916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6918	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6919printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6920if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6921then :
6922  printf %s "(cached) " >&6
6923else $as_nop
6924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925/* end confdefs.h.  */
6926int i;
6927_ACEOF
6928if ac_fn_c_try_compile "$LINENO"
6929then :
6930  xorg_cv_cc_flag_unknown_warning_option=yes
6931else $as_nop
6932  xorg_cv_cc_flag_unknown_warning_option=no
6933fi
6934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6935fi
6936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6937printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6939	CFLAGS="$xorg_testset_save_CFLAGS"
6940fi
6941
6942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6945	fi
6946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6948printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6949if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6950then :
6951  printf %s "(cached) " >&6
6952else $as_nop
6953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954/* end confdefs.h.  */
6955int i;
6956_ACEOF
6957if ac_fn_c_try_compile "$LINENO"
6958then :
6959  xorg_cv_cc_flag_unused_command_line_argument=yes
6960else $as_nop
6961  xorg_cv_cc_flag_unused_command_line_argument=no
6962fi
6963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6964fi
6965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6966printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6967	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6968	CFLAGS="$xorg_testset_save_CFLAGS"
6969fi
6970
6971found="no"
6972
6973	if test $found = "no" ; then
6974		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6975			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6976		fi
6977
6978		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6979			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6980		fi
6981
6982		CFLAGS="$CFLAGS -Wlogical-op"
6983
6984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6985printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6986		cacheid=xorg_cv_cc_flag__Wlogical_op
6987		if eval test \${$cacheid+y}
6988then :
6989  printf %s "(cached) " >&6
6990else $as_nop
6991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992/* end confdefs.h.  */
6993int i;
6994int
6995main (void)
6996{
6997
6998  ;
6999  return 0;
7000}
7001_ACEOF
7002if ac_fn_c_try_link "$LINENO"
7003then :
7004  eval $cacheid=yes
7005else $as_nop
7006  eval $cacheid=no
7007fi
7008rm -f core conftest.err conftest.$ac_objext conftest.beam \
7009    conftest$ac_exeext conftest.$ac_ext
7010fi
7011
7012
7013		CFLAGS="$xorg_testset_save_CFLAGS"
7014
7015		eval supported=\$$cacheid
7016		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7017printf "%s\n" "$supported" >&6; }
7018		if test "$supported" = "yes" ; then
7019			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7020			found="yes"
7021		fi
7022	fi
7023
7024
7025
7026# These are currently disabled because they are noisy.  They will be enabled
7027# in the future once the codebase is sufficiently modernized to silence
7028# them.  For now, I don't want them to drown out the other warnings.
7029# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7030# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7031# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7032
7033# Turn some warnings into errors, so we don't accidently get successful builds
7034# when there are problems that should be fixed.
7035
7036if test "x$SELECTIVE_WERROR" = "xyes" ; then
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050xorg_testset_save_CFLAGS="$CFLAGS"
7051
7052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7053	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7054	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7055printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7056if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7057then :
7058  printf %s "(cached) " >&6
7059else $as_nop
7060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061/* end confdefs.h.  */
7062int i;
7063_ACEOF
7064if ac_fn_c_try_compile "$LINENO"
7065then :
7066  xorg_cv_cc_flag_unknown_warning_option=yes
7067else $as_nop
7068  xorg_cv_cc_flag_unknown_warning_option=no
7069fi
7070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7071fi
7072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7073printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7075	CFLAGS="$xorg_testset_save_CFLAGS"
7076fi
7077
7078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7081	fi
7082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7083	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7084printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7085if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7086then :
7087  printf %s "(cached) " >&6
7088else $as_nop
7089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090/* end confdefs.h.  */
7091int i;
7092_ACEOF
7093if ac_fn_c_try_compile "$LINENO"
7094then :
7095  xorg_cv_cc_flag_unused_command_line_argument=yes
7096else $as_nop
7097  xorg_cv_cc_flag_unused_command_line_argument=no
7098fi
7099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7100fi
7101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7102printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7103	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7104	CFLAGS="$xorg_testset_save_CFLAGS"
7105fi
7106
7107found="no"
7108
7109	if test $found = "no" ; then
7110		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7111			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112		fi
7113
7114		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7115			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7116		fi
7117
7118		CFLAGS="$CFLAGS -Werror=implicit"
7119
7120		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7121printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7122		cacheid=xorg_cv_cc_flag__Werror_implicit
7123		if eval test \${$cacheid+y}
7124then :
7125  printf %s "(cached) " >&6
7126else $as_nop
7127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h.  */
7129int i;
7130int
7131main (void)
7132{
7133
7134  ;
7135  return 0;
7136}
7137_ACEOF
7138if ac_fn_c_try_link "$LINENO"
7139then :
7140  eval $cacheid=yes
7141else $as_nop
7142  eval $cacheid=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext conftest.beam \
7145    conftest$ac_exeext conftest.$ac_ext
7146fi
7147
7148
7149		CFLAGS="$xorg_testset_save_CFLAGS"
7150
7151		eval supported=\$$cacheid
7152		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7153printf "%s\n" "$supported" >&6; }
7154		if test "$supported" = "yes" ; then
7155			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7156			found="yes"
7157		fi
7158	fi
7159
7160	if test $found = "no" ; then
7161		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163		fi
7164
7165		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7167		fi
7168
7169		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7170
7171		{ 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
7172printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7173		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7174		if eval test \${$cacheid+y}
7175then :
7176  printf %s "(cached) " >&6
7177else $as_nop
7178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180int i;
7181int
7182main (void)
7183{
7184
7185  ;
7186  return 0;
7187}
7188_ACEOF
7189if ac_fn_c_try_link "$LINENO"
7190then :
7191  eval $cacheid=yes
7192else $as_nop
7193  eval $cacheid=no
7194fi
7195rm -f core conftest.err conftest.$ac_objext conftest.beam \
7196    conftest$ac_exeext conftest.$ac_ext
7197fi
7198
7199
7200		CFLAGS="$xorg_testset_save_CFLAGS"
7201
7202		eval supported=\$$cacheid
7203		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7204printf "%s\n" "$supported" >&6; }
7205		if test "$supported" = "yes" ; then
7206			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7207			found="yes"
7208		fi
7209	fi
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225xorg_testset_save_CFLAGS="$CFLAGS"
7226
7227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7229	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7230printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7231if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7232then :
7233  printf %s "(cached) " >&6
7234else $as_nop
7235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236/* end confdefs.h.  */
7237int i;
7238_ACEOF
7239if ac_fn_c_try_compile "$LINENO"
7240then :
7241  xorg_cv_cc_flag_unknown_warning_option=yes
7242else $as_nop
7243  xorg_cv_cc_flag_unknown_warning_option=no
7244fi
7245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7246fi
7247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7248printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7250	CFLAGS="$xorg_testset_save_CFLAGS"
7251fi
7252
7253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7256	fi
7257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7258	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7259printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7260if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7261then :
7262  printf %s "(cached) " >&6
7263else $as_nop
7264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265/* end confdefs.h.  */
7266int i;
7267_ACEOF
7268if ac_fn_c_try_compile "$LINENO"
7269then :
7270  xorg_cv_cc_flag_unused_command_line_argument=yes
7271else $as_nop
7272  xorg_cv_cc_flag_unused_command_line_argument=no
7273fi
7274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7275fi
7276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7277printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7278	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7279	CFLAGS="$xorg_testset_save_CFLAGS"
7280fi
7281
7282found="no"
7283
7284	if test $found = "no" ; then
7285		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7287		fi
7288
7289		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7291		fi
7292
7293		CFLAGS="$CFLAGS -Werror=nonnull"
7294
7295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7296printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7297		cacheid=xorg_cv_cc_flag__Werror_nonnull
7298		if eval test \${$cacheid+y}
7299then :
7300  printf %s "(cached) " >&6
7301else $as_nop
7302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303/* end confdefs.h.  */
7304int i;
7305int
7306main (void)
7307{
7308
7309  ;
7310  return 0;
7311}
7312_ACEOF
7313if ac_fn_c_try_link "$LINENO"
7314then :
7315  eval $cacheid=yes
7316else $as_nop
7317  eval $cacheid=no
7318fi
7319rm -f core conftest.err conftest.$ac_objext conftest.beam \
7320    conftest$ac_exeext conftest.$ac_ext
7321fi
7322
7323
7324		CFLAGS="$xorg_testset_save_CFLAGS"
7325
7326		eval supported=\$$cacheid
7327		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7328printf "%s\n" "$supported" >&6; }
7329		if test "$supported" = "yes" ; then
7330			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7331			found="yes"
7332		fi
7333	fi
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349xorg_testset_save_CFLAGS="$CFLAGS"
7350
7351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7352	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7353	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7354printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7355if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7356then :
7357  printf %s "(cached) " >&6
7358else $as_nop
7359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360/* end confdefs.h.  */
7361int i;
7362_ACEOF
7363if ac_fn_c_try_compile "$LINENO"
7364then :
7365  xorg_cv_cc_flag_unknown_warning_option=yes
7366else $as_nop
7367  xorg_cv_cc_flag_unknown_warning_option=no
7368fi
7369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7370fi
7371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7372printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7373	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7374	CFLAGS="$xorg_testset_save_CFLAGS"
7375fi
7376
7377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7378	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7379		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7380	fi
7381	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7382	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7383printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7384if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7385then :
7386  printf %s "(cached) " >&6
7387else $as_nop
7388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h.  */
7390int i;
7391_ACEOF
7392if ac_fn_c_try_compile "$LINENO"
7393then :
7394  xorg_cv_cc_flag_unused_command_line_argument=yes
7395else $as_nop
7396  xorg_cv_cc_flag_unused_command_line_argument=no
7397fi
7398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7399fi
7400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7401printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7402	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7403	CFLAGS="$xorg_testset_save_CFLAGS"
7404fi
7405
7406found="no"
7407
7408	if test $found = "no" ; then
7409		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7410			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7411		fi
7412
7413		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7414			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7415		fi
7416
7417		CFLAGS="$CFLAGS -Werror=init-self"
7418
7419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7420printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7421		cacheid=xorg_cv_cc_flag__Werror_init_self
7422		if eval test \${$cacheid+y}
7423then :
7424  printf %s "(cached) " >&6
7425else $as_nop
7426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h.  */
7428int i;
7429int
7430main (void)
7431{
7432
7433  ;
7434  return 0;
7435}
7436_ACEOF
7437if ac_fn_c_try_link "$LINENO"
7438then :
7439  eval $cacheid=yes
7440else $as_nop
7441  eval $cacheid=no
7442fi
7443rm -f core conftest.err conftest.$ac_objext conftest.beam \
7444    conftest$ac_exeext conftest.$ac_ext
7445fi
7446
7447
7448		CFLAGS="$xorg_testset_save_CFLAGS"
7449
7450		eval supported=\$$cacheid
7451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7452printf "%s\n" "$supported" >&6; }
7453		if test "$supported" = "yes" ; then
7454			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7455			found="yes"
7456		fi
7457	fi
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473xorg_testset_save_CFLAGS="$CFLAGS"
7474
7475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7476	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7477	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7478printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7479if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7480then :
7481  printf %s "(cached) " >&6
7482else $as_nop
7483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484/* end confdefs.h.  */
7485int i;
7486_ACEOF
7487if ac_fn_c_try_compile "$LINENO"
7488then :
7489  xorg_cv_cc_flag_unknown_warning_option=yes
7490else $as_nop
7491  xorg_cv_cc_flag_unknown_warning_option=no
7492fi
7493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7494fi
7495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7496printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7498	CFLAGS="$xorg_testset_save_CFLAGS"
7499fi
7500
7501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7504	fi
7505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7506	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7507printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7508if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7509then :
7510  printf %s "(cached) " >&6
7511else $as_nop
7512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513/* end confdefs.h.  */
7514int i;
7515_ACEOF
7516if ac_fn_c_try_compile "$LINENO"
7517then :
7518  xorg_cv_cc_flag_unused_command_line_argument=yes
7519else $as_nop
7520  xorg_cv_cc_flag_unused_command_line_argument=no
7521fi
7522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7523fi
7524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7525printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7527	CFLAGS="$xorg_testset_save_CFLAGS"
7528fi
7529
7530found="no"
7531
7532	if test $found = "no" ; then
7533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7535		fi
7536
7537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7539		fi
7540
7541		CFLAGS="$CFLAGS -Werror=main"
7542
7543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7544printf %s "checking if $CC supports -Werror=main... " >&6; }
7545		cacheid=xorg_cv_cc_flag__Werror_main
7546		if eval test \${$cacheid+y}
7547then :
7548  printf %s "(cached) " >&6
7549else $as_nop
7550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551/* end confdefs.h.  */
7552int i;
7553int
7554main (void)
7555{
7556
7557  ;
7558  return 0;
7559}
7560_ACEOF
7561if ac_fn_c_try_link "$LINENO"
7562then :
7563  eval $cacheid=yes
7564else $as_nop
7565  eval $cacheid=no
7566fi
7567rm -f core conftest.err conftest.$ac_objext conftest.beam \
7568    conftest$ac_exeext conftest.$ac_ext
7569fi
7570
7571
7572		CFLAGS="$xorg_testset_save_CFLAGS"
7573
7574		eval supported=\$$cacheid
7575		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7576printf "%s\n" "$supported" >&6; }
7577		if test "$supported" = "yes" ; then
7578			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7579			found="yes"
7580		fi
7581	fi
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597xorg_testset_save_CFLAGS="$CFLAGS"
7598
7599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7601	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7602printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7603if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7604then :
7605  printf %s "(cached) " >&6
7606else $as_nop
7607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h.  */
7609int i;
7610_ACEOF
7611if ac_fn_c_try_compile "$LINENO"
7612then :
7613  xorg_cv_cc_flag_unknown_warning_option=yes
7614else $as_nop
7615  xorg_cv_cc_flag_unknown_warning_option=no
7616fi
7617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7618fi
7619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7622	CFLAGS="$xorg_testset_save_CFLAGS"
7623fi
7624
7625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7628	fi
7629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7632if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7633then :
7634  printf %s "(cached) " >&6
7635else $as_nop
7636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h.  */
7638int i;
7639_ACEOF
7640if ac_fn_c_try_compile "$LINENO"
7641then :
7642  xorg_cv_cc_flag_unused_command_line_argument=yes
7643else $as_nop
7644  xorg_cv_cc_flag_unused_command_line_argument=no
7645fi
7646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7647fi
7648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7649printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7651	CFLAGS="$xorg_testset_save_CFLAGS"
7652fi
7653
7654found="no"
7655
7656	if test $found = "no" ; then
7657		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7659		fi
7660
7661		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7663		fi
7664
7665		CFLAGS="$CFLAGS -Werror=missing-braces"
7666
7667		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7668printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7669		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7670		if eval test \${$cacheid+y}
7671then :
7672  printf %s "(cached) " >&6
7673else $as_nop
7674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h.  */
7676int i;
7677int
7678main (void)
7679{
7680
7681  ;
7682  return 0;
7683}
7684_ACEOF
7685if ac_fn_c_try_link "$LINENO"
7686then :
7687  eval $cacheid=yes
7688else $as_nop
7689  eval $cacheid=no
7690fi
7691rm -f core conftest.err conftest.$ac_objext conftest.beam \
7692    conftest$ac_exeext conftest.$ac_ext
7693fi
7694
7695
7696		CFLAGS="$xorg_testset_save_CFLAGS"
7697
7698		eval supported=\$$cacheid
7699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7700printf "%s\n" "$supported" >&6; }
7701		if test "$supported" = "yes" ; then
7702			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7703			found="yes"
7704		fi
7705	fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721xorg_testset_save_CFLAGS="$CFLAGS"
7722
7723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7724	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7725	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7726printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7727if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7728then :
7729  printf %s "(cached) " >&6
7730else $as_nop
7731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732/* end confdefs.h.  */
7733int i;
7734_ACEOF
7735if ac_fn_c_try_compile "$LINENO"
7736then :
7737  xorg_cv_cc_flag_unknown_warning_option=yes
7738else $as_nop
7739  xorg_cv_cc_flag_unknown_warning_option=no
7740fi
7741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7742fi
7743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7744printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7745	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7746	CFLAGS="$xorg_testset_save_CFLAGS"
7747fi
7748
7749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7750	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7751		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7752	fi
7753	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7754	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7755printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7756if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7757then :
7758  printf %s "(cached) " >&6
7759else $as_nop
7760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h.  */
7762int i;
7763_ACEOF
7764if ac_fn_c_try_compile "$LINENO"
7765then :
7766  xorg_cv_cc_flag_unused_command_line_argument=yes
7767else $as_nop
7768  xorg_cv_cc_flag_unused_command_line_argument=no
7769fi
7770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7771fi
7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7773printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7774	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7775	CFLAGS="$xorg_testset_save_CFLAGS"
7776fi
7777
7778found="no"
7779
7780	if test $found = "no" ; then
7781		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7783		fi
7784
7785		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7787		fi
7788
7789		CFLAGS="$CFLAGS -Werror=sequence-point"
7790
7791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7792printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7793		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7794		if eval test \${$cacheid+y}
7795then :
7796  printf %s "(cached) " >&6
7797else $as_nop
7798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h.  */
7800int i;
7801int
7802main (void)
7803{
7804
7805  ;
7806  return 0;
7807}
7808_ACEOF
7809if ac_fn_c_try_link "$LINENO"
7810then :
7811  eval $cacheid=yes
7812else $as_nop
7813  eval $cacheid=no
7814fi
7815rm -f core conftest.err conftest.$ac_objext conftest.beam \
7816    conftest$ac_exeext conftest.$ac_ext
7817fi
7818
7819
7820		CFLAGS="$xorg_testset_save_CFLAGS"
7821
7822		eval supported=\$$cacheid
7823		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7824printf "%s\n" "$supported" >&6; }
7825		if test "$supported" = "yes" ; then
7826			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7827			found="yes"
7828		fi
7829	fi
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845xorg_testset_save_CFLAGS="$CFLAGS"
7846
7847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7849	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7850printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7851if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7852then :
7853  printf %s "(cached) " >&6
7854else $as_nop
7855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856/* end confdefs.h.  */
7857int i;
7858_ACEOF
7859if ac_fn_c_try_compile "$LINENO"
7860then :
7861  xorg_cv_cc_flag_unknown_warning_option=yes
7862else $as_nop
7863  xorg_cv_cc_flag_unknown_warning_option=no
7864fi
7865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7866fi
7867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7868printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7870	CFLAGS="$xorg_testset_save_CFLAGS"
7871fi
7872
7873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7876	fi
7877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7878	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7879printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7880if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7881then :
7882  printf %s "(cached) " >&6
7883else $as_nop
7884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885/* end confdefs.h.  */
7886int i;
7887_ACEOF
7888if ac_fn_c_try_compile "$LINENO"
7889then :
7890  xorg_cv_cc_flag_unused_command_line_argument=yes
7891else $as_nop
7892  xorg_cv_cc_flag_unused_command_line_argument=no
7893fi
7894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7895fi
7896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7897printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7899	CFLAGS="$xorg_testset_save_CFLAGS"
7900fi
7901
7902found="no"
7903
7904	if test $found = "no" ; then
7905		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7907		fi
7908
7909		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7911		fi
7912
7913		CFLAGS="$CFLAGS -Werror=return-type"
7914
7915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7916printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7917		cacheid=xorg_cv_cc_flag__Werror_return_type
7918		if eval test \${$cacheid+y}
7919then :
7920  printf %s "(cached) " >&6
7921else $as_nop
7922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h.  */
7924int i;
7925int
7926main (void)
7927{
7928
7929  ;
7930  return 0;
7931}
7932_ACEOF
7933if ac_fn_c_try_link "$LINENO"
7934then :
7935  eval $cacheid=yes
7936else $as_nop
7937  eval $cacheid=no
7938fi
7939rm -f core conftest.err conftest.$ac_objext conftest.beam \
7940    conftest$ac_exeext conftest.$ac_ext
7941fi
7942
7943
7944		CFLAGS="$xorg_testset_save_CFLAGS"
7945
7946		eval supported=\$$cacheid
7947		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7948printf "%s\n" "$supported" >&6; }
7949		if test "$supported" = "yes" ; then
7950			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7951			found="yes"
7952		fi
7953	fi
7954
7955	if test $found = "no" ; then
7956		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7958		fi
7959
7960		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7962		fi
7963
7964		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7965
7966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7967printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7968		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7969		if eval test \${$cacheid+y}
7970then :
7971  printf %s "(cached) " >&6
7972else $as_nop
7973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974/* end confdefs.h.  */
7975int i;
7976int
7977main (void)
7978{
7979
7980  ;
7981  return 0;
7982}
7983_ACEOF
7984if ac_fn_c_try_link "$LINENO"
7985then :
7986  eval $cacheid=yes
7987else $as_nop
7988  eval $cacheid=no
7989fi
7990rm -f core conftest.err conftest.$ac_objext conftest.beam \
7991    conftest$ac_exeext conftest.$ac_ext
7992fi
7993
7994
7995		CFLAGS="$xorg_testset_save_CFLAGS"
7996
7997		eval supported=\$$cacheid
7998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7999printf "%s\n" "$supported" >&6; }
8000		if test "$supported" = "yes" ; then
8001			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8002			found="yes"
8003		fi
8004	fi
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020xorg_testset_save_CFLAGS="$CFLAGS"
8021
8022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8024	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8026if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8027then :
8028  printf %s "(cached) " >&6
8029else $as_nop
8030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031/* end confdefs.h.  */
8032int i;
8033_ACEOF
8034if ac_fn_c_try_compile "$LINENO"
8035then :
8036  xorg_cv_cc_flag_unknown_warning_option=yes
8037else $as_nop
8038  xorg_cv_cc_flag_unknown_warning_option=no
8039fi
8040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8041fi
8042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8045	CFLAGS="$xorg_testset_save_CFLAGS"
8046fi
8047
8048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8051	fi
8052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8053	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8055if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8056then :
8057  printf %s "(cached) " >&6
8058else $as_nop
8059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060/* end confdefs.h.  */
8061int i;
8062_ACEOF
8063if ac_fn_c_try_compile "$LINENO"
8064then :
8065  xorg_cv_cc_flag_unused_command_line_argument=yes
8066else $as_nop
8067  xorg_cv_cc_flag_unused_command_line_argument=no
8068fi
8069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8070fi
8071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8074	CFLAGS="$xorg_testset_save_CFLAGS"
8075fi
8076
8077found="no"
8078
8079	if test $found = "no" ; then
8080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8082		fi
8083
8084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8086		fi
8087
8088		CFLAGS="$CFLAGS -Werror=trigraphs"
8089
8090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8091printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8092		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8093		if eval test \${$cacheid+y}
8094then :
8095  printf %s "(cached) " >&6
8096else $as_nop
8097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098/* end confdefs.h.  */
8099int i;
8100int
8101main (void)
8102{
8103
8104  ;
8105  return 0;
8106}
8107_ACEOF
8108if ac_fn_c_try_link "$LINENO"
8109then :
8110  eval $cacheid=yes
8111else $as_nop
8112  eval $cacheid=no
8113fi
8114rm -f core conftest.err conftest.$ac_objext conftest.beam \
8115    conftest$ac_exeext conftest.$ac_ext
8116fi
8117
8118
8119		CFLAGS="$xorg_testset_save_CFLAGS"
8120
8121		eval supported=\$$cacheid
8122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8123printf "%s\n" "$supported" >&6; }
8124		if test "$supported" = "yes" ; then
8125			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8126			found="yes"
8127		fi
8128	fi
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144xorg_testset_save_CFLAGS="$CFLAGS"
8145
8146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8148	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8149printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8150if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8151then :
8152  printf %s "(cached) " >&6
8153else $as_nop
8154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155/* end confdefs.h.  */
8156int i;
8157_ACEOF
8158if ac_fn_c_try_compile "$LINENO"
8159then :
8160  xorg_cv_cc_flag_unknown_warning_option=yes
8161else $as_nop
8162  xorg_cv_cc_flag_unknown_warning_option=no
8163fi
8164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8165fi
8166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8169	CFLAGS="$xorg_testset_save_CFLAGS"
8170fi
8171
8172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8175	fi
8176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8177	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8179if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8180then :
8181  printf %s "(cached) " >&6
8182else $as_nop
8183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184/* end confdefs.h.  */
8185int i;
8186_ACEOF
8187if ac_fn_c_try_compile "$LINENO"
8188then :
8189  xorg_cv_cc_flag_unused_command_line_argument=yes
8190else $as_nop
8191  xorg_cv_cc_flag_unused_command_line_argument=no
8192fi
8193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8194fi
8195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8198	CFLAGS="$xorg_testset_save_CFLAGS"
8199fi
8200
8201found="no"
8202
8203	if test $found = "no" ; then
8204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8206		fi
8207
8208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8210		fi
8211
8212		CFLAGS="$CFLAGS -Werror=array-bounds"
8213
8214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8215printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8216		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8217		if eval test \${$cacheid+y}
8218then :
8219  printf %s "(cached) " >&6
8220else $as_nop
8221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222/* end confdefs.h.  */
8223int i;
8224int
8225main (void)
8226{
8227
8228  ;
8229  return 0;
8230}
8231_ACEOF
8232if ac_fn_c_try_link "$LINENO"
8233then :
8234  eval $cacheid=yes
8235else $as_nop
8236  eval $cacheid=no
8237fi
8238rm -f core conftest.err conftest.$ac_objext conftest.beam \
8239    conftest$ac_exeext conftest.$ac_ext
8240fi
8241
8242
8243		CFLAGS="$xorg_testset_save_CFLAGS"
8244
8245		eval supported=\$$cacheid
8246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8247printf "%s\n" "$supported" >&6; }
8248		if test "$supported" = "yes" ; then
8249			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8250			found="yes"
8251		fi
8252	fi
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268xorg_testset_save_CFLAGS="$CFLAGS"
8269
8270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8271	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8272	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8273printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8274if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8275then :
8276  printf %s "(cached) " >&6
8277else $as_nop
8278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279/* end confdefs.h.  */
8280int i;
8281_ACEOF
8282if ac_fn_c_try_compile "$LINENO"
8283then :
8284  xorg_cv_cc_flag_unknown_warning_option=yes
8285else $as_nop
8286  xorg_cv_cc_flag_unknown_warning_option=no
8287fi
8288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8289fi
8290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8291printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8293	CFLAGS="$xorg_testset_save_CFLAGS"
8294fi
8295
8296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8299	fi
8300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8301	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8302printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8303if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8304then :
8305  printf %s "(cached) " >&6
8306else $as_nop
8307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h.  */
8309int i;
8310_ACEOF
8311if ac_fn_c_try_compile "$LINENO"
8312then :
8313  xorg_cv_cc_flag_unused_command_line_argument=yes
8314else $as_nop
8315  xorg_cv_cc_flag_unused_command_line_argument=no
8316fi
8317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8318fi
8319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8320printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8321	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8322	CFLAGS="$xorg_testset_save_CFLAGS"
8323fi
8324
8325found="no"
8326
8327	if test $found = "no" ; then
8328		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8330		fi
8331
8332		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8334		fi
8335
8336		CFLAGS="$CFLAGS -Werror=write-strings"
8337
8338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8339printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8340		cacheid=xorg_cv_cc_flag__Werror_write_strings
8341		if eval test \${$cacheid+y}
8342then :
8343  printf %s "(cached) " >&6
8344else $as_nop
8345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346/* end confdefs.h.  */
8347int i;
8348int
8349main (void)
8350{
8351
8352  ;
8353  return 0;
8354}
8355_ACEOF
8356if ac_fn_c_try_link "$LINENO"
8357then :
8358  eval $cacheid=yes
8359else $as_nop
8360  eval $cacheid=no
8361fi
8362rm -f core conftest.err conftest.$ac_objext conftest.beam \
8363    conftest$ac_exeext conftest.$ac_ext
8364fi
8365
8366
8367		CFLAGS="$xorg_testset_save_CFLAGS"
8368
8369		eval supported=\$$cacheid
8370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8371printf "%s\n" "$supported" >&6; }
8372		if test "$supported" = "yes" ; then
8373			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8374			found="yes"
8375		fi
8376	fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392xorg_testset_save_CFLAGS="$CFLAGS"
8393
8394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8395	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8397printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8398if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8399then :
8400  printf %s "(cached) " >&6
8401else $as_nop
8402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403/* end confdefs.h.  */
8404int i;
8405_ACEOF
8406if ac_fn_c_try_compile "$LINENO"
8407then :
8408  xorg_cv_cc_flag_unknown_warning_option=yes
8409else $as_nop
8410  xorg_cv_cc_flag_unknown_warning_option=no
8411fi
8412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8413fi
8414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8415printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8416	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8417	CFLAGS="$xorg_testset_save_CFLAGS"
8418fi
8419
8420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8421	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8422		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423	fi
8424	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8426printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8427if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8428then :
8429  printf %s "(cached) " >&6
8430else $as_nop
8431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432/* end confdefs.h.  */
8433int i;
8434_ACEOF
8435if ac_fn_c_try_compile "$LINENO"
8436then :
8437  xorg_cv_cc_flag_unused_command_line_argument=yes
8438else $as_nop
8439  xorg_cv_cc_flag_unused_command_line_argument=no
8440fi
8441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8442fi
8443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8444printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8446	CFLAGS="$xorg_testset_save_CFLAGS"
8447fi
8448
8449found="no"
8450
8451	if test $found = "no" ; then
8452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8454		fi
8455
8456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8458		fi
8459
8460		CFLAGS="$CFLAGS -Werror=address"
8461
8462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8463printf %s "checking if $CC supports -Werror=address... " >&6; }
8464		cacheid=xorg_cv_cc_flag__Werror_address
8465		if eval test \${$cacheid+y}
8466then :
8467  printf %s "(cached) " >&6
8468else $as_nop
8469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h.  */
8471int i;
8472int
8473main (void)
8474{
8475
8476  ;
8477  return 0;
8478}
8479_ACEOF
8480if ac_fn_c_try_link "$LINENO"
8481then :
8482  eval $cacheid=yes
8483else $as_nop
8484  eval $cacheid=no
8485fi
8486rm -f core conftest.err conftest.$ac_objext conftest.beam \
8487    conftest$ac_exeext conftest.$ac_ext
8488fi
8489
8490
8491		CFLAGS="$xorg_testset_save_CFLAGS"
8492
8493		eval supported=\$$cacheid
8494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8495printf "%s\n" "$supported" >&6; }
8496		if test "$supported" = "yes" ; then
8497			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8498			found="yes"
8499		fi
8500	fi
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516xorg_testset_save_CFLAGS="$CFLAGS"
8517
8518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8519	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8521printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8522if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8523then :
8524  printf %s "(cached) " >&6
8525else $as_nop
8526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527/* end confdefs.h.  */
8528int i;
8529_ACEOF
8530if ac_fn_c_try_compile "$LINENO"
8531then :
8532  xorg_cv_cc_flag_unknown_warning_option=yes
8533else $as_nop
8534  xorg_cv_cc_flag_unknown_warning_option=no
8535fi
8536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8537fi
8538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8539printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8540	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8541	CFLAGS="$xorg_testset_save_CFLAGS"
8542fi
8543
8544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8545	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8547	fi
8548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8549	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8550printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8551if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8552then :
8553  printf %s "(cached) " >&6
8554else $as_nop
8555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556/* end confdefs.h.  */
8557int i;
8558_ACEOF
8559if ac_fn_c_try_compile "$LINENO"
8560then :
8561  xorg_cv_cc_flag_unused_command_line_argument=yes
8562else $as_nop
8563  xorg_cv_cc_flag_unused_command_line_argument=no
8564fi
8565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8566fi
8567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8568printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8569	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8570	CFLAGS="$xorg_testset_save_CFLAGS"
8571fi
8572
8573found="no"
8574
8575	if test $found = "no" ; then
8576		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8577			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8578		fi
8579
8580		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8581			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8582		fi
8583
8584		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8585
8586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8587printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8588		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8589		if eval test \${$cacheid+y}
8590then :
8591  printf %s "(cached) " >&6
8592else $as_nop
8593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594/* end confdefs.h.  */
8595int i;
8596int
8597main (void)
8598{
8599
8600  ;
8601  return 0;
8602}
8603_ACEOF
8604if ac_fn_c_try_link "$LINENO"
8605then :
8606  eval $cacheid=yes
8607else $as_nop
8608  eval $cacheid=no
8609fi
8610rm -f core conftest.err conftest.$ac_objext conftest.beam \
8611    conftest$ac_exeext conftest.$ac_ext
8612fi
8613
8614
8615		CFLAGS="$xorg_testset_save_CFLAGS"
8616
8617		eval supported=\$$cacheid
8618		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8619printf "%s\n" "$supported" >&6; }
8620		if test "$supported" = "yes" ; then
8621			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8622			found="yes"
8623		fi
8624	fi
8625
8626	if test $found = "no" ; then
8627		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8629		fi
8630
8631		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8632			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8633		fi
8634
8635		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8636
8637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8638printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8639		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8640		if eval test \${$cacheid+y}
8641then :
8642  printf %s "(cached) " >&6
8643else $as_nop
8644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645/* end confdefs.h.  */
8646int i;
8647int
8648main (void)
8649{
8650
8651  ;
8652  return 0;
8653}
8654_ACEOF
8655if ac_fn_c_try_link "$LINENO"
8656then :
8657  eval $cacheid=yes
8658else $as_nop
8659  eval $cacheid=no
8660fi
8661rm -f core conftest.err conftest.$ac_objext conftest.beam \
8662    conftest$ac_exeext conftest.$ac_ext
8663fi
8664
8665
8666		CFLAGS="$xorg_testset_save_CFLAGS"
8667
8668		eval supported=\$$cacheid
8669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8670printf "%s\n" "$supported" >&6; }
8671		if test "$supported" = "yes" ; then
8672			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8673			found="yes"
8674		fi
8675	fi
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691xorg_testset_save_CFLAGS="$CFLAGS"
8692
8693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8697if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8698then :
8699  printf %s "(cached) " >&6
8700else $as_nop
8701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702/* end confdefs.h.  */
8703int i;
8704_ACEOF
8705if ac_fn_c_try_compile "$LINENO"
8706then :
8707  xorg_cv_cc_flag_unknown_warning_option=yes
8708else $as_nop
8709  xorg_cv_cc_flag_unknown_warning_option=no
8710fi
8711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8712fi
8713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8714printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8715	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8716	CFLAGS="$xorg_testset_save_CFLAGS"
8717fi
8718
8719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8720	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8721		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722	fi
8723	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8724	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8725printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8726if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8727then :
8728  printf %s "(cached) " >&6
8729else $as_nop
8730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731/* end confdefs.h.  */
8732int i;
8733_ACEOF
8734if ac_fn_c_try_compile "$LINENO"
8735then :
8736  xorg_cv_cc_flag_unused_command_line_argument=yes
8737else $as_nop
8738  xorg_cv_cc_flag_unused_command_line_argument=no
8739fi
8740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8741fi
8742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8743printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8745	CFLAGS="$xorg_testset_save_CFLAGS"
8746fi
8747
8748found="no"
8749
8750	if test $found = "no" ; then
8751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8753		fi
8754
8755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8757		fi
8758
8759		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8760
8761		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8762printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8763		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8764		if eval test \${$cacheid+y}
8765then :
8766  printf %s "(cached) " >&6
8767else $as_nop
8768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769/* end confdefs.h.  */
8770int i;
8771int
8772main (void)
8773{
8774
8775  ;
8776  return 0;
8777}
8778_ACEOF
8779if ac_fn_c_try_link "$LINENO"
8780then :
8781  eval $cacheid=yes
8782else $as_nop
8783  eval $cacheid=no
8784fi
8785rm -f core conftest.err conftest.$ac_objext conftest.beam \
8786    conftest$ac_exeext conftest.$ac_ext
8787fi
8788
8789
8790		CFLAGS="$xorg_testset_save_CFLAGS"
8791
8792		eval supported=\$$cacheid
8793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8794printf "%s\n" "$supported" >&6; }
8795		if test "$supported" = "yes" ; then
8796			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8797			found="yes"
8798		fi
8799	fi
8800
8801 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8802else
8803{ 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
8804printf "%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;}
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818xorg_testset_save_CFLAGS="$CFLAGS"
8819
8820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8821	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8822	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8823printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8824if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8825then :
8826  printf %s "(cached) " >&6
8827else $as_nop
8828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829/* end confdefs.h.  */
8830int i;
8831_ACEOF
8832if ac_fn_c_try_compile "$LINENO"
8833then :
8834  xorg_cv_cc_flag_unknown_warning_option=yes
8835else $as_nop
8836  xorg_cv_cc_flag_unknown_warning_option=no
8837fi
8838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8839fi
8840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8841printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8842	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8843	CFLAGS="$xorg_testset_save_CFLAGS"
8844fi
8845
8846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8847	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8848		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8849	fi
8850	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8852printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8853if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8854then :
8855  printf %s "(cached) " >&6
8856else $as_nop
8857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858/* end confdefs.h.  */
8859int i;
8860_ACEOF
8861if ac_fn_c_try_compile "$LINENO"
8862then :
8863  xorg_cv_cc_flag_unused_command_line_argument=yes
8864else $as_nop
8865  xorg_cv_cc_flag_unused_command_line_argument=no
8866fi
8867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8868fi
8869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8870printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8872	CFLAGS="$xorg_testset_save_CFLAGS"
8873fi
8874
8875found="no"
8876
8877	if test $found = "no" ; then
8878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880		fi
8881
8882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8884		fi
8885
8886		CFLAGS="$CFLAGS -Wimplicit"
8887
8888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8889printf %s "checking if $CC supports -Wimplicit... " >&6; }
8890		cacheid=xorg_cv_cc_flag__Wimplicit
8891		if eval test \${$cacheid+y}
8892then :
8893  printf %s "(cached) " >&6
8894else $as_nop
8895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896/* end confdefs.h.  */
8897int i;
8898int
8899main (void)
8900{
8901
8902  ;
8903  return 0;
8904}
8905_ACEOF
8906if ac_fn_c_try_link "$LINENO"
8907then :
8908  eval $cacheid=yes
8909else $as_nop
8910  eval $cacheid=no
8911fi
8912rm -f core conftest.err conftest.$ac_objext conftest.beam \
8913    conftest$ac_exeext conftest.$ac_ext
8914fi
8915
8916
8917		CFLAGS="$xorg_testset_save_CFLAGS"
8918
8919		eval supported=\$$cacheid
8920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8921printf "%s\n" "$supported" >&6; }
8922		if test "$supported" = "yes" ; then
8923			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8924			found="yes"
8925		fi
8926	fi
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942xorg_testset_save_CFLAGS="$CFLAGS"
8943
8944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8946	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8948if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8949then :
8950  printf %s "(cached) " >&6
8951else $as_nop
8952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953/* end confdefs.h.  */
8954int i;
8955_ACEOF
8956if ac_fn_c_try_compile "$LINENO"
8957then :
8958  xorg_cv_cc_flag_unknown_warning_option=yes
8959else $as_nop
8960  xorg_cv_cc_flag_unknown_warning_option=no
8961fi
8962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8963fi
8964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8965printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8967	CFLAGS="$xorg_testset_save_CFLAGS"
8968fi
8969
8970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973	fi
8974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8975	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8976printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8977if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8978then :
8979  printf %s "(cached) " >&6
8980else $as_nop
8981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982/* end confdefs.h.  */
8983int i;
8984_ACEOF
8985if ac_fn_c_try_compile "$LINENO"
8986then :
8987  xorg_cv_cc_flag_unused_command_line_argument=yes
8988else $as_nop
8989  xorg_cv_cc_flag_unused_command_line_argument=no
8990fi
8991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8992fi
8993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8994printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8995	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8996	CFLAGS="$xorg_testset_save_CFLAGS"
8997fi
8998
8999found="no"
9000
9001	if test $found = "no" ; then
9002		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9003			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9004		fi
9005
9006		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9007			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9008		fi
9009
9010		CFLAGS="$CFLAGS -Wnonnull"
9011
9012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9013printf %s "checking if $CC supports -Wnonnull... " >&6; }
9014		cacheid=xorg_cv_cc_flag__Wnonnull
9015		if eval test \${$cacheid+y}
9016then :
9017  printf %s "(cached) " >&6
9018else $as_nop
9019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020/* end confdefs.h.  */
9021int i;
9022int
9023main (void)
9024{
9025
9026  ;
9027  return 0;
9028}
9029_ACEOF
9030if ac_fn_c_try_link "$LINENO"
9031then :
9032  eval $cacheid=yes
9033else $as_nop
9034  eval $cacheid=no
9035fi
9036rm -f core conftest.err conftest.$ac_objext conftest.beam \
9037    conftest$ac_exeext conftest.$ac_ext
9038fi
9039
9040
9041		CFLAGS="$xorg_testset_save_CFLAGS"
9042
9043		eval supported=\$$cacheid
9044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9045printf "%s\n" "$supported" >&6; }
9046		if test "$supported" = "yes" ; then
9047			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9048			found="yes"
9049		fi
9050	fi
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066xorg_testset_save_CFLAGS="$CFLAGS"
9067
9068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9071printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9072if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9073then :
9074  printf %s "(cached) " >&6
9075else $as_nop
9076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077/* end confdefs.h.  */
9078int i;
9079_ACEOF
9080if ac_fn_c_try_compile "$LINENO"
9081then :
9082  xorg_cv_cc_flag_unknown_warning_option=yes
9083else $as_nop
9084  xorg_cv_cc_flag_unknown_warning_option=no
9085fi
9086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9087fi
9088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9089printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9090	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9091	CFLAGS="$xorg_testset_save_CFLAGS"
9092fi
9093
9094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9095	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9096		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9097	fi
9098	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9099	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9100printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9101if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9102then :
9103  printf %s "(cached) " >&6
9104else $as_nop
9105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106/* end confdefs.h.  */
9107int i;
9108_ACEOF
9109if ac_fn_c_try_compile "$LINENO"
9110then :
9111  xorg_cv_cc_flag_unused_command_line_argument=yes
9112else $as_nop
9113  xorg_cv_cc_flag_unused_command_line_argument=no
9114fi
9115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9116fi
9117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9118printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9119	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9120	CFLAGS="$xorg_testset_save_CFLAGS"
9121fi
9122
9123found="no"
9124
9125	if test $found = "no" ; then
9126		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9127			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9128		fi
9129
9130		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9131			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9132		fi
9133
9134		CFLAGS="$CFLAGS -Winit-self"
9135
9136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9137printf %s "checking if $CC supports -Winit-self... " >&6; }
9138		cacheid=xorg_cv_cc_flag__Winit_self
9139		if eval test \${$cacheid+y}
9140then :
9141  printf %s "(cached) " >&6
9142else $as_nop
9143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144/* end confdefs.h.  */
9145int i;
9146int
9147main (void)
9148{
9149
9150  ;
9151  return 0;
9152}
9153_ACEOF
9154if ac_fn_c_try_link "$LINENO"
9155then :
9156  eval $cacheid=yes
9157else $as_nop
9158  eval $cacheid=no
9159fi
9160rm -f core conftest.err conftest.$ac_objext conftest.beam \
9161    conftest$ac_exeext conftest.$ac_ext
9162fi
9163
9164
9165		CFLAGS="$xorg_testset_save_CFLAGS"
9166
9167		eval supported=\$$cacheid
9168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9169printf "%s\n" "$supported" >&6; }
9170		if test "$supported" = "yes" ; then
9171			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9172			found="yes"
9173		fi
9174	fi
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190xorg_testset_save_CFLAGS="$CFLAGS"
9191
9192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9195printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9196if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9197then :
9198  printf %s "(cached) " >&6
9199else $as_nop
9200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201/* end confdefs.h.  */
9202int i;
9203_ACEOF
9204if ac_fn_c_try_compile "$LINENO"
9205then :
9206  xorg_cv_cc_flag_unknown_warning_option=yes
9207else $as_nop
9208  xorg_cv_cc_flag_unknown_warning_option=no
9209fi
9210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9211fi
9212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9213printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9215	CFLAGS="$xorg_testset_save_CFLAGS"
9216fi
9217
9218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9221	fi
9222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9223	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9224printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9225if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9226then :
9227  printf %s "(cached) " >&6
9228else $as_nop
9229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230/* end confdefs.h.  */
9231int i;
9232_ACEOF
9233if ac_fn_c_try_compile "$LINENO"
9234then :
9235  xorg_cv_cc_flag_unused_command_line_argument=yes
9236else $as_nop
9237  xorg_cv_cc_flag_unused_command_line_argument=no
9238fi
9239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9240fi
9241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9242printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9244	CFLAGS="$xorg_testset_save_CFLAGS"
9245fi
9246
9247found="no"
9248
9249	if test $found = "no" ; then
9250		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252		fi
9253
9254		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256		fi
9257
9258		CFLAGS="$CFLAGS -Wmain"
9259
9260		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9261printf %s "checking if $CC supports -Wmain... " >&6; }
9262		cacheid=xorg_cv_cc_flag__Wmain
9263		if eval test \${$cacheid+y}
9264then :
9265  printf %s "(cached) " >&6
9266else $as_nop
9267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268/* end confdefs.h.  */
9269int i;
9270int
9271main (void)
9272{
9273
9274  ;
9275  return 0;
9276}
9277_ACEOF
9278if ac_fn_c_try_link "$LINENO"
9279then :
9280  eval $cacheid=yes
9281else $as_nop
9282  eval $cacheid=no
9283fi
9284rm -f core conftest.err conftest.$ac_objext conftest.beam \
9285    conftest$ac_exeext conftest.$ac_ext
9286fi
9287
9288
9289		CFLAGS="$xorg_testset_save_CFLAGS"
9290
9291		eval supported=\$$cacheid
9292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9293printf "%s\n" "$supported" >&6; }
9294		if test "$supported" = "yes" ; then
9295			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9296			found="yes"
9297		fi
9298	fi
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314xorg_testset_save_CFLAGS="$CFLAGS"
9315
9316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9317	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9318	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9319printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9320if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9321then :
9322  printf %s "(cached) " >&6
9323else $as_nop
9324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325/* end confdefs.h.  */
9326int i;
9327_ACEOF
9328if ac_fn_c_try_compile "$LINENO"
9329then :
9330  xorg_cv_cc_flag_unknown_warning_option=yes
9331else $as_nop
9332  xorg_cv_cc_flag_unknown_warning_option=no
9333fi
9334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9335fi
9336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9337printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9339	CFLAGS="$xorg_testset_save_CFLAGS"
9340fi
9341
9342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9345	fi
9346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9348printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9349if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9350then :
9351  printf %s "(cached) " >&6
9352else $as_nop
9353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354/* end confdefs.h.  */
9355int i;
9356_ACEOF
9357if ac_fn_c_try_compile "$LINENO"
9358then :
9359  xorg_cv_cc_flag_unused_command_line_argument=yes
9360else $as_nop
9361  xorg_cv_cc_flag_unused_command_line_argument=no
9362fi
9363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9364fi
9365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9366printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9368	CFLAGS="$xorg_testset_save_CFLAGS"
9369fi
9370
9371found="no"
9372
9373	if test $found = "no" ; then
9374		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9376		fi
9377
9378		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9380		fi
9381
9382		CFLAGS="$CFLAGS -Wmissing-braces"
9383
9384		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9385printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9386		cacheid=xorg_cv_cc_flag__Wmissing_braces
9387		if eval test \${$cacheid+y}
9388then :
9389  printf %s "(cached) " >&6
9390else $as_nop
9391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392/* end confdefs.h.  */
9393int i;
9394int
9395main (void)
9396{
9397
9398  ;
9399  return 0;
9400}
9401_ACEOF
9402if ac_fn_c_try_link "$LINENO"
9403then :
9404  eval $cacheid=yes
9405else $as_nop
9406  eval $cacheid=no
9407fi
9408rm -f core conftest.err conftest.$ac_objext conftest.beam \
9409    conftest$ac_exeext conftest.$ac_ext
9410fi
9411
9412
9413		CFLAGS="$xorg_testset_save_CFLAGS"
9414
9415		eval supported=\$$cacheid
9416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9417printf "%s\n" "$supported" >&6; }
9418		if test "$supported" = "yes" ; then
9419			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9420			found="yes"
9421		fi
9422	fi
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438xorg_testset_save_CFLAGS="$CFLAGS"
9439
9440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9441	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9443printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9444if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9445then :
9446  printf %s "(cached) " >&6
9447else $as_nop
9448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449/* end confdefs.h.  */
9450int i;
9451_ACEOF
9452if ac_fn_c_try_compile "$LINENO"
9453then :
9454  xorg_cv_cc_flag_unknown_warning_option=yes
9455else $as_nop
9456  xorg_cv_cc_flag_unknown_warning_option=no
9457fi
9458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9459fi
9460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9461printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9462	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9463	CFLAGS="$xorg_testset_save_CFLAGS"
9464fi
9465
9466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9467	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9468		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9469	fi
9470	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9471	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9472printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9473if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9474then :
9475  printf %s "(cached) " >&6
9476else $as_nop
9477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478/* end confdefs.h.  */
9479int i;
9480_ACEOF
9481if ac_fn_c_try_compile "$LINENO"
9482then :
9483  xorg_cv_cc_flag_unused_command_line_argument=yes
9484else $as_nop
9485  xorg_cv_cc_flag_unused_command_line_argument=no
9486fi
9487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9488fi
9489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9490printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9492	CFLAGS="$xorg_testset_save_CFLAGS"
9493fi
9494
9495found="no"
9496
9497	if test $found = "no" ; then
9498		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9500		fi
9501
9502		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9504		fi
9505
9506		CFLAGS="$CFLAGS -Wsequence-point"
9507
9508		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9509printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9510		cacheid=xorg_cv_cc_flag__Wsequence_point
9511		if eval test \${$cacheid+y}
9512then :
9513  printf %s "(cached) " >&6
9514else $as_nop
9515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516/* end confdefs.h.  */
9517int i;
9518int
9519main (void)
9520{
9521
9522  ;
9523  return 0;
9524}
9525_ACEOF
9526if ac_fn_c_try_link "$LINENO"
9527then :
9528  eval $cacheid=yes
9529else $as_nop
9530  eval $cacheid=no
9531fi
9532rm -f core conftest.err conftest.$ac_objext conftest.beam \
9533    conftest$ac_exeext conftest.$ac_ext
9534fi
9535
9536
9537		CFLAGS="$xorg_testset_save_CFLAGS"
9538
9539		eval supported=\$$cacheid
9540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9541printf "%s\n" "$supported" >&6; }
9542		if test "$supported" = "yes" ; then
9543			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9544			found="yes"
9545		fi
9546	fi
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562xorg_testset_save_CFLAGS="$CFLAGS"
9563
9564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9567printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9568if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9569then :
9570  printf %s "(cached) " >&6
9571else $as_nop
9572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573/* end confdefs.h.  */
9574int i;
9575_ACEOF
9576if ac_fn_c_try_compile "$LINENO"
9577then :
9578  xorg_cv_cc_flag_unknown_warning_option=yes
9579else $as_nop
9580  xorg_cv_cc_flag_unknown_warning_option=no
9581fi
9582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9583fi
9584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9585printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9586	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9587	CFLAGS="$xorg_testset_save_CFLAGS"
9588fi
9589
9590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9591	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9592		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9593	fi
9594	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9595	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9596printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9597if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9598then :
9599  printf %s "(cached) " >&6
9600else $as_nop
9601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602/* end confdefs.h.  */
9603int i;
9604_ACEOF
9605if ac_fn_c_try_compile "$LINENO"
9606then :
9607  xorg_cv_cc_flag_unused_command_line_argument=yes
9608else $as_nop
9609  xorg_cv_cc_flag_unused_command_line_argument=no
9610fi
9611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9612fi
9613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9614printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9615	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9616	CFLAGS="$xorg_testset_save_CFLAGS"
9617fi
9618
9619found="no"
9620
9621	if test $found = "no" ; then
9622		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9623			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9624		fi
9625
9626		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9627			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9628		fi
9629
9630		CFLAGS="$CFLAGS -Wreturn-type"
9631
9632		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9633printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9634		cacheid=xorg_cv_cc_flag__Wreturn_type
9635		if eval test \${$cacheid+y}
9636then :
9637  printf %s "(cached) " >&6
9638else $as_nop
9639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h.  */
9641int i;
9642int
9643main (void)
9644{
9645
9646  ;
9647  return 0;
9648}
9649_ACEOF
9650if ac_fn_c_try_link "$LINENO"
9651then :
9652  eval $cacheid=yes
9653else $as_nop
9654  eval $cacheid=no
9655fi
9656rm -f core conftest.err conftest.$ac_objext conftest.beam \
9657    conftest$ac_exeext conftest.$ac_ext
9658fi
9659
9660
9661		CFLAGS="$xorg_testset_save_CFLAGS"
9662
9663		eval supported=\$$cacheid
9664		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9665printf "%s\n" "$supported" >&6; }
9666		if test "$supported" = "yes" ; then
9667			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9668			found="yes"
9669		fi
9670	fi
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686xorg_testset_save_CFLAGS="$CFLAGS"
9687
9688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9690	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9691printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9692if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9693then :
9694  printf %s "(cached) " >&6
9695else $as_nop
9696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697/* end confdefs.h.  */
9698int i;
9699_ACEOF
9700if ac_fn_c_try_compile "$LINENO"
9701then :
9702  xorg_cv_cc_flag_unknown_warning_option=yes
9703else $as_nop
9704  xorg_cv_cc_flag_unknown_warning_option=no
9705fi
9706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9707fi
9708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9709printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9711	CFLAGS="$xorg_testset_save_CFLAGS"
9712fi
9713
9714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9717	fi
9718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9719	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9720printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9721if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9722then :
9723  printf %s "(cached) " >&6
9724else $as_nop
9725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726/* end confdefs.h.  */
9727int i;
9728_ACEOF
9729if ac_fn_c_try_compile "$LINENO"
9730then :
9731  xorg_cv_cc_flag_unused_command_line_argument=yes
9732else $as_nop
9733  xorg_cv_cc_flag_unused_command_line_argument=no
9734fi
9735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9736fi
9737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9738printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9739	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9740	CFLAGS="$xorg_testset_save_CFLAGS"
9741fi
9742
9743found="no"
9744
9745	if test $found = "no" ; then
9746		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9748		fi
9749
9750		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9752		fi
9753
9754		CFLAGS="$CFLAGS -Wtrigraphs"
9755
9756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9757printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9758		cacheid=xorg_cv_cc_flag__Wtrigraphs
9759		if eval test \${$cacheid+y}
9760then :
9761  printf %s "(cached) " >&6
9762else $as_nop
9763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764/* end confdefs.h.  */
9765int i;
9766int
9767main (void)
9768{
9769
9770  ;
9771  return 0;
9772}
9773_ACEOF
9774if ac_fn_c_try_link "$LINENO"
9775then :
9776  eval $cacheid=yes
9777else $as_nop
9778  eval $cacheid=no
9779fi
9780rm -f core conftest.err conftest.$ac_objext conftest.beam \
9781    conftest$ac_exeext conftest.$ac_ext
9782fi
9783
9784
9785		CFLAGS="$xorg_testset_save_CFLAGS"
9786
9787		eval supported=\$$cacheid
9788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9789printf "%s\n" "$supported" >&6; }
9790		if test "$supported" = "yes" ; then
9791			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9792			found="yes"
9793		fi
9794	fi
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810xorg_testset_save_CFLAGS="$CFLAGS"
9811
9812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9813	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9814	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9815printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9816if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9817then :
9818  printf %s "(cached) " >&6
9819else $as_nop
9820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h.  */
9822int i;
9823_ACEOF
9824if ac_fn_c_try_compile "$LINENO"
9825then :
9826  xorg_cv_cc_flag_unknown_warning_option=yes
9827else $as_nop
9828  xorg_cv_cc_flag_unknown_warning_option=no
9829fi
9830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9831fi
9832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9833printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9834	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9835	CFLAGS="$xorg_testset_save_CFLAGS"
9836fi
9837
9838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9839	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9840		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9841	fi
9842	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9843	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9844printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9845if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9846then :
9847  printf %s "(cached) " >&6
9848else $as_nop
9849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850/* end confdefs.h.  */
9851int i;
9852_ACEOF
9853if ac_fn_c_try_compile "$LINENO"
9854then :
9855  xorg_cv_cc_flag_unused_command_line_argument=yes
9856else $as_nop
9857  xorg_cv_cc_flag_unused_command_line_argument=no
9858fi
9859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9860fi
9861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9862printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9863	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9864	CFLAGS="$xorg_testset_save_CFLAGS"
9865fi
9866
9867found="no"
9868
9869	if test $found = "no" ; then
9870		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9872		fi
9873
9874		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9876		fi
9877
9878		CFLAGS="$CFLAGS -Warray-bounds"
9879
9880		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9881printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9882		cacheid=xorg_cv_cc_flag__Warray_bounds
9883		if eval test \${$cacheid+y}
9884then :
9885  printf %s "(cached) " >&6
9886else $as_nop
9887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h.  */
9889int i;
9890int
9891main (void)
9892{
9893
9894  ;
9895  return 0;
9896}
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"
9899then :
9900  eval $cacheid=yes
9901else $as_nop
9902  eval $cacheid=no
9903fi
9904rm -f core conftest.err conftest.$ac_objext conftest.beam \
9905    conftest$ac_exeext conftest.$ac_ext
9906fi
9907
9908
9909		CFLAGS="$xorg_testset_save_CFLAGS"
9910
9911		eval supported=\$$cacheid
9912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9913printf "%s\n" "$supported" >&6; }
9914		if test "$supported" = "yes" ; then
9915			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9916			found="yes"
9917		fi
9918	fi
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934xorg_testset_save_CFLAGS="$CFLAGS"
9935
9936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9937	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9938	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9939printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9940if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9941then :
9942  printf %s "(cached) " >&6
9943else $as_nop
9944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945/* end confdefs.h.  */
9946int i;
9947_ACEOF
9948if ac_fn_c_try_compile "$LINENO"
9949then :
9950  xorg_cv_cc_flag_unknown_warning_option=yes
9951else $as_nop
9952  xorg_cv_cc_flag_unknown_warning_option=no
9953fi
9954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9955fi
9956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9957printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9958	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9959	CFLAGS="$xorg_testset_save_CFLAGS"
9960fi
9961
9962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9963	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9964		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9965	fi
9966	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9968printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9969if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9970then :
9971  printf %s "(cached) " >&6
9972else $as_nop
9973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974/* end confdefs.h.  */
9975int i;
9976_ACEOF
9977if ac_fn_c_try_compile "$LINENO"
9978then :
9979  xorg_cv_cc_flag_unused_command_line_argument=yes
9980else $as_nop
9981  xorg_cv_cc_flag_unused_command_line_argument=no
9982fi
9983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9984fi
9985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9986printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9988	CFLAGS="$xorg_testset_save_CFLAGS"
9989fi
9990
9991found="no"
9992
9993	if test $found = "no" ; then
9994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9996		fi
9997
9998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10000		fi
10001
10002		CFLAGS="$CFLAGS -Wwrite-strings"
10003
10004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10005printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10006		cacheid=xorg_cv_cc_flag__Wwrite_strings
10007		if eval test \${$cacheid+y}
10008then :
10009  printf %s "(cached) " >&6
10010else $as_nop
10011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h.  */
10013int i;
10014int
10015main (void)
10016{
10017
10018  ;
10019  return 0;
10020}
10021_ACEOF
10022if ac_fn_c_try_link "$LINENO"
10023then :
10024  eval $cacheid=yes
10025else $as_nop
10026  eval $cacheid=no
10027fi
10028rm -f core conftest.err conftest.$ac_objext conftest.beam \
10029    conftest$ac_exeext conftest.$ac_ext
10030fi
10031
10032
10033		CFLAGS="$xorg_testset_save_CFLAGS"
10034
10035		eval supported=\$$cacheid
10036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10037printf "%s\n" "$supported" >&6; }
10038		if test "$supported" = "yes" ; then
10039			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10040			found="yes"
10041		fi
10042	fi
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058xorg_testset_save_CFLAGS="$CFLAGS"
10059
10060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10062	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10063printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10064if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10065then :
10066  printf %s "(cached) " >&6
10067else $as_nop
10068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069/* end confdefs.h.  */
10070int i;
10071_ACEOF
10072if ac_fn_c_try_compile "$LINENO"
10073then :
10074  xorg_cv_cc_flag_unknown_warning_option=yes
10075else $as_nop
10076  xorg_cv_cc_flag_unknown_warning_option=no
10077fi
10078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10079fi
10080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10081printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10082	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10083	CFLAGS="$xorg_testset_save_CFLAGS"
10084fi
10085
10086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10087	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10088		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10089	fi
10090	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10092printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10093if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10094then :
10095  printf %s "(cached) " >&6
10096else $as_nop
10097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098/* end confdefs.h.  */
10099int i;
10100_ACEOF
10101if ac_fn_c_try_compile "$LINENO"
10102then :
10103  xorg_cv_cc_flag_unused_command_line_argument=yes
10104else $as_nop
10105  xorg_cv_cc_flag_unused_command_line_argument=no
10106fi
10107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10108fi
10109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10110printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10111	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10112	CFLAGS="$xorg_testset_save_CFLAGS"
10113fi
10114
10115found="no"
10116
10117	if test $found = "no" ; then
10118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10120		fi
10121
10122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10124		fi
10125
10126		CFLAGS="$CFLAGS -Waddress"
10127
10128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10129printf %s "checking if $CC supports -Waddress... " >&6; }
10130		cacheid=xorg_cv_cc_flag__Waddress
10131		if eval test \${$cacheid+y}
10132then :
10133  printf %s "(cached) " >&6
10134else $as_nop
10135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136/* end confdefs.h.  */
10137int i;
10138int
10139main (void)
10140{
10141
10142  ;
10143  return 0;
10144}
10145_ACEOF
10146if ac_fn_c_try_link "$LINENO"
10147then :
10148  eval $cacheid=yes
10149else $as_nop
10150  eval $cacheid=no
10151fi
10152rm -f core conftest.err conftest.$ac_objext conftest.beam \
10153    conftest$ac_exeext conftest.$ac_ext
10154fi
10155
10156
10157		CFLAGS="$xorg_testset_save_CFLAGS"
10158
10159		eval supported=\$$cacheid
10160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10161printf "%s\n" "$supported" >&6; }
10162		if test "$supported" = "yes" ; then
10163			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10164			found="yes"
10165		fi
10166	fi
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182xorg_testset_save_CFLAGS="$CFLAGS"
10183
10184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10185	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10186	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10187printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10188if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10189then :
10190  printf %s "(cached) " >&6
10191else $as_nop
10192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193/* end confdefs.h.  */
10194int i;
10195_ACEOF
10196if ac_fn_c_try_compile "$LINENO"
10197then :
10198  xorg_cv_cc_flag_unknown_warning_option=yes
10199else $as_nop
10200  xorg_cv_cc_flag_unknown_warning_option=no
10201fi
10202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10203fi
10204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10205printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10206	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10207	CFLAGS="$xorg_testset_save_CFLAGS"
10208fi
10209
10210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10211	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10212		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10213	fi
10214	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10216printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10217if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10218then :
10219  printf %s "(cached) " >&6
10220else $as_nop
10221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222/* end confdefs.h.  */
10223int i;
10224_ACEOF
10225if ac_fn_c_try_compile "$LINENO"
10226then :
10227  xorg_cv_cc_flag_unused_command_line_argument=yes
10228else $as_nop
10229  xorg_cv_cc_flag_unused_command_line_argument=no
10230fi
10231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10232fi
10233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10234printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10235	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10236	CFLAGS="$xorg_testset_save_CFLAGS"
10237fi
10238
10239found="no"
10240
10241	if test $found = "no" ; then
10242		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10243			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10244		fi
10245
10246		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10247			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10248		fi
10249
10250		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10251
10252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10253printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10254		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10255		if eval test \${$cacheid+y}
10256then :
10257  printf %s "(cached) " >&6
10258else $as_nop
10259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260/* end confdefs.h.  */
10261int i;
10262int
10263main (void)
10264{
10265
10266  ;
10267  return 0;
10268}
10269_ACEOF
10270if ac_fn_c_try_link "$LINENO"
10271then :
10272  eval $cacheid=yes
10273else $as_nop
10274  eval $cacheid=no
10275fi
10276rm -f core conftest.err conftest.$ac_objext conftest.beam \
10277    conftest$ac_exeext conftest.$ac_ext
10278fi
10279
10280
10281		CFLAGS="$xorg_testset_save_CFLAGS"
10282
10283		eval supported=\$$cacheid
10284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10285printf "%s\n" "$supported" >&6; }
10286		if test "$supported" = "yes" ; then
10287			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10288			found="yes"
10289		fi
10290	fi
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306xorg_testset_save_CFLAGS="$CFLAGS"
10307
10308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10309	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10310	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10311printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10312if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10313then :
10314  printf %s "(cached) " >&6
10315else $as_nop
10316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317/* end confdefs.h.  */
10318int i;
10319_ACEOF
10320if ac_fn_c_try_compile "$LINENO"
10321then :
10322  xorg_cv_cc_flag_unknown_warning_option=yes
10323else $as_nop
10324  xorg_cv_cc_flag_unknown_warning_option=no
10325fi
10326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10327fi
10328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10329printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10330	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10331	CFLAGS="$xorg_testset_save_CFLAGS"
10332fi
10333
10334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10335	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10336		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10337	fi
10338	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10340printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10341if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10342then :
10343  printf %s "(cached) " >&6
10344else $as_nop
10345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346/* end confdefs.h.  */
10347int i;
10348_ACEOF
10349if ac_fn_c_try_compile "$LINENO"
10350then :
10351  xorg_cv_cc_flag_unused_command_line_argument=yes
10352else $as_nop
10353  xorg_cv_cc_flag_unused_command_line_argument=no
10354fi
10355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10356fi
10357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10358printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10360	CFLAGS="$xorg_testset_save_CFLAGS"
10361fi
10362
10363found="no"
10364
10365	if test $found = "no" ; then
10366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10368		fi
10369
10370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10372		fi
10373
10374		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10375
10376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10377printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10378		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10379		if eval test \${$cacheid+y}
10380then :
10381  printf %s "(cached) " >&6
10382else $as_nop
10383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384/* end confdefs.h.  */
10385int i;
10386int
10387main (void)
10388{
10389
10390  ;
10391  return 0;
10392}
10393_ACEOF
10394if ac_fn_c_try_link "$LINENO"
10395then :
10396  eval $cacheid=yes
10397else $as_nop
10398  eval $cacheid=no
10399fi
10400rm -f core conftest.err conftest.$ac_objext conftest.beam \
10401    conftest$ac_exeext conftest.$ac_ext
10402fi
10403
10404
10405		CFLAGS="$xorg_testset_save_CFLAGS"
10406
10407		eval supported=\$$cacheid
10408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10409printf "%s\n" "$supported" >&6; }
10410		if test "$supported" = "yes" ; then
10411			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10412			found="yes"
10413		fi
10414	fi
10415
10416
10417fi
10418
10419
10420
10421
10422
10423
10424
10425		CWARNFLAGS="$BASE_CFLAGS"
10426		if  test "x$GCC" = xyes ; then
10427		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10428		fi
10429
10430
10431
10432
10433
10434
10435
10436
10437# Check whether --enable-strict-compilation was given.
10438if test ${enable_strict_compilation+y}
10439then :
10440  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10441else $as_nop
10442  STRICT_COMPILE=no
10443fi
10444
10445
10446
10447
10448
10449
10450STRICT_CFLAGS=""
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464xorg_testset_save_CFLAGS="$CFLAGS"
10465
10466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10467	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10469printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10470if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10471then :
10472  printf %s "(cached) " >&6
10473else $as_nop
10474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475/* end confdefs.h.  */
10476int i;
10477_ACEOF
10478if ac_fn_c_try_compile "$LINENO"
10479then :
10480  xorg_cv_cc_flag_unknown_warning_option=yes
10481else $as_nop
10482  xorg_cv_cc_flag_unknown_warning_option=no
10483fi
10484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10485fi
10486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10487printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10488	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10489	CFLAGS="$xorg_testset_save_CFLAGS"
10490fi
10491
10492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10493	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10494		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10495	fi
10496	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10497	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10498printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10499if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10500then :
10501  printf %s "(cached) " >&6
10502else $as_nop
10503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504/* end confdefs.h.  */
10505int i;
10506_ACEOF
10507if ac_fn_c_try_compile "$LINENO"
10508then :
10509  xorg_cv_cc_flag_unused_command_line_argument=yes
10510else $as_nop
10511  xorg_cv_cc_flag_unused_command_line_argument=no
10512fi
10513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10514fi
10515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10516printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10517	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10518	CFLAGS="$xorg_testset_save_CFLAGS"
10519fi
10520
10521found="no"
10522
10523	if test $found = "no" ; then
10524		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10525			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10526		fi
10527
10528		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10529			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10530		fi
10531
10532		CFLAGS="$CFLAGS -pedantic"
10533
10534		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10535printf %s "checking if $CC supports -pedantic... " >&6; }
10536		cacheid=xorg_cv_cc_flag__pedantic
10537		if eval test \${$cacheid+y}
10538then :
10539  printf %s "(cached) " >&6
10540else $as_nop
10541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542/* end confdefs.h.  */
10543int i;
10544int
10545main (void)
10546{
10547
10548  ;
10549  return 0;
10550}
10551_ACEOF
10552if ac_fn_c_try_link "$LINENO"
10553then :
10554  eval $cacheid=yes
10555else $as_nop
10556  eval $cacheid=no
10557fi
10558rm -f core conftest.err conftest.$ac_objext conftest.beam \
10559    conftest$ac_exeext conftest.$ac_ext
10560fi
10561
10562
10563		CFLAGS="$xorg_testset_save_CFLAGS"
10564
10565		eval supported=\$$cacheid
10566		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10567printf "%s\n" "$supported" >&6; }
10568		if test "$supported" = "yes" ; then
10569			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10570			found="yes"
10571		fi
10572	fi
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588xorg_testset_save_CFLAGS="$CFLAGS"
10589
10590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10594if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10595then :
10596  printf %s "(cached) " >&6
10597else $as_nop
10598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599/* end confdefs.h.  */
10600int i;
10601_ACEOF
10602if ac_fn_c_try_compile "$LINENO"
10603then :
10604  xorg_cv_cc_flag_unknown_warning_option=yes
10605else $as_nop
10606  xorg_cv_cc_flag_unknown_warning_option=no
10607fi
10608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10609fi
10610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10611printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10612	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10613	CFLAGS="$xorg_testset_save_CFLAGS"
10614fi
10615
10616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10617	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10618		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10619	fi
10620	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10621	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10622printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10623if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10624then :
10625  printf %s "(cached) " >&6
10626else $as_nop
10627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628/* end confdefs.h.  */
10629int i;
10630_ACEOF
10631if ac_fn_c_try_compile "$LINENO"
10632then :
10633  xorg_cv_cc_flag_unused_command_line_argument=yes
10634else $as_nop
10635  xorg_cv_cc_flag_unused_command_line_argument=no
10636fi
10637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10638fi
10639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10640printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10641	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10642	CFLAGS="$xorg_testset_save_CFLAGS"
10643fi
10644
10645found="no"
10646
10647	if test $found = "no" ; then
10648		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10649			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10650		fi
10651
10652		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10653			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10654		fi
10655
10656		CFLAGS="$CFLAGS -Werror"
10657
10658		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10659printf %s "checking if $CC supports -Werror... " >&6; }
10660		cacheid=xorg_cv_cc_flag__Werror
10661		if eval test \${$cacheid+y}
10662then :
10663  printf %s "(cached) " >&6
10664else $as_nop
10665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666/* end confdefs.h.  */
10667int i;
10668int
10669main (void)
10670{
10671
10672  ;
10673  return 0;
10674}
10675_ACEOF
10676if ac_fn_c_try_link "$LINENO"
10677then :
10678  eval $cacheid=yes
10679else $as_nop
10680  eval $cacheid=no
10681fi
10682rm -f core conftest.err conftest.$ac_objext conftest.beam \
10683    conftest$ac_exeext conftest.$ac_ext
10684fi
10685
10686
10687		CFLAGS="$xorg_testset_save_CFLAGS"
10688
10689		eval supported=\$$cacheid
10690		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10691printf "%s\n" "$supported" >&6; }
10692		if test "$supported" = "yes" ; then
10693			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10694			found="yes"
10695		fi
10696	fi
10697
10698	if test $found = "no" ; then
10699		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10700			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10701		fi
10702
10703		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10704			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10705		fi
10706
10707		CFLAGS="$CFLAGS -errwarn"
10708
10709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10710printf %s "checking if $CC supports -errwarn... " >&6; }
10711		cacheid=xorg_cv_cc_flag__errwarn
10712		if eval test \${$cacheid+y}
10713then :
10714  printf %s "(cached) " >&6
10715else $as_nop
10716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717/* end confdefs.h.  */
10718int i;
10719int
10720main (void)
10721{
10722
10723  ;
10724  return 0;
10725}
10726_ACEOF
10727if ac_fn_c_try_link "$LINENO"
10728then :
10729  eval $cacheid=yes
10730else $as_nop
10731  eval $cacheid=no
10732fi
10733rm -f core conftest.err conftest.$ac_objext conftest.beam \
10734    conftest$ac_exeext conftest.$ac_ext
10735fi
10736
10737
10738		CFLAGS="$xorg_testset_save_CFLAGS"
10739
10740		eval supported=\$$cacheid
10741		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10742printf "%s\n" "$supported" >&6; }
10743		if test "$supported" = "yes" ; then
10744			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10745			found="yes"
10746		fi
10747	fi
10748
10749
10750
10751# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10752# activate it with -Werror, so we add it here explicitly.
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766xorg_testset_save_CFLAGS="$CFLAGS"
10767
10768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10773then :
10774  printf %s "(cached) " >&6
10775else $as_nop
10776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h.  */
10778int i;
10779_ACEOF
10780if ac_fn_c_try_compile "$LINENO"
10781then :
10782  xorg_cv_cc_flag_unknown_warning_option=yes
10783else $as_nop
10784  xorg_cv_cc_flag_unknown_warning_option=no
10785fi
10786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10787fi
10788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10789printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10791	CFLAGS="$xorg_testset_save_CFLAGS"
10792fi
10793
10794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10797	fi
10798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10800printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10801if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10802then :
10803  printf %s "(cached) " >&6
10804else $as_nop
10805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806/* end confdefs.h.  */
10807int i;
10808_ACEOF
10809if ac_fn_c_try_compile "$LINENO"
10810then :
10811  xorg_cv_cc_flag_unused_command_line_argument=yes
10812else $as_nop
10813  xorg_cv_cc_flag_unused_command_line_argument=no
10814fi
10815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10816fi
10817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10818printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10820	CFLAGS="$xorg_testset_save_CFLAGS"
10821fi
10822
10823found="no"
10824
10825	if test $found = "no" ; then
10826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10828		fi
10829
10830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10832		fi
10833
10834		CFLAGS="$CFLAGS -Werror=attributes"
10835
10836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10837printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10838		cacheid=xorg_cv_cc_flag__Werror_attributes
10839		if eval test \${$cacheid+y}
10840then :
10841  printf %s "(cached) " >&6
10842else $as_nop
10843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844/* end confdefs.h.  */
10845int i;
10846int
10847main (void)
10848{
10849
10850  ;
10851  return 0;
10852}
10853_ACEOF
10854if ac_fn_c_try_link "$LINENO"
10855then :
10856  eval $cacheid=yes
10857else $as_nop
10858  eval $cacheid=no
10859fi
10860rm -f core conftest.err conftest.$ac_objext conftest.beam \
10861    conftest$ac_exeext conftest.$ac_ext
10862fi
10863
10864
10865		CFLAGS="$xorg_testset_save_CFLAGS"
10866
10867		eval supported=\$$cacheid
10868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10869printf "%s\n" "$supported" >&6; }
10870		if test "$supported" = "yes" ; then
10871			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10872			found="yes"
10873		fi
10874	fi
10875
10876
10877
10878if test "x$STRICT_COMPILE" = "xyes"; then
10879    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10880    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10881fi
10882
10883
10884
10885
10886
10887
10888cat >>confdefs.h <<_ACEOF
10889#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10890_ACEOF
10891
10892	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10893	if test "x$PVM" = "x"; then
10894		PVM="0"
10895	fi
10896
10897printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10898
10899	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10900	if test "x$PVP" = "x"; then
10901		PVP="0"
10902	fi
10903
10904printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10905
10906
10907
10908CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10909mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10910|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10911touch \$(top_srcdir)/ChangeLog; \
10912echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10913
10914
10915
10916
10917macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10918INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10919mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10920|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10921touch \$(top_srcdir)/INSTALL; \
10922echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10923
10924
10925
10926
10927
10928
10929case $host_os in
10930    solaris*)
10931        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10932        # check for a man page file found in later versions that use
10933        # traditional section numbers instead
10934        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10935printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10936if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10937then :
10938  printf %s "(cached) " >&6
10939else $as_nop
10940  test "$cross_compiling" = yes &&
10941  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10942if test -r "/usr/share/man/man7/attributes.7"; then
10943  ac_cv_file__usr_share_man_man7_attributes_7=yes
10944else
10945  ac_cv_file__usr_share_man_man7_attributes_7=no
10946fi
10947fi
10948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10949printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10950if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10951then :
10952  SYSV_MAN_SECTIONS=false
10953else $as_nop
10954  SYSV_MAN_SECTIONS=true
10955fi
10956
10957        ;;
10958    *) SYSV_MAN_SECTIONS=false ;;
10959esac
10960
10961if test x$APP_MAN_SUFFIX = x    ; then
10962    APP_MAN_SUFFIX=1
10963fi
10964if test x$APP_MAN_DIR = x    ; then
10965    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10966fi
10967
10968if test x$LIB_MAN_SUFFIX = x    ; then
10969    LIB_MAN_SUFFIX=3
10970fi
10971if test x$LIB_MAN_DIR = x    ; then
10972    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10973fi
10974
10975if test x$FILE_MAN_SUFFIX = x    ; then
10976    case $SYSV_MAN_SECTIONS in
10977	true)				FILE_MAN_SUFFIX=4  ;;
10978	*)				FILE_MAN_SUFFIX=5  ;;
10979    esac
10980fi
10981if test x$FILE_MAN_DIR = x    ; then
10982    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10983fi
10984
10985if test x$MISC_MAN_SUFFIX = x    ; then
10986    case $SYSV_MAN_SECTIONS in
10987	true)				MISC_MAN_SUFFIX=5  ;;
10988	*)				MISC_MAN_SUFFIX=7  ;;
10989    esac
10990fi
10991if test x$MISC_MAN_DIR = x    ; then
10992    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10993fi
10994
10995if test x$DRIVER_MAN_SUFFIX = x    ; then
10996    case $SYSV_MAN_SECTIONS in
10997	true)				DRIVER_MAN_SUFFIX=7  ;;
10998	*)				DRIVER_MAN_SUFFIX=4  ;;
10999    esac
11000fi
11001if test x$DRIVER_MAN_DIR = x    ; then
11002    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11003fi
11004
11005if test x$ADMIN_MAN_SUFFIX = x    ; then
11006    case $SYSV_MAN_SECTIONS in
11007	true)				ADMIN_MAN_SUFFIX=1m ;;
11008	*)				ADMIN_MAN_SUFFIX=8  ;;
11009    esac
11010fi
11011if test x$ADMIN_MAN_DIR = x    ; then
11012    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11013fi
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029XORG_MAN_PAGE="X Version 11"
11030
11031MAN_SUBSTS="\
11032	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11033	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11034	-e 's|__xservername__|Xorg|g' \
11035	-e 's|__xconfigfile__|xorg.conf|g' \
11036	-e 's|__projectroot__|\$(prefix)|g' \
11037	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11038	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11039	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11040	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11041	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11042	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11043	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11044
11045
11046
11047# Check whether --enable-silent-rules was given.
11048if test ${enable_silent_rules+y}
11049then :
11050  enableval=$enable_silent_rules;
11051fi
11052
11053case $enable_silent_rules in # (((
11054  yes) AM_DEFAULT_VERBOSITY=0;;
11055   no) AM_DEFAULT_VERBOSITY=1;;
11056    *) AM_DEFAULT_VERBOSITY=0;;
11057esac
11058am_make=${MAKE-make}
11059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11060printf %s "checking whether $am_make supports nested variables... " >&6; }
11061if test ${am_cv_make_support_nested_variables+y}
11062then :
11063  printf %s "(cached) " >&6
11064else $as_nop
11065  if printf "%s\n" 'TRUE=$(BAR$(V))
11066BAR0=false
11067BAR1=true
11068V=1
11069am__doit:
11070	@$(TRUE)
11071.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11072  am_cv_make_support_nested_variables=yes
11073else
11074  am_cv_make_support_nested_variables=no
11075fi
11076fi
11077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11078printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11079if test $am_cv_make_support_nested_variables = yes; then
11080    AM_V='$(V)'
11081  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11082else
11083  AM_V=$AM_DEFAULT_VERBOSITY
11084  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11085fi
11086AM_BACKSLASH='\'
11087
11088
11089
11090# Checks for pkg-config packages
11091
11092pkg_failed=no
11093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XWUD" >&5
11094printf %s "checking for XWUD... " >&6; }
11095
11096if test -n "$XWUD_CFLAGS"; then
11097    pkg_cv_XWUD_CFLAGS="$XWUD_CFLAGS"
11098 elif test -n "$PKG_CONFIG"; then
11099    if test -n "$PKG_CONFIG" && \
11100    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
11101  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
11102  ac_status=$?
11103  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11104  test $ac_status = 0; }; then
11105  pkg_cv_XWUD_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
11106		      test "x$?" != "x0" && pkg_failed=yes
11107else
11108  pkg_failed=yes
11109fi
11110 else
11111    pkg_failed=untried
11112fi
11113if test -n "$XWUD_LIBS"; then
11114    pkg_cv_XWUD_LIBS="$XWUD_LIBS"
11115 elif test -n "$PKG_CONFIG"; then
11116    if test -n "$PKG_CONFIG" && \
11117    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
11118  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
11119  ac_status=$?
11120  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11121  test $ac_status = 0; }; then
11122  pkg_cv_XWUD_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
11123		      test "x$?" != "x0" && pkg_failed=yes
11124else
11125  pkg_failed=yes
11126fi
11127 else
11128    pkg_failed=untried
11129fi
11130
11131
11132
11133if test $pkg_failed = yes; then
11134   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135printf "%s\n" "no" >&6; }
11136
11137if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11138        _pkg_short_errors_supported=yes
11139else
11140        _pkg_short_errors_supported=no
11141fi
11142        if test $_pkg_short_errors_supported = yes; then
11143	        XWUD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
11144        else
11145	        XWUD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
11146        fi
11147	# Put the nasty error message in config.log where it belongs
11148	echo "$XWUD_PKG_ERRORS" >&5
11149
11150	as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
11151
11152$XWUD_PKG_ERRORS
11153
11154Consider adjusting the PKG_CONFIG_PATH environment variable if you
11155installed software in a non-standard prefix.
11156
11157Alternatively, you may set the environment variables XWUD_CFLAGS
11158and XWUD_LIBS to avoid the need to call pkg-config.
11159See the pkg-config man page for more details." "$LINENO" 5
11160elif test $pkg_failed = untried; then
11161     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162printf "%s\n" "no" >&6; }
11163	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11164printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11165as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11166is in your PATH or set the PKG_CONFIG environment variable to the full
11167path to pkg-config.
11168
11169Alternatively, you may set the environment variables XWUD_CFLAGS
11170and XWUD_LIBS to avoid the need to call pkg-config.
11171See the pkg-config man page for more details.
11172
11173To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11174See \`config.log' for more details" "$LINENO" 5; }
11175else
11176	XWUD_CFLAGS=$pkg_cv_XWUD_CFLAGS
11177	XWUD_LIBS=$pkg_cv_XWUD_LIBS
11178        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11179printf "%s\n" "yes" >&6; }
11180
11181fi
11182
11183ac_config_files="$ac_config_files Makefile man/Makefile"
11184
11185cat >confcache <<\_ACEOF
11186# This file is a shell script that caches the results of configure
11187# tests run on this system so they can be shared between configure
11188# scripts and configure runs, see configure's option --config-cache.
11189# It is not useful on other systems.  If it contains results you don't
11190# want to keep, you may remove or edit it.
11191#
11192# config.status only pays attention to the cache file if you give it
11193# the --recheck option to rerun configure.
11194#
11195# `ac_cv_env_foo' variables (set or unset) will be overridden when
11196# loading this file, other *unset* `ac_cv_foo' will be assigned the
11197# following values.
11198
11199_ACEOF
11200
11201# The following way of writing the cache mishandles newlines in values,
11202# but we know of no workaround that is simple, portable, and efficient.
11203# So, we kill variables containing newlines.
11204# Ultrix sh set writes to stderr and can't be redirected directly,
11205# and sets the high bit in the cache file unless we assign to the vars.
11206(
11207  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11208    eval ac_val=\$$ac_var
11209    case $ac_val in #(
11210    *${as_nl}*)
11211      case $ac_var in #(
11212      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11213printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11214      esac
11215      case $ac_var in #(
11216      _ | IFS | as_nl) ;; #(
11217      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11218      *) { eval $ac_var=; unset $ac_var;} ;;
11219      esac ;;
11220    esac
11221  done
11222
11223  (set) 2>&1 |
11224    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11225    *${as_nl}ac_space=\ *)
11226      # `set' does not quote correctly, so add quotes: double-quote
11227      # substitution turns \\\\ into \\, and sed turns \\ into \.
11228      sed -n \
11229	"s/'/'\\\\''/g;
11230	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11231      ;; #(
11232    *)
11233      # `set' quotes correctly as required by POSIX, so do not add quotes.
11234      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11235      ;;
11236    esac |
11237    sort
11238) |
11239  sed '
11240     /^ac_cv_env_/b end
11241     t clear
11242     :clear
11243     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11244     t end
11245     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11246     :end' >>confcache
11247if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11248  if test -w "$cache_file"; then
11249    if test "x$cache_file" != "x/dev/null"; then
11250      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11251printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11252      if test ! -f "$cache_file" || test -h "$cache_file"; then
11253	cat confcache >"$cache_file"
11254      else
11255        case $cache_file in #(
11256        */* | ?:*)
11257	  mv -f confcache "$cache_file"$$ &&
11258	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11259        *)
11260	  mv -f confcache "$cache_file" ;;
11261	esac
11262      fi
11263    fi
11264  else
11265    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11266printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11267  fi
11268fi
11269rm -f confcache
11270
11271test "x$prefix" = xNONE && prefix=$ac_default_prefix
11272# Let make expand exec_prefix.
11273test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11274
11275DEFS=-DHAVE_CONFIG_H
11276
11277ac_libobjs=
11278ac_ltlibobjs=
11279U=
11280for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11281  # 1. Remove the extension, and $U if already installed.
11282  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11283  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11284  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11285  #    will be set to the directory where LIBOBJS objects are built.
11286  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11287  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11288done
11289LIBOBJS=$ac_libobjs
11290
11291LTLIBOBJS=$ac_ltlibobjs
11292
11293
11294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11295printf %s "checking that generated files are newer than configure... " >&6; }
11296   if test -n "$am_sleep_pid"; then
11297     # Hide warnings about reused PIDs.
11298     wait $am_sleep_pid 2>/dev/null
11299   fi
11300   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11301printf "%s\n" "done" >&6; }
11302 if test -n "$EXEEXT"; then
11303  am__EXEEXT_TRUE=
11304  am__EXEEXT_FALSE='#'
11305else
11306  am__EXEEXT_TRUE='#'
11307  am__EXEEXT_FALSE=
11308fi
11309
11310if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11311  as_fn_error $? "conditional \"AMDEP\" was never defined.
11312Usually this means the macro was only invoked conditionally." "$LINENO" 5
11313fi
11314if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11315  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11316Usually this means the macro was only invoked conditionally." "$LINENO" 5
11317fi
11318
11319: "${CONFIG_STATUS=./config.status}"
11320ac_write_fail=0
11321ac_clean_files_save=$ac_clean_files
11322ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11324printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11325as_write_fail=0
11326cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11327#! $SHELL
11328# Generated by $as_me.
11329# Run this file to recreate the current configuration.
11330# Compiler output produced by configure, useful for debugging
11331# configure, is in config.log if it exists.
11332
11333debug=false
11334ac_cs_recheck=false
11335ac_cs_silent=false
11336
11337SHELL=\${CONFIG_SHELL-$SHELL}
11338export SHELL
11339_ASEOF
11340cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11341## -------------------- ##
11342## M4sh Initialization. ##
11343## -------------------- ##
11344
11345# Be more Bourne compatible
11346DUALCASE=1; export DUALCASE # for MKS sh
11347as_nop=:
11348if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11349then :
11350  emulate sh
11351  NULLCMD=:
11352  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11353  # is contrary to our usage.  Disable this feature.
11354  alias -g '${1+"$@"}'='"$@"'
11355  setopt NO_GLOB_SUBST
11356else $as_nop
11357  case `(set -o) 2>/dev/null` in #(
11358  *posix*) :
11359    set -o posix ;; #(
11360  *) :
11361     ;;
11362esac
11363fi
11364
11365
11366
11367# Reset variables that may have inherited troublesome values from
11368# the environment.
11369
11370# IFS needs to be set, to space, tab, and newline, in precisely that order.
11371# (If _AS_PATH_WALK were called with IFS unset, it would have the
11372# side effect of setting IFS to empty, thus disabling word splitting.)
11373# Quoting is to prevent editors from complaining about space-tab.
11374as_nl='
11375'
11376export as_nl
11377IFS=" ""	$as_nl"
11378
11379PS1='$ '
11380PS2='> '
11381PS4='+ '
11382
11383# Ensure predictable behavior from utilities with locale-dependent output.
11384LC_ALL=C
11385export LC_ALL
11386LANGUAGE=C
11387export LANGUAGE
11388
11389# We cannot yet rely on "unset" to work, but we need these variables
11390# to be unset--not just set to an empty or harmless value--now, to
11391# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11392# also avoids known problems related to "unset" and subshell syntax
11393# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11394for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11395do eval test \${$as_var+y} \
11396  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11397done
11398
11399# Ensure that fds 0, 1, and 2 are open.
11400if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11401if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11402if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11403
11404# The user is always right.
11405if ${PATH_SEPARATOR+false} :; then
11406  PATH_SEPARATOR=:
11407  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11408    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11409      PATH_SEPARATOR=';'
11410  }
11411fi
11412
11413
11414# Find who we are.  Look in the path if we contain no directory separator.
11415as_myself=
11416case $0 in #((
11417  *[\\/]* ) as_myself=$0 ;;
11418  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11419for as_dir in $PATH
11420do
11421  IFS=$as_save_IFS
11422  case $as_dir in #(((
11423    '') as_dir=./ ;;
11424    */) ;;
11425    *) as_dir=$as_dir/ ;;
11426  esac
11427    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11428  done
11429IFS=$as_save_IFS
11430
11431     ;;
11432esac
11433# We did not find ourselves, most probably we were run as `sh COMMAND'
11434# in which case we are not to be found in the path.
11435if test "x$as_myself" = x; then
11436  as_myself=$0
11437fi
11438if test ! -f "$as_myself"; then
11439  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11440  exit 1
11441fi
11442
11443
11444
11445# as_fn_error STATUS ERROR [LINENO LOG_FD]
11446# ----------------------------------------
11447# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11448# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11449# script with STATUS, using 1 if that was 0.
11450as_fn_error ()
11451{
11452  as_status=$1; test $as_status -eq 0 && as_status=1
11453  if test "$4"; then
11454    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11455    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11456  fi
11457  printf "%s\n" "$as_me: error: $2" >&2
11458  as_fn_exit $as_status
11459} # as_fn_error
11460
11461
11462
11463# as_fn_set_status STATUS
11464# -----------------------
11465# Set $? to STATUS, without forking.
11466as_fn_set_status ()
11467{
11468  return $1
11469} # as_fn_set_status
11470
11471# as_fn_exit STATUS
11472# -----------------
11473# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11474as_fn_exit ()
11475{
11476  set +e
11477  as_fn_set_status $1
11478  exit $1
11479} # as_fn_exit
11480
11481# as_fn_unset VAR
11482# ---------------
11483# Portably unset VAR.
11484as_fn_unset ()
11485{
11486  { eval $1=; unset $1;}
11487}
11488as_unset=as_fn_unset
11489
11490# as_fn_append VAR VALUE
11491# ----------------------
11492# Append the text in VALUE to the end of the definition contained in VAR. Take
11493# advantage of any shell optimizations that allow amortized linear growth over
11494# repeated appends, instead of the typical quadratic growth present in naive
11495# implementations.
11496if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11497then :
11498  eval 'as_fn_append ()
11499  {
11500    eval $1+=\$2
11501  }'
11502else $as_nop
11503  as_fn_append ()
11504  {
11505    eval $1=\$$1\$2
11506  }
11507fi # as_fn_append
11508
11509# as_fn_arith ARG...
11510# ------------------
11511# Perform arithmetic evaluation on the ARGs, and store the result in the
11512# global $as_val. Take advantage of shells that can avoid forks. The arguments
11513# must be portable across $(()) and expr.
11514if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11515then :
11516  eval 'as_fn_arith ()
11517  {
11518    as_val=$(( $* ))
11519  }'
11520else $as_nop
11521  as_fn_arith ()
11522  {
11523    as_val=`expr "$@" || test $? -eq 1`
11524  }
11525fi # as_fn_arith
11526
11527
11528if expr a : '\(a\)' >/dev/null 2>&1 &&
11529   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11530  as_expr=expr
11531else
11532  as_expr=false
11533fi
11534
11535if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11536  as_basename=basename
11537else
11538  as_basename=false
11539fi
11540
11541if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11542  as_dirname=dirname
11543else
11544  as_dirname=false
11545fi
11546
11547as_me=`$as_basename -- "$0" ||
11548$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11549	 X"$0" : 'X\(//\)$' \| \
11550	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11551printf "%s\n" X/"$0" |
11552    sed '/^.*\/\([^/][^/]*\)\/*$/{
11553	    s//\1/
11554	    q
11555	  }
11556	  /^X\/\(\/\/\)$/{
11557	    s//\1/
11558	    q
11559	  }
11560	  /^X\/\(\/\).*/{
11561	    s//\1/
11562	    q
11563	  }
11564	  s/.*/./; q'`
11565
11566# Avoid depending upon Character Ranges.
11567as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11568as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11569as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11570as_cr_digits='0123456789'
11571as_cr_alnum=$as_cr_Letters$as_cr_digits
11572
11573
11574# Determine whether it's possible to make 'echo' print without a newline.
11575# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11576# for compatibility with existing Makefiles.
11577ECHO_C= ECHO_N= ECHO_T=
11578case `echo -n x` in #(((((
11579-n*)
11580  case `echo 'xy\c'` in
11581  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11582  xy)  ECHO_C='\c';;
11583  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11584       ECHO_T='	';;
11585  esac;;
11586*)
11587  ECHO_N='-n';;
11588esac
11589
11590# For backward compatibility with old third-party macros, we provide
11591# the shell variables $as_echo and $as_echo_n.  New code should use
11592# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11593as_echo='printf %s\n'
11594as_echo_n='printf %s'
11595
11596rm -f conf$$ conf$$.exe conf$$.file
11597if test -d conf$$.dir; then
11598  rm -f conf$$.dir/conf$$.file
11599else
11600  rm -f conf$$.dir
11601  mkdir conf$$.dir 2>/dev/null
11602fi
11603if (echo >conf$$.file) 2>/dev/null; then
11604  if ln -s conf$$.file conf$$ 2>/dev/null; then
11605    as_ln_s='ln -s'
11606    # ... but there are two gotchas:
11607    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11608    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11609    # In both cases, we have to default to `cp -pR'.
11610    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11611      as_ln_s='cp -pR'
11612  elif ln conf$$.file conf$$ 2>/dev/null; then
11613    as_ln_s=ln
11614  else
11615    as_ln_s='cp -pR'
11616  fi
11617else
11618  as_ln_s='cp -pR'
11619fi
11620rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11621rmdir conf$$.dir 2>/dev/null
11622
11623
11624# as_fn_mkdir_p
11625# -------------
11626# Create "$as_dir" as a directory, including parents if necessary.
11627as_fn_mkdir_p ()
11628{
11629
11630  case $as_dir in #(
11631  -*) as_dir=./$as_dir;;
11632  esac
11633  test -d "$as_dir" || eval $as_mkdir_p || {
11634    as_dirs=
11635    while :; do
11636      case $as_dir in #(
11637      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11638      *) as_qdir=$as_dir;;
11639      esac
11640      as_dirs="'$as_qdir' $as_dirs"
11641      as_dir=`$as_dirname -- "$as_dir" ||
11642$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11643	 X"$as_dir" : 'X\(//\)[^/]' \| \
11644	 X"$as_dir" : 'X\(//\)$' \| \
11645	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11646printf "%s\n" X"$as_dir" |
11647    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11648	    s//\1/
11649	    q
11650	  }
11651	  /^X\(\/\/\)[^/].*/{
11652	    s//\1/
11653	    q
11654	  }
11655	  /^X\(\/\/\)$/{
11656	    s//\1/
11657	    q
11658	  }
11659	  /^X\(\/\).*/{
11660	    s//\1/
11661	    q
11662	  }
11663	  s/.*/./; q'`
11664      test -d "$as_dir" && break
11665    done
11666    test -z "$as_dirs" || eval "mkdir $as_dirs"
11667  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11668
11669
11670} # as_fn_mkdir_p
11671if mkdir -p . 2>/dev/null; then
11672  as_mkdir_p='mkdir -p "$as_dir"'
11673else
11674  test -d ./-p && rmdir ./-p
11675  as_mkdir_p=false
11676fi
11677
11678
11679# as_fn_executable_p FILE
11680# -----------------------
11681# Test if FILE is an executable regular file.
11682as_fn_executable_p ()
11683{
11684  test -f "$1" && test -x "$1"
11685} # as_fn_executable_p
11686as_test_x='test -x'
11687as_executable_p=as_fn_executable_p
11688
11689# Sed expression to map a string onto a valid CPP name.
11690as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11691
11692# Sed expression to map a string onto a valid variable name.
11693as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11694
11695
11696exec 6>&1
11697## ----------------------------------- ##
11698## Main body of $CONFIG_STATUS script. ##
11699## ----------------------------------- ##
11700_ASEOF
11701test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11702
11703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11704# Save the log message, to keep $0 and so on meaningful, and to
11705# report actual input values of CONFIG_FILES etc. instead of their
11706# values after options handling.
11707ac_log="
11708This file was extended by xwud $as_me 1.0.6, which was
11709generated by GNU Autoconf 2.71.  Invocation command line was
11710
11711  CONFIG_FILES    = $CONFIG_FILES
11712  CONFIG_HEADERS  = $CONFIG_HEADERS
11713  CONFIG_LINKS    = $CONFIG_LINKS
11714  CONFIG_COMMANDS = $CONFIG_COMMANDS
11715  $ $0 $@
11716
11717on `(hostname || uname -n) 2>/dev/null | sed 1q`
11718"
11719
11720_ACEOF
11721
11722case $ac_config_files in *"
11723"*) set x $ac_config_files; shift; ac_config_files=$*;;
11724esac
11725
11726case $ac_config_headers in *"
11727"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11728esac
11729
11730
11731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11732# Files that config.status was made for.
11733config_files="$ac_config_files"
11734config_headers="$ac_config_headers"
11735config_commands="$ac_config_commands"
11736
11737_ACEOF
11738
11739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11740ac_cs_usage="\
11741\`$as_me' instantiates files and other configuration actions
11742from templates according to the current configuration.  Unless the files
11743and actions are specified as TAGs, all are instantiated by default.
11744
11745Usage: $0 [OPTION]... [TAG]...
11746
11747  -h, --help       print this help, then exit
11748  -V, --version    print version number and configuration settings, then exit
11749      --config     print configuration, then exit
11750  -q, --quiet, --silent
11751                   do not print progress messages
11752  -d, --debug      don't remove temporary files
11753      --recheck    update $as_me by reconfiguring in the same conditions
11754      --file=FILE[:TEMPLATE]
11755                   instantiate the configuration file FILE
11756      --header=FILE[:TEMPLATE]
11757                   instantiate the configuration header FILE
11758
11759Configuration files:
11760$config_files
11761
11762Configuration headers:
11763$config_headers
11764
11765Configuration commands:
11766$config_commands
11767
11768Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwud/issues>."
11769
11770_ACEOF
11771ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11772ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11774ac_cs_config='$ac_cs_config_escaped'
11775ac_cs_version="\\
11776xwud config.status 1.0.6
11777configured by $0, generated by GNU Autoconf 2.71,
11778  with options \\"\$ac_cs_config\\"
11779
11780Copyright (C) 2021 Free Software Foundation, Inc.
11781This config.status script is free software; the Free Software Foundation
11782gives unlimited permission to copy, distribute and modify it."
11783
11784ac_pwd='$ac_pwd'
11785srcdir='$srcdir'
11786INSTALL='$INSTALL'
11787MKDIR_P='$MKDIR_P'
11788AWK='$AWK'
11789test -n "\$AWK" || AWK=awk
11790_ACEOF
11791
11792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11793# The default lists apply if the user does not specify any file.
11794ac_need_defaults=:
11795while test $# != 0
11796do
11797  case $1 in
11798  --*=?*)
11799    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11800    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11801    ac_shift=:
11802    ;;
11803  --*=)
11804    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11805    ac_optarg=
11806    ac_shift=:
11807    ;;
11808  *)
11809    ac_option=$1
11810    ac_optarg=$2
11811    ac_shift=shift
11812    ;;
11813  esac
11814
11815  case $ac_option in
11816  # Handling of the options.
11817  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11818    ac_cs_recheck=: ;;
11819  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11820    printf "%s\n" "$ac_cs_version"; exit ;;
11821  --config | --confi | --conf | --con | --co | --c )
11822    printf "%s\n" "$ac_cs_config"; exit ;;
11823  --debug | --debu | --deb | --de | --d | -d )
11824    debug=: ;;
11825  --file | --fil | --fi | --f )
11826    $ac_shift
11827    case $ac_optarg in
11828    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11829    '') as_fn_error $? "missing file argument" ;;
11830    esac
11831    as_fn_append CONFIG_FILES " '$ac_optarg'"
11832    ac_need_defaults=false;;
11833  --header | --heade | --head | --hea )
11834    $ac_shift
11835    case $ac_optarg in
11836    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11837    esac
11838    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11839    ac_need_defaults=false;;
11840  --he | --h)
11841    # Conflict between --help and --header
11842    as_fn_error $? "ambiguous option: \`$1'
11843Try \`$0 --help' for more information.";;
11844  --help | --hel | -h )
11845    printf "%s\n" "$ac_cs_usage"; exit ;;
11846  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11847  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11848    ac_cs_silent=: ;;
11849
11850  # This is an error.
11851  -*) as_fn_error $? "unrecognized option: \`$1'
11852Try \`$0 --help' for more information." ;;
11853
11854  *) as_fn_append ac_config_targets " $1"
11855     ac_need_defaults=false ;;
11856
11857  esac
11858  shift
11859done
11860
11861ac_configure_extra_args=
11862
11863if $ac_cs_silent; then
11864  exec 6>/dev/null
11865  ac_configure_extra_args="$ac_configure_extra_args --silent"
11866fi
11867
11868_ACEOF
11869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11870if \$ac_cs_recheck; then
11871  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11872  shift
11873  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11874  CONFIG_SHELL='$SHELL'
11875  export CONFIG_SHELL
11876  exec "\$@"
11877fi
11878
11879_ACEOF
11880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11881exec 5>>config.log
11882{
11883  echo
11884  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11885## Running $as_me. ##
11886_ASBOX
11887  printf "%s\n" "$ac_log"
11888} >&5
11889
11890_ACEOF
11891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11892#
11893# INIT-COMMANDS
11894#
11895AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11896
11897_ACEOF
11898
11899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11900
11901# Handling of arguments.
11902for ac_config_target in $ac_config_targets
11903do
11904  case $ac_config_target in
11905    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11906    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11907    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11908    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11909
11910  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11911  esac
11912done
11913
11914
11915# If the user did not use the arguments to specify the items to instantiate,
11916# then the envvar interface is used.  Set only those that are not.
11917# We use the long form for the default assignment because of an extremely
11918# bizarre bug on SunOS 4.1.3.
11919if $ac_need_defaults; then
11920  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11921  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11922  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11923fi
11924
11925# Have a temporary directory for convenience.  Make it in the build tree
11926# simply because there is no reason against having it here, and in addition,
11927# creating and moving files from /tmp can sometimes cause problems.
11928# Hook for its removal unless debugging.
11929# Note that there is a small window in which the directory will not be cleaned:
11930# after its creation but before its name has been assigned to `$tmp'.
11931$debug ||
11932{
11933  tmp= ac_tmp=
11934  trap 'exit_status=$?
11935  : "${ac_tmp:=$tmp}"
11936  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11937' 0
11938  trap 'as_fn_exit 1' 1 2 13 15
11939}
11940# Create a (secure) tmp directory for tmp files.
11941
11942{
11943  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11944  test -d "$tmp"
11945}  ||
11946{
11947  tmp=./conf$$-$RANDOM
11948  (umask 077 && mkdir "$tmp")
11949} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11950ac_tmp=$tmp
11951
11952# Set up the scripts for CONFIG_FILES section.
11953# No need to generate them if there are no CONFIG_FILES.
11954# This happens for instance with `./config.status config.h'.
11955if test -n "$CONFIG_FILES"; then
11956
11957
11958ac_cr=`echo X | tr X '\015'`
11959# On cygwin, bash can eat \r inside `` if the user requested igncr.
11960# But we know of no other shell where ac_cr would be empty at this
11961# point, so we can use a bashism as a fallback.
11962if test "x$ac_cr" = x; then
11963  eval ac_cr=\$\'\\r\'
11964fi
11965ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11966if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11967  ac_cs_awk_cr='\\r'
11968else
11969  ac_cs_awk_cr=$ac_cr
11970fi
11971
11972echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11973_ACEOF
11974
11975
11976{
11977  echo "cat >conf$$subs.awk <<_ACEOF" &&
11978  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11979  echo "_ACEOF"
11980} >conf$$subs.sh ||
11981  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11982ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11983ac_delim='%!_!# '
11984for ac_last_try in false false false false false :; do
11985  . ./conf$$subs.sh ||
11986    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11987
11988  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11989  if test $ac_delim_n = $ac_delim_num; then
11990    break
11991  elif $ac_last_try; then
11992    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11993  else
11994    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11995  fi
11996done
11997rm -f conf$$subs.sh
11998
11999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12000cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12001_ACEOF
12002sed -n '
12003h
12004s/^/S["/; s/!.*/"]=/
12005p
12006g
12007s/^[^!]*!//
12008:repl
12009t repl
12010s/'"$ac_delim"'$//
12011t delim
12012:nl
12013h
12014s/\(.\{148\}\)..*/\1/
12015t more1
12016s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12017p
12018n
12019b repl
12020:more1
12021s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12022p
12023g
12024s/.\{148\}//
12025t nl
12026:delim
12027h
12028s/\(.\{148\}\)..*/\1/
12029t more2
12030s/["\\]/\\&/g; s/^/"/; s/$/"/
12031p
12032b
12033:more2
12034s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12035p
12036g
12037s/.\{148\}//
12038t delim
12039' <conf$$subs.awk | sed '
12040/^[^""]/{
12041  N
12042  s/\n//
12043}
12044' >>$CONFIG_STATUS || ac_write_fail=1
12045rm -f conf$$subs.awk
12046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12047_ACAWK
12048cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12049  for (key in S) S_is_set[key] = 1
12050  FS = ""
12051
12052}
12053{
12054  line = $ 0
12055  nfields = split(line, field, "@")
12056  substed = 0
12057  len = length(field[1])
12058  for (i = 2; i < nfields; i++) {
12059    key = field[i]
12060    keylen = length(key)
12061    if (S_is_set[key]) {
12062      value = S[key]
12063      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12064      len += length(value) + length(field[++i])
12065      substed = 1
12066    } else
12067      len += 1 + keylen
12068  }
12069
12070  print line
12071}
12072
12073_ACAWK
12074_ACEOF
12075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12076if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12077  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12078else
12079  cat
12080fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12081  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12082_ACEOF
12083
12084# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12085# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12086# trailing colons and then remove the whole line if VPATH becomes empty
12087# (actually we leave an empty line to preserve line numbers).
12088if test "x$srcdir" = x.; then
12089  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12090h
12091s///
12092s/^/:/
12093s/[	 ]*$/:/
12094s/:\$(srcdir):/:/g
12095s/:\${srcdir}:/:/g
12096s/:@srcdir@:/:/g
12097s/^:*//
12098s/:*$//
12099x
12100s/\(=[	 ]*\).*/\1/
12101G
12102s/\n//
12103s/^[^=]*=[	 ]*$//
12104}'
12105fi
12106
12107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12108fi # test -n "$CONFIG_FILES"
12109
12110# Set up the scripts for CONFIG_HEADERS section.
12111# No need to generate them if there are no CONFIG_HEADERS.
12112# This happens for instance with `./config.status Makefile'.
12113if test -n "$CONFIG_HEADERS"; then
12114cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12115BEGIN {
12116_ACEOF
12117
12118# Transform confdefs.h into an awk script `defines.awk', embedded as
12119# here-document in config.status, that substitutes the proper values into
12120# config.h.in to produce config.h.
12121
12122# Create a delimiter string that does not exist in confdefs.h, to ease
12123# handling of long lines.
12124ac_delim='%!_!# '
12125for ac_last_try in false false :; do
12126  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12127  if test -z "$ac_tt"; then
12128    break
12129  elif $ac_last_try; then
12130    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12131  else
12132    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12133  fi
12134done
12135
12136# For the awk script, D is an array of macro values keyed by name,
12137# likewise P contains macro parameters if any.  Preserve backslash
12138# newline sequences.
12139
12140ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12141sed -n '
12142s/.\{148\}/&'"$ac_delim"'/g
12143t rset
12144:rset
12145s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12146t def
12147d
12148:def
12149s/\\$//
12150t bsnl
12151s/["\\]/\\&/g
12152s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12153D["\1"]=" \3"/p
12154s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12155d
12156:bsnl
12157s/["\\]/\\&/g
12158s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12159D["\1"]=" \3\\\\\\n"\\/p
12160t cont
12161s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12162t cont
12163d
12164:cont
12165n
12166s/.\{148\}/&'"$ac_delim"'/g
12167t clear
12168:clear
12169s/\\$//
12170t bsnlc
12171s/["\\]/\\&/g; s/^/"/; s/$/"/p
12172d
12173:bsnlc
12174s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12175b cont
12176' <confdefs.h | sed '
12177s/'"$ac_delim"'/"\\\
12178"/g' >>$CONFIG_STATUS || ac_write_fail=1
12179
12180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12181  for (key in D) D_is_set[key] = 1
12182  FS = ""
12183}
12184/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12185  line = \$ 0
12186  split(line, arg, " ")
12187  if (arg[1] == "#") {
12188    defundef = arg[2]
12189    mac1 = arg[3]
12190  } else {
12191    defundef = substr(arg[1], 2)
12192    mac1 = arg[2]
12193  }
12194  split(mac1, mac2, "(") #)
12195  macro = mac2[1]
12196  prefix = substr(line, 1, index(line, defundef) - 1)
12197  if (D_is_set[macro]) {
12198    # Preserve the white space surrounding the "#".
12199    print prefix "define", macro P[macro] D[macro]
12200    next
12201  } else {
12202    # Replace #undef with comments.  This is necessary, for example,
12203    # in the case of _POSIX_SOURCE, which is predefined and required
12204    # on some systems where configure will not decide to define it.
12205    if (defundef == "undef") {
12206      print "/*", prefix defundef, macro, "*/"
12207      next
12208    }
12209  }
12210}
12211{ print }
12212_ACAWK
12213_ACEOF
12214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12215  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12216fi # test -n "$CONFIG_HEADERS"
12217
12218
12219eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12220shift
12221for ac_tag
12222do
12223  case $ac_tag in
12224  :[FHLC]) ac_mode=$ac_tag; continue;;
12225  esac
12226  case $ac_mode$ac_tag in
12227  :[FHL]*:*);;
12228  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12229  :[FH]-) ac_tag=-:-;;
12230  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12231  esac
12232  ac_save_IFS=$IFS
12233  IFS=:
12234  set x $ac_tag
12235  IFS=$ac_save_IFS
12236  shift
12237  ac_file=$1
12238  shift
12239
12240  case $ac_mode in
12241  :L) ac_source=$1;;
12242  :[FH])
12243    ac_file_inputs=
12244    for ac_f
12245    do
12246      case $ac_f in
12247      -) ac_f="$ac_tmp/stdin";;
12248      *) # Look for the file first in the build tree, then in the source tree
12249	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12250	 # because $ac_f cannot contain `:'.
12251	 test -f "$ac_f" ||
12252	   case $ac_f in
12253	   [\\/$]*) false;;
12254	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12255	   esac ||
12256	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12257      esac
12258      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12259      as_fn_append ac_file_inputs " '$ac_f'"
12260    done
12261
12262    # Let's still pretend it is `configure' which instantiates (i.e., don't
12263    # use $as_me), people would be surprised to read:
12264    #    /* config.h.  Generated by config.status.  */
12265    configure_input='Generated from '`
12266	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12267	`' by configure.'
12268    if test x"$ac_file" != x-; then
12269      configure_input="$ac_file.  $configure_input"
12270      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12271printf "%s\n" "$as_me: creating $ac_file" >&6;}
12272    fi
12273    # Neutralize special characters interpreted by sed in replacement strings.
12274    case $configure_input in #(
12275    *\&* | *\|* | *\\* )
12276       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12277       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12278    *) ac_sed_conf_input=$configure_input;;
12279    esac
12280
12281    case $ac_tag in
12282    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12283      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12284    esac
12285    ;;
12286  esac
12287
12288  ac_dir=`$as_dirname -- "$ac_file" ||
12289$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12290	 X"$ac_file" : 'X\(//\)[^/]' \| \
12291	 X"$ac_file" : 'X\(//\)$' \| \
12292	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12293printf "%s\n" X"$ac_file" |
12294    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12295	    s//\1/
12296	    q
12297	  }
12298	  /^X\(\/\/\)[^/].*/{
12299	    s//\1/
12300	    q
12301	  }
12302	  /^X\(\/\/\)$/{
12303	    s//\1/
12304	    q
12305	  }
12306	  /^X\(\/\).*/{
12307	    s//\1/
12308	    q
12309	  }
12310	  s/.*/./; q'`
12311  as_dir="$ac_dir"; as_fn_mkdir_p
12312  ac_builddir=.
12313
12314case "$ac_dir" in
12315.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12316*)
12317  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12318  # A ".." for each directory in $ac_dir_suffix.
12319  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12320  case $ac_top_builddir_sub in
12321  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12322  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12323  esac ;;
12324esac
12325ac_abs_top_builddir=$ac_pwd
12326ac_abs_builddir=$ac_pwd$ac_dir_suffix
12327# for backward compatibility:
12328ac_top_builddir=$ac_top_build_prefix
12329
12330case $srcdir in
12331  .)  # We are building in place.
12332    ac_srcdir=.
12333    ac_top_srcdir=$ac_top_builddir_sub
12334    ac_abs_top_srcdir=$ac_pwd ;;
12335  [\\/]* | ?:[\\/]* )  # Absolute name.
12336    ac_srcdir=$srcdir$ac_dir_suffix;
12337    ac_top_srcdir=$srcdir
12338    ac_abs_top_srcdir=$srcdir ;;
12339  *) # Relative name.
12340    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12341    ac_top_srcdir=$ac_top_build_prefix$srcdir
12342    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12343esac
12344ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12345
12346
12347  case $ac_mode in
12348  :F)
12349  #
12350  # CONFIG_FILE
12351  #
12352
12353  case $INSTALL in
12354  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12355  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12356  esac
12357  ac_MKDIR_P=$MKDIR_P
12358  case $MKDIR_P in
12359  [\\/$]* | ?:[\\/]* ) ;;
12360  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12361  esac
12362_ACEOF
12363
12364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12365# If the template does not know about datarootdir, expand it.
12366# FIXME: This hack should be removed a few years after 2.60.
12367ac_datarootdir_hack=; ac_datarootdir_seen=
12368ac_sed_dataroot='
12369/datarootdir/ {
12370  p
12371  q
12372}
12373/@datadir@/p
12374/@docdir@/p
12375/@infodir@/p
12376/@localedir@/p
12377/@mandir@/p'
12378case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12379*datarootdir*) ac_datarootdir_seen=yes;;
12380*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12382printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12383_ACEOF
12384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12385  ac_datarootdir_hack='
12386  s&@datadir@&$datadir&g
12387  s&@docdir@&$docdir&g
12388  s&@infodir@&$infodir&g
12389  s&@localedir@&$localedir&g
12390  s&@mandir@&$mandir&g
12391  s&\\\${datarootdir}&$datarootdir&g' ;;
12392esac
12393_ACEOF
12394
12395# Neutralize VPATH when `$srcdir' = `.'.
12396# Shell code in configure.ac might set extrasub.
12397# FIXME: do we really want to maintain this feature?
12398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12399ac_sed_extra="$ac_vpsub
12400$extrasub
12401_ACEOF
12402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12403:t
12404/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12405s|@configure_input@|$ac_sed_conf_input|;t t
12406s&@top_builddir@&$ac_top_builddir_sub&;t t
12407s&@top_build_prefix@&$ac_top_build_prefix&;t t
12408s&@srcdir@&$ac_srcdir&;t t
12409s&@abs_srcdir@&$ac_abs_srcdir&;t t
12410s&@top_srcdir@&$ac_top_srcdir&;t t
12411s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12412s&@builddir@&$ac_builddir&;t t
12413s&@abs_builddir@&$ac_abs_builddir&;t t
12414s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12415s&@INSTALL@&$ac_INSTALL&;t t
12416s&@MKDIR_P@&$ac_MKDIR_P&;t t
12417$ac_datarootdir_hack
12418"
12419eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12420  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12421
12422test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12423  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12424  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12425      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12427which seems to be undefined.  Please make sure it is defined" >&5
12428printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12429which seems to be undefined.  Please make sure it is defined" >&2;}
12430
12431  rm -f "$ac_tmp/stdin"
12432  case $ac_file in
12433  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12434  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12435  esac \
12436  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12437 ;;
12438  :H)
12439  #
12440  # CONFIG_HEADER
12441  #
12442  if test x"$ac_file" != x-; then
12443    {
12444      printf "%s\n" "/* $configure_input  */" >&1 \
12445      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12446    } >"$ac_tmp/config.h" \
12447      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12448    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12449      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12450printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12451    else
12452      rm -f "$ac_file"
12453      mv "$ac_tmp/config.h" "$ac_file" \
12454	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12455    fi
12456  else
12457    printf "%s\n" "/* $configure_input  */" >&1 \
12458      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12459      || as_fn_error $? "could not create -" "$LINENO" 5
12460  fi
12461# Compute "$ac_file"'s index in $config_headers.
12462_am_arg="$ac_file"
12463_am_stamp_count=1
12464for _am_header in $config_headers :; do
12465  case $_am_header in
12466    $_am_arg | $_am_arg:* )
12467      break ;;
12468    * )
12469      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12470  esac
12471done
12472echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12473$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12474	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12475	 X"$_am_arg" : 'X\(//\)$' \| \
12476	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12477printf "%s\n" X"$_am_arg" |
12478    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12479	    s//\1/
12480	    q
12481	  }
12482	  /^X\(\/\/\)[^/].*/{
12483	    s//\1/
12484	    q
12485	  }
12486	  /^X\(\/\/\)$/{
12487	    s//\1/
12488	    q
12489	  }
12490	  /^X\(\/\).*/{
12491	    s//\1/
12492	    q
12493	  }
12494	  s/.*/./; q'`/stamp-h$_am_stamp_count
12495 ;;
12496
12497  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12498printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12499 ;;
12500  esac
12501
12502
12503  case $ac_file$ac_mode in
12504    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12505  # Older Autoconf quotes --file arguments for eval, but not when files
12506  # are listed without --file.  Let's play safe and only enable the eval
12507  # if we detect the quoting.
12508  # TODO: see whether this extra hack can be removed once we start
12509  # requiring Autoconf 2.70 or later.
12510  case $CONFIG_FILES in #(
12511  *\'*) :
12512    eval set x "$CONFIG_FILES" ;; #(
12513  *) :
12514    set x $CONFIG_FILES ;; #(
12515  *) :
12516     ;;
12517esac
12518  shift
12519  # Used to flag and report bootstrapping failures.
12520  am_rc=0
12521  for am_mf
12522  do
12523    # Strip MF so we end up with the name of the file.
12524    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12525    # Check whether this is an Automake generated Makefile which includes
12526    # dependency-tracking related rules and includes.
12527    # Grep'ing the whole file directly is not great: AIX grep has a line
12528    # limit of 2048, but all sed's we know have understand at least 4000.
12529    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12530      || continue
12531    am_dirpart=`$as_dirname -- "$am_mf" ||
12532$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12533	 X"$am_mf" : 'X\(//\)[^/]' \| \
12534	 X"$am_mf" : 'X\(//\)$' \| \
12535	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12536printf "%s\n" X"$am_mf" |
12537    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12538	    s//\1/
12539	    q
12540	  }
12541	  /^X\(\/\/\)[^/].*/{
12542	    s//\1/
12543	    q
12544	  }
12545	  /^X\(\/\/\)$/{
12546	    s//\1/
12547	    q
12548	  }
12549	  /^X\(\/\).*/{
12550	    s//\1/
12551	    q
12552	  }
12553	  s/.*/./; q'`
12554    am_filepart=`$as_basename -- "$am_mf" ||
12555$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12556	 X"$am_mf" : 'X\(//\)$' \| \
12557	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12558printf "%s\n" X/"$am_mf" |
12559    sed '/^.*\/\([^/][^/]*\)\/*$/{
12560	    s//\1/
12561	    q
12562	  }
12563	  /^X\/\(\/\/\)$/{
12564	    s//\1/
12565	    q
12566	  }
12567	  /^X\/\(\/\).*/{
12568	    s//\1/
12569	    q
12570	  }
12571	  s/.*/./; q'`
12572    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12573      && sed -e '/# am--include-marker/d' "$am_filepart" \
12574        | $MAKE -f - am--depfiles" >&5
12575   (cd "$am_dirpart" \
12576      && sed -e '/# am--include-marker/d' "$am_filepart" \
12577        | $MAKE -f - am--depfiles) >&5 2>&5
12578   ac_status=$?
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); } || am_rc=$?
12581  done
12582  if test $am_rc -ne 0; then
12583    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12584printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12585as_fn_error $? "Something went wrong bootstrapping makefile fragments
12586    for automatic dependency tracking.  If GNU make was not used, consider
12587    re-running the configure script with MAKE=\"gmake\" (or whatever is
12588    necessary).  You can also try re-running configure with the
12589    '--disable-dependency-tracking' option to at least be able to build
12590    the package (albeit without support for automatic dependency tracking).
12591See \`config.log' for more details" "$LINENO" 5; }
12592  fi
12593  { am_dirpart=; unset am_dirpart;}
12594  { am_filepart=; unset am_filepart;}
12595  { am_mf=; unset am_mf;}
12596  { am_rc=; unset am_rc;}
12597  rm -f conftest-deps.mk
12598}
12599 ;;
12600
12601  esac
12602done # for ac_tag
12603
12604
12605as_fn_exit 0
12606_ACEOF
12607ac_clean_files=$ac_clean_files_save
12608
12609test $ac_write_fail = 0 ||
12610  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12611
12612
12613# configure is writing to config.log, and then calls config.status.
12614# config.status does its own redirection, appending to config.log.
12615# Unfortunately, on DOS this fails, as config.log is still kept open
12616# by configure, so config.status won't be able to write to it; its
12617# output is simply discarded.  So we exec the FD to /dev/null,
12618# effectively closing config.log, so it can be properly (re)opened and
12619# appended to by config.status.  When coming back to configure, we
12620# need to make the FD available again.
12621if test "$no_create" != yes; then
12622  ac_cs_success=:
12623  ac_config_status_args=
12624  test "$silent" = yes &&
12625    ac_config_status_args="$ac_config_status_args --quiet"
12626  exec 5>/dev/null
12627  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12628  exec 5>>config.log
12629  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12630  # would make configure fail if this is the last instruction.
12631  $ac_cs_success || as_fn_exit 1
12632fi
12633if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12635printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12636fi
12637
12638
12639