1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xwininfo 1.1.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwininfo/-/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/xwininfo/-/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='xwininfo'
614PACKAGE_TARNAME='xwininfo'
615PACKAGE_VERSION='1.1.6'
616PACKAGE_STRING='xwininfo 1.1.6'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xwininfo/-/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
656XLIB_LIBS
657XLIB_CFLAGS
658XWININFO_LIBS
659XWININFO_CFLAGS
660LIBOBJS
661MAN_SUBSTS
662XORG_MAN_PAGE
663ADMIN_MAN_DIR
664DRIVER_MAN_DIR
665MISC_MAN_DIR
666FILE_MAN_DIR
667LIB_MAN_DIR
668APP_MAN_DIR
669ADMIN_MAN_SUFFIX
670DRIVER_MAN_SUFFIX
671MISC_MAN_SUFFIX
672FILE_MAN_SUFFIX
673LIB_MAN_SUFFIX
674APP_MAN_SUFFIX
675SED
676INSTALL_CMD
677PKG_CONFIG_LIBDIR
678PKG_CONFIG_PATH
679PKG_CONFIG
680CHANGELOG_CMD
681STRICT_CFLAGS
682CWARNFLAGS
683BASE_CFLAGS
684LTLIBICONV
685LIBICONV
686EGREP
687GREP
688CPP
689host_os
690host_vendor
691host_cpu
692host
693build_os
694build_vendor
695build_cpu
696build
697AM_BACKSLASH
698AM_DEFAULT_VERBOSITY
699AM_DEFAULT_V
700AM_V
701CSCOPE
702ETAGS
703CTAGS
704am__fastdepCC_FALSE
705am__fastdepCC_TRUE
706CCDEPMODE
707am__nodep
708AMDEPBACKSLASH
709AMDEP_FALSE
710AMDEP_TRUE
711am__include
712DEPDIR
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
736OBJEXT
737EXEEXT
738ac_ct_CC
739CPPFLAGS
740LDFLAGS
741CFLAGS
742CC
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762runstatedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
774PACKAGE_URL
775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL
782am__quote'
783ac_subst_files=''
784ac_user_opts='
785enable_option_checking
786enable_dependency_tracking
787enable_silent_rules
788with_gnu_ld
789enable_rpath
790with_libiconv_prefix
791enable_selective_werror
792enable_strict_compilation
793with_xcb_icccm
794with_xcb_errors
795'
796      ac_precious_vars='build_alias
797host_alias
798target_alias
799CC
800CFLAGS
801LDFLAGS
802LIBS
803CPPFLAGS
804CPP
805PKG_CONFIG
806PKG_CONFIG_PATH
807PKG_CONFIG_LIBDIR
808XWININFO_CFLAGS
809XWININFO_LIBS
810XLIB_CFLAGS
811XLIB_LIBS'
812
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817ac_unrecognized_opts=
818ac_unrecognized_sep=
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850runstatedir='${localstatedir}/run'
851includedir='${prefix}/include'
852oldincludedir='/usr/include'
853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
862
863ac_prev=
864ac_dashdash=
865for ac_option
866do
867  # If the previous option needs an argument, assign it.
868  if test -n "$ac_prev"; then
869    eval $ac_prev=\$ac_option
870    ac_prev=
871    continue
872  fi
873
874  case $ac_option in
875  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876  *=)   ac_optarg= ;;
877  *)    ac_optarg=yes ;;
878  esac
879
880  case $ac_dashdash$ac_option in
881  --)
882    ac_dashdash=yes ;;
883
884  -bindir | --bindir | --bindi | --bind | --bin | --bi)
885    ac_prev=bindir ;;
886  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887    bindir=$ac_optarg ;;
888
889  -build | --build | --buil | --bui | --bu)
890    ac_prev=build_alias ;;
891  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892    build_alias=$ac_optarg ;;
893
894  -cache-file | --cache-file | --cache-fil | --cache-fi \
895  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896    ac_prev=cache_file ;;
897  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899    cache_file=$ac_optarg ;;
900
901  --config-cache | -C)
902    cache_file=config.cache ;;
903
904  -datadir | --datadir | --datadi | --datad)
905    ac_prev=datadir ;;
906  -datadir=* | --datadir=* | --datadi=* | --datad=*)
907    datadir=$ac_optarg ;;
908
909  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910  | --dataroo | --dataro | --datar)
911    ac_prev=datarootdir ;;
912  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914    datarootdir=$ac_optarg ;;
915
916  -disable-* | --disable-*)
917    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918    # Reject names that are not valid shell variable names.
919    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920      as_fn_error $? "invalid feature name: \`$ac_useropt'"
921    ac_useropt_orig=$ac_useropt
922    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
923    case $ac_user_opts in
924      *"
925"enable_$ac_useropt"
926"*) ;;
927      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928	 ac_unrecognized_sep=', ';;
929    esac
930    eval enable_$ac_useropt=no ;;
931
932  -docdir | --docdir | --docdi | --doc | --do)
933    ac_prev=docdir ;;
934  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935    docdir=$ac_optarg ;;
936
937  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938    ac_prev=dvidir ;;
939  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940    dvidir=$ac_optarg ;;
941
942  -enable-* | --enable-*)
943    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944    # Reject names that are not valid shell variable names.
945    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946      as_fn_error $? "invalid feature name: \`$ac_useropt'"
947    ac_useropt_orig=$ac_useropt
948    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
949    case $ac_user_opts in
950      *"
951"enable_$ac_useropt"
952"*) ;;
953      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954	 ac_unrecognized_sep=', ';;
955    esac
956    eval enable_$ac_useropt=\$ac_optarg ;;
957
958  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960  | --exec | --exe | --ex)
961    ac_prev=exec_prefix ;;
962  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964  | --exec=* | --exe=* | --ex=*)
965    exec_prefix=$ac_optarg ;;
966
967  -gas | --gas | --ga | --g)
968    # Obsolete; use --with-gas.
969    with_gas=yes ;;
970
971  -help | --help | --hel | --he | -h)
972    ac_init_help=long ;;
973  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974    ac_init_help=recursive ;;
975  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976    ac_init_help=short ;;
977
978  -host | --host | --hos | --ho)
979    ac_prev=host_alias ;;
980  -host=* | --host=* | --hos=* | --ho=*)
981    host_alias=$ac_optarg ;;
982
983  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984    ac_prev=htmldir ;;
985  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986  | --ht=*)
987    htmldir=$ac_optarg ;;
988
989  -includedir | --includedir | --includedi | --included | --include \
990  | --includ | --inclu | --incl | --inc)
991    ac_prev=includedir ;;
992  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993  | --includ=* | --inclu=* | --incl=* | --inc=*)
994    includedir=$ac_optarg ;;
995
996  -infodir | --infodir | --infodi | --infod | --info | --inf)
997    ac_prev=infodir ;;
998  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999    infodir=$ac_optarg ;;
1000
1001  -libdir | --libdir | --libdi | --libd)
1002    ac_prev=libdir ;;
1003  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004    libdir=$ac_optarg ;;
1005
1006  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007  | --libexe | --libex | --libe)
1008    ac_prev=libexecdir ;;
1009  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010  | --libexe=* | --libex=* | --libe=*)
1011    libexecdir=$ac_optarg ;;
1012
1013  -localedir | --localedir | --localedi | --localed | --locale)
1014    ac_prev=localedir ;;
1015  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016    localedir=$ac_optarg ;;
1017
1018  -localstatedir | --localstatedir | --localstatedi | --localstated \
1019  | --localstate | --localstat | --localsta | --localst | --locals)
1020    ac_prev=localstatedir ;;
1021  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023    localstatedir=$ac_optarg ;;
1024
1025  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026    ac_prev=mandir ;;
1027  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028    mandir=$ac_optarg ;;
1029
1030  -nfp | --nfp | --nf)
1031    # Obsolete; use --without-fp.
1032    with_fp=no ;;
1033
1034  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035  | --no-cr | --no-c | -n)
1036    no_create=yes ;;
1037
1038  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040    no_recursion=yes ;;
1041
1042  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044  | --oldin | --oldi | --old | --ol | --o)
1045    ac_prev=oldincludedir ;;
1046  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049    oldincludedir=$ac_optarg ;;
1050
1051  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052    ac_prev=prefix ;;
1053  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054    prefix=$ac_optarg ;;
1055
1056  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057  | --program-pre | --program-pr | --program-p)
1058    ac_prev=program_prefix ;;
1059  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061    program_prefix=$ac_optarg ;;
1062
1063  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064  | --program-suf | --program-su | --program-s)
1065    ac_prev=program_suffix ;;
1066  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068    program_suffix=$ac_optarg ;;
1069
1070  -program-transform-name | --program-transform-name \
1071  | --program-transform-nam | --program-transform-na \
1072  | --program-transform-n | --program-transform- \
1073  | --program-transform | --program-transfor \
1074  | --program-transfo | --program-transf \
1075  | --program-trans | --program-tran \
1076  | --progr-tra | --program-tr | --program-t)
1077    ac_prev=program_transform_name ;;
1078  -program-transform-name=* | --program-transform-name=* \
1079  | --program-transform-nam=* | --program-transform-na=* \
1080  | --program-transform-n=* | --program-transform-=* \
1081  | --program-transform=* | --program-transfor=* \
1082  | --program-transfo=* | --program-transf=* \
1083  | --program-trans=* | --program-tran=* \
1084  | --progr-tra=* | --program-tr=* | --program-t=*)
1085    program_transform_name=$ac_optarg ;;
1086
1087  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088    ac_prev=pdfdir ;;
1089  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090    pdfdir=$ac_optarg ;;
1091
1092  -psdir | --psdir | --psdi | --psd | --ps)
1093    ac_prev=psdir ;;
1094  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095    psdir=$ac_optarg ;;
1096
1097  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098  | -silent | --silent | --silen | --sile | --sil)
1099    silent=yes ;;
1100
1101  -runstatedir | --runstatedir | --runstatedi | --runstated \
1102  | --runstate | --runstat | --runsta | --runst | --runs \
1103  | --run | --ru | --r)
1104    ac_prev=runstatedir ;;
1105  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1106  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1107  | --run=* | --ru=* | --r=*)
1108    runstatedir=$ac_optarg ;;
1109
1110  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111    ac_prev=sbindir ;;
1112  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113  | --sbi=* | --sb=*)
1114    sbindir=$ac_optarg ;;
1115
1116  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118  | --sharedst | --shareds | --shared | --share | --shar \
1119  | --sha | --sh)
1120    ac_prev=sharedstatedir ;;
1121  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124  | --sha=* | --sh=*)
1125    sharedstatedir=$ac_optarg ;;
1126
1127  -site | --site | --sit)
1128    ac_prev=site ;;
1129  -site=* | --site=* | --sit=*)
1130    site=$ac_optarg ;;
1131
1132  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133    ac_prev=srcdir ;;
1134  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135    srcdir=$ac_optarg ;;
1136
1137  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138  | --syscon | --sysco | --sysc | --sys | --sy)
1139    ac_prev=sysconfdir ;;
1140  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142    sysconfdir=$ac_optarg ;;
1143
1144  -target | --target | --targe | --targ | --tar | --ta | --t)
1145    ac_prev=target_alias ;;
1146  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147    target_alias=$ac_optarg ;;
1148
1149  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150    verbose=yes ;;
1151
1152  -version | --version | --versio | --versi | --vers | -V)
1153    ac_init_version=: ;;
1154
1155  -with-* | --with-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid package name: \`$ac_useropt'"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"with_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval with_$ac_useropt=\$ac_optarg ;;
1170
1171  -without-* | --without-*)
1172    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173    # Reject names that are not valid shell variable names.
1174    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175      as_fn_error $? "invalid package name: \`$ac_useropt'"
1176    ac_useropt_orig=$ac_useropt
1177    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1178    case $ac_user_opts in
1179      *"
1180"with_$ac_useropt"
1181"*) ;;
1182      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183	 ac_unrecognized_sep=', ';;
1184    esac
1185    eval with_$ac_useropt=no ;;
1186
1187  --x)
1188    # Obsolete; use --with-x.
1189    with_x=yes ;;
1190
1191  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192  | --x-incl | --x-inc | --x-in | --x-i)
1193    ac_prev=x_includes ;;
1194  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196    x_includes=$ac_optarg ;;
1197
1198  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200    ac_prev=x_libraries ;;
1201  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203    x_libraries=$ac_optarg ;;
1204
1205  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206Try \`$0 --help' for more information"
1207    ;;
1208
1209  *=*)
1210    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211    # Reject names that are not valid shell variable names.
1212    case $ac_envvar in #(
1213      '' | [0-9]* | *[!_$as_cr_alnum]* )
1214      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215    esac
1216    eval $ac_envvar=\$ac_optarg
1217    export $ac_envvar ;;
1218
1219  *)
1220    # FIXME: should be removed in autoconf 3.0.
1221    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1222    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1224    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225    ;;
1226
1227  esac
1228done
1229
1230if test -n "$ac_prev"; then
1231  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232  as_fn_error $? "missing argument to $ac_option"
1233fi
1234
1235if test -n "$ac_unrecognized_opts"; then
1236  case $enable_option_checking in
1237    no) ;;
1238    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240  esac
1241fi
1242
1243# Check all directory arguments for consistency.
1244for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245		datadir sysconfdir sharedstatedir localstatedir includedir \
1246		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247		libdir localedir mandir runstatedir
1248do
1249  eval ac_val=\$$ac_var
1250  # Remove trailing slashes.
1251  case $ac_val in
1252    */ )
1253      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254      eval $ac_var=\$ac_val;;
1255  esac
1256  # Be sure to have absolute directory names.
1257  case $ac_val in
1258    [\\/$]* | ?:[\\/]* )  continue;;
1259    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260  esac
1261  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262done
1263
1264# There might be people who depend on the old broken behavior: `$host'
1265# used to hold the argument of --host etc.
1266# FIXME: To remove some day.
1267build=$build_alias
1268host=$host_alias
1269target=$target_alias
1270
1271# FIXME: To remove some day.
1272if test "x$host_alias" != x; then
1273  if test "x$build_alias" = x; then
1274    cross_compiling=maybe
1275  elif test "x$build_alias" != "x$host_alias"; then
1276    cross_compiling=yes
1277  fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289  as_fn_error $? "working directory cannot be determined"
1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291  as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296  ac_srcdir_defaulted=yes
1297  # Try the directory containing this script, then the parent directory.
1298  ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300	 X"$as_myself" : 'X\(//\)[^/]' \| \
1301	 X"$as_myself" : 'X\(//\)$' \| \
1302	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303printf "%s\n" X"$as_myself" |
1304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)[^/].*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\/\)$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\).*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  s/.*/./; q'`
1321  srcdir=$ac_confdir
1322  if test ! -r "$srcdir/$ac_unique_file"; then
1323    srcdir=..
1324  fi
1325else
1326  ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
1334	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335	pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338  srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_env_${ac_var}_value=\$${ac_var}
1349  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357  # Omit some internal or obsolete options to make the list less imposing.
1358  # This message is too long to be a string in the A/UX 3.1 sh.
1359  cat <<_ACEOF
1360\`configure' configures xwininfo 1.1.6 to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370  -h, --help              display this help and exit
1371      --help=short        display options specific to this package
1372      --help=recursive    display the short help of all the included packages
1373  -V, --version           display version information and exit
1374  -q, --quiet, --silent   do not print \`checking ...' messages
1375      --cache-file=FILE   cache test results in FILE [disabled]
1376  -C, --config-cache      alias for \`--cache-file=config.cache'
1377  -n, --no-create         do not create output files
1378      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381  --prefix=PREFIX         install architecture-independent files in PREFIX
1382                          [$ac_default_prefix]
1383  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                          [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394  --bindir=DIR            user executables [EPREFIX/bin]
1395  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396  --libexecdir=DIR        program executables [EPREFIX/libexec]
1397  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1401  --libdir=DIR            object code libraries [EPREFIX/lib]
1402  --includedir=DIR        C header files [PREFIX/include]
1403  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1404  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1405  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1406  --infodir=DIR           info documentation [DATAROOTDIR/info]
1407  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1408  --mandir=DIR            man documentation [DATAROOTDIR/man]
1409  --docdir=DIR            documentation root [DATAROOTDIR/doc/xwininfo]
1410  --htmldir=DIR           html documentation [DOCDIR]
1411  --dvidir=DIR            dvi documentation [DOCDIR]
1412  --pdfdir=DIR            pdf documentation [DOCDIR]
1413  --psdir=DIR             ps documentation [DOCDIR]
1414_ACEOF
1415
1416  cat <<\_ACEOF
1417
1418Program names:
1419  --program-prefix=PREFIX            prepend PREFIX to installed program names
1420  --program-suffix=SUFFIX            append SUFFIX to installed program names
1421  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1422
1423System types:
1424  --build=BUILD     configure for building on BUILD [guessed]
1425  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1426_ACEOF
1427fi
1428
1429if test -n "$ac_init_help"; then
1430  case $ac_init_help in
1431     short | recursive ) echo "Configuration of xwininfo 1.1.6:";;
1432   esac
1433  cat <<\_ACEOF
1434
1435Optional Features:
1436  --disable-option-checking  ignore unrecognized --enable/--with options
1437  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1438  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1439  --enable-dependency-tracking
1440                          do not reject slow dependency extractors
1441  --disable-dependency-tracking
1442                          speeds up one-time build
1443  --enable-silent-rules   less verbose build output (undo: "make V=1")
1444  --disable-silent-rules  verbose build output (undo: "make V=0")
1445  --disable-rpath         do not hardcode runtime library paths
1446  --disable-selective-werror
1447                          Turn off selective compiler errors. (default:
1448                          enabled)
1449  --enable-strict-compilation
1450                          Enable all warnings from compiler and make them
1451                          errors (default: disabled)
1452
1453Optional Packages:
1454  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1455  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1456  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1457  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1458  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1459  --with-xcb-icccm        use xcb-icccm (default: no)
1460  --with-xcb-errors       use xcb-errors (default: no)
1461
1462Some influential environment variables:
1463  CC          C compiler command
1464  CFLAGS      C compiler flags
1465  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466              nonstandard directory <lib dir>
1467  LIBS        libraries to pass to the linker, e.g. -l<library>
1468  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469              you have headers in a nonstandard directory <include dir>
1470  CPP         C preprocessor
1471  PKG_CONFIG  path to pkg-config utility
1472  PKG_CONFIG_PATH
1473              directories to add to pkg-config's search path
1474  PKG_CONFIG_LIBDIR
1475              path overriding pkg-config's built-in search path
1476  XWININFO_CFLAGS
1477              C compiler flags for XWININFO, overriding pkg-config
1478  XWININFO_LIBS
1479              linker flags for XWININFO, overriding pkg-config
1480  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
1481  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
1482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwininfo/-/issues>.
1487_ACEOF
1488ac_status=$?
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492  # If there are subdirs, report their specific --help.
1493  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494    test -d "$ac_dir" ||
1495      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496      continue
1497    ac_builddir=.
1498
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1503  # A ".." for each directory in $ac_dir_suffix.
1504  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505  case $ac_top_builddir_sub in
1506  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508  esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
1514
1515case $srcdir in
1516  .)  # We are building in place.
1517    ac_srcdir=.
1518    ac_top_srcdir=$ac_top_builddir_sub
1519    ac_abs_top_srcdir=$ac_pwd ;;
1520  [\\/]* | ?:[\\/]* )  # Absolute name.
1521    ac_srcdir=$srcdir$ac_dir_suffix;
1522    ac_top_srcdir=$srcdir
1523    ac_abs_top_srcdir=$srcdir ;;
1524  *) # Relative name.
1525    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526    ac_top_srcdir=$ac_top_build_prefix$srcdir
1527    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528esac
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531    cd "$ac_dir" || { ac_status=$?; continue; }
1532    # Check for configure.gnu first; this name is used for a wrapper for
1533    # Metaconfig's "Configure" on case-insensitive file systems.
1534    if test -f "$ac_srcdir/configure.gnu"; then
1535      echo &&
1536      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537    elif test -f "$ac_srcdir/configure"; then
1538      echo &&
1539      $SHELL "$ac_srcdir/configure" --help=recursive
1540    else
1541      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542    fi || ac_status=$?
1543    cd "$ac_pwd" || { ac_status=$?; break; }
1544  done
1545fi
1546
1547test -n "$ac_init_help" && exit $ac_status
1548if $ac_init_version; then
1549  cat <<\_ACEOF
1550xwininfo configure 1.1.6
1551generated by GNU Autoconf 2.71
1552
1553Copyright (C) 2021 Free Software Foundation, Inc.
1554This configure script is free software; the Free Software Foundation
1555gives unlimited permission to copy, distribute and modify it.
1556_ACEOF
1557  exit
1558fi
1559
1560## ------------------------ ##
1561## Autoconf initialization. ##
1562## ------------------------ ##
1563
1564# ac_fn_c_try_compile LINENO
1565# --------------------------
1566# Try to compile conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_c_try_compile ()
1568{
1569  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570  rm -f conftest.$ac_objext conftest.beam
1571  if { { ac_try="$ac_compile"
1572case "(($ac_try" in
1573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574  *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577printf "%s\n" "$ac_try_echo"; } >&5
1578  (eval "$ac_compile") 2>conftest.err
1579  ac_status=$?
1580  if test -s conftest.err; then
1581    grep -v '^ *+' conftest.err >conftest.er1
1582    cat conftest.er1 >&5
1583    mv -f conftest.er1 conftest.err
1584  fi
1585  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586  test $ac_status = 0; } && {
1587	 test -z "$ac_c_werror_flag" ||
1588	 test ! -s conftest.err
1589       } && test -s conftest.$ac_objext
1590then :
1591  ac_retval=0
1592else $as_nop
1593  printf "%s\n" "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
1595
1596	ac_retval=1
1597fi
1598  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599  as_fn_set_status $ac_retval
1600
1601} # ac_fn_c_try_compile
1602
1603# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1604# -------------------------------------------------------
1605# Tests whether HEADER exists and can be compiled using the include files in
1606# INCLUDES, setting the cache variable VAR accordingly.
1607ac_fn_c_check_header_compile ()
1608{
1609  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611printf %s "checking for $2... " >&6; }
1612if eval test \${$3+y}
1613then :
1614  printf %s "(cached) " >&6
1615else $as_nop
1616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617/* end confdefs.h.  */
1618$4
1619#include <$2>
1620_ACEOF
1621if ac_fn_c_try_compile "$LINENO"
1622then :
1623  eval "$3=yes"
1624else $as_nop
1625  eval "$3=no"
1626fi
1627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1628fi
1629eval ac_res=\$$3
1630	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631printf "%s\n" "$ac_res" >&6; }
1632  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634} # ac_fn_c_check_header_compile
1635
1636# ac_fn_c_try_cpp LINENO
1637# ----------------------
1638# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639ac_fn_c_try_cpp ()
1640{
1641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642  if { { ac_try="$ac_cpp conftest.$ac_ext"
1643case "(($ac_try" in
1644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645  *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648printf "%s\n" "$ac_try_echo"; } >&5
1649  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650  ac_status=$?
1651  if test -s conftest.err; then
1652    grep -v '^ *+' conftest.err >conftest.er1
1653    cat conftest.er1 >&5
1654    mv -f conftest.er1 conftest.err
1655  fi
1656  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657  test $ac_status = 0; } > conftest.i && {
1658	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659	 test ! -s conftest.err
1660       }
1661then :
1662  ac_retval=0
1663else $as_nop
1664  printf "%s\n" "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667    ac_retval=1
1668fi
1669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670  as_fn_set_status $ac_retval
1671
1672} # ac_fn_c_try_cpp
1673
1674# ac_fn_c_try_link LINENO
1675# -----------------------
1676# Try to link conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_link ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1681  if { { ac_try="$ac_link"
1682case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687printf "%s\n" "$ac_try_echo"; } >&5
1688  (eval "$ac_link") 2>conftest.err
1689  ac_status=$?
1690  if test -s conftest.err; then
1691    grep -v '^ *+' conftest.err >conftest.er1
1692    cat conftest.er1 >&5
1693    mv -f conftest.er1 conftest.err
1694  fi
1695  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696  test $ac_status = 0; } && {
1697	 test -z "$ac_c_werror_flag" ||
1698	 test ! -s conftest.err
1699       } && test -s conftest$ac_exeext && {
1700	 test "$cross_compiling" = yes ||
1701	 test -x conftest$ac_exeext
1702       }
1703then :
1704  ac_retval=0
1705else $as_nop
1706  printf "%s\n" "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709	ac_retval=1
1710fi
1711  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713  # interfere with the next link command; also delete a directory that is
1714  # left behind by Apple's compiler.  We do this before executing the actions.
1715  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717  as_fn_set_status $ac_retval
1718
1719} # ac_fn_c_try_link
1720
1721# ac_fn_c_try_run LINENO
1722# ----------------------
1723# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1724# executables *can* be run.
1725ac_fn_c_try_run ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  if { { ac_try="$ac_link"
1729case "(($ac_try" in
1730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731  *) ac_try_echo=$ac_try;;
1732esac
1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734printf "%s\n" "$ac_try_echo"; } >&5
1735  (eval "$ac_link") 2>&5
1736  ac_status=$?
1737  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739  { { case "(($ac_try" in
1740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741  *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744printf "%s\n" "$ac_try_echo"; } >&5
1745  (eval "$ac_try") 2>&5
1746  ac_status=$?
1747  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748  test $ac_status = 0; }; }
1749then :
1750  ac_retval=0
1751else $as_nop
1752  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1753       printf "%s\n" "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756       ac_retval=$ac_status
1757fi
1758  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760  as_fn_set_status $ac_retval
1761
1762} # ac_fn_c_try_run
1763
1764# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1765# ------------------------------------------------------------------
1766# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1767# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1768ac_fn_check_decl ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  as_decl_name=`echo $2|sed 's/ *(.*//'`
1772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1773printf %s "checking whether $as_decl_name is declared... " >&6; }
1774if eval test \${$3+y}
1775then :
1776  printf %s "(cached) " >&6
1777else $as_nop
1778  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1779  eval ac_save_FLAGS=\$$6
1780  as_fn_append $6 " $5"
1781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h.  */
1783$4
1784int
1785main (void)
1786{
1787#ifndef $as_decl_name
1788#ifdef __cplusplus
1789  (void) $as_decl_use;
1790#else
1791  (void) $as_decl_name;
1792#endif
1793#endif
1794
1795  ;
1796  return 0;
1797}
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"
1800then :
1801  eval "$3=yes"
1802else $as_nop
1803  eval "$3=no"
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1806  eval $6=\$ac_save_FLAGS
1807
1808fi
1809eval ac_res=\$$3
1810	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811printf "%s\n" "$ac_res" >&6; }
1812  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814} # ac_fn_check_decl
1815
1816# ac_fn_c_check_func LINENO FUNC VAR
1817# ----------------------------------
1818# Tests whether FUNC exists, setting the cache variable VAR accordingly
1819ac_fn_c_check_func ()
1820{
1821  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823printf %s "checking for $2... " >&6; }
1824if eval test \${$3+y}
1825then :
1826  printf %s "(cached) " >&6
1827else $as_nop
1828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h.  */
1830/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1832#define $2 innocuous_$2
1833
1834/* System header to define __stub macros and hopefully few prototypes,
1835   which can conflict with char $2 (); below.  */
1836
1837#include <limits.h>
1838#undef $2
1839
1840/* Override any GCC internal prototype to avoid an error.
1841   Use char because int might match the return type of a GCC
1842   builtin and then its argument prototype would still apply.  */
1843#ifdef __cplusplus
1844extern "C"
1845#endif
1846char $2 ();
1847/* The GNU C library defines this for functions which it implements
1848    to always fail with ENOSYS.  Some functions are actually named
1849    something starting with __ and the normal name is an alias.  */
1850#if defined __stub_$2 || defined __stub___$2
1851choke me
1852#endif
1853
1854int
1855main (void)
1856{
1857return $2 ();
1858  ;
1859  return 0;
1860}
1861_ACEOF
1862if ac_fn_c_try_link "$LINENO"
1863then :
1864  eval "$3=yes"
1865else $as_nop
1866  eval "$3=no"
1867fi
1868rm -f core conftest.err conftest.$ac_objext conftest.beam \
1869    conftest$ac_exeext conftest.$ac_ext
1870fi
1871eval ac_res=\$$3
1872	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873printf "%s\n" "$ac_res" >&6; }
1874  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876} # ac_fn_c_check_func
1877ac_configure_args_raw=
1878for ac_arg
1879do
1880  case $ac_arg in
1881  *\'*)
1882    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883  esac
1884  as_fn_append ac_configure_args_raw " '$ac_arg'"
1885done
1886
1887case $ac_configure_args_raw in
1888  *$as_nl*)
1889    ac_safe_unquote= ;;
1890  *)
1891    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1892    ac_unsafe_a="$ac_unsafe_z#~"
1893    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1894    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1895esac
1896
1897cat >config.log <<_ACEOF
1898This file contains any messages produced by compilers while
1899running configure, to aid debugging if configure makes a mistake.
1900
1901It was created by xwininfo $as_me 1.1.6, which was
1902generated by GNU Autoconf 2.71.  Invocation command line was
1903
1904  $ $0$ac_configure_args_raw
1905
1906_ACEOF
1907exec 5>>config.log
1908{
1909cat <<_ASUNAME
1910## --------- ##
1911## Platform. ##
1912## --------- ##
1913
1914hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1922
1923/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1924/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1925/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1927/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1928/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1929/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1930
1931_ASUNAME
1932
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  case $as_dir in #(((
1938    '') as_dir=./ ;;
1939    */) ;;
1940    *) as_dir=$as_dir/ ;;
1941  esac
1942    printf "%s\n" "PATH: $as_dir"
1943  done
1944IFS=$as_save_IFS
1945
1946} >&5
1947
1948cat >&5 <<_ACEOF
1949
1950
1951## ----------- ##
1952## Core tests. ##
1953## ----------- ##
1954
1955_ACEOF
1956
1957
1958# Keep a trace of the command line.
1959# Strip out --no-create and --no-recursion so they do not pile up.
1960# Strip out --silent because we don't want to record it for future runs.
1961# Also quote any args containing shell meta-characters.
1962# Make two passes to allow for proper duplicate-argument suppression.
1963ac_configure_args=
1964ac_configure_args0=
1965ac_configure_args1=
1966ac_must_keep_next=false
1967for ac_pass in 1 2
1968do
1969  for ac_arg
1970  do
1971    case $ac_arg in
1972    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974    | -silent | --silent | --silen | --sile | --sil)
1975      continue ;;
1976    *\'*)
1977      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978    esac
1979    case $ac_pass in
1980    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1981    2)
1982      as_fn_append ac_configure_args1 " '$ac_arg'"
1983      if test $ac_must_keep_next = true; then
1984	ac_must_keep_next=false # Got value, back to normal.
1985      else
1986	case $ac_arg in
1987	  *=* | --config-cache | -C | -disable-* | --disable-* \
1988	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990	  | -with-* | --with-* | -without-* | --without-* | --x)
1991	    case "$ac_configure_args0 " in
1992	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993	    esac
1994	    ;;
1995	  -* ) ac_must_keep_next=true ;;
1996	esac
1997      fi
1998      as_fn_append ac_configure_args " '$ac_arg'"
1999      ;;
2000    esac
2001  done
2002done
2003{ ac_configure_args0=; unset ac_configure_args0;}
2004{ ac_configure_args1=; unset ac_configure_args1;}
2005
2006# When interrupted or exit'd, cleanup temporary files, and complete
2007# config.log.  We remove comments because anyway the quotes in there
2008# would cause problems or look ugly.
2009# WARNING: Use '\'' to represent an apostrophe within the trap.
2010# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011trap 'exit_status=$?
2012  # Sanitize IFS.
2013  IFS=" ""	$as_nl"
2014  # Save into config.log some information that might help in debugging.
2015  {
2016    echo
2017
2018    printf "%s\n" "## ---------------- ##
2019## Cache variables. ##
2020## ---------------- ##"
2021    echo
2022    # The following way of writing the cache mishandles newlines in values,
2023(
2024  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2025    eval ac_val=\$$ac_var
2026    case $ac_val in #(
2027    *${as_nl}*)
2028      case $ac_var in #(
2029      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2030printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031      esac
2032      case $ac_var in #(
2033      _ | IFS | as_nl) ;; #(
2034      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2035      *) { eval $ac_var=; unset $ac_var;} ;;
2036      esac ;;
2037    esac
2038  done
2039  (set) 2>&1 |
2040    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2041    *${as_nl}ac_space=\ *)
2042      sed -n \
2043	"s/'\''/'\''\\\\'\'''\''/g;
2044	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045      ;; #(
2046    *)
2047      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2048      ;;
2049    esac |
2050    sort
2051)
2052    echo
2053
2054    printf "%s\n" "## ----------------- ##
2055## Output variables. ##
2056## ----------------- ##"
2057    echo
2058    for ac_var in $ac_subst_vars
2059    do
2060      eval ac_val=\$$ac_var
2061      case $ac_val in
2062      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063      esac
2064      printf "%s\n" "$ac_var='\''$ac_val'\''"
2065    done | sort
2066    echo
2067
2068    if test -n "$ac_subst_files"; then
2069      printf "%s\n" "## ------------------- ##
2070## File substitutions. ##
2071## ------------------- ##"
2072      echo
2073      for ac_var in $ac_subst_files
2074      do
2075	eval ac_val=\$$ac_var
2076	case $ac_val in
2077	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078	esac
2079	printf "%s\n" "$ac_var='\''$ac_val'\''"
2080      done | sort
2081      echo
2082    fi
2083
2084    if test -s confdefs.h; then
2085      printf "%s\n" "## ----------- ##
2086## confdefs.h. ##
2087## ----------- ##"
2088      echo
2089      cat confdefs.h
2090      echo
2091    fi
2092    test "$ac_signal" != 0 &&
2093      printf "%s\n" "$as_me: caught signal $ac_signal"
2094    printf "%s\n" "$as_me: exit $exit_status"
2095  } >&5
2096  rm -f core *.core core.conftest.* &&
2097    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2098    exit $exit_status
2099' 0
2100for ac_signal in 1 2 13 15; do
2101  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2102done
2103ac_signal=0
2104
2105# confdefs.h avoids OS command line length limits that DEFS can exceed.
2106rm -f -r conftest* confdefs.h
2107
2108printf "%s\n" "/* confdefs.h */" > confdefs.h
2109
2110# Predefined preprocessor variables.
2111
2112printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2113
2114printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2115
2116printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2117
2118printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2119
2120printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2121
2122printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2123
2124
2125# Let the site file select an alternate cache file if it wants to.
2126# Prefer an explicitly selected file to automatically selected ones.
2127if test -n "$CONFIG_SITE"; then
2128  ac_site_files="$CONFIG_SITE"
2129elif test "x$prefix" != xNONE; then
2130  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2131else
2132  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2133fi
2134
2135for ac_site_file in $ac_site_files
2136do
2137  case $ac_site_file in #(
2138  */*) :
2139     ;; #(
2140  *) :
2141    ac_site_file=./$ac_site_file ;;
2142esac
2143  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2144    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2145printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2146    sed 's/^/| /' "$ac_site_file" >&5
2147    . "$ac_site_file" \
2148      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2149printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2150as_fn_error $? "failed to load site script $ac_site_file
2151See \`config.log' for more details" "$LINENO" 5; }
2152  fi
2153done
2154
2155if test -r "$cache_file"; then
2156  # Some versions of bash will fail to source /dev/null (special files
2157  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2158  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2159    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2160printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2161    case $cache_file in
2162      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2163      *)                      . "./$cache_file";;
2164    esac
2165  fi
2166else
2167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2168printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2169  >$cache_file
2170fi
2171
2172as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2173# Test code for whether the C compiler supports C89 (global declarations)
2174ac_c_conftest_c89_globals='
2175/* Does the compiler advertise C89 conformance?
2176   Do not test the value of __STDC__, because some compilers set it to 0
2177   while being otherwise adequately conformant. */
2178#if !defined __STDC__
2179# error "Compiler does not advertise C89 conformance"
2180#endif
2181
2182#include <stddef.h>
2183#include <stdarg.h>
2184struct stat;
2185/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2186struct buf { int x; };
2187struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2188static char *e (p, i)
2189     char **p;
2190     int i;
2191{
2192  return p[i];
2193}
2194static char *f (char * (*g) (char **, int), char **p, ...)
2195{
2196  char *s;
2197  va_list v;
2198  va_start (v,p);
2199  s = g (p, va_arg (v,int));
2200  va_end (v);
2201  return s;
2202}
2203
2204/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2205   function prototypes and stuff, but not \xHH hex character constants.
2206   These do not provoke an error unfortunately, instead are silently treated
2207   as an "x".  The following induces an error, until -std is added to get
2208   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2209   array size at least.  It is necessary to write \x00 == 0 to get something
2210   that is true only with -std.  */
2211int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2212
2213/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2214   inside strings and character constants.  */
2215#define FOO(x) '\''x'\''
2216int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2217
2218int test (int i, double x);
2219struct s1 {int (*f) (int a);};
2220struct s2 {int (*f) (double a);};
2221int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2222               int, int);'
2223
2224# Test code for whether the C compiler supports C89 (body of main).
2225ac_c_conftest_c89_main='
2226ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2227'
2228
2229# Test code for whether the C compiler supports C99 (global declarations)
2230ac_c_conftest_c99_globals='
2231// Does the compiler advertise C99 conformance?
2232#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2233# error "Compiler does not advertise C99 conformance"
2234#endif
2235
2236#include <stdbool.h>
2237extern int puts (const char *);
2238extern int printf (const char *, ...);
2239extern int dprintf (int, const char *, ...);
2240extern void *malloc (size_t);
2241
2242// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2243// dprintf is used instead of fprintf to avoid needing to declare
2244// FILE and stderr.
2245#define debug(...) dprintf (2, __VA_ARGS__)
2246#define showlist(...) puts (#__VA_ARGS__)
2247#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2248static void
2249test_varargs_macros (void)
2250{
2251  int x = 1234;
2252  int y = 5678;
2253  debug ("Flag");
2254  debug ("X = %d\n", x);
2255  showlist (The first, second, and third items.);
2256  report (x>y, "x is %d but y is %d", x, y);
2257}
2258
2259// Check long long types.
2260#define BIG64 18446744073709551615ull
2261#define BIG32 4294967295ul
2262#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2263#if !BIG_OK
2264  #error "your preprocessor is broken"
2265#endif
2266#if BIG_OK
2267#else
2268  #error "your preprocessor is broken"
2269#endif
2270static long long int bignum = -9223372036854775807LL;
2271static unsigned long long int ubignum = BIG64;
2272
2273struct incomplete_array
2274{
2275  int datasize;
2276  double data[];
2277};
2278
2279struct named_init {
2280  int number;
2281  const wchar_t *name;
2282  double average;
2283};
2284
2285typedef const char *ccp;
2286
2287static inline int
2288test_restrict (ccp restrict text)
2289{
2290  // See if C++-style comments work.
2291  // Iterate through items via the restricted pointer.
2292  // Also check for declarations in for loops.
2293  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2294    continue;
2295  return 0;
2296}
2297
2298// Check varargs and va_copy.
2299static bool
2300test_varargs (const char *format, ...)
2301{
2302  va_list args;
2303  va_start (args, format);
2304  va_list args_copy;
2305  va_copy (args_copy, args);
2306
2307  const char *str = "";
2308  int number = 0;
2309  float fnumber = 0;
2310
2311  while (*format)
2312    {
2313      switch (*format++)
2314	{
2315	case '\''s'\'': // string
2316	  str = va_arg (args_copy, const char *);
2317	  break;
2318	case '\''d'\'': // int
2319	  number = va_arg (args_copy, int);
2320	  break;
2321	case '\''f'\'': // float
2322	  fnumber = va_arg (args_copy, double);
2323	  break;
2324	default:
2325	  break;
2326	}
2327    }
2328  va_end (args_copy);
2329  va_end (args);
2330
2331  return *str && number && fnumber;
2332}
2333'
2334
2335# Test code for whether the C compiler supports C99 (body of main).
2336ac_c_conftest_c99_main='
2337  // Check bool.
2338  _Bool success = false;
2339  success |= (argc != 0);
2340
2341  // Check restrict.
2342  if (test_restrict ("String literal") == 0)
2343    success = true;
2344  char *restrict newvar = "Another string";
2345
2346  // Check varargs.
2347  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2348  test_varargs_macros ();
2349
2350  // Check flexible array members.
2351  struct incomplete_array *ia =
2352    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2353  ia->datasize = 10;
2354  for (int i = 0; i < ia->datasize; ++i)
2355    ia->data[i] = i * 1.234;
2356
2357  // Check named initializers.
2358  struct named_init ni = {
2359    .number = 34,
2360    .name = L"Test wide string",
2361    .average = 543.34343,
2362  };
2363
2364  ni.number = 58;
2365
2366  int dynamic_array[ni.number];
2367  dynamic_array[0] = argv[0][0];
2368  dynamic_array[ni.number - 1] = 543;
2369
2370  // work around unused variable warnings
2371  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2372	 || dynamic_array[ni.number - 1] != 543);
2373'
2374
2375# Test code for whether the C compiler supports C11 (global declarations)
2376ac_c_conftest_c11_globals='
2377// Does the compiler advertise C11 conformance?
2378#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2379# error "Compiler does not advertise C11 conformance"
2380#endif
2381
2382// Check _Alignas.
2383char _Alignas (double) aligned_as_double;
2384char _Alignas (0) no_special_alignment;
2385extern char aligned_as_int;
2386char _Alignas (0) _Alignas (int) aligned_as_int;
2387
2388// Check _Alignof.
2389enum
2390{
2391  int_alignment = _Alignof (int),
2392  int_array_alignment = _Alignof (int[100]),
2393  char_alignment = _Alignof (char)
2394};
2395_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2396
2397// Check _Noreturn.
2398int _Noreturn does_not_return (void) { for (;;) continue; }
2399
2400// Check _Static_assert.
2401struct test_static_assert
2402{
2403  int x;
2404  _Static_assert (sizeof (int) <= sizeof (long int),
2405                  "_Static_assert does not work in struct");
2406  long int y;
2407};
2408
2409// Check UTF-8 literals.
2410#define u8 syntax error!
2411char const utf8_literal[] = u8"happens to be ASCII" "another string";
2412
2413// Check duplicate typedefs.
2414typedef long *long_ptr;
2415typedef long int *long_ptr;
2416typedef long_ptr long_ptr;
2417
2418// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2419struct anonymous
2420{
2421  union {
2422    struct { int i; int j; };
2423    struct { int k; long int l; } w;
2424  };
2425  int m;
2426} v1;
2427'
2428
2429# Test code for whether the C compiler supports C11 (body of main).
2430ac_c_conftest_c11_main='
2431  _Static_assert ((offsetof (struct anonymous, i)
2432		   == offsetof (struct anonymous, w.k)),
2433		  "Anonymous union alignment botch");
2434  v1.i = 2;
2435  v1.w.k = 5;
2436  ok |= v1.i != 5;
2437'
2438
2439# Test code for whether the C compiler supports C11 (complete).
2440ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2441${ac_c_conftest_c99_globals}
2442${ac_c_conftest_c11_globals}
2443
2444int
2445main (int argc, char **argv)
2446{
2447  int ok = 0;
2448  ${ac_c_conftest_c89_main}
2449  ${ac_c_conftest_c99_main}
2450  ${ac_c_conftest_c11_main}
2451  return ok;
2452}
2453"
2454
2455# Test code for whether the C compiler supports C99 (complete).
2456ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2457${ac_c_conftest_c99_globals}
2458
2459int
2460main (int argc, char **argv)
2461{
2462  int ok = 0;
2463  ${ac_c_conftest_c89_main}
2464  ${ac_c_conftest_c99_main}
2465  return ok;
2466}
2467"
2468
2469# Test code for whether the C compiler supports C89 (complete).
2470ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2471
2472int
2473main (int argc, char **argv)
2474{
2475  int ok = 0;
2476  ${ac_c_conftest_c89_main}
2477  return ok;
2478}
2479"
2480
2481as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2482as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2483as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2484as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2485as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2486as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2487as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2488as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2489as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2490as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2491
2492# Auxiliary files required by this configure script.
2493ac_aux_files="config.rpath config.guess config.sub missing install-sh compile"
2494
2495# Locations in which to look for auxiliary files.
2496ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2497
2498# Search for a directory containing all of the required auxiliary files,
2499# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2500# If we don't find one directory that contains all the files we need,
2501# we report the set of missing files from the *first* directory in
2502# $ac_aux_dir_candidates and give up.
2503ac_missing_aux_files=""
2504ac_first_candidate=:
2505printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507as_found=false
2508for as_dir in $ac_aux_dir_candidates
2509do
2510  IFS=$as_save_IFS
2511  case $as_dir in #(((
2512    '') as_dir=./ ;;
2513    */) ;;
2514    *) as_dir=$as_dir/ ;;
2515  esac
2516  as_found=:
2517
2518  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2519  ac_aux_dir_found=yes
2520  ac_install_sh=
2521  for ac_aux in $ac_aux_files
2522  do
2523    # As a special case, if "install-sh" is required, that requirement
2524    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2525    # and $ac_install_sh is set appropriately for whichever one is found.
2526    if test x"$ac_aux" = x"install-sh"
2527    then
2528      if test -f "${as_dir}install-sh"; then
2529        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2530        ac_install_sh="${as_dir}install-sh -c"
2531      elif test -f "${as_dir}install.sh"; then
2532        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2533        ac_install_sh="${as_dir}install.sh -c"
2534      elif test -f "${as_dir}shtool"; then
2535        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2536        ac_install_sh="${as_dir}shtool install -c"
2537      else
2538        ac_aux_dir_found=no
2539        if $ac_first_candidate; then
2540          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2541        else
2542          break
2543        fi
2544      fi
2545    else
2546      if test -f "${as_dir}${ac_aux}"; then
2547        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2548      else
2549        ac_aux_dir_found=no
2550        if $ac_first_candidate; then
2551          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2552        else
2553          break
2554        fi
2555      fi
2556    fi
2557  done
2558  if test "$ac_aux_dir_found" = yes; then
2559    ac_aux_dir="$as_dir"
2560    break
2561  fi
2562  ac_first_candidate=false
2563
2564  as_found=false
2565done
2566IFS=$as_save_IFS
2567if $as_found
2568then :
2569
2570else $as_nop
2571  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2572fi
2573
2574
2575# These three variables are undocumented and unsupported,
2576# and are intended to be withdrawn in a future Autoconf release.
2577# They can cause serious problems if a builder's source tree is in a directory
2578# whose full name contains unusual characters.
2579if test -f "${ac_aux_dir}config.guess"; then
2580  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2581fi
2582if test -f "${ac_aux_dir}config.sub"; then
2583  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2584fi
2585if test -f "$ac_aux_dir/configure"; then
2586  ac_configure="$SHELL ${ac_aux_dir}configure"
2587fi
2588
2589# Check that the precious variables saved in the cache have kept the same
2590# value.
2591ac_cache_corrupted=false
2592for ac_var in $ac_precious_vars; do
2593  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2594  eval ac_new_set=\$ac_env_${ac_var}_set
2595  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2596  eval ac_new_val=\$ac_env_${ac_var}_value
2597  case $ac_old_set,$ac_new_set in
2598    set,)
2599      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2600printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2601      ac_cache_corrupted=: ;;
2602    ,set)
2603      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2604printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2605      ac_cache_corrupted=: ;;
2606    ,);;
2607    *)
2608      if test "x$ac_old_val" != "x$ac_new_val"; then
2609	# differences in whitespace do not lead to failure.
2610	ac_old_val_w=`echo x $ac_old_val`
2611	ac_new_val_w=`echo x $ac_new_val`
2612	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2613	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2614printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2615	  ac_cache_corrupted=:
2616	else
2617	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2618printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2619	  eval $ac_var=\$ac_old_val
2620	fi
2621	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2622printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2624printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2625      fi;;
2626  esac
2627  # Pass precious variables to config.status.
2628  if test "$ac_new_set" = set; then
2629    case $ac_new_val in
2630    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2631    *) ac_arg=$ac_var=$ac_new_val ;;
2632    esac
2633    case " $ac_configure_args " in
2634      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2635      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2636    esac
2637  fi
2638done
2639if $ac_cache_corrupted; then
2640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2643printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2644  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2645	    and start over" "$LINENO" 5
2646fi
2647## -------------------- ##
2648## Main body of script. ##
2649## -------------------- ##
2650
2651ac_ext=c
2652ac_cpp='$CPP $CPPFLAGS'
2653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656
2657
2658
2659ac_config_headers="$ac_config_headers config.h"
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672# Expand $ac_aux_dir to an absolute path.
2673am_aux_dir=`cd "$ac_aux_dir" && pwd`
2674
2675ac_ext=c
2676ac_cpp='$CPP $CPPFLAGS'
2677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680if test -n "$ac_tool_prefix"; then
2681  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2682set dummy ${ac_tool_prefix}gcc; ac_word=$2
2683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684printf %s "checking for $ac_word... " >&6; }
2685if test ${ac_cv_prog_CC+y}
2686then :
2687  printf %s "(cached) " >&6
2688else $as_nop
2689  if test -n "$CC"; then
2690  ac_cv_prog_CC="$CC" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695  IFS=$as_save_IFS
2696  case $as_dir in #(((
2697    '') as_dir=./ ;;
2698    */) ;;
2699    *) as_dir=$as_dir/ ;;
2700  esac
2701    for ac_exec_ext in '' $ac_executable_extensions; do
2702  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2703    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2704    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2705    break 2
2706  fi
2707done
2708  done
2709IFS=$as_save_IFS
2710
2711fi
2712fi
2713CC=$ac_cv_prog_CC
2714if test -n "$CC"; then
2715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2716printf "%s\n" "$CC" >&6; }
2717else
2718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719printf "%s\n" "no" >&6; }
2720fi
2721
2722
2723fi
2724if test -z "$ac_cv_prog_CC"; then
2725  ac_ct_CC=$CC
2726  # Extract the first word of "gcc", so it can be a program name with args.
2727set dummy gcc; ac_word=$2
2728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729printf %s "checking for $ac_word... " >&6; }
2730if test ${ac_cv_prog_ac_ct_CC+y}
2731then :
2732  printf %s "(cached) " >&6
2733else $as_nop
2734  if test -n "$ac_ct_CC"; then
2735  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2736else
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740  IFS=$as_save_IFS
2741  case $as_dir in #(((
2742    '') as_dir=./ ;;
2743    */) ;;
2744    *) as_dir=$as_dir/ ;;
2745  esac
2746    for ac_exec_ext in '' $ac_executable_extensions; do
2747  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2748    ac_cv_prog_ac_ct_CC="gcc"
2749    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2750    break 2
2751  fi
2752done
2753  done
2754IFS=$as_save_IFS
2755
2756fi
2757fi
2758ac_ct_CC=$ac_cv_prog_ac_ct_CC
2759if test -n "$ac_ct_CC"; then
2760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2761printf "%s\n" "$ac_ct_CC" >&6; }
2762else
2763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764printf "%s\n" "no" >&6; }
2765fi
2766
2767  if test "x$ac_ct_CC" = x; then
2768    CC=""
2769  else
2770    case $cross_compiling:$ac_tool_warned in
2771yes:)
2772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774ac_tool_warned=yes ;;
2775esac
2776    CC=$ac_ct_CC
2777  fi
2778else
2779  CC="$ac_cv_prog_CC"
2780fi
2781
2782if test -z "$CC"; then
2783          if test -n "$ac_tool_prefix"; then
2784    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2785set dummy ${ac_tool_prefix}cc; ac_word=$2
2786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787printf %s "checking for $ac_word... " >&6; }
2788if test ${ac_cv_prog_CC+y}
2789then :
2790  printf %s "(cached) " >&6
2791else $as_nop
2792  if test -n "$CC"; then
2793  ac_cv_prog_CC="$CC" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  case $as_dir in #(((
2800    '') as_dir=./ ;;
2801    */) ;;
2802    *) as_dir=$as_dir/ ;;
2803  esac
2804    for ac_exec_ext in '' $ac_executable_extensions; do
2805  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2806    ac_cv_prog_CC="${ac_tool_prefix}cc"
2807    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2808    break 2
2809  fi
2810done
2811  done
2812IFS=$as_save_IFS
2813
2814fi
2815fi
2816CC=$ac_cv_prog_CC
2817if test -n "$CC"; then
2818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819printf "%s\n" "$CC" >&6; }
2820else
2821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822printf "%s\n" "no" >&6; }
2823fi
2824
2825
2826  fi
2827fi
2828if test -z "$CC"; then
2829  # Extract the first word of "cc", so it can be a program name with args.
2830set dummy cc; ac_word=$2
2831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832printf %s "checking for $ac_word... " >&6; }
2833if test ${ac_cv_prog_CC+y}
2834then :
2835  printf %s "(cached) " >&6
2836else $as_nop
2837  if test -n "$CC"; then
2838  ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
2840  ac_prog_rejected=no
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  case $as_dir in #(((
2846    '') as_dir=./ ;;
2847    */) ;;
2848    *) as_dir=$as_dir/ ;;
2849  esac
2850    for ac_exec_ext in '' $ac_executable_extensions; do
2851  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2852    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2853       ac_prog_rejected=yes
2854       continue
2855     fi
2856    ac_cv_prog_CC="cc"
2857    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2858    break 2
2859  fi
2860done
2861  done
2862IFS=$as_save_IFS
2863
2864if test $ac_prog_rejected = yes; then
2865  # We found a bogon in the path, so make sure we never use it.
2866  set dummy $ac_cv_prog_CC
2867  shift
2868  if test $# != 0; then
2869    # We chose a different compiler from the bogus one.
2870    # However, it has the same basename, so the bogon will be chosen
2871    # first if we set CC to just the basename; use the full file name.
2872    shift
2873    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2874  fi
2875fi
2876fi
2877fi
2878CC=$ac_cv_prog_CC
2879if test -n "$CC"; then
2880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881printf "%s\n" "$CC" >&6; }
2882else
2883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884printf "%s\n" "no" >&6; }
2885fi
2886
2887
2888fi
2889if test -z "$CC"; then
2890  if test -n "$ac_tool_prefix"; then
2891  for ac_prog in cl.exe
2892  do
2893    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2894set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896printf %s "checking for $ac_word... " >&6; }
2897if test ${ac_cv_prog_CC+y}
2898then :
2899  printf %s "(cached) " >&6
2900else $as_nop
2901  if test -n "$CC"; then
2902  ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907  IFS=$as_save_IFS
2908  case $as_dir in #(((
2909    '') as_dir=./ ;;
2910    */) ;;
2911    *) as_dir=$as_dir/ ;;
2912  esac
2913    for ac_exec_ext in '' $ac_executable_extensions; do
2914  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2915    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2916    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2917    break 2
2918  fi
2919done
2920  done
2921IFS=$as_save_IFS
2922
2923fi
2924fi
2925CC=$ac_cv_prog_CC
2926if test -n "$CC"; then
2927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928printf "%s\n" "$CC" >&6; }
2929else
2930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931printf "%s\n" "no" >&6; }
2932fi
2933
2934
2935    test -n "$CC" && break
2936  done
2937fi
2938if test -z "$CC"; then
2939  ac_ct_CC=$CC
2940  for ac_prog in cl.exe
2941do
2942  # Extract the first word of "$ac_prog", so it can be a program name with args.
2943set dummy $ac_prog; ac_word=$2
2944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945printf %s "checking for $ac_word... " >&6; }
2946if test ${ac_cv_prog_ac_ct_CC+y}
2947then :
2948  printf %s "(cached) " >&6
2949else $as_nop
2950  if test -n "$ac_ct_CC"; then
2951  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952else
2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH
2955do
2956  IFS=$as_save_IFS
2957  case $as_dir in #(((
2958    '') as_dir=./ ;;
2959    */) ;;
2960    *) as_dir=$as_dir/ ;;
2961  esac
2962    for ac_exec_ext in '' $ac_executable_extensions; do
2963  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2964    ac_cv_prog_ac_ct_CC="$ac_prog"
2965    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2966    break 2
2967  fi
2968done
2969  done
2970IFS=$as_save_IFS
2971
2972fi
2973fi
2974ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975if test -n "$ac_ct_CC"; then
2976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2977printf "%s\n" "$ac_ct_CC" >&6; }
2978else
2979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980printf "%s\n" "no" >&6; }
2981fi
2982
2983
2984  test -n "$ac_ct_CC" && break
2985done
2986
2987  if test "x$ac_ct_CC" = x; then
2988    CC=""
2989  else
2990    case $cross_compiling:$ac_tool_warned in
2991yes:)
2992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994ac_tool_warned=yes ;;
2995esac
2996    CC=$ac_ct_CC
2997  fi
2998fi
2999
3000fi
3001if test -z "$CC"; then
3002  if test -n "$ac_tool_prefix"; then
3003  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3004set dummy ${ac_tool_prefix}clang; ac_word=$2
3005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006printf %s "checking for $ac_word... " >&6; }
3007if test ${ac_cv_prog_CC+y}
3008then :
3009  printf %s "(cached) " >&6
3010else $as_nop
3011  if test -n "$CC"; then
3012  ac_cv_prog_CC="$CC" # Let the user override the test.
3013else
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017  IFS=$as_save_IFS
3018  case $as_dir in #(((
3019    '') as_dir=./ ;;
3020    */) ;;
3021    *) as_dir=$as_dir/ ;;
3022  esac
3023    for ac_exec_ext in '' $ac_executable_extensions; do
3024  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3025    ac_cv_prog_CC="${ac_tool_prefix}clang"
3026    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3027    break 2
3028  fi
3029done
3030  done
3031IFS=$as_save_IFS
3032
3033fi
3034fi
3035CC=$ac_cv_prog_CC
3036if test -n "$CC"; then
3037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3038printf "%s\n" "$CC" >&6; }
3039else
3040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041printf "%s\n" "no" >&6; }
3042fi
3043
3044
3045fi
3046if test -z "$ac_cv_prog_CC"; then
3047  ac_ct_CC=$CC
3048  # Extract the first word of "clang", so it can be a program name with args.
3049set dummy clang; ac_word=$2
3050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051printf %s "checking for $ac_word... " >&6; }
3052if test ${ac_cv_prog_ac_ct_CC+y}
3053then :
3054  printf %s "(cached) " >&6
3055else $as_nop
3056  if test -n "$ac_ct_CC"; then
3057  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3058else
3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060for as_dir in $PATH
3061do
3062  IFS=$as_save_IFS
3063  case $as_dir in #(((
3064    '') as_dir=./ ;;
3065    */) ;;
3066    *) as_dir=$as_dir/ ;;
3067  esac
3068    for ac_exec_ext in '' $ac_executable_extensions; do
3069  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3070    ac_cv_prog_ac_ct_CC="clang"
3071    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3072    break 2
3073  fi
3074done
3075  done
3076IFS=$as_save_IFS
3077
3078fi
3079fi
3080ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081if test -n "$ac_ct_CC"; then
3082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3083printf "%s\n" "$ac_ct_CC" >&6; }
3084else
3085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086printf "%s\n" "no" >&6; }
3087fi
3088
3089  if test "x$ac_ct_CC" = x; then
3090    CC=""
3091  else
3092    case $cross_compiling:$ac_tool_warned in
3093yes:)
3094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3095printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3096ac_tool_warned=yes ;;
3097esac
3098    CC=$ac_ct_CC
3099  fi
3100else
3101  CC="$ac_cv_prog_CC"
3102fi
3103
3104fi
3105
3106
3107test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3109as_fn_error $? "no acceptable C compiler found in \$PATH
3110See \`config.log' for more details" "$LINENO" 5; }
3111
3112# Provide some information about the compiler.
3113printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3114set X $ac_compile
3115ac_compiler=$2
3116for ac_option in --version -v -V -qversion -version; do
3117  { { ac_try="$ac_compiler $ac_option >&5"
3118case "(($ac_try" in
3119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120  *) ac_try_echo=$ac_try;;
3121esac
3122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123printf "%s\n" "$ac_try_echo"; } >&5
3124  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3125  ac_status=$?
3126  if test -s conftest.err; then
3127    sed '10a\
3128... rest of stderr output deleted ...
3129         10q' conftest.err >conftest.er1
3130    cat conftest.er1 >&5
3131  fi
3132  rm -f conftest.er1 conftest.err
3133  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134  test $ac_status = 0; }
3135done
3136
3137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138/* end confdefs.h.  */
3139
3140int
3141main (void)
3142{
3143
3144  ;
3145  return 0;
3146}
3147_ACEOF
3148ac_clean_files_save=$ac_clean_files
3149ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3150# Try to create an executable without -o first, disregard a.out.
3151# It will help us diagnose broken compilers, and finding out an intuition
3152# of exeext.
3153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3154printf %s "checking whether the C compiler works... " >&6; }
3155ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3156
3157# The possible output files:
3158ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3159
3160ac_rmfiles=
3161for ac_file in $ac_files
3162do
3163  case $ac_file in
3164    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3165    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3166  esac
3167done
3168rm -f $ac_rmfiles
3169
3170if { { ac_try="$ac_link_default"
3171case "(($ac_try" in
3172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173  *) ac_try_echo=$ac_try;;
3174esac
3175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176printf "%s\n" "$ac_try_echo"; } >&5
3177  (eval "$ac_link_default") 2>&5
3178  ac_status=$?
3179  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180  test $ac_status = 0; }
3181then :
3182  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3183# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3184# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3185# so that the user can short-circuit this test for compilers unknown to
3186# Autoconf.
3187for ac_file in $ac_files ''
3188do
3189  test -f "$ac_file" || continue
3190  case $ac_file in
3191    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3192	;;
3193    [ab].out )
3194	# We found the default executable, but exeext='' is most
3195	# certainly right.
3196	break;;
3197    *.* )
3198	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3199	then :; else
3200	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3201	fi
3202	# We set ac_cv_exeext here because the later test for it is not
3203	# safe: cross compilers may not add the suffix if given an `-o'
3204	# argument, so we may need to know it at that point already.
3205	# Even if this section looks crufty: it has the advantage of
3206	# actually working.
3207	break;;
3208    * )
3209	break;;
3210  esac
3211done
3212test "$ac_cv_exeext" = no && ac_cv_exeext=
3213
3214else $as_nop
3215  ac_file=''
3216fi
3217if test -z "$ac_file"
3218then :
3219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220printf "%s\n" "no" >&6; }
3221printf "%s\n" "$as_me: failed program was:" >&5
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
3224{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3226as_fn_error 77 "C compiler cannot create executables
3227See \`config.log' for more details" "$LINENO" 5; }
3228else $as_nop
3229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3230printf "%s\n" "yes" >&6; }
3231fi
3232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3233printf %s "checking for C compiler default output file name... " >&6; }
3234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3235printf "%s\n" "$ac_file" >&6; }
3236ac_exeext=$ac_cv_exeext
3237
3238rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3239ac_clean_files=$ac_clean_files_save
3240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3241printf %s "checking for suffix of executables... " >&6; }
3242if { { ac_try="$ac_link"
3243case "(($ac_try" in
3244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245  *) ac_try_echo=$ac_try;;
3246esac
3247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248printf "%s\n" "$ac_try_echo"; } >&5
3249  (eval "$ac_link") 2>&5
3250  ac_status=$?
3251  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252  test $ac_status = 0; }
3253then :
3254  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3255# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3256# work properly (i.e., refer to `conftest.exe'), while it won't with
3257# `rm'.
3258for ac_file in conftest.exe conftest conftest.*; do
3259  test -f "$ac_file" || continue
3260  case $ac_file in
3261    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3263	  break;;
3264    * ) break;;
3265  esac
3266done
3267else $as_nop
3268  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3270as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3271See \`config.log' for more details" "$LINENO" 5; }
3272fi
3273rm -f conftest conftest$ac_cv_exeext
3274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3275printf "%s\n" "$ac_cv_exeext" >&6; }
3276
3277rm -f conftest.$ac_ext
3278EXEEXT=$ac_cv_exeext
3279ac_exeext=$EXEEXT
3280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281/* end confdefs.h.  */
3282#include <stdio.h>
3283int
3284main (void)
3285{
3286FILE *f = fopen ("conftest.out", "w");
3287 return ferror (f) || fclose (f) != 0;
3288
3289  ;
3290  return 0;
3291}
3292_ACEOF
3293ac_clean_files="$ac_clean_files conftest.out"
3294# Check that the compiler produces executables we can run.  If not, either
3295# the compiler is broken, or we cross compile.
3296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3297printf %s "checking whether we are cross compiling... " >&6; }
3298if test "$cross_compiling" != yes; then
3299  { { ac_try="$ac_link"
3300case "(($ac_try" in
3301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302  *) ac_try_echo=$ac_try;;
3303esac
3304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305printf "%s\n" "$ac_try_echo"; } >&5
3306  (eval "$ac_link") 2>&5
3307  ac_status=$?
3308  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309  test $ac_status = 0; }
3310  if { ac_try='./conftest$ac_cv_exeext'
3311  { { case "(($ac_try" in
3312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313  *) ac_try_echo=$ac_try;;
3314esac
3315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316printf "%s\n" "$ac_try_echo"; } >&5
3317  (eval "$ac_try") 2>&5
3318  ac_status=$?
3319  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320  test $ac_status = 0; }; }; then
3321    cross_compiling=no
3322  else
3323    if test "$cross_compiling" = maybe; then
3324	cross_compiling=yes
3325    else
3326	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3328as_fn_error 77 "cannot run C compiled programs.
3329If you meant to cross compile, use \`--host'.
3330See \`config.log' for more details" "$LINENO" 5; }
3331    fi
3332  fi
3333fi
3334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3335printf "%s\n" "$cross_compiling" >&6; }
3336
3337rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3338ac_clean_files=$ac_clean_files_save
3339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3340printf %s "checking for suffix of object files... " >&6; }
3341if test ${ac_cv_objext+y}
3342then :
3343  printf %s "(cached) " >&6
3344else $as_nop
3345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h.  */
3347
3348int
3349main (void)
3350{
3351
3352  ;
3353  return 0;
3354}
3355_ACEOF
3356rm -f conftest.o conftest.obj
3357if { { ac_try="$ac_compile"
3358case "(($ac_try" in
3359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360  *) ac_try_echo=$ac_try;;
3361esac
3362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363printf "%s\n" "$ac_try_echo"; } >&5
3364  (eval "$ac_compile") 2>&5
3365  ac_status=$?
3366  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367  test $ac_status = 0; }
3368then :
3369  for ac_file in conftest.o conftest.obj conftest.*; do
3370  test -f "$ac_file" || continue;
3371  case $ac_file in
3372    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3373    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3374       break;;
3375  esac
3376done
3377else $as_nop
3378  printf "%s\n" "$as_me: failed program was:" >&5
3379sed 's/^/| /' conftest.$ac_ext >&5
3380
3381{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3383as_fn_error $? "cannot compute suffix of object files: cannot compile
3384See \`config.log' for more details" "$LINENO" 5; }
3385fi
3386rm -f conftest.$ac_cv_objext conftest.$ac_ext
3387fi
3388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3389printf "%s\n" "$ac_cv_objext" >&6; }
3390OBJEXT=$ac_cv_objext
3391ac_objext=$OBJEXT
3392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3393printf %s "checking whether the compiler supports GNU C... " >&6; }
3394if test ${ac_cv_c_compiler_gnu+y}
3395then :
3396  printf %s "(cached) " >&6
3397else $as_nop
3398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399/* end confdefs.h.  */
3400
3401int
3402main (void)
3403{
3404#ifndef __GNUC__
3405       choke me
3406#endif
3407
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412if ac_fn_c_try_compile "$LINENO"
3413then :
3414  ac_compiler_gnu=yes
3415else $as_nop
3416  ac_compiler_gnu=no
3417fi
3418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3419ac_cv_c_compiler_gnu=$ac_compiler_gnu
3420
3421fi
3422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3423printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3424ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
3426if test $ac_compiler_gnu = yes; then
3427  GCC=yes
3428else
3429  GCC=
3430fi
3431ac_test_CFLAGS=${CFLAGS+y}
3432ac_save_CFLAGS=$CFLAGS
3433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3434printf %s "checking whether $CC accepts -g... " >&6; }
3435if test ${ac_cv_prog_cc_g+y}
3436then :
3437  printf %s "(cached) " >&6
3438else $as_nop
3439  ac_save_c_werror_flag=$ac_c_werror_flag
3440   ac_c_werror_flag=yes
3441   ac_cv_prog_cc_g=no
3442   CFLAGS="-g"
3443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444/* end confdefs.h.  */
3445
3446int
3447main (void)
3448{
3449
3450  ;
3451  return 0;
3452}
3453_ACEOF
3454if ac_fn_c_try_compile "$LINENO"
3455then :
3456  ac_cv_prog_cc_g=yes
3457else $as_nop
3458  CFLAGS=""
3459      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460/* end confdefs.h.  */
3461
3462int
3463main (void)
3464{
3465
3466  ;
3467  return 0;
3468}
3469_ACEOF
3470if ac_fn_c_try_compile "$LINENO"
3471then :
3472
3473else $as_nop
3474  ac_c_werror_flag=$ac_save_c_werror_flag
3475	 CFLAGS="-g"
3476	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h.  */
3478
3479int
3480main (void)
3481{
3482
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487if ac_fn_c_try_compile "$LINENO"
3488then :
3489  ac_cv_prog_cc_g=yes
3490fi
3491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3492fi
3493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3494fi
3495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3496   ac_c_werror_flag=$ac_save_c_werror_flag
3497fi
3498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3499printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3500if test $ac_test_CFLAGS; then
3501  CFLAGS=$ac_save_CFLAGS
3502elif test $ac_cv_prog_cc_g = yes; then
3503  if test "$GCC" = yes; then
3504    CFLAGS="-g -O2"
3505  else
3506    CFLAGS="-g"
3507  fi
3508else
3509  if test "$GCC" = yes; then
3510    CFLAGS="-O2"
3511  else
3512    CFLAGS=
3513  fi
3514fi
3515ac_prog_cc_stdc=no
3516if test x$ac_prog_cc_stdc = xno
3517then :
3518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3519printf %s "checking for $CC option to enable C11 features... " >&6; }
3520if test ${ac_cv_prog_cc_c11+y}
3521then :
3522  printf %s "(cached) " >&6
3523else $as_nop
3524  ac_cv_prog_cc_c11=no
3525ac_save_CC=$CC
3526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528$ac_c_conftest_c11_program
3529_ACEOF
3530for ac_arg in '' -std=gnu11
3531do
3532  CC="$ac_save_CC $ac_arg"
3533  if ac_fn_c_try_compile "$LINENO"
3534then :
3535  ac_cv_prog_cc_c11=$ac_arg
3536fi
3537rm -f core conftest.err conftest.$ac_objext conftest.beam
3538  test "x$ac_cv_prog_cc_c11" != "xno" && break
3539done
3540rm -f conftest.$ac_ext
3541CC=$ac_save_CC
3542fi
3543
3544if test "x$ac_cv_prog_cc_c11" = xno
3545then :
3546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3547printf "%s\n" "unsupported" >&6; }
3548else $as_nop
3549  if test "x$ac_cv_prog_cc_c11" = x
3550then :
3551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3552printf "%s\n" "none needed" >&6; }
3553else $as_nop
3554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3555printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3556     CC="$CC $ac_cv_prog_cc_c11"
3557fi
3558  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3559  ac_prog_cc_stdc=c11
3560fi
3561fi
3562if test x$ac_prog_cc_stdc = xno
3563then :
3564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3565printf %s "checking for $CC option to enable C99 features... " >&6; }
3566if test ${ac_cv_prog_cc_c99+y}
3567then :
3568  printf %s "(cached) " >&6
3569else $as_nop
3570  ac_cv_prog_cc_c99=no
3571ac_save_CC=$CC
3572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573/* end confdefs.h.  */
3574$ac_c_conftest_c99_program
3575_ACEOF
3576for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3577do
3578  CC="$ac_save_CC $ac_arg"
3579  if ac_fn_c_try_compile "$LINENO"
3580then :
3581  ac_cv_prog_cc_c99=$ac_arg
3582fi
3583rm -f core conftest.err conftest.$ac_objext conftest.beam
3584  test "x$ac_cv_prog_cc_c99" != "xno" && break
3585done
3586rm -f conftest.$ac_ext
3587CC=$ac_save_CC
3588fi
3589
3590if test "x$ac_cv_prog_cc_c99" = xno
3591then :
3592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3593printf "%s\n" "unsupported" >&6; }
3594else $as_nop
3595  if test "x$ac_cv_prog_cc_c99" = x
3596then :
3597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3598printf "%s\n" "none needed" >&6; }
3599else $as_nop
3600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3601printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3602     CC="$CC $ac_cv_prog_cc_c99"
3603fi
3604  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3605  ac_prog_cc_stdc=c99
3606fi
3607fi
3608if test x$ac_prog_cc_stdc = xno
3609then :
3610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3611printf %s "checking for $CC option to enable C89 features... " >&6; }
3612if test ${ac_cv_prog_cc_c89+y}
3613then :
3614  printf %s "(cached) " >&6
3615else $as_nop
3616  ac_cv_prog_cc_c89=no
3617ac_save_CC=$CC
3618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619/* end confdefs.h.  */
3620$ac_c_conftest_c89_program
3621_ACEOF
3622for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3623do
3624  CC="$ac_save_CC $ac_arg"
3625  if ac_fn_c_try_compile "$LINENO"
3626then :
3627  ac_cv_prog_cc_c89=$ac_arg
3628fi
3629rm -f core conftest.err conftest.$ac_objext conftest.beam
3630  test "x$ac_cv_prog_cc_c89" != "xno" && break
3631done
3632rm -f conftest.$ac_ext
3633CC=$ac_save_CC
3634fi
3635
3636if test "x$ac_cv_prog_cc_c89" = xno
3637then :
3638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3639printf "%s\n" "unsupported" >&6; }
3640else $as_nop
3641  if test "x$ac_cv_prog_cc_c89" = x
3642then :
3643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3644printf "%s\n" "none needed" >&6; }
3645else $as_nop
3646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3647printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3648     CC="$CC $ac_cv_prog_cc_c89"
3649fi
3650  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3651  ac_prog_cc_stdc=c89
3652fi
3653fi
3654
3655ac_ext=c
3656ac_cpp='$CPP $CPPFLAGS'
3657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660
3661
3662  ac_ext=c
3663ac_cpp='$CPP $CPPFLAGS'
3664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3668printf %s "checking whether $CC understands -c and -o together... " >&6; }
3669if test ${am_cv_prog_cc_c_o+y}
3670then :
3671  printf %s "(cached) " >&6
3672else $as_nop
3673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674/* end confdefs.h.  */
3675
3676int
3677main (void)
3678{
3679
3680  ;
3681  return 0;
3682}
3683_ACEOF
3684  # Make sure it works both with $CC and with simple cc.
3685  # Following AC_PROG_CC_C_O, we do the test twice because some
3686  # compilers refuse to overwrite an existing .o file with -o,
3687  # though they will create one.
3688  am_cv_prog_cc_c_o=yes
3689  for am_i in 1 2; do
3690    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3691   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); } \
3695         && test -f conftest2.$ac_objext; then
3696      : OK
3697    else
3698      am_cv_prog_cc_c_o=no
3699      break
3700    fi
3701  done
3702  rm -f core conftest*
3703  unset am_i
3704fi
3705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3706printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3707if test "$am_cv_prog_cc_c_o" != yes; then
3708   # Losing compiler, so override with the script.
3709   # FIXME: It is wrong to rewrite CC.
3710   # But if we don't then we get into trouble of one sort or another.
3711   # A longer-term fix would be to have automake use am__CC in this case,
3712   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3713   CC="$am_aux_dir/compile $CC"
3714fi
3715ac_ext=c
3716ac_cpp='$CPP $CPPFLAGS'
3717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720
3721
3722
3723ac_header= ac_cache=
3724for ac_item in $ac_header_c_list
3725do
3726  if test $ac_cache; then
3727    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3728    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3729      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3730    fi
3731    ac_header= ac_cache=
3732  elif test $ac_header; then
3733    ac_cache=$ac_item
3734  else
3735    ac_header=$ac_item
3736  fi
3737done
3738
3739
3740
3741
3742
3743
3744
3745
3746if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3747then :
3748
3749printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3750
3751fi
3752
3753
3754
3755
3756
3757
3758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3759printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3760if test ${ac_cv_safe_to_define___extensions__+y}
3761then :
3762  printf %s "(cached) " >&6
3763else $as_nop
3764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h.  */
3766
3767#         define __EXTENSIONS__ 1
3768          $ac_includes_default
3769int
3770main (void)
3771{
3772
3773  ;
3774  return 0;
3775}
3776_ACEOF
3777if ac_fn_c_try_compile "$LINENO"
3778then :
3779  ac_cv_safe_to_define___extensions__=yes
3780else $as_nop
3781  ac_cv_safe_to_define___extensions__=no
3782fi
3783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3784fi
3785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3786printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3787
3788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3789printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3790if test ${ac_cv_should_define__xopen_source+y}
3791then :
3792  printf %s "(cached) " >&6
3793else $as_nop
3794  ac_cv_should_define__xopen_source=no
3795    if test $ac_cv_header_wchar_h = yes
3796then :
3797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h.  */
3799
3800          #include <wchar.h>
3801          mbstate_t x;
3802int
3803main (void)
3804{
3805
3806  ;
3807  return 0;
3808}
3809_ACEOF
3810if ac_fn_c_try_compile "$LINENO"
3811then :
3812
3813else $as_nop
3814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h.  */
3816
3817            #define _XOPEN_SOURCE 500
3818            #include <wchar.h>
3819            mbstate_t x;
3820int
3821main (void)
3822{
3823
3824  ;
3825  return 0;
3826}
3827_ACEOF
3828if ac_fn_c_try_compile "$LINENO"
3829then :
3830  ac_cv_should_define__xopen_source=yes
3831fi
3832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3833fi
3834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3835fi
3836fi
3837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3838printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3839
3840  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3841
3842  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3843
3844  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3845
3846  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3847
3848  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3849
3850  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3851
3852  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3853
3854  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3855
3856  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3857
3858  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3859
3860  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3861
3862  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3863
3864  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3865
3866  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3867
3868  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3869
3870  if test $ac_cv_header_minix_config_h = yes
3871then :
3872  MINIX=yes
3873    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3874
3875    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3876
3877    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3878
3879else $as_nop
3880  MINIX=
3881fi
3882  if test $ac_cv_safe_to_define___extensions__ = yes
3883then :
3884  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3885
3886fi
3887  if test $ac_cv_should_define__xopen_source = yes
3888then :
3889  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3890
3891fi
3892
3893
3894# Initialize Automake
3895am__api_version='1.16'
3896
3897
3898  # Find a good install program.  We prefer a C program (faster),
3899# so one script is as good as another.  But avoid the broken or
3900# incompatible versions:
3901# SysV /etc/install, /usr/sbin/install
3902# SunOS /usr/etc/install
3903# IRIX /sbin/install
3904# AIX /bin/install
3905# AmigaOS /C/install, which installs bootblocks on floppy discs
3906# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3907# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3908# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3909# OS/2's system install, which has a completely different semantic
3910# ./install, which can be erroneously created by make from ./install.sh.
3911# Reject install programs that cannot install multiple files.
3912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3913printf %s "checking for a BSD-compatible install... " >&6; }
3914if test -z "$INSTALL"; then
3915if test ${ac_cv_path_install+y}
3916then :
3917  printf %s "(cached) " >&6
3918else $as_nop
3919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH
3921do
3922  IFS=$as_save_IFS
3923  case $as_dir in #(((
3924    '') as_dir=./ ;;
3925    */) ;;
3926    *) as_dir=$as_dir/ ;;
3927  esac
3928    # Account for fact that we put trailing slashes in our PATH walk.
3929case $as_dir in #((
3930  ./ | /[cC]/* | \
3931  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3932  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3933  /usr/ucb/* ) ;;
3934  *)
3935    # OSF1 and SCO ODT 3.0 have their own names for install.
3936    # Don't use installbsd from OSF since it installs stuff as root
3937    # by default.
3938    for ac_prog in ginstall scoinst install; do
3939      for ac_exec_ext in '' $ac_executable_extensions; do
3940	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3941	  if test $ac_prog = install &&
3942	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3943	    # AIX install.  It has an incompatible calling convention.
3944	    :
3945	  elif test $ac_prog = install &&
3946	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3947	    # program-specific install script used by HP pwplus--don't use.
3948	    :
3949	  else
3950	    rm -rf conftest.one conftest.two conftest.dir
3951	    echo one > conftest.one
3952	    echo two > conftest.two
3953	    mkdir conftest.dir
3954	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3955	      test -s conftest.one && test -s conftest.two &&
3956	      test -s conftest.dir/conftest.one &&
3957	      test -s conftest.dir/conftest.two
3958	    then
3959	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3960	      break 3
3961	    fi
3962	  fi
3963	fi
3964      done
3965    done
3966    ;;
3967esac
3968
3969  done
3970IFS=$as_save_IFS
3971
3972rm -rf conftest.one conftest.two conftest.dir
3973
3974fi
3975  if test ${ac_cv_path_install+y}; then
3976    INSTALL=$ac_cv_path_install
3977  else
3978    # As a last resort, use the slow shell script.  Don't cache a
3979    # value for INSTALL within a source directory, because that will
3980    # break other packages using the cache if that directory is
3981    # removed, or if the value is a relative name.
3982    INSTALL=$ac_install_sh
3983  fi
3984fi
3985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3986printf "%s\n" "$INSTALL" >&6; }
3987
3988# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3989# It thinks the first close brace ends the variable substitution.
3990test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3991
3992test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3993
3994test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3995
3996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3997printf %s "checking whether build environment is sane... " >&6; }
3998# Reject unsafe characters in $srcdir or the absolute working directory
3999# name.  Accept space and tab only in the latter.
4000am_lf='
4001'
4002case `pwd` in
4003  *[\\\"\#\$\&\'\`$am_lf]*)
4004    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4005esac
4006case $srcdir in
4007  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4008    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4009esac
4010
4011# Do 'set' in a subshell so we don't clobber the current shell's
4012# arguments.  Must try -L first in case configure is actually a
4013# symlink; some systems play weird games with the mod time of symlinks
4014# (eg FreeBSD returns the mod time of the symlink's containing
4015# directory).
4016if (
4017   am_has_slept=no
4018   for am_try in 1 2; do
4019     echo "timestamp, slept: $am_has_slept" > conftest.file
4020     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4021     if test "$*" = "X"; then
4022	# -L didn't work.
4023	set X `ls -t "$srcdir/configure" conftest.file`
4024     fi
4025     if test "$*" != "X $srcdir/configure conftest.file" \
4026	&& test "$*" != "X conftest.file $srcdir/configure"; then
4027
4028	# If neither matched, then we have a broken ls.  This can happen
4029	# if, for instance, CONFIG_SHELL is bash and it inherits a
4030	# broken ls alias from the environment.  This has actually
4031	# happened.  Such a system could not be considered "sane".
4032	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4033  alias in your environment" "$LINENO" 5
4034     fi
4035     if test "$2" = conftest.file || test $am_try -eq 2; then
4036       break
4037     fi
4038     # Just in case.
4039     sleep 1
4040     am_has_slept=yes
4041   done
4042   test "$2" = conftest.file
4043   )
4044then
4045   # Ok.
4046   :
4047else
4048   as_fn_error $? "newly created file is older than distributed files!
4049Check your system clock" "$LINENO" 5
4050fi
4051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4052printf "%s\n" "yes" >&6; }
4053# If we didn't sleep, we still need to ensure time stamps of config.status and
4054# generated files are strictly newer.
4055am_sleep_pid=
4056if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4057  ( sleep 1 ) &
4058  am_sleep_pid=$!
4059fi
4060
4061rm -f conftest.file
4062
4063test "$program_prefix" != NONE &&
4064  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4065# Use a double $ so make ignores it.
4066test "$program_suffix" != NONE &&
4067  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4068# Double any \ or $.
4069# By default was `s,x,x', remove it if useless.
4070ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4071program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4072
4073
4074  if test x"${MISSING+set}" != xset; then
4075  MISSING="\${SHELL} '$am_aux_dir/missing'"
4076fi
4077# Use eval to expand $SHELL
4078if eval "$MISSING --is-lightweight"; then
4079  am_missing_run="$MISSING "
4080else
4081  am_missing_run=
4082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4083printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4084fi
4085
4086if test x"${install_sh+set}" != xset; then
4087  case $am_aux_dir in
4088  *\ * | *\	*)
4089    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4090  *)
4091    install_sh="\${SHELL} $am_aux_dir/install-sh"
4092  esac
4093fi
4094
4095# Installed binaries are usually stripped using 'strip' when the user
4096# run "make install-strip".  However 'strip' might not be the right
4097# tool to use in cross-compilation environments, therefore Automake
4098# will honor the 'STRIP' environment variable to overrule this program.
4099if test "$cross_compiling" != no; then
4100  if test -n "$ac_tool_prefix"; then
4101  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4102set dummy ${ac_tool_prefix}strip; ac_word=$2
4103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104printf %s "checking for $ac_word... " >&6; }
4105if test ${ac_cv_prog_STRIP+y}
4106then :
4107  printf %s "(cached) " >&6
4108else $as_nop
4109  if test -n "$STRIP"; then
4110  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4111else
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115  IFS=$as_save_IFS
4116  case $as_dir in #(((
4117    '') as_dir=./ ;;
4118    */) ;;
4119    *) as_dir=$as_dir/ ;;
4120  esac
4121    for ac_exec_ext in '' $ac_executable_extensions; do
4122  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4123    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4124    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4125    break 2
4126  fi
4127done
4128  done
4129IFS=$as_save_IFS
4130
4131fi
4132fi
4133STRIP=$ac_cv_prog_STRIP
4134if test -n "$STRIP"; then
4135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4136printf "%s\n" "$STRIP" >&6; }
4137else
4138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139printf "%s\n" "no" >&6; }
4140fi
4141
4142
4143fi
4144if test -z "$ac_cv_prog_STRIP"; then
4145  ac_ct_STRIP=$STRIP
4146  # Extract the first word of "strip", so it can be a program name with args.
4147set dummy strip; ac_word=$2
4148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149printf %s "checking for $ac_word... " >&6; }
4150if test ${ac_cv_prog_ac_ct_STRIP+y}
4151then :
4152  printf %s "(cached) " >&6
4153else $as_nop
4154  if test -n "$ac_ct_STRIP"; then
4155  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4156else
4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160  IFS=$as_save_IFS
4161  case $as_dir in #(((
4162    '') as_dir=./ ;;
4163    */) ;;
4164    *) as_dir=$as_dir/ ;;
4165  esac
4166    for ac_exec_ext in '' $ac_executable_extensions; do
4167  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4168    ac_cv_prog_ac_ct_STRIP="strip"
4169    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4170    break 2
4171  fi
4172done
4173  done
4174IFS=$as_save_IFS
4175
4176fi
4177fi
4178ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4179if test -n "$ac_ct_STRIP"; then
4180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4181printf "%s\n" "$ac_ct_STRIP" >&6; }
4182else
4183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184printf "%s\n" "no" >&6; }
4185fi
4186
4187  if test "x$ac_ct_STRIP" = x; then
4188    STRIP=":"
4189  else
4190    case $cross_compiling:$ac_tool_warned in
4191yes:)
4192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194ac_tool_warned=yes ;;
4195esac
4196    STRIP=$ac_ct_STRIP
4197  fi
4198else
4199  STRIP="$ac_cv_prog_STRIP"
4200fi
4201
4202fi
4203INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4204
4205
4206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4207printf %s "checking for a race-free mkdir -p... " >&6; }
4208if test -z "$MKDIR_P"; then
4209  if test ${ac_cv_path_mkdir+y}
4210then :
4211  printf %s "(cached) " >&6
4212else $as_nop
4213  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4215do
4216  IFS=$as_save_IFS
4217  case $as_dir in #(((
4218    '') as_dir=./ ;;
4219    */) ;;
4220    *) as_dir=$as_dir/ ;;
4221  esac
4222    for ac_prog in mkdir gmkdir; do
4223	 for ac_exec_ext in '' $ac_executable_extensions; do
4224	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4225	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4226	     'mkdir ('*'coreutils) '* | \
4227	     'BusyBox '* | \
4228	     'mkdir (fileutils) '4.1*)
4229	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4230	       break 3;;
4231	   esac
4232	 done
4233       done
4234  done
4235IFS=$as_save_IFS
4236
4237fi
4238
4239  test -d ./--version && rmdir ./--version
4240  if test ${ac_cv_path_mkdir+y}; then
4241    MKDIR_P="$ac_cv_path_mkdir -p"
4242  else
4243    # As a last resort, use the slow shell script.  Don't cache a
4244    # value for MKDIR_P within a source directory, because that will
4245    # break other packages using the cache if that directory is
4246    # removed, or if the value is a relative name.
4247    MKDIR_P="$ac_install_sh -d"
4248  fi
4249fi
4250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4251printf "%s\n" "$MKDIR_P" >&6; }
4252
4253for ac_prog in gawk mawk nawk awk
4254do
4255  # Extract the first word of "$ac_prog", so it can be a program name with args.
4256set dummy $ac_prog; ac_word=$2
4257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258printf %s "checking for $ac_word... " >&6; }
4259if test ${ac_cv_prog_AWK+y}
4260then :
4261  printf %s "(cached) " >&6
4262else $as_nop
4263  if test -n "$AWK"; then
4264  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4265else
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269  IFS=$as_save_IFS
4270  case $as_dir in #(((
4271    '') as_dir=./ ;;
4272    */) ;;
4273    *) as_dir=$as_dir/ ;;
4274  esac
4275    for ac_exec_ext in '' $ac_executable_extensions; do
4276  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4277    ac_cv_prog_AWK="$ac_prog"
4278    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4279    break 2
4280  fi
4281done
4282  done
4283IFS=$as_save_IFS
4284
4285fi
4286fi
4287AWK=$ac_cv_prog_AWK
4288if test -n "$AWK"; then
4289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4290printf "%s\n" "$AWK" >&6; }
4291else
4292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293printf "%s\n" "no" >&6; }
4294fi
4295
4296
4297  test -n "$AWK" && break
4298done
4299
4300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4301printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4302set x ${MAKE-make}
4303ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4304if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4305then :
4306  printf %s "(cached) " >&6
4307else $as_nop
4308  cat >conftest.make <<\_ACEOF
4309SHELL = /bin/sh
4310all:
4311	@echo '@@@%%%=$(MAKE)=@@@%%%'
4312_ACEOF
4313# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4314case `${MAKE-make} -f conftest.make 2>/dev/null` in
4315  *@@@%%%=?*=@@@%%%*)
4316    eval ac_cv_prog_make_${ac_make}_set=yes;;
4317  *)
4318    eval ac_cv_prog_make_${ac_make}_set=no;;
4319esac
4320rm -f conftest.make
4321fi
4322if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4324printf "%s\n" "yes" >&6; }
4325  SET_MAKE=
4326else
4327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328printf "%s\n" "no" >&6; }
4329  SET_MAKE="MAKE=${MAKE-make}"
4330fi
4331
4332rm -rf .tst 2>/dev/null
4333mkdir .tst 2>/dev/null
4334if test -d .tst; then
4335  am__leading_dot=.
4336else
4337  am__leading_dot=_
4338fi
4339rmdir .tst 2>/dev/null
4340
4341DEPDIR="${am__leading_dot}deps"
4342
4343ac_config_commands="$ac_config_commands depfiles"
4344
4345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4346printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4347cat > confinc.mk << 'END'
4348am__doit:
4349	@echo this is the am__doit target >confinc.out
4350.PHONY: am__doit
4351END
4352am__include="#"
4353am__quote=
4354# BSD make does it like this.
4355echo '.include "confinc.mk" # ignored' > confmf.BSD
4356# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4357echo 'include confinc.mk # ignored' > confmf.GNU
4358_am_result=no
4359for s in GNU BSD; do
4360  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4361   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }
4365  case $?:`cat confinc.out 2>/dev/null` in #(
4366  '0:this is the am__doit target') :
4367    case $s in #(
4368  BSD) :
4369    am__include='.include' am__quote='"' ;; #(
4370  *) :
4371    am__include='include' am__quote='' ;;
4372esac ;; #(
4373  *) :
4374     ;;
4375esac
4376  if test "$am__include" != "#"; then
4377    _am_result="yes ($s style)"
4378    break
4379  fi
4380done
4381rm -f confinc.* confmf.*
4382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4383printf "%s\n" "${_am_result}" >&6; }
4384
4385# Check whether --enable-dependency-tracking was given.
4386if test ${enable_dependency_tracking+y}
4387then :
4388  enableval=$enable_dependency_tracking;
4389fi
4390
4391if test "x$enable_dependency_tracking" != xno; then
4392  am_depcomp="$ac_aux_dir/depcomp"
4393  AMDEPBACKSLASH='\'
4394  am__nodep='_no'
4395fi
4396 if test "x$enable_dependency_tracking" != xno; then
4397  AMDEP_TRUE=
4398  AMDEP_FALSE='#'
4399else
4400  AMDEP_TRUE='#'
4401  AMDEP_FALSE=
4402fi
4403
4404
4405# Check whether --enable-silent-rules was given.
4406if test ${enable_silent_rules+y}
4407then :
4408  enableval=$enable_silent_rules;
4409fi
4410
4411case $enable_silent_rules in # (((
4412  yes) AM_DEFAULT_VERBOSITY=0;;
4413   no) AM_DEFAULT_VERBOSITY=1;;
4414    *) AM_DEFAULT_VERBOSITY=1;;
4415esac
4416am_make=${MAKE-make}
4417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4418printf %s "checking whether $am_make supports nested variables... " >&6; }
4419if test ${am_cv_make_support_nested_variables+y}
4420then :
4421  printf %s "(cached) " >&6
4422else $as_nop
4423  if printf "%s\n" 'TRUE=$(BAR$(V))
4424BAR0=false
4425BAR1=true
4426V=1
4427am__doit:
4428	@$(TRUE)
4429.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4430  am_cv_make_support_nested_variables=yes
4431else
4432  am_cv_make_support_nested_variables=no
4433fi
4434fi
4435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4436printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4437if test $am_cv_make_support_nested_variables = yes; then
4438    AM_V='$(V)'
4439  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4440else
4441  AM_V=$AM_DEFAULT_VERBOSITY
4442  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4443fi
4444AM_BACKSLASH='\'
4445
4446if test "`cd $srcdir && pwd`" != "`pwd`"; then
4447  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4448  # is not polluted with repeated "-I."
4449  am__isrc=' -I$(srcdir)'
4450  # test to see if srcdir already configured
4451  if test -f $srcdir/config.status; then
4452    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4453  fi
4454fi
4455
4456# test whether we have cygpath
4457if test -z "$CYGPATH_W"; then
4458  if (cygpath --version) >/dev/null 2>/dev/null; then
4459    CYGPATH_W='cygpath -w'
4460  else
4461    CYGPATH_W=echo
4462  fi
4463fi
4464
4465
4466# Define the identity of the package.
4467 PACKAGE='xwininfo'
4468 VERSION='1.1.6'
4469
4470
4471printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4472
4473
4474printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4475
4476# Some tools Automake needs.
4477
4478ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4479
4480
4481AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4482
4483
4484AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4485
4486
4487AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4488
4489
4490MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4491
4492# For better backward compatibility.  To be removed once Automake 1.9.x
4493# dies out for good.  For more background, see:
4494# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4495# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4496mkdir_p='$(MKDIR_P)'
4497
4498# We need awk for the "check" target (and possibly the TAP driver).  The
4499# system "awk" is bad on some platforms.
4500# Always define AMTAR for backward compatibility.  Yes, it's still used
4501# in the wild :-(  We should find a proper way to deprecate it ...
4502AMTAR='$${TAR-tar}'
4503
4504
4505# We'll loop over all known methods to create a tar archive until one works.
4506_am_tools='gnutar  pax cpio none'
4507
4508am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4509
4510
4511
4512
4513
4514depcc="$CC"   am_compiler_list=
4515
4516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4517printf %s "checking dependency style of $depcc... " >&6; }
4518if test ${am_cv_CC_dependencies_compiler_type+y}
4519then :
4520  printf %s "(cached) " >&6
4521else $as_nop
4522  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4523  # We make a subdir and do the tests there.  Otherwise we can end up
4524  # making bogus files that we don't know about and never remove.  For
4525  # instance it was reported that on HP-UX the gcc test will end up
4526  # making a dummy file named 'D' -- because '-MD' means "put the output
4527  # in D".
4528  rm -rf conftest.dir
4529  mkdir conftest.dir
4530  # Copy depcomp to subdir because otherwise we won't find it if we're
4531  # using a relative directory.
4532  cp "$am_depcomp" conftest.dir
4533  cd conftest.dir
4534  # We will build objects and dependencies in a subdirectory because
4535  # it helps to detect inapplicable dependency modes.  For instance
4536  # both Tru64's cc and ICC support -MD to output dependencies as a
4537  # side effect of compilation, but ICC will put the dependencies in
4538  # the current directory while Tru64 will put them in the object
4539  # directory.
4540  mkdir sub
4541
4542  am_cv_CC_dependencies_compiler_type=none
4543  if test "$am_compiler_list" = ""; then
4544     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4545  fi
4546  am__universal=false
4547  case " $depcc " in #(
4548     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4549     esac
4550
4551  for depmode in $am_compiler_list; do
4552    # Setup a source with many dependencies, because some compilers
4553    # like to wrap large dependency lists on column 80 (with \), and
4554    # we should not choose a depcomp mode which is confused by this.
4555    #
4556    # We need to recreate these files for each test, as the compiler may
4557    # overwrite some of them when testing with obscure command lines.
4558    # This happens at least with the AIX C compiler.
4559    : > sub/conftest.c
4560    for i in 1 2 3 4 5 6; do
4561      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4562      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4563      # Solaris 10 /bin/sh.
4564      echo '/* dummy */' > sub/conftst$i.h
4565    done
4566    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4567
4568    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4569    # mode.  It turns out that the SunPro C++ compiler does not properly
4570    # handle '-M -o', and we need to detect this.  Also, some Intel
4571    # versions had trouble with output in subdirs.
4572    am__obj=sub/conftest.${OBJEXT-o}
4573    am__minus_obj="-o $am__obj"
4574    case $depmode in
4575    gcc)
4576      # This depmode causes a compiler race in universal mode.
4577      test "$am__universal" = false || continue
4578      ;;
4579    nosideeffect)
4580      # After this tag, mechanisms are not by side-effect, so they'll
4581      # only be used when explicitly requested.
4582      if test "x$enable_dependency_tracking" = xyes; then
4583	continue
4584      else
4585	break
4586      fi
4587      ;;
4588    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4589      # This compiler won't grok '-c -o', but also, the minuso test has
4590      # not run yet.  These depmodes are late enough in the game, and
4591      # so weak that their functioning should not be impacted.
4592      am__obj=conftest.${OBJEXT-o}
4593      am__minus_obj=
4594      ;;
4595    none) break ;;
4596    esac
4597    if depmode=$depmode \
4598       source=sub/conftest.c object=$am__obj \
4599       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4600       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4601         >/dev/null 2>conftest.err &&
4602       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4603       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4604       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4605       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4606      # icc doesn't choke on unknown options, it will just issue warnings
4607      # or remarks (even with -Werror).  So we grep stderr for any message
4608      # that says an option was ignored or not supported.
4609      # When given -MP, icc 7.0 and 7.1 complain thusly:
4610      #   icc: Command line warning: ignoring option '-M'; no argument required
4611      # The diagnosis changed in icc 8.0:
4612      #   icc: Command line remark: option '-MP' not supported
4613      if (grep 'ignoring option' conftest.err ||
4614          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4615        am_cv_CC_dependencies_compiler_type=$depmode
4616        break
4617      fi
4618    fi
4619  done
4620
4621  cd ..
4622  rm -rf conftest.dir
4623else
4624  am_cv_CC_dependencies_compiler_type=none
4625fi
4626
4627fi
4628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4629printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4630CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4631
4632 if
4633  test "x$enable_dependency_tracking" != xno \
4634  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4635  am__fastdepCC_TRUE=
4636  am__fastdepCC_FALSE='#'
4637else
4638  am__fastdepCC_TRUE='#'
4639  am__fastdepCC_FALSE=
4640fi
4641
4642
4643# Variables for tags utilities; see am/tags.am
4644if test -z "$CTAGS"; then
4645  CTAGS=ctags
4646fi
4647
4648if test -z "$ETAGS"; then
4649  ETAGS=etags
4650fi
4651
4652if test -z "$CSCOPE"; then
4653  CSCOPE=cscope
4654fi
4655
4656
4657
4658# POSIX will say in a future version that running "rm -f" with no argument
4659# is OK; and we want to be able to make that assumption in our Makefile
4660# recipes.  So use an aggressive probe to check that the usage we want is
4661# actually supported "in the wild" to an acceptable degree.
4662# See automake bug#10828.
4663# To make any issue more visible, cause the running configure to be aborted
4664# by default if the 'rm' program in use doesn't match our expectations; the
4665# user can still override this though.
4666if rm -f && rm -fr && rm -rf; then : OK; else
4667  cat >&2 <<'END'
4668Oops!
4669
4670Your 'rm' program seems unable to run without file operands specified
4671on the command line, even when the '-f' option is present.  This is contrary
4672to the behaviour of most rm programs out there, and not conforming with
4673the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4674
4675Please tell bug-automake@gnu.org about your system, including the value
4676of your $PATH and any error possibly output before this message.  This
4677can help us improve future automake versions.
4678
4679END
4680  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4681    echo 'Configuration will proceed anyway, since you have set the' >&2
4682    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4683    echo >&2
4684  else
4685    cat >&2 <<'END'
4686Aborting the configuration process, to ensure you take notice of the issue.
4687
4688You can download and install GNU coreutils to get an 'rm' implementation
4689that behaves properly: <https://www.gnu.org/software/coreutils/>.
4690
4691If you want to complete the configuration process using your problematic
4692'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4693to "yes", and re-run configure.
4694
4695END
4696    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4697  fi
4698fi
4699
4700
4701
4702  # Make sure we can run config.sub.
4703$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4704  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4705
4706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4707printf %s "checking build system type... " >&6; }
4708if test ${ac_cv_build+y}
4709then :
4710  printf %s "(cached) " >&6
4711else $as_nop
4712  ac_build_alias=$build_alias
4713test "x$ac_build_alias" = x &&
4714  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4715test "x$ac_build_alias" = x &&
4716  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4717ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4718  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4719
4720fi
4721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4722printf "%s\n" "$ac_cv_build" >&6; }
4723case $ac_cv_build in
4724*-*-*) ;;
4725*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4726esac
4727build=$ac_cv_build
4728ac_save_IFS=$IFS; IFS='-'
4729set x $ac_cv_build
4730shift
4731build_cpu=$1
4732build_vendor=$2
4733shift; shift
4734# Remember, the first character of IFS is used to create $*,
4735# except with old shells:
4736build_os=$*
4737IFS=$ac_save_IFS
4738case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4739
4740
4741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4742printf %s "checking host system type... " >&6; }
4743if test ${ac_cv_host+y}
4744then :
4745  printf %s "(cached) " >&6
4746else $as_nop
4747  if test "x$host_alias" = x; then
4748  ac_cv_host=$ac_cv_build
4749else
4750  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4751    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4752fi
4753
4754fi
4755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4756printf "%s\n" "$ac_cv_host" >&6; }
4757case $ac_cv_host in
4758*-*-*) ;;
4759*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4760esac
4761host=$ac_cv_host
4762ac_save_IFS=$IFS; IFS='-'
4763set x $ac_cv_host
4764shift
4765host_cpu=$1
4766host_vendor=$2
4767shift; shift
4768# Remember, the first character of IFS is used to create $*,
4769# except with old shells:
4770host_os=$*
4771IFS=$ac_save_IFS
4772case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4773
4774
4775
4776      if test "X$prefix" = "XNONE"; then
4777    acl_final_prefix="$ac_default_prefix"
4778  else
4779    acl_final_prefix="$prefix"
4780  fi
4781  if test "X$exec_prefix" = "XNONE"; then
4782    acl_final_exec_prefix='${prefix}'
4783  else
4784    acl_final_exec_prefix="$exec_prefix"
4785  fi
4786  acl_save_prefix="$prefix"
4787  prefix="$acl_final_prefix"
4788  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4789  prefix="$acl_save_prefix"
4790
4791
4792
4793# Check whether --with-gnu-ld was given.
4794if test ${with_gnu_ld+y}
4795then :
4796  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4797else $as_nop
4798  with_gnu_ld=no
4799fi
4800
4801# Prepare PATH_SEPARATOR.
4802# The user is always right.
4803if test "${PATH_SEPARATOR+set}" != set; then
4804  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4805  # contains only /bin. Note that ksh looks also at the FPATH variable,
4806  # so we have to set that as well for the test.
4807  PATH_SEPARATOR=:
4808  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4809    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4810           || PATH_SEPARATOR=';'
4811       }
4812fi
4813
4814ac_prog=ld
4815if test "$GCC" = yes; then
4816  # Check if gcc -print-prog-name=ld gives a path.
4817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4818printf %s "checking for ld used by $CC... " >&6; }
4819  case $host in
4820  *-*-mingw*)
4821    # gcc leaves a trailing carriage return which upsets mingw
4822    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4823  *)
4824    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4825  esac
4826  case $ac_prog in
4827    # Accept absolute paths.
4828    [\\/]* | ?:[\\/]*)
4829      re_direlt='/[^/][^/]*/\.\./'
4830      # Canonicalize the pathname of ld
4831      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
4832      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
4833        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4834      done
4835      test -z "$LD" && LD="$ac_prog"
4836      ;;
4837  "")
4838    # If it fails, then pretend we aren't using GCC.
4839    ac_prog=ld
4840    ;;
4841  *)
4842    # If it is relative, then search for the first ld in PATH.
4843    with_gnu_ld=unknown
4844    ;;
4845  esac
4846elif test "$with_gnu_ld" = yes; then
4847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4848printf %s "checking for GNU ld... " >&6; }
4849else
4850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4851printf %s "checking for non-GNU ld... " >&6; }
4852fi
4853if test ${acl_cv_path_LD+y}
4854then :
4855  printf %s "(cached) " >&6
4856else $as_nop
4857  if test -z "$LD"; then
4858  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4859  for ac_dir in $PATH; do
4860    IFS="$acl_save_ifs"
4861    test -z "$ac_dir" && ac_dir=.
4862    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4863      acl_cv_path_LD="$ac_dir/$ac_prog"
4864      # Check to see if the program is GNU ld.  I'd rather use --version,
4865      # but apparently some variants of GNU ld only accept -v.
4866      # Break only if it was the GNU/non-GNU ld that we prefer.
4867      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
4868      *GNU* | *'with BFD'*)
4869        test "$with_gnu_ld" != no && break
4870        ;;
4871      *)
4872        test "$with_gnu_ld" != yes && break
4873        ;;
4874      esac
4875    fi
4876  done
4877  IFS="$acl_save_ifs"
4878else
4879  acl_cv_path_LD="$LD" # Let the user override the test with a path.
4880fi
4881fi
4882
4883LD="$acl_cv_path_LD"
4884if test -n "$LD"; then
4885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4886printf "%s\n" "$LD" >&6; }
4887else
4888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889printf "%s\n" "no" >&6; }
4890fi
4891test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4893printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4894if test ${acl_cv_prog_gnu_ld+y}
4895then :
4896  printf %s "(cached) " >&6
4897else $as_nop
4898  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4899case `$LD -v 2>&1 </dev/null` in
4900*GNU* | *'with BFD'*)
4901  acl_cv_prog_gnu_ld=yes
4902  ;;
4903*)
4904  acl_cv_prog_gnu_ld=no
4905  ;;
4906esac
4907fi
4908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4909printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
4910with_gnu_ld=$acl_cv_prog_gnu_ld
4911
4912
4913
4914
4915
4916                                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4917printf %s "checking for shared library run path origin... " >&6; }
4918if test ${acl_cv_rpath+y}
4919then :
4920  printf %s "(cached) " >&6
4921else $as_nop
4922
4923    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4924    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4925    . ./conftest.sh
4926    rm -f ./conftest.sh
4927    acl_cv_rpath=done
4928
4929fi
4930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4931printf "%s\n" "$acl_cv_rpath" >&6; }
4932  wl="$acl_cv_wl"
4933  acl_libext="$acl_cv_libext"
4934  acl_shlibext="$acl_cv_shlibext"
4935  acl_libname_spec="$acl_cv_libname_spec"
4936  acl_library_names_spec="$acl_cv_library_names_spec"
4937  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4938  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4939  acl_hardcode_direct="$acl_cv_hardcode_direct"
4940  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4941    # Check whether --enable-rpath was given.
4942if test ${enable_rpath+y}
4943then :
4944  enableval=$enable_rpath; :
4945else $as_nop
4946  enable_rpath=yes
4947fi
4948
4949
4950ac_ext=c
4951ac_cpp='$CPP $CPPFLAGS'
4952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954ac_compiler_gnu=$ac_cv_c_compiler_gnu
4955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4956printf %s "checking how to run the C preprocessor... " >&6; }
4957# On Suns, sometimes $CPP names a directory.
4958if test -n "$CPP" && test -d "$CPP"; then
4959  CPP=
4960fi
4961if test -z "$CPP"; then
4962  if test ${ac_cv_prog_CPP+y}
4963then :
4964  printf %s "(cached) " >&6
4965else $as_nop
4966      # Double quotes because $CC needs to be expanded
4967    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4968    do
4969      ac_preproc_ok=false
4970for ac_c_preproc_warn_flag in '' yes
4971do
4972  # Use a header file that comes with gcc, so configuring glibc
4973  # with a fresh cross-compiler works.
4974  # On the NeXT, cc -E runs the code through the compiler's parser,
4975  # not just through cpp. "Syntax error" is here to catch this case.
4976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h.  */
4978#include <limits.h>
4979		     Syntax error
4980_ACEOF
4981if ac_fn_c_try_cpp "$LINENO"
4982then :
4983
4984else $as_nop
4985  # Broken: fails on valid input.
4986continue
4987fi
4988rm -f conftest.err conftest.i conftest.$ac_ext
4989
4990  # OK, works on sane cases.  Now check whether nonexistent headers
4991  # can be detected and how.
4992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993/* end confdefs.h.  */
4994#include <ac_nonexistent.h>
4995_ACEOF
4996if ac_fn_c_try_cpp "$LINENO"
4997then :
4998  # Broken: success on invalid input.
4999continue
5000else $as_nop
5001  # Passes both tests.
5002ac_preproc_ok=:
5003break
5004fi
5005rm -f conftest.err conftest.i conftest.$ac_ext
5006
5007done
5008# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5009rm -f conftest.i conftest.err conftest.$ac_ext
5010if $ac_preproc_ok
5011then :
5012  break
5013fi
5014
5015    done
5016    ac_cv_prog_CPP=$CPP
5017
5018fi
5019  CPP=$ac_cv_prog_CPP
5020else
5021  ac_cv_prog_CPP=$CPP
5022fi
5023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5024printf "%s\n" "$CPP" >&6; }
5025ac_preproc_ok=false
5026for ac_c_preproc_warn_flag in '' yes
5027do
5028  # Use a header file that comes with gcc, so configuring glibc
5029  # with a fresh cross-compiler works.
5030  # On the NeXT, cc -E runs the code through the compiler's parser,
5031  # not just through cpp. "Syntax error" is here to catch this case.
5032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033/* end confdefs.h.  */
5034#include <limits.h>
5035		     Syntax error
5036_ACEOF
5037if ac_fn_c_try_cpp "$LINENO"
5038then :
5039
5040else $as_nop
5041  # Broken: fails on valid input.
5042continue
5043fi
5044rm -f conftest.err conftest.i conftest.$ac_ext
5045
5046  # OK, works on sane cases.  Now check whether nonexistent headers
5047  # can be detected and how.
5048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049/* end confdefs.h.  */
5050#include <ac_nonexistent.h>
5051_ACEOF
5052if ac_fn_c_try_cpp "$LINENO"
5053then :
5054  # Broken: success on invalid input.
5055continue
5056else $as_nop
5057  # Passes both tests.
5058ac_preproc_ok=:
5059break
5060fi
5061rm -f conftest.err conftest.i conftest.$ac_ext
5062
5063done
5064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5065rm -f conftest.i conftest.err conftest.$ac_ext
5066if $ac_preproc_ok
5067then :
5068
5069else $as_nop
5070  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5071printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5072as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5073See \`config.log' for more details" "$LINENO" 5; }
5074fi
5075
5076ac_ext=c
5077ac_cpp='$CPP $CPPFLAGS'
5078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081
5082
5083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5084printf %s "checking for grep that handles long lines and -e... " >&6; }
5085if test ${ac_cv_path_GREP+y}
5086then :
5087  printf %s "(cached) " >&6
5088else $as_nop
5089  if test -z "$GREP"; then
5090  ac_path_GREP_found=false
5091  # Loop through the user's path and test for each of PROGNAME-LIST
5092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5094do
5095  IFS=$as_save_IFS
5096  case $as_dir in #(((
5097    '') as_dir=./ ;;
5098    */) ;;
5099    *) as_dir=$as_dir/ ;;
5100  esac
5101    for ac_prog in grep ggrep
5102   do
5103    for ac_exec_ext in '' $ac_executable_extensions; do
5104      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5105      as_fn_executable_p "$ac_path_GREP" || continue
5106# Check for GNU ac_path_GREP and select it if it is found.
5107  # Check for GNU $ac_path_GREP
5108case `"$ac_path_GREP" --version 2>&1` in
5109*GNU*)
5110  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5111*)
5112  ac_count=0
5113  printf %s 0123456789 >"conftest.in"
5114  while :
5115  do
5116    cat "conftest.in" "conftest.in" >"conftest.tmp"
5117    mv "conftest.tmp" "conftest.in"
5118    cp "conftest.in" "conftest.nl"
5119    printf "%s\n" 'GREP' >> "conftest.nl"
5120    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5121    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5122    as_fn_arith $ac_count + 1 && ac_count=$as_val
5123    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5124      # Best one so far, save it but keep looking for a better one
5125      ac_cv_path_GREP="$ac_path_GREP"
5126      ac_path_GREP_max=$ac_count
5127    fi
5128    # 10*(2^10) chars as input seems more than enough
5129    test $ac_count -gt 10 && break
5130  done
5131  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5132esac
5133
5134      $ac_path_GREP_found && break 3
5135    done
5136  done
5137  done
5138IFS=$as_save_IFS
5139  if test -z "$ac_cv_path_GREP"; then
5140    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5141  fi
5142else
5143  ac_cv_path_GREP=$GREP
5144fi
5145
5146fi
5147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5148printf "%s\n" "$ac_cv_path_GREP" >&6; }
5149 GREP="$ac_cv_path_GREP"
5150
5151
5152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5153printf %s "checking for egrep... " >&6; }
5154if test ${ac_cv_path_EGREP+y}
5155then :
5156  printf %s "(cached) " >&6
5157else $as_nop
5158  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5159   then ac_cv_path_EGREP="$GREP -E"
5160   else
5161     if test -z "$EGREP"; then
5162  ac_path_EGREP_found=false
5163  # Loop through the user's path and test for each of PROGNAME-LIST
5164  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5166do
5167  IFS=$as_save_IFS
5168  case $as_dir in #(((
5169    '') as_dir=./ ;;
5170    */) ;;
5171    *) as_dir=$as_dir/ ;;
5172  esac
5173    for ac_prog in egrep
5174   do
5175    for ac_exec_ext in '' $ac_executable_extensions; do
5176      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5177      as_fn_executable_p "$ac_path_EGREP" || continue
5178# Check for GNU ac_path_EGREP and select it if it is found.
5179  # Check for GNU $ac_path_EGREP
5180case `"$ac_path_EGREP" --version 2>&1` in
5181*GNU*)
5182  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5183*)
5184  ac_count=0
5185  printf %s 0123456789 >"conftest.in"
5186  while :
5187  do
5188    cat "conftest.in" "conftest.in" >"conftest.tmp"
5189    mv "conftest.tmp" "conftest.in"
5190    cp "conftest.in" "conftest.nl"
5191    printf "%s\n" 'EGREP' >> "conftest.nl"
5192    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194    as_fn_arith $ac_count + 1 && ac_count=$as_val
5195    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5196      # Best one so far, save it but keep looking for a better one
5197      ac_cv_path_EGREP="$ac_path_EGREP"
5198      ac_path_EGREP_max=$ac_count
5199    fi
5200    # 10*(2^10) chars as input seems more than enough
5201    test $ac_count -gt 10 && break
5202  done
5203  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204esac
5205
5206      $ac_path_EGREP_found && break 3
5207    done
5208  done
5209  done
5210IFS=$as_save_IFS
5211  if test -z "$ac_cv_path_EGREP"; then
5212    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213  fi
5214else
5215  ac_cv_path_EGREP=$EGREP
5216fi
5217
5218   fi
5219fi
5220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5221printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5222 EGREP="$ac_cv_path_EGREP"
5223
5224
5225
5226
5227  acl_libdirstem=lib
5228  acl_libdirstem2=
5229  case "$host_os" in
5230    solaris*)
5231                                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5232printf %s "checking for 64-bit host... " >&6; }
5233if test ${gl_cv_solaris_64bit+y}
5234then :
5235  printf %s "(cached) " >&6
5236else $as_nop
5237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h.  */
5239
5240#ifdef _LP64
5241sixtyfour bits
5242#endif
5243
5244_ACEOF
5245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5246  $EGREP "sixtyfour bits" >/dev/null 2>&1
5247then :
5248  gl_cv_solaris_64bit=yes
5249else $as_nop
5250  gl_cv_solaris_64bit=no
5251fi
5252rm -rf conftest*
5253
5254
5255fi
5256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5257printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
5258      if test $gl_cv_solaris_64bit = yes; then
5259        acl_libdirstem=lib/64
5260        case "$host_cpu" in
5261          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
5262          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5263        esac
5264      fi
5265      ;;
5266    *)
5267      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5268      if test -n "$searchpath"; then
5269        acl_save_IFS="${IFS= 	}"; IFS=":"
5270        for searchdir in $searchpath; do
5271          if test -d "$searchdir"; then
5272            case "$searchdir" in
5273              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5274              */../ | */.. )
5275                # Better ignore directories of this form. They are misleading.
5276                ;;
5277              *) searchdir=`cd "$searchdir" && pwd`
5278                 case "$searchdir" in
5279                   */lib64 ) acl_libdirstem=lib64 ;;
5280                 esac ;;
5281            esac
5282          fi
5283        done
5284        IFS="$acl_save_IFS"
5285      fi
5286      ;;
5287  esac
5288  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301    use_additional=yes
5302
5303  acl_save_prefix="$prefix"
5304  prefix="$acl_final_prefix"
5305  acl_save_exec_prefix="$exec_prefix"
5306  exec_prefix="$acl_final_exec_prefix"
5307
5308    eval additional_includedir=\"$includedir\"
5309    eval additional_libdir=\"$libdir\"
5310
5311  exec_prefix="$acl_save_exec_prefix"
5312  prefix="$acl_save_prefix"
5313
5314
5315# Check whether --with-libiconv-prefix was given.
5316if test ${with_libiconv_prefix+y}
5317then :
5318  withval=$with_libiconv_prefix;
5319    if test "X$withval" = "Xno"; then
5320      use_additional=no
5321    else
5322      if test "X$withval" = "X"; then
5323
5324  acl_save_prefix="$prefix"
5325  prefix="$acl_final_prefix"
5326  acl_save_exec_prefix="$exec_prefix"
5327  exec_prefix="$acl_final_exec_prefix"
5328
5329          eval additional_includedir=\"$includedir\"
5330          eval additional_libdir=\"$libdir\"
5331
5332  exec_prefix="$acl_save_exec_prefix"
5333  prefix="$acl_save_prefix"
5334
5335      else
5336        additional_includedir="$withval/include"
5337        additional_libdir="$withval/$acl_libdirstem"
5338        if test "$acl_libdirstem2" != "$acl_libdirstem" \
5339           && ! test -d "$withval/$acl_libdirstem"; then
5340          additional_libdir="$withval/$acl_libdirstem2"
5341        fi
5342      fi
5343    fi
5344
5345fi
5346
5347      LIBICONV=
5348  LTLIBICONV=
5349  INCICONV=
5350  LIBICONV_PREFIX=
5351      HAVE_LIBICONV=
5352  rpathdirs=
5353  ltrpathdirs=
5354  names_already_handled=
5355  names_next_round='iconv '
5356  while test -n "$names_next_round"; do
5357    names_this_round="$names_next_round"
5358    names_next_round=
5359    for name in $names_this_round; do
5360      already_handled=
5361      for n in $names_already_handled; do
5362        if test "$n" = "$name"; then
5363          already_handled=yes
5364          break
5365        fi
5366      done
5367      if test -z "$already_handled"; then
5368        names_already_handled="$names_already_handled $name"
5369                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5370        eval value=\"\$HAVE_LIB$uppername\"
5371        if test -n "$value"; then
5372          if test "$value" = yes; then
5373            eval value=\"\$LIB$uppername\"
5374            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5375            eval value=\"\$LTLIB$uppername\"
5376            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5377          else
5378                                    :
5379          fi
5380        else
5381                              found_dir=
5382          found_la=
5383          found_so=
5384          found_a=
5385          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5386          if test -n "$acl_shlibext"; then
5387            shrext=".$acl_shlibext"             # typically: shrext=.so
5388          else
5389            shrext=
5390          fi
5391          if test $use_additional = yes; then
5392            dir="$additional_libdir"
5393                                    if test -n "$acl_shlibext"; then
5394              if test -f "$dir/$libname$shrext"; then
5395                found_dir="$dir"
5396                found_so="$dir/$libname$shrext"
5397              else
5398                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5399                  ver=`(cd "$dir" && \
5400                        for f in "$libname$shrext".*; do echo "$f"; done \
5401                        | sed -e "s,^$libname$shrext\\\\.,," \
5402                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5403                        | sed 1q ) 2>/dev/null`
5404                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5405                    found_dir="$dir"
5406                    found_so="$dir/$libname$shrext.$ver"
5407                  fi
5408                else
5409                  eval library_names=\"$acl_library_names_spec\"
5410                  for f in $library_names; do
5411                    if test -f "$dir/$f"; then
5412                      found_dir="$dir"
5413                      found_so="$dir/$f"
5414                      break
5415                    fi
5416                  done
5417                fi
5418              fi
5419            fi
5420                        if test "X$found_dir" = "X"; then
5421              if test -f "$dir/$libname.$acl_libext"; then
5422                found_dir="$dir"
5423                found_a="$dir/$libname.$acl_libext"
5424              fi
5425            fi
5426            if test "X$found_dir" != "X"; then
5427              if test -f "$dir/$libname.la"; then
5428                found_la="$dir/$libname.la"
5429              fi
5430            fi
5431          fi
5432          if test "X$found_dir" = "X"; then
5433            for x in $LDFLAGS $LTLIBICONV; do
5434
5435  acl_save_prefix="$prefix"
5436  prefix="$acl_final_prefix"
5437  acl_save_exec_prefix="$exec_prefix"
5438  exec_prefix="$acl_final_exec_prefix"
5439  eval x=\"$x\"
5440  exec_prefix="$acl_save_exec_prefix"
5441  prefix="$acl_save_prefix"
5442
5443              case "$x" in
5444                -L*)
5445                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5446                                    if test -n "$acl_shlibext"; then
5447                    if test -f "$dir/$libname$shrext"; then
5448                      found_dir="$dir"
5449                      found_so="$dir/$libname$shrext"
5450                    else
5451                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5452                        ver=`(cd "$dir" && \
5453                              for f in "$libname$shrext".*; do echo "$f"; done \
5454                              | sed -e "s,^$libname$shrext\\\\.,," \
5455                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5456                              | sed 1q ) 2>/dev/null`
5457                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5458                          found_dir="$dir"
5459                          found_so="$dir/$libname$shrext.$ver"
5460                        fi
5461                      else
5462                        eval library_names=\"$acl_library_names_spec\"
5463                        for f in $library_names; do
5464                          if test -f "$dir/$f"; then
5465                            found_dir="$dir"
5466                            found_so="$dir/$f"
5467                            break
5468                          fi
5469                        done
5470                      fi
5471                    fi
5472                  fi
5473                                    if test "X$found_dir" = "X"; then
5474                    if test -f "$dir/$libname.$acl_libext"; then
5475                      found_dir="$dir"
5476                      found_a="$dir/$libname.$acl_libext"
5477                    fi
5478                  fi
5479                  if test "X$found_dir" != "X"; then
5480                    if test -f "$dir/$libname.la"; then
5481                      found_la="$dir/$libname.la"
5482                    fi
5483                  fi
5484                  ;;
5485              esac
5486              if test "X$found_dir" != "X"; then
5487                break
5488              fi
5489            done
5490          fi
5491          if test "X$found_dir" != "X"; then
5492                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5493            if test "X$found_so" != "X"; then
5494                                                        if test "$enable_rpath" = no \
5495                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5496                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5497                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5498              else
5499                                                                                haveit=
5500                for x in $ltrpathdirs; do
5501                  if test "X$x" = "X$found_dir"; then
5502                    haveit=yes
5503                    break
5504                  fi
5505                done
5506                if test -z "$haveit"; then
5507                  ltrpathdirs="$ltrpathdirs $found_dir"
5508                fi
5509                                if test "$acl_hardcode_direct" = yes; then
5510                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5511                else
5512                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5513                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5514                                                            haveit=
5515                    for x in $rpathdirs; do
5516                      if test "X$x" = "X$found_dir"; then
5517                        haveit=yes
5518                        break
5519                      fi
5520                    done
5521                    if test -z "$haveit"; then
5522                      rpathdirs="$rpathdirs $found_dir"
5523                    fi
5524                  else
5525                                                                                haveit=
5526                    for x in $LDFLAGS $LIBICONV; do
5527
5528  acl_save_prefix="$prefix"
5529  prefix="$acl_final_prefix"
5530  acl_save_exec_prefix="$exec_prefix"
5531  exec_prefix="$acl_final_exec_prefix"
5532  eval x=\"$x\"
5533  exec_prefix="$acl_save_exec_prefix"
5534  prefix="$acl_save_prefix"
5535
5536                      if test "X$x" = "X-L$found_dir"; then
5537                        haveit=yes
5538                        break
5539                      fi
5540                    done
5541                    if test -z "$haveit"; then
5542                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5543                    fi
5544                    if test "$acl_hardcode_minus_L" != no; then
5545                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5546                    else
5547                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5548                    fi
5549                  fi
5550                fi
5551              fi
5552            else
5553              if test "X$found_a" != "X"; then
5554                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5555              else
5556                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5557              fi
5558            fi
5559                        additional_includedir=
5560            case "$found_dir" in
5561              */$acl_libdirstem | */$acl_libdirstem/)
5562                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5563                if test "$name" = 'iconv'; then
5564                  LIBICONV_PREFIX="$basedir"
5565                fi
5566                additional_includedir="$basedir/include"
5567                ;;
5568              */$acl_libdirstem2 | */$acl_libdirstem2/)
5569                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5570                if test "$name" = 'iconv'; then
5571                  LIBICONV_PREFIX="$basedir"
5572                fi
5573                additional_includedir="$basedir/include"
5574                ;;
5575            esac
5576            if test "X$additional_includedir" != "X"; then
5577                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5578                haveit=
5579                if test "X$additional_includedir" = "X/usr/local/include"; then
5580                  if test -n "$GCC"; then
5581                    case $host_os in
5582                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5583                    esac
5584                  fi
5585                fi
5586                if test -z "$haveit"; then
5587                  for x in $CPPFLAGS $INCICONV; do
5588
5589  acl_save_prefix="$prefix"
5590  prefix="$acl_final_prefix"
5591  acl_save_exec_prefix="$exec_prefix"
5592  exec_prefix="$acl_final_exec_prefix"
5593  eval x=\"$x\"
5594  exec_prefix="$acl_save_exec_prefix"
5595  prefix="$acl_save_prefix"
5596
5597                    if test "X$x" = "X-I$additional_includedir"; then
5598                      haveit=yes
5599                      break
5600                    fi
5601                  done
5602                  if test -z "$haveit"; then
5603                    if test -d "$additional_includedir"; then
5604                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5605                    fi
5606                  fi
5607                fi
5608              fi
5609            fi
5610                        if test -n "$found_la"; then
5611                                                        save_libdir="$libdir"
5612              case "$found_la" in
5613                */* | *\\*) . "$found_la" ;;
5614                *) . "./$found_la" ;;
5615              esac
5616              libdir="$save_libdir"
5617                            for dep in $dependency_libs; do
5618                case "$dep" in
5619                  -L*)
5620                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5621                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5622                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5623                      haveit=
5624                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5625                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5626                        if test -n "$GCC"; then
5627                          case $host_os in
5628                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5629                          esac
5630                        fi
5631                      fi
5632                      if test -z "$haveit"; then
5633                        haveit=
5634                        for x in $LDFLAGS $LIBICONV; do
5635
5636  acl_save_prefix="$prefix"
5637  prefix="$acl_final_prefix"
5638  acl_save_exec_prefix="$exec_prefix"
5639  exec_prefix="$acl_final_exec_prefix"
5640  eval x=\"$x\"
5641  exec_prefix="$acl_save_exec_prefix"
5642  prefix="$acl_save_prefix"
5643
5644                          if test "X$x" = "X-L$additional_libdir"; then
5645                            haveit=yes
5646                            break
5647                          fi
5648                        done
5649                        if test -z "$haveit"; then
5650                          if test -d "$additional_libdir"; then
5651                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5652                          fi
5653                        fi
5654                        haveit=
5655                        for x in $LDFLAGS $LTLIBICONV; do
5656
5657  acl_save_prefix="$prefix"
5658  prefix="$acl_final_prefix"
5659  acl_save_exec_prefix="$exec_prefix"
5660  exec_prefix="$acl_final_exec_prefix"
5661  eval x=\"$x\"
5662  exec_prefix="$acl_save_exec_prefix"
5663  prefix="$acl_save_prefix"
5664
5665                          if test "X$x" = "X-L$additional_libdir"; then
5666                            haveit=yes
5667                            break
5668                          fi
5669                        done
5670                        if test -z "$haveit"; then
5671                          if test -d "$additional_libdir"; then
5672                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5673                          fi
5674                        fi
5675                      fi
5676                    fi
5677                    ;;
5678                  -R*)
5679                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5680                    if test "$enable_rpath" != no; then
5681                                                                  haveit=
5682                      for x in $rpathdirs; do
5683                        if test "X$x" = "X$dir"; then
5684                          haveit=yes
5685                          break
5686                        fi
5687                      done
5688                      if test -z "$haveit"; then
5689                        rpathdirs="$rpathdirs $dir"
5690                      fi
5691                                                                  haveit=
5692                      for x in $ltrpathdirs; do
5693                        if test "X$x" = "X$dir"; then
5694                          haveit=yes
5695                          break
5696                        fi
5697                      done
5698                      if test -z "$haveit"; then
5699                        ltrpathdirs="$ltrpathdirs $dir"
5700                      fi
5701                    fi
5702                    ;;
5703                  -l*)
5704                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5705                    ;;
5706                  *.la)
5707                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5708                    ;;
5709                  *)
5710                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5711                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5712                    ;;
5713                esac
5714              done
5715            fi
5716          else
5717                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5718            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5719          fi
5720        fi
5721      fi
5722    done
5723  done
5724  if test "X$rpathdirs" != "X"; then
5725    if test -n "$acl_hardcode_libdir_separator"; then
5726                        alldirs=
5727      for found_dir in $rpathdirs; do
5728        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5729      done
5730            acl_save_libdir="$libdir"
5731      libdir="$alldirs"
5732      eval flag=\"$acl_hardcode_libdir_flag_spec\"
5733      libdir="$acl_save_libdir"
5734      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5735    else
5736            for found_dir in $rpathdirs; do
5737        acl_save_libdir="$libdir"
5738        libdir="$found_dir"
5739        eval flag=\"$acl_hardcode_libdir_flag_spec\"
5740        libdir="$acl_save_libdir"
5741        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5742      done
5743    fi
5744  fi
5745  if test "X$ltrpathdirs" != "X"; then
5746            for found_dir in $ltrpathdirs; do
5747      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5748    done
5749  fi
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762          am_save_CPPFLAGS="$CPPFLAGS"
5763
5764  for element in $INCICONV; do
5765    haveit=
5766    for x in $CPPFLAGS; do
5767
5768  acl_save_prefix="$prefix"
5769  prefix="$acl_final_prefix"
5770  acl_save_exec_prefix="$exec_prefix"
5771  exec_prefix="$acl_final_exec_prefix"
5772  eval x=\"$x\"
5773  exec_prefix="$acl_save_exec_prefix"
5774  prefix="$acl_save_prefix"
5775
5776      if test "X$x" = "X$element"; then
5777        haveit=yes
5778        break
5779      fi
5780    done
5781    if test -z "$haveit"; then
5782      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5783    fi
5784  done
5785
5786
5787  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5788printf %s "checking for iconv... " >&6; }
5789if test ${am_cv_func_iconv+y}
5790then :
5791  printf %s "(cached) " >&6
5792else $as_nop
5793
5794    am_cv_func_iconv="no, consider installing GNU libiconv"
5795    am_cv_lib_iconv=no
5796    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797/* end confdefs.h.  */
5798
5799#include <stdlib.h>
5800#include <iconv.h>
5801
5802int
5803main (void)
5804{
5805iconv_t cd = iconv_open("","");
5806           iconv(cd,NULL,NULL,NULL,NULL);
5807           iconv_close(cd);
5808  ;
5809  return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_link "$LINENO"
5813then :
5814  am_cv_func_iconv=yes
5815fi
5816rm -f core conftest.err conftest.$ac_objext conftest.beam \
5817    conftest$ac_exeext conftest.$ac_ext
5818    if test "$am_cv_func_iconv" != yes; then
5819      am_save_LIBS="$LIBS"
5820      LIBS="$LIBS $LIBICONV"
5821      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822/* end confdefs.h.  */
5823
5824#include <stdlib.h>
5825#include <iconv.h>
5826
5827int
5828main (void)
5829{
5830iconv_t cd = iconv_open("","");
5831             iconv(cd,NULL,NULL,NULL,NULL);
5832             iconv_close(cd);
5833  ;
5834  return 0;
5835}
5836_ACEOF
5837if ac_fn_c_try_link "$LINENO"
5838then :
5839  am_cv_lib_iconv=yes
5840        am_cv_func_iconv=yes
5841fi
5842rm -f core conftest.err conftest.$ac_objext conftest.beam \
5843    conftest$ac_exeext conftest.$ac_ext
5844      LIBS="$am_save_LIBS"
5845    fi
5846
5847fi
5848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5849printf "%s\n" "$am_cv_func_iconv" >&6; }
5850  if test "$am_cv_func_iconv" = yes; then
5851    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5852printf %s "checking for working iconv... " >&6; }
5853if test ${am_cv_func_iconv_works+y}
5854then :
5855  printf %s "(cached) " >&6
5856else $as_nop
5857
5858                  am_save_LIBS="$LIBS"
5859      if test $am_cv_lib_iconv = yes; then
5860        LIBS="$LIBS $LIBICONV"
5861      fi
5862      am_cv_func_iconv_works=no
5863      for ac_iconv_const in '' 'const'; do
5864        if test "$cross_compiling" = yes
5865then :
5866  case "$host_os" in
5867             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5868             *)            am_cv_func_iconv_works="guessing yes" ;;
5869           esac
5870else $as_nop
5871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872/* end confdefs.h.  */
5873
5874#include <iconv.h>
5875#include <string.h>
5876
5877#ifndef ICONV_CONST
5878# define ICONV_CONST $ac_iconv_const
5879#endif
5880
5881int
5882main (void)
5883{
5884int result = 0;
5885  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5886     returns.  */
5887  {
5888    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5889    if (cd_utf8_to_88591 != (iconv_t)(-1))
5890      {
5891        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
5892        char buf[10];
5893        ICONV_CONST char *inptr = input;
5894        size_t inbytesleft = strlen (input);
5895        char *outptr = buf;
5896        size_t outbytesleft = sizeof (buf);
5897        size_t res = iconv (cd_utf8_to_88591,
5898                            &inptr, &inbytesleft,
5899                            &outptr, &outbytesleft);
5900        if (res == 0)
5901          result |= 1;
5902        iconv_close (cd_utf8_to_88591);
5903      }
5904  }
5905  /* Test against Solaris 10 bug: Failures are not distinguishable from
5906     successful returns.  */
5907  {
5908    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5909    if (cd_ascii_to_88591 != (iconv_t)(-1))
5910      {
5911        static ICONV_CONST char input[] = "\263";
5912        char buf[10];
5913        ICONV_CONST char *inptr = input;
5914        size_t inbytesleft = strlen (input);
5915        char *outptr = buf;
5916        size_t outbytesleft = sizeof (buf);
5917        size_t res = iconv (cd_ascii_to_88591,
5918                            &inptr, &inbytesleft,
5919                            &outptr, &outbytesleft);
5920        if (res == 0)
5921          result |= 2;
5922        iconv_close (cd_ascii_to_88591);
5923      }
5924  }
5925  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
5926  {
5927    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
5928    if (cd_88591_to_utf8 != (iconv_t)(-1))
5929      {
5930        static ICONV_CONST char input[] = "\304";
5931        static char buf[2] = { (char)0xDE, (char)0xAD };
5932        ICONV_CONST char *inptr = input;
5933        size_t inbytesleft = 1;
5934        char *outptr = buf;
5935        size_t outbytesleft = 1;
5936        size_t res = iconv (cd_88591_to_utf8,
5937                            &inptr, &inbytesleft,
5938                            &outptr, &outbytesleft);
5939        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
5940          result |= 4;
5941        iconv_close (cd_88591_to_utf8);
5942      }
5943  }
5944#if 0 /* This bug could be worked around by the caller.  */
5945  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
5946  {
5947    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5948    if (cd_88591_to_utf8 != (iconv_t)(-1))
5949      {
5950        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5951        char buf[50];
5952        ICONV_CONST char *inptr = input;
5953        size_t inbytesleft = strlen (input);
5954        char *outptr = buf;
5955        size_t outbytesleft = sizeof (buf);
5956        size_t res = iconv (cd_88591_to_utf8,
5957                            &inptr, &inbytesleft,
5958                            &outptr, &outbytesleft);
5959        if ((int)res > 0)
5960          result |= 8;
5961        iconv_close (cd_88591_to_utf8);
5962      }
5963  }
5964#endif
5965  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5966     provided.  */
5967  if (/* Try standardized names.  */
5968      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5969      /* Try IRIX, OSF/1 names.  */
5970      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5971      /* Try AIX names.  */
5972      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5973      /* Try HP-UX names.  */
5974      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5975    result |= 16;
5976  return result;
5977
5978  ;
5979  return 0;
5980}
5981_ACEOF
5982if ac_fn_c_try_run "$LINENO"
5983then :
5984  am_cv_func_iconv_works=yes
5985fi
5986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5987  conftest.$ac_objext conftest.beam conftest.$ac_ext
5988fi
5989
5990        test "$am_cv_func_iconv_works" = no || break
5991      done
5992      LIBS="$am_save_LIBS"
5993
5994fi
5995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5996printf "%s\n" "$am_cv_func_iconv_works" >&6; }
5997    case "$am_cv_func_iconv_works" in
5998      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5999      *)   am_func_iconv=yes ;;
6000    esac
6001  else
6002    am_func_iconv=no am_cv_lib_iconv=no
6003  fi
6004  if test "$am_func_iconv" = yes; then
6005
6006printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
6007
6008  fi
6009  if test "$am_cv_lib_iconv" = yes; then
6010    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6011printf %s "checking how to link with libiconv... " >&6; }
6012    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6013printf "%s\n" "$LIBICONV" >&6; }
6014  else
6015            CPPFLAGS="$am_save_CPPFLAGS"
6016    LIBICONV=
6017    LTLIBICONV=
6018  fi
6019
6020
6021
6022  if test "$am_cv_func_iconv" = yes; then
6023    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6024printf %s "checking for iconv declaration... " >&6; }
6025    if test ${am_cv_proto_iconv+y}
6026then :
6027  printf %s "(cached) " >&6
6028else $as_nop
6029
6030      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031/* end confdefs.h.  */
6032
6033#include <stdlib.h>
6034#include <iconv.h>
6035extern
6036#ifdef __cplusplus
6037"C"
6038#endif
6039#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
6040size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6041#else
6042size_t iconv();
6043#endif
6044
6045int
6046main (void)
6047{
6048
6049  ;
6050  return 0;
6051}
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"
6054then :
6055  am_cv_proto_iconv_arg1=""
6056else $as_nop
6057  am_cv_proto_iconv_arg1="const"
6058fi
6059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6060      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6061fi
6062
6063    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6064    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
6065         $am_cv_proto_iconv" >&5
6066printf "%s\n" "
6067         $am_cv_proto_iconv" >&6; }
6068
6069printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
6070
6071
6072  fi
6073
6074
6075# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
6088printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
6089if test ${ac_cv_c_undeclared_builtin_options+y}
6090then :
6091  printf %s "(cached) " >&6
6092else $as_nop
6093  ac_save_CFLAGS=$CFLAGS
6094   ac_cv_c_undeclared_builtin_options='cannot detect'
6095   for ac_arg in '' -fno-builtin; do
6096     CFLAGS="$ac_save_CFLAGS $ac_arg"
6097     # This test program should *not* compile successfully.
6098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099/* end confdefs.h.  */
6100
6101int
6102main (void)
6103{
6104(void) strchr;
6105  ;
6106  return 0;
6107}
6108_ACEOF
6109if ac_fn_c_try_compile "$LINENO"
6110then :
6111
6112else $as_nop
6113  # This test program should compile successfully.
6114        # No library function is consistently available on
6115        # freestanding implementations, so test against a dummy
6116        # declaration.  Include always-available headers on the
6117        # off chance that they somehow elicit warnings.
6118        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119/* end confdefs.h.  */
6120#include <float.h>
6121#include <limits.h>
6122#include <stdarg.h>
6123#include <stddef.h>
6124extern void ac_decl (int, char *);
6125
6126int
6127main (void)
6128{
6129(void) ac_decl (0, (char *) 0);
6130  (void) ac_decl;
6131
6132  ;
6133  return 0;
6134}
6135_ACEOF
6136if ac_fn_c_try_compile "$LINENO"
6137then :
6138  if test x"$ac_arg" = x
6139then :
6140  ac_cv_c_undeclared_builtin_options='none needed'
6141else $as_nop
6142  ac_cv_c_undeclared_builtin_options=$ac_arg
6143fi
6144          break
6145fi
6146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6147fi
6148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6149    done
6150    CFLAGS=$ac_save_CFLAGS
6151
6152fi
6153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
6154printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
6155  case $ac_cv_c_undeclared_builtin_options in #(
6156  'cannot detect') :
6157    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6158printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6159as_fn_error $? "cannot make $CC report undeclared builtins
6160See \`config.log' for more details" "$LINENO" 5; } ;; #(
6161  'none needed') :
6162    ac_c_undeclared_builtin_options='' ;; #(
6163  *) :
6164    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
6165esac
6166
6167
6168
6169
6170
6171ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6172if test "x$ac_cv_have_decl___clang__" = xyes
6173then :
6174  CLANGCC="yes"
6175else $as_nop
6176  CLANGCC="no"
6177fi
6178ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6179if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
6180then :
6181  INTELCC="yes"
6182else $as_nop
6183  INTELCC="no"
6184fi
6185ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6186if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
6187then :
6188  SUNCC="yes"
6189else $as_nop
6190  SUNCC="no"
6191fi
6192
6193
6194
6195
6196
6197
6198
6199
6200if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6201	if test -n "$ac_tool_prefix"; then
6202  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6203set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205printf %s "checking for $ac_word... " >&6; }
6206if test ${ac_cv_path_PKG_CONFIG+y}
6207then :
6208  printf %s "(cached) " >&6
6209else $as_nop
6210  case $PKG_CONFIG in
6211  [\\/]* | ?:[\\/]*)
6212  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6213  ;;
6214  *)
6215  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218  IFS=$as_save_IFS
6219  case $as_dir in #(((
6220    '') as_dir=./ ;;
6221    */) ;;
6222    *) as_dir=$as_dir/ ;;
6223  esac
6224    for ac_exec_ext in '' $ac_executable_extensions; do
6225  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6226    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6227    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6228    break 2
6229  fi
6230done
6231  done
6232IFS=$as_save_IFS
6233
6234  ;;
6235esac
6236fi
6237PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6238if test -n "$PKG_CONFIG"; then
6239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6240printf "%s\n" "$PKG_CONFIG" >&6; }
6241else
6242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243printf "%s\n" "no" >&6; }
6244fi
6245
6246
6247fi
6248if test -z "$ac_cv_path_PKG_CONFIG"; then
6249  ac_pt_PKG_CONFIG=$PKG_CONFIG
6250  # Extract the first word of "pkg-config", so it can be a program name with args.
6251set dummy pkg-config; ac_word=$2
6252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253printf %s "checking for $ac_word... " >&6; }
6254if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6255then :
6256  printf %s "(cached) " >&6
6257else $as_nop
6258  case $ac_pt_PKG_CONFIG in
6259  [\\/]* | ?:[\\/]*)
6260  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6261  ;;
6262  *)
6263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266  IFS=$as_save_IFS
6267  case $as_dir in #(((
6268    '') as_dir=./ ;;
6269    */) ;;
6270    *) as_dir=$as_dir/ ;;
6271  esac
6272    for ac_exec_ext in '' $ac_executable_extensions; do
6273  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6274    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6275    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6276    break 2
6277  fi
6278done
6279  done
6280IFS=$as_save_IFS
6281
6282  ;;
6283esac
6284fi
6285ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6286if test -n "$ac_pt_PKG_CONFIG"; then
6287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6288printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6289else
6290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291printf "%s\n" "no" >&6; }
6292fi
6293
6294  if test "x$ac_pt_PKG_CONFIG" = x; then
6295    PKG_CONFIG=""
6296  else
6297    case $cross_compiling:$ac_tool_warned in
6298yes:)
6299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301ac_tool_warned=yes ;;
6302esac
6303    PKG_CONFIG=$ac_pt_PKG_CONFIG
6304  fi
6305else
6306  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6307fi
6308
6309fi
6310if test -n "$PKG_CONFIG"; then
6311	_pkg_min_version=0.9.0
6312	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6313printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6314	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6316printf "%s\n" "yes" >&6; }
6317	else
6318		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319printf "%s\n" "no" >&6; }
6320		PKG_CONFIG=""
6321	fi
6322fi
6323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6324printf %s "checking for a sed that does not truncate output... " >&6; }
6325if test ${ac_cv_path_SED+y}
6326then :
6327  printf %s "(cached) " >&6
6328else $as_nop
6329            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6330     for ac_i in 1 2 3 4 5 6 7; do
6331       ac_script="$ac_script$as_nl$ac_script"
6332     done
6333     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6334     { ac_script=; unset ac_script;}
6335     if test -z "$SED"; then
6336  ac_path_SED_found=false
6337  # Loop through the user's path and test for each of PROGNAME-LIST
6338  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341  IFS=$as_save_IFS
6342  case $as_dir in #(((
6343    '') as_dir=./ ;;
6344    */) ;;
6345    *) as_dir=$as_dir/ ;;
6346  esac
6347    for ac_prog in sed gsed
6348   do
6349    for ac_exec_ext in '' $ac_executable_extensions; do
6350      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6351      as_fn_executable_p "$ac_path_SED" || continue
6352# Check for GNU ac_path_SED and select it if it is found.
6353  # Check for GNU $ac_path_SED
6354case `"$ac_path_SED" --version 2>&1` in
6355*GNU*)
6356  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6357*)
6358  ac_count=0
6359  printf %s 0123456789 >"conftest.in"
6360  while :
6361  do
6362    cat "conftest.in" "conftest.in" >"conftest.tmp"
6363    mv "conftest.tmp" "conftest.in"
6364    cp "conftest.in" "conftest.nl"
6365    printf "%s\n" '' >> "conftest.nl"
6366    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6367    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6368    as_fn_arith $ac_count + 1 && ac_count=$as_val
6369    if test $ac_count -gt ${ac_path_SED_max-0}; then
6370      # Best one so far, save it but keep looking for a better one
6371      ac_cv_path_SED="$ac_path_SED"
6372      ac_path_SED_max=$ac_count
6373    fi
6374    # 10*(2^10) chars as input seems more than enough
6375    test $ac_count -gt 10 && break
6376  done
6377  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6378esac
6379
6380      $ac_path_SED_found && break 3
6381    done
6382  done
6383  done
6384IFS=$as_save_IFS
6385  if test -z "$ac_cv_path_SED"; then
6386    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6387  fi
6388else
6389  ac_cv_path_SED=$SED
6390fi
6391
6392fi
6393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6394printf "%s\n" "$ac_cv_path_SED" >&6; }
6395 SED="$ac_cv_path_SED"
6396  rm -f conftest.sed
6397
6398
6399
6400
6401
6402
6403# Check whether --enable-selective-werror was given.
6404if test ${enable_selective_werror+y}
6405then :
6406  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
6407else $as_nop
6408  SELECTIVE_WERROR=yes
6409fi
6410
6411
6412
6413
6414
6415# -v is too short to test reliably with XORG_TESTSET_CFLAG
6416if test "x$SUNCC" = "xyes"; then
6417    BASE_CFLAGS="-v"
6418else
6419    BASE_CFLAGS=""
6420fi
6421
6422# This chunk of warnings were those that existed in the legacy CWARNFLAGS
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436xorg_testset_save_CFLAGS="$CFLAGS"
6437
6438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6442if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6443then :
6444  printf %s "(cached) " >&6
6445else $as_nop
6446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h.  */
6448int i;
6449_ACEOF
6450if ac_fn_c_try_compile "$LINENO"
6451then :
6452  xorg_cv_cc_flag_unknown_warning_option=yes
6453else $as_nop
6454  xorg_cv_cc_flag_unknown_warning_option=no
6455fi
6456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6457fi
6458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6459printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6460	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6461	CFLAGS="$xorg_testset_save_CFLAGS"
6462fi
6463
6464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6465	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6466		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6467	fi
6468	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6469	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6470printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6471if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6472then :
6473  printf %s "(cached) " >&6
6474else $as_nop
6475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476/* end confdefs.h.  */
6477int i;
6478_ACEOF
6479if ac_fn_c_try_compile "$LINENO"
6480then :
6481  xorg_cv_cc_flag_unused_command_line_argument=yes
6482else $as_nop
6483  xorg_cv_cc_flag_unused_command_line_argument=no
6484fi
6485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6486fi
6487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6488printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6489	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6490	CFLAGS="$xorg_testset_save_CFLAGS"
6491fi
6492
6493found="no"
6494
6495	if test $found = "no" ; then
6496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6498		fi
6499
6500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6502		fi
6503
6504		CFLAGS="$CFLAGS -Wall"
6505
6506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
6507printf %s "checking if $CC supports -Wall... " >&6; }
6508		cacheid=xorg_cv_cc_flag__Wall
6509		if eval test \${$cacheid+y}
6510then :
6511  printf %s "(cached) " >&6
6512else $as_nop
6513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h.  */
6515int i;
6516int
6517main (void)
6518{
6519
6520  ;
6521  return 0;
6522}
6523_ACEOF
6524if ac_fn_c_try_link "$LINENO"
6525then :
6526  eval $cacheid=yes
6527else $as_nop
6528  eval $cacheid=no
6529fi
6530rm -f core conftest.err conftest.$ac_objext conftest.beam \
6531    conftest$ac_exeext conftest.$ac_ext
6532fi
6533
6534
6535		CFLAGS="$xorg_testset_save_CFLAGS"
6536
6537		eval supported=\$$cacheid
6538		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6539printf "%s\n" "$supported" >&6; }
6540		if test "$supported" = "yes" ; then
6541			BASE_CFLAGS="$BASE_CFLAGS -Wall"
6542			found="yes"
6543		fi
6544	fi
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560xorg_testset_save_CFLAGS="$CFLAGS"
6561
6562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6565printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6566if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6567then :
6568  printf %s "(cached) " >&6
6569else $as_nop
6570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571/* end confdefs.h.  */
6572int i;
6573_ACEOF
6574if ac_fn_c_try_compile "$LINENO"
6575then :
6576  xorg_cv_cc_flag_unknown_warning_option=yes
6577else $as_nop
6578  xorg_cv_cc_flag_unknown_warning_option=no
6579fi
6580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6581fi
6582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6583printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6584	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6585	CFLAGS="$xorg_testset_save_CFLAGS"
6586fi
6587
6588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6589	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6590		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6591	fi
6592	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6593	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6594printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6595if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6596then :
6597  printf %s "(cached) " >&6
6598else $as_nop
6599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600/* end confdefs.h.  */
6601int i;
6602_ACEOF
6603if ac_fn_c_try_compile "$LINENO"
6604then :
6605  xorg_cv_cc_flag_unused_command_line_argument=yes
6606else $as_nop
6607  xorg_cv_cc_flag_unused_command_line_argument=no
6608fi
6609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6610fi
6611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6612printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6613	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6614	CFLAGS="$xorg_testset_save_CFLAGS"
6615fi
6616
6617found="no"
6618
6619	if test $found = "no" ; then
6620		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6621			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6622		fi
6623
6624		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6625			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6626		fi
6627
6628		CFLAGS="$CFLAGS -Wpointer-arith"
6629
6630		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
6631printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
6632		cacheid=xorg_cv_cc_flag__Wpointer_arith
6633		if eval test \${$cacheid+y}
6634then :
6635  printf %s "(cached) " >&6
6636else $as_nop
6637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h.  */
6639int i;
6640int
6641main (void)
6642{
6643
6644  ;
6645  return 0;
6646}
6647_ACEOF
6648if ac_fn_c_try_link "$LINENO"
6649then :
6650  eval $cacheid=yes
6651else $as_nop
6652  eval $cacheid=no
6653fi
6654rm -f core conftest.err conftest.$ac_objext conftest.beam \
6655    conftest$ac_exeext conftest.$ac_ext
6656fi
6657
6658
6659		CFLAGS="$xorg_testset_save_CFLAGS"
6660
6661		eval supported=\$$cacheid
6662		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6663printf "%s\n" "$supported" >&6; }
6664		if test "$supported" = "yes" ; then
6665			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
6666			found="yes"
6667		fi
6668	fi
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684xorg_testset_save_CFLAGS="$CFLAGS"
6685
6686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6687	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6688	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6689printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6690if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6691then :
6692  printf %s "(cached) " >&6
6693else $as_nop
6694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695/* end confdefs.h.  */
6696int i;
6697_ACEOF
6698if ac_fn_c_try_compile "$LINENO"
6699then :
6700  xorg_cv_cc_flag_unknown_warning_option=yes
6701else $as_nop
6702  xorg_cv_cc_flag_unknown_warning_option=no
6703fi
6704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6705fi
6706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6707printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6709	CFLAGS="$xorg_testset_save_CFLAGS"
6710fi
6711
6712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6715	fi
6716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6717	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6718printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6719if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6720then :
6721  printf %s "(cached) " >&6
6722else $as_nop
6723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724/* end confdefs.h.  */
6725int i;
6726_ACEOF
6727if ac_fn_c_try_compile "$LINENO"
6728then :
6729  xorg_cv_cc_flag_unused_command_line_argument=yes
6730else $as_nop
6731  xorg_cv_cc_flag_unused_command_line_argument=no
6732fi
6733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6734fi
6735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6736printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6737	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6738	CFLAGS="$xorg_testset_save_CFLAGS"
6739fi
6740
6741found="no"
6742
6743	if test $found = "no" ; then
6744		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6745			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746		fi
6747
6748		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6749			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6750		fi
6751
6752		CFLAGS="$CFLAGS -Wmissing-declarations"
6753
6754		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
6755printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
6756		cacheid=xorg_cv_cc_flag__Wmissing_declarations
6757		if eval test \${$cacheid+y}
6758then :
6759  printf %s "(cached) " >&6
6760else $as_nop
6761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762/* end confdefs.h.  */
6763int i;
6764int
6765main (void)
6766{
6767
6768  ;
6769  return 0;
6770}
6771_ACEOF
6772if ac_fn_c_try_link "$LINENO"
6773then :
6774  eval $cacheid=yes
6775else $as_nop
6776  eval $cacheid=no
6777fi
6778rm -f core conftest.err conftest.$ac_objext conftest.beam \
6779    conftest$ac_exeext conftest.$ac_ext
6780fi
6781
6782
6783		CFLAGS="$xorg_testset_save_CFLAGS"
6784
6785		eval supported=\$$cacheid
6786		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6787printf "%s\n" "$supported" >&6; }
6788		if test "$supported" = "yes" ; then
6789			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
6790			found="yes"
6791		fi
6792	fi
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808xorg_testset_save_CFLAGS="$CFLAGS"
6809
6810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6811	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6812	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6813printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6814if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6815then :
6816  printf %s "(cached) " >&6
6817else $as_nop
6818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819/* end confdefs.h.  */
6820int i;
6821_ACEOF
6822if ac_fn_c_try_compile "$LINENO"
6823then :
6824  xorg_cv_cc_flag_unknown_warning_option=yes
6825else $as_nop
6826  xorg_cv_cc_flag_unknown_warning_option=no
6827fi
6828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6829fi
6830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6831printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6832	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6833	CFLAGS="$xorg_testset_save_CFLAGS"
6834fi
6835
6836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6837	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6839	fi
6840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6841	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6842printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6843if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6844then :
6845  printf %s "(cached) " >&6
6846else $as_nop
6847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h.  */
6849int i;
6850_ACEOF
6851if ac_fn_c_try_compile "$LINENO"
6852then :
6853  xorg_cv_cc_flag_unused_command_line_argument=yes
6854else $as_nop
6855  xorg_cv_cc_flag_unused_command_line_argument=no
6856fi
6857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6858fi
6859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6860printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6861	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6862	CFLAGS="$xorg_testset_save_CFLAGS"
6863fi
6864
6865found="no"
6866
6867	if test $found = "no" ; then
6868		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6869			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6870		fi
6871
6872		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6873			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6874		fi
6875
6876		CFLAGS="$CFLAGS -Wformat=2"
6877
6878		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6879printf %s "checking if $CC supports -Wformat=2... " >&6; }
6880		cacheid=xorg_cv_cc_flag__Wformat_2
6881		if eval test \${$cacheid+y}
6882then :
6883  printf %s "(cached) " >&6
6884else $as_nop
6885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886/* end confdefs.h.  */
6887int i;
6888int
6889main (void)
6890{
6891
6892  ;
6893  return 0;
6894}
6895_ACEOF
6896if ac_fn_c_try_link "$LINENO"
6897then :
6898  eval $cacheid=yes
6899else $as_nop
6900  eval $cacheid=no
6901fi
6902rm -f core conftest.err conftest.$ac_objext conftest.beam \
6903    conftest$ac_exeext conftest.$ac_ext
6904fi
6905
6906
6907		CFLAGS="$xorg_testset_save_CFLAGS"
6908
6909		eval supported=\$$cacheid
6910		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6911printf "%s\n" "$supported" >&6; }
6912		if test "$supported" = "yes" ; then
6913			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6914			found="yes"
6915		fi
6916	fi
6917
6918	if test $found = "no" ; then
6919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921		fi
6922
6923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6925		fi
6926
6927		CFLAGS="$CFLAGS -Wformat"
6928
6929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6930printf %s "checking if $CC supports -Wformat... " >&6; }
6931		cacheid=xorg_cv_cc_flag__Wformat
6932		if eval test \${$cacheid+y}
6933then :
6934  printf %s "(cached) " >&6
6935else $as_nop
6936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938int i;
6939int
6940main (void)
6941{
6942
6943  ;
6944  return 0;
6945}
6946_ACEOF
6947if ac_fn_c_try_link "$LINENO"
6948then :
6949  eval $cacheid=yes
6950else $as_nop
6951  eval $cacheid=no
6952fi
6953rm -f core conftest.err conftest.$ac_objext conftest.beam \
6954    conftest$ac_exeext conftest.$ac_ext
6955fi
6956
6957
6958		CFLAGS="$xorg_testset_save_CFLAGS"
6959
6960		eval supported=\$$cacheid
6961		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6962printf "%s\n" "$supported" >&6; }
6963		if test "$supported" = "yes" ; then
6964			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6965			found="yes"
6966		fi
6967	fi
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985xorg_testset_save_CFLAGS="$CFLAGS"
6986
6987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6991if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6992then :
6993  printf %s "(cached) " >&6
6994else $as_nop
6995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h.  */
6997int i;
6998_ACEOF
6999if ac_fn_c_try_compile "$LINENO"
7000then :
7001  xorg_cv_cc_flag_unknown_warning_option=yes
7002else $as_nop
7003  xorg_cv_cc_flag_unknown_warning_option=no
7004fi
7005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7006fi
7007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7008printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7009	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7010	CFLAGS="$xorg_testset_save_CFLAGS"
7011fi
7012
7013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7014	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7015		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016	fi
7017	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7018	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7019printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7020if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7021then :
7022  printf %s "(cached) " >&6
7023else $as_nop
7024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025/* end confdefs.h.  */
7026int i;
7027_ACEOF
7028if ac_fn_c_try_compile "$LINENO"
7029then :
7030  xorg_cv_cc_flag_unused_command_line_argument=yes
7031else $as_nop
7032  xorg_cv_cc_flag_unused_command_line_argument=no
7033fi
7034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7035fi
7036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7038	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7039	CFLAGS="$xorg_testset_save_CFLAGS"
7040fi
7041
7042found="no"
7043
7044	if test $found = "no" ; then
7045		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7046			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047		fi
7048
7049		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7050			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7051		fi
7052
7053		CFLAGS="$CFLAGS -Wstrict-prototypes"
7054
7055		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
7056printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
7057		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
7058		if eval test \${$cacheid+y}
7059then :
7060  printf %s "(cached) " >&6
7061else $as_nop
7062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063/* end confdefs.h.  */
7064int i;
7065int
7066main (void)
7067{
7068
7069  ;
7070  return 0;
7071}
7072_ACEOF
7073if ac_fn_c_try_link "$LINENO"
7074then :
7075  eval $cacheid=yes
7076else $as_nop
7077  eval $cacheid=no
7078fi
7079rm -f core conftest.err conftest.$ac_objext conftest.beam \
7080    conftest$ac_exeext conftest.$ac_ext
7081fi
7082
7083
7084		CFLAGS="$xorg_testset_save_CFLAGS"
7085
7086		eval supported=\$$cacheid
7087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7088printf "%s\n" "$supported" >&6; }
7089		if test "$supported" = "yes" ; then
7090			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
7091			found="yes"
7092		fi
7093	fi
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109xorg_testset_save_CFLAGS="$CFLAGS"
7110
7111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7112	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7113	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7115if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7116then :
7117  printf %s "(cached) " >&6
7118else $as_nop
7119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120/* end confdefs.h.  */
7121int i;
7122_ACEOF
7123if ac_fn_c_try_compile "$LINENO"
7124then :
7125  xorg_cv_cc_flag_unknown_warning_option=yes
7126else $as_nop
7127  xorg_cv_cc_flag_unknown_warning_option=no
7128fi
7129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7130fi
7131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7134	CFLAGS="$xorg_testset_save_CFLAGS"
7135fi
7136
7137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140	fi
7141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7144if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7145then :
7146  printf %s "(cached) " >&6
7147else $as_nop
7148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h.  */
7150int i;
7151_ACEOF
7152if ac_fn_c_try_compile "$LINENO"
7153then :
7154  xorg_cv_cc_flag_unused_command_line_argument=yes
7155else $as_nop
7156  xorg_cv_cc_flag_unused_command_line_argument=no
7157fi
7158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7159fi
7160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7163	CFLAGS="$xorg_testset_save_CFLAGS"
7164fi
7165
7166found="no"
7167
7168	if test $found = "no" ; then
7169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7171		fi
7172
7173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7175		fi
7176
7177		CFLAGS="$CFLAGS -Wmissing-prototypes"
7178
7179		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
7180printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
7181		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
7182		if eval test \${$cacheid+y}
7183then :
7184  printf %s "(cached) " >&6
7185else $as_nop
7186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187/* end confdefs.h.  */
7188int i;
7189int
7190main (void)
7191{
7192
7193  ;
7194  return 0;
7195}
7196_ACEOF
7197if ac_fn_c_try_link "$LINENO"
7198then :
7199  eval $cacheid=yes
7200else $as_nop
7201  eval $cacheid=no
7202fi
7203rm -f core conftest.err conftest.$ac_objext conftest.beam \
7204    conftest$ac_exeext conftest.$ac_ext
7205fi
7206
7207
7208		CFLAGS="$xorg_testset_save_CFLAGS"
7209
7210		eval supported=\$$cacheid
7211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7212printf "%s\n" "$supported" >&6; }
7213		if test "$supported" = "yes" ; then
7214			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
7215			found="yes"
7216		fi
7217	fi
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233xorg_testset_save_CFLAGS="$CFLAGS"
7234
7235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7239if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7240then :
7241  printf %s "(cached) " >&6
7242else $as_nop
7243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244/* end confdefs.h.  */
7245int i;
7246_ACEOF
7247if ac_fn_c_try_compile "$LINENO"
7248then :
7249  xorg_cv_cc_flag_unknown_warning_option=yes
7250else $as_nop
7251  xorg_cv_cc_flag_unknown_warning_option=no
7252fi
7253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7254fi
7255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7257	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7258	CFLAGS="$xorg_testset_save_CFLAGS"
7259fi
7260
7261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7262	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7263		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7264	fi
7265	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7268if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7269then :
7270  printf %s "(cached) " >&6
7271else $as_nop
7272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273/* end confdefs.h.  */
7274int i;
7275_ACEOF
7276if ac_fn_c_try_compile "$LINENO"
7277then :
7278  xorg_cv_cc_flag_unused_command_line_argument=yes
7279else $as_nop
7280  xorg_cv_cc_flag_unused_command_line_argument=no
7281fi
7282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7283fi
7284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7287	CFLAGS="$xorg_testset_save_CFLAGS"
7288fi
7289
7290found="no"
7291
7292	if test $found = "no" ; then
7293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7295		fi
7296
7297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7299		fi
7300
7301		CFLAGS="$CFLAGS -Wnested-externs"
7302
7303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
7304printf %s "checking if $CC supports -Wnested-externs... " >&6; }
7305		cacheid=xorg_cv_cc_flag__Wnested_externs
7306		if eval test \${$cacheid+y}
7307then :
7308  printf %s "(cached) " >&6
7309else $as_nop
7310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h.  */
7312int i;
7313int
7314main (void)
7315{
7316
7317  ;
7318  return 0;
7319}
7320_ACEOF
7321if ac_fn_c_try_link "$LINENO"
7322then :
7323  eval $cacheid=yes
7324else $as_nop
7325  eval $cacheid=no
7326fi
7327rm -f core conftest.err conftest.$ac_objext conftest.beam \
7328    conftest$ac_exeext conftest.$ac_ext
7329fi
7330
7331
7332		CFLAGS="$xorg_testset_save_CFLAGS"
7333
7334		eval supported=\$$cacheid
7335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7336printf "%s\n" "$supported" >&6; }
7337		if test "$supported" = "yes" ; then
7338			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
7339			found="yes"
7340		fi
7341	fi
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357xorg_testset_save_CFLAGS="$CFLAGS"
7358
7359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7360	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7361	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7363if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7364then :
7365  printf %s "(cached) " >&6
7366else $as_nop
7367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368/* end confdefs.h.  */
7369int i;
7370_ACEOF
7371if ac_fn_c_try_compile "$LINENO"
7372then :
7373  xorg_cv_cc_flag_unknown_warning_option=yes
7374else $as_nop
7375  xorg_cv_cc_flag_unknown_warning_option=no
7376fi
7377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7378fi
7379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7382	CFLAGS="$xorg_testset_save_CFLAGS"
7383fi
7384
7385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7388	fi
7389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7392if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7393then :
7394  printf %s "(cached) " >&6
7395else $as_nop
7396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h.  */
7398int i;
7399_ACEOF
7400if ac_fn_c_try_compile "$LINENO"
7401then :
7402  xorg_cv_cc_flag_unused_command_line_argument=yes
7403else $as_nop
7404  xorg_cv_cc_flag_unused_command_line_argument=no
7405fi
7406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7407fi
7408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7411	CFLAGS="$xorg_testset_save_CFLAGS"
7412fi
7413
7414found="no"
7415
7416	if test $found = "no" ; then
7417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7419		fi
7420
7421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7423		fi
7424
7425		CFLAGS="$CFLAGS -Wbad-function-cast"
7426
7427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
7428printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
7429		cacheid=xorg_cv_cc_flag__Wbad_function_cast
7430		if eval test \${$cacheid+y}
7431then :
7432  printf %s "(cached) " >&6
7433else $as_nop
7434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h.  */
7436int i;
7437int
7438main (void)
7439{
7440
7441  ;
7442  return 0;
7443}
7444_ACEOF
7445if ac_fn_c_try_link "$LINENO"
7446then :
7447  eval $cacheid=yes
7448else $as_nop
7449  eval $cacheid=no
7450fi
7451rm -f core conftest.err conftest.$ac_objext conftest.beam \
7452    conftest$ac_exeext conftest.$ac_ext
7453fi
7454
7455
7456		CFLAGS="$xorg_testset_save_CFLAGS"
7457
7458		eval supported=\$$cacheid
7459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7460printf "%s\n" "$supported" >&6; }
7461		if test "$supported" = "yes" ; then
7462			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
7463			found="yes"
7464		fi
7465	fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481xorg_testset_save_CFLAGS="$CFLAGS"
7482
7483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7487if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7488then :
7489  printf %s "(cached) " >&6
7490else $as_nop
7491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492/* end confdefs.h.  */
7493int i;
7494_ACEOF
7495if ac_fn_c_try_compile "$LINENO"
7496then :
7497  xorg_cv_cc_flag_unknown_warning_option=yes
7498else $as_nop
7499  xorg_cv_cc_flag_unknown_warning_option=no
7500fi
7501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7502fi
7503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7505	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7506	CFLAGS="$xorg_testset_save_CFLAGS"
7507fi
7508
7509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7510	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7511		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7512	fi
7513	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7514	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7516if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7517then :
7518  printf %s "(cached) " >&6
7519else $as_nop
7520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521/* end confdefs.h.  */
7522int i;
7523_ACEOF
7524if ac_fn_c_try_compile "$LINENO"
7525then :
7526  xorg_cv_cc_flag_unused_command_line_argument=yes
7527else $as_nop
7528  xorg_cv_cc_flag_unused_command_line_argument=no
7529fi
7530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7531fi
7532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7533printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7535	CFLAGS="$xorg_testset_save_CFLAGS"
7536fi
7537
7538found="no"
7539
7540	if test $found = "no" ; then
7541		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7543		fi
7544
7545		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7547		fi
7548
7549		CFLAGS="$CFLAGS -Wold-style-definition"
7550
7551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
7552printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
7553		cacheid=xorg_cv_cc_flag__Wold_style_definition
7554		if eval test \${$cacheid+y}
7555then :
7556  printf %s "(cached) " >&6
7557else $as_nop
7558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559/* end confdefs.h.  */
7560int i;
7561int
7562main (void)
7563{
7564
7565  ;
7566  return 0;
7567}
7568_ACEOF
7569if ac_fn_c_try_link "$LINENO"
7570then :
7571  eval $cacheid=yes
7572else $as_nop
7573  eval $cacheid=no
7574fi
7575rm -f core conftest.err conftest.$ac_objext conftest.beam \
7576    conftest$ac_exeext conftest.$ac_ext
7577fi
7578
7579
7580		CFLAGS="$xorg_testset_save_CFLAGS"
7581
7582		eval supported=\$$cacheid
7583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7584printf "%s\n" "$supported" >&6; }
7585		if test "$supported" = "yes" ; then
7586			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
7587			found="yes"
7588		fi
7589	fi
7590
7591	if test $found = "no" ; then
7592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7594		fi
7595
7596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7598		fi
7599
7600		CFLAGS="$CFLAGS -fd"
7601
7602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
7603printf %s "checking if $CC supports -fd... " >&6; }
7604		cacheid=xorg_cv_cc_flag__fd
7605		if eval test \${$cacheid+y}
7606then :
7607  printf %s "(cached) " >&6
7608else $as_nop
7609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610/* end confdefs.h.  */
7611int i;
7612int
7613main (void)
7614{
7615
7616  ;
7617  return 0;
7618}
7619_ACEOF
7620if ac_fn_c_try_link "$LINENO"
7621then :
7622  eval $cacheid=yes
7623else $as_nop
7624  eval $cacheid=no
7625fi
7626rm -f core conftest.err conftest.$ac_objext conftest.beam \
7627    conftest$ac_exeext conftest.$ac_ext
7628fi
7629
7630
7631		CFLAGS="$xorg_testset_save_CFLAGS"
7632
7633		eval supported=\$$cacheid
7634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7635printf "%s\n" "$supported" >&6; }
7636		if test "$supported" = "yes" ; then
7637			BASE_CFLAGS="$BASE_CFLAGS -fd"
7638			found="yes"
7639		fi
7640	fi
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656xorg_testset_save_CFLAGS="$CFLAGS"
7657
7658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7659	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7661printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7662if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7663then :
7664  printf %s "(cached) " >&6
7665else $as_nop
7666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667/* end confdefs.h.  */
7668int i;
7669_ACEOF
7670if ac_fn_c_try_compile "$LINENO"
7671then :
7672  xorg_cv_cc_flag_unknown_warning_option=yes
7673else $as_nop
7674  xorg_cv_cc_flag_unknown_warning_option=no
7675fi
7676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7677fi
7678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7679printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7680	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7681	CFLAGS="$xorg_testset_save_CFLAGS"
7682fi
7683
7684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7685	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7686		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687	fi
7688	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7689	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7690printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7691if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7692then :
7693  printf %s "(cached) " >&6
7694else $as_nop
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697int i;
7698_ACEOF
7699if ac_fn_c_try_compile "$LINENO"
7700then :
7701  xorg_cv_cc_flag_unused_command_line_argument=yes
7702else $as_nop
7703  xorg_cv_cc_flag_unused_command_line_argument=no
7704fi
7705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7706fi
7707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7708printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7709	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7710	CFLAGS="$xorg_testset_save_CFLAGS"
7711fi
7712
7713found="no"
7714
7715	if test $found = "no" ; then
7716		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7717			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7718		fi
7719
7720		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7721			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7722		fi
7723
7724		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7725
7726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
7727printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
7728		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
7729		if eval test \${$cacheid+y}
7730then :
7731  printf %s "(cached) " >&6
7732else $as_nop
7733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734/* end confdefs.h.  */
7735int i;
7736int
7737main (void)
7738{
7739
7740  ;
7741  return 0;
7742}
7743_ACEOF
7744if ac_fn_c_try_link "$LINENO"
7745then :
7746  eval $cacheid=yes
7747else $as_nop
7748  eval $cacheid=no
7749fi
7750rm -f core conftest.err conftest.$ac_objext conftest.beam \
7751    conftest$ac_exeext conftest.$ac_ext
7752fi
7753
7754
7755		CFLAGS="$xorg_testset_save_CFLAGS"
7756
7757		eval supported=\$$cacheid
7758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7759printf "%s\n" "$supported" >&6; }
7760		if test "$supported" = "yes" ; then
7761			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
7762			found="yes"
7763		fi
7764	fi
7765
7766
7767
7768
7769
7770# This chunk adds additional warnings that could catch undesired effects.
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784xorg_testset_save_CFLAGS="$CFLAGS"
7785
7786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7789printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7790if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7791then :
7792  printf %s "(cached) " >&6
7793else $as_nop
7794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795/* end confdefs.h.  */
7796int i;
7797_ACEOF
7798if ac_fn_c_try_compile "$LINENO"
7799then :
7800  xorg_cv_cc_flag_unknown_warning_option=yes
7801else $as_nop
7802  xorg_cv_cc_flag_unknown_warning_option=no
7803fi
7804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7805fi
7806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7807printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7809	CFLAGS="$xorg_testset_save_CFLAGS"
7810fi
7811
7812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7815	fi
7816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7818printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7819if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7820then :
7821  printf %s "(cached) " >&6
7822else $as_nop
7823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h.  */
7825int i;
7826_ACEOF
7827if ac_fn_c_try_compile "$LINENO"
7828then :
7829  xorg_cv_cc_flag_unused_command_line_argument=yes
7830else $as_nop
7831  xorg_cv_cc_flag_unused_command_line_argument=no
7832fi
7833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7834fi
7835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7836printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7837	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7838	CFLAGS="$xorg_testset_save_CFLAGS"
7839fi
7840
7841found="no"
7842
7843	if test $found = "no" ; then
7844		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846		fi
7847
7848		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7850		fi
7851
7852		CFLAGS="$CFLAGS -Wunused"
7853
7854		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
7855printf %s "checking if $CC supports -Wunused... " >&6; }
7856		cacheid=xorg_cv_cc_flag__Wunused
7857		if eval test \${$cacheid+y}
7858then :
7859  printf %s "(cached) " >&6
7860else $as_nop
7861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862/* end confdefs.h.  */
7863int i;
7864int
7865main (void)
7866{
7867
7868  ;
7869  return 0;
7870}
7871_ACEOF
7872if ac_fn_c_try_link "$LINENO"
7873then :
7874  eval $cacheid=yes
7875else $as_nop
7876  eval $cacheid=no
7877fi
7878rm -f core conftest.err conftest.$ac_objext conftest.beam \
7879    conftest$ac_exeext conftest.$ac_ext
7880fi
7881
7882
7883		CFLAGS="$xorg_testset_save_CFLAGS"
7884
7885		eval supported=\$$cacheid
7886		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7887printf "%s\n" "$supported" >&6; }
7888		if test "$supported" = "yes" ; then
7889			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7890			found="yes"
7891		fi
7892	fi
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908xorg_testset_save_CFLAGS="$CFLAGS"
7909
7910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7911	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7913printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7914if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7915then :
7916  printf %s "(cached) " >&6
7917else $as_nop
7918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h.  */
7920int i;
7921_ACEOF
7922if ac_fn_c_try_compile "$LINENO"
7923then :
7924  xorg_cv_cc_flag_unknown_warning_option=yes
7925else $as_nop
7926  xorg_cv_cc_flag_unknown_warning_option=no
7927fi
7928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7929fi
7930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7931printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7932	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7933	CFLAGS="$xorg_testset_save_CFLAGS"
7934fi
7935
7936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7937	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7938		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7939	fi
7940	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7941	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7942printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7943if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7944then :
7945  printf %s "(cached) " >&6
7946else $as_nop
7947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948/* end confdefs.h.  */
7949int i;
7950_ACEOF
7951if ac_fn_c_try_compile "$LINENO"
7952then :
7953  xorg_cv_cc_flag_unused_command_line_argument=yes
7954else $as_nop
7955  xorg_cv_cc_flag_unused_command_line_argument=no
7956fi
7957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7958fi
7959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7960printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7961	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7962	CFLAGS="$xorg_testset_save_CFLAGS"
7963fi
7964
7965found="no"
7966
7967	if test $found = "no" ; then
7968		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7969			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7970		fi
7971
7972		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7973			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7974		fi
7975
7976		CFLAGS="$CFLAGS -Wuninitialized"
7977
7978		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7979printf %s "checking if $CC supports -Wuninitialized... " >&6; }
7980		cacheid=xorg_cv_cc_flag__Wuninitialized
7981		if eval test \${$cacheid+y}
7982then :
7983  printf %s "(cached) " >&6
7984else $as_nop
7985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h.  */
7987int i;
7988int
7989main (void)
7990{
7991
7992  ;
7993  return 0;
7994}
7995_ACEOF
7996if ac_fn_c_try_link "$LINENO"
7997then :
7998  eval $cacheid=yes
7999else $as_nop
8000  eval $cacheid=no
8001fi
8002rm -f core conftest.err conftest.$ac_objext conftest.beam \
8003    conftest$ac_exeext conftest.$ac_ext
8004fi
8005
8006
8007		CFLAGS="$xorg_testset_save_CFLAGS"
8008
8009		eval supported=\$$cacheid
8010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8011printf "%s\n" "$supported" >&6; }
8012		if test "$supported" = "yes" ; then
8013			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
8014			found="yes"
8015		fi
8016	fi
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032xorg_testset_save_CFLAGS="$CFLAGS"
8033
8034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8036	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8037printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8038if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8039then :
8040  printf %s "(cached) " >&6
8041else $as_nop
8042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043/* end confdefs.h.  */
8044int i;
8045_ACEOF
8046if ac_fn_c_try_compile "$LINENO"
8047then :
8048  xorg_cv_cc_flag_unknown_warning_option=yes
8049else $as_nop
8050  xorg_cv_cc_flag_unknown_warning_option=no
8051fi
8052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8053fi
8054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8055printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8056	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8057	CFLAGS="$xorg_testset_save_CFLAGS"
8058fi
8059
8060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8061	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8062		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8063	fi
8064	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8066printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8067if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8068then :
8069  printf %s "(cached) " >&6
8070else $as_nop
8071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072/* end confdefs.h.  */
8073int i;
8074_ACEOF
8075if ac_fn_c_try_compile "$LINENO"
8076then :
8077  xorg_cv_cc_flag_unused_command_line_argument=yes
8078else $as_nop
8079  xorg_cv_cc_flag_unused_command_line_argument=no
8080fi
8081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8082fi
8083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8084printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8085	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8086	CFLAGS="$xorg_testset_save_CFLAGS"
8087fi
8088
8089found="no"
8090
8091	if test $found = "no" ; then
8092		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8093			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8094		fi
8095
8096		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8097			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8098		fi
8099
8100		CFLAGS="$CFLAGS -Wshadow"
8101
8102		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
8103printf %s "checking if $CC supports -Wshadow... " >&6; }
8104		cacheid=xorg_cv_cc_flag__Wshadow
8105		if eval test \${$cacheid+y}
8106then :
8107  printf %s "(cached) " >&6
8108else $as_nop
8109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h.  */
8111int i;
8112int
8113main (void)
8114{
8115
8116  ;
8117  return 0;
8118}
8119_ACEOF
8120if ac_fn_c_try_link "$LINENO"
8121then :
8122  eval $cacheid=yes
8123else $as_nop
8124  eval $cacheid=no
8125fi
8126rm -f core conftest.err conftest.$ac_objext conftest.beam \
8127    conftest$ac_exeext conftest.$ac_ext
8128fi
8129
8130
8131		CFLAGS="$xorg_testset_save_CFLAGS"
8132
8133		eval supported=\$$cacheid
8134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8135printf "%s\n" "$supported" >&6; }
8136		if test "$supported" = "yes" ; then
8137			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
8138			found="yes"
8139		fi
8140	fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156xorg_testset_save_CFLAGS="$CFLAGS"
8157
8158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8159	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8160	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8161printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8162if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8163then :
8164  printf %s "(cached) " >&6
8165else $as_nop
8166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167/* end confdefs.h.  */
8168int i;
8169_ACEOF
8170if ac_fn_c_try_compile "$LINENO"
8171then :
8172  xorg_cv_cc_flag_unknown_warning_option=yes
8173else $as_nop
8174  xorg_cv_cc_flag_unknown_warning_option=no
8175fi
8176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8177fi
8178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8179printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8180	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8181	CFLAGS="$xorg_testset_save_CFLAGS"
8182fi
8183
8184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8185	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8186		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8187	fi
8188	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8189	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8190printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8191if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8192then :
8193  printf %s "(cached) " >&6
8194else $as_nop
8195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h.  */
8197int i;
8198_ACEOF
8199if ac_fn_c_try_compile "$LINENO"
8200then :
8201  xorg_cv_cc_flag_unused_command_line_argument=yes
8202else $as_nop
8203  xorg_cv_cc_flag_unused_command_line_argument=no
8204fi
8205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8206fi
8207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8208printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8209	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8210	CFLAGS="$xorg_testset_save_CFLAGS"
8211fi
8212
8213found="no"
8214
8215	if test $found = "no" ; then
8216		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8217			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8218		fi
8219
8220		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8221			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8222		fi
8223
8224		CFLAGS="$CFLAGS -Wmissing-noreturn"
8225
8226		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
8227printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
8228		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
8229		if eval test \${$cacheid+y}
8230then :
8231  printf %s "(cached) " >&6
8232else $as_nop
8233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234/* end confdefs.h.  */
8235int i;
8236int
8237main (void)
8238{
8239
8240  ;
8241  return 0;
8242}
8243_ACEOF
8244if ac_fn_c_try_link "$LINENO"
8245then :
8246  eval $cacheid=yes
8247else $as_nop
8248  eval $cacheid=no
8249fi
8250rm -f core conftest.err conftest.$ac_objext conftest.beam \
8251    conftest$ac_exeext conftest.$ac_ext
8252fi
8253
8254
8255		CFLAGS="$xorg_testset_save_CFLAGS"
8256
8257		eval supported=\$$cacheid
8258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8259printf "%s\n" "$supported" >&6; }
8260		if test "$supported" = "yes" ; then
8261			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
8262			found="yes"
8263		fi
8264	fi
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280xorg_testset_save_CFLAGS="$CFLAGS"
8281
8282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8284	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8285printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8286if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8287then :
8288  printf %s "(cached) " >&6
8289else $as_nop
8290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h.  */
8292int i;
8293_ACEOF
8294if ac_fn_c_try_compile "$LINENO"
8295then :
8296  xorg_cv_cc_flag_unknown_warning_option=yes
8297else $as_nop
8298  xorg_cv_cc_flag_unknown_warning_option=no
8299fi
8300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8301fi
8302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8303printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8304	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8305	CFLAGS="$xorg_testset_save_CFLAGS"
8306fi
8307
8308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8309	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8311	fi
8312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8313	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8314printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8315if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8316then :
8317  printf %s "(cached) " >&6
8318else $as_nop
8319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320/* end confdefs.h.  */
8321int i;
8322_ACEOF
8323if ac_fn_c_try_compile "$LINENO"
8324then :
8325  xorg_cv_cc_flag_unused_command_line_argument=yes
8326else $as_nop
8327  xorg_cv_cc_flag_unused_command_line_argument=no
8328fi
8329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8330fi
8331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8332printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8333	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8334	CFLAGS="$xorg_testset_save_CFLAGS"
8335fi
8336
8337found="no"
8338
8339	if test $found = "no" ; then
8340		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8341			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8342		fi
8343
8344		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8345			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8346		fi
8347
8348		CFLAGS="$CFLAGS -Wmissing-format-attribute"
8349
8350		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
8351printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
8352		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
8353		if eval test \${$cacheid+y}
8354then :
8355  printf %s "(cached) " >&6
8356else $as_nop
8357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h.  */
8359int i;
8360int
8361main (void)
8362{
8363
8364  ;
8365  return 0;
8366}
8367_ACEOF
8368if ac_fn_c_try_link "$LINENO"
8369then :
8370  eval $cacheid=yes
8371else $as_nop
8372  eval $cacheid=no
8373fi
8374rm -f core conftest.err conftest.$ac_objext conftest.beam \
8375    conftest$ac_exeext conftest.$ac_ext
8376fi
8377
8378
8379		CFLAGS="$xorg_testset_save_CFLAGS"
8380
8381		eval supported=\$$cacheid
8382		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8383printf "%s\n" "$supported" >&6; }
8384		if test "$supported" = "yes" ; then
8385			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
8386			found="yes"
8387		fi
8388	fi
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404xorg_testset_save_CFLAGS="$CFLAGS"
8405
8406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8408	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8409printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8410if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8411then :
8412  printf %s "(cached) " >&6
8413else $as_nop
8414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415/* end confdefs.h.  */
8416int i;
8417_ACEOF
8418if ac_fn_c_try_compile "$LINENO"
8419then :
8420  xorg_cv_cc_flag_unknown_warning_option=yes
8421else $as_nop
8422  xorg_cv_cc_flag_unknown_warning_option=no
8423fi
8424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8425fi
8426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8427printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8429	CFLAGS="$xorg_testset_save_CFLAGS"
8430fi
8431
8432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8435	fi
8436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8437	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8438printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8439if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8440then :
8441  printf %s "(cached) " >&6
8442else $as_nop
8443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h.  */
8445int i;
8446_ACEOF
8447if ac_fn_c_try_compile "$LINENO"
8448then :
8449  xorg_cv_cc_flag_unused_command_line_argument=yes
8450else $as_nop
8451  xorg_cv_cc_flag_unused_command_line_argument=no
8452fi
8453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8454fi
8455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8458	CFLAGS="$xorg_testset_save_CFLAGS"
8459fi
8460
8461found="no"
8462
8463	if test $found = "no" ; then
8464		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8466		fi
8467
8468		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8470		fi
8471
8472		CFLAGS="$CFLAGS -Wredundant-decls"
8473
8474		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
8475printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
8476		cacheid=xorg_cv_cc_flag__Wredundant_decls
8477		if eval test \${$cacheid+y}
8478then :
8479  printf %s "(cached) " >&6
8480else $as_nop
8481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482/* end confdefs.h.  */
8483int i;
8484int
8485main (void)
8486{
8487
8488  ;
8489  return 0;
8490}
8491_ACEOF
8492if ac_fn_c_try_link "$LINENO"
8493then :
8494  eval $cacheid=yes
8495else $as_nop
8496  eval $cacheid=no
8497fi
8498rm -f core conftest.err conftest.$ac_objext conftest.beam \
8499    conftest$ac_exeext conftest.$ac_ext
8500fi
8501
8502
8503		CFLAGS="$xorg_testset_save_CFLAGS"
8504
8505		eval supported=\$$cacheid
8506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8507printf "%s\n" "$supported" >&6; }
8508		if test "$supported" = "yes" ; then
8509			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
8510			found="yes"
8511		fi
8512	fi
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528xorg_testset_save_CFLAGS="$CFLAGS"
8529
8530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8532	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8533printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8534if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8535then :
8536  printf %s "(cached) " >&6
8537else $as_nop
8538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539/* end confdefs.h.  */
8540int i;
8541_ACEOF
8542if ac_fn_c_try_compile "$LINENO"
8543then :
8544  xorg_cv_cc_flag_unknown_warning_option=yes
8545else $as_nop
8546  xorg_cv_cc_flag_unknown_warning_option=no
8547fi
8548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8549fi
8550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8551printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8553	CFLAGS="$xorg_testset_save_CFLAGS"
8554fi
8555
8556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8559	fi
8560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8561	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8562printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8563if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8564then :
8565  printf %s "(cached) " >&6
8566else $as_nop
8567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568/* end confdefs.h.  */
8569int i;
8570_ACEOF
8571if ac_fn_c_try_compile "$LINENO"
8572then :
8573  xorg_cv_cc_flag_unused_command_line_argument=yes
8574else $as_nop
8575  xorg_cv_cc_flag_unused_command_line_argument=no
8576fi
8577rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8578fi
8579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8580printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8581	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8582	CFLAGS="$xorg_testset_save_CFLAGS"
8583fi
8584
8585found="no"
8586
8587	if test $found = "no" ; then
8588		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8589			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8590		fi
8591
8592		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8593			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8594		fi
8595
8596		CFLAGS="$CFLAGS -Wlogical-op"
8597
8598		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
8599printf %s "checking if $CC supports -Wlogical-op... " >&6; }
8600		cacheid=xorg_cv_cc_flag__Wlogical_op
8601		if eval test \${$cacheid+y}
8602then :
8603  printf %s "(cached) " >&6
8604else $as_nop
8605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606/* end confdefs.h.  */
8607int i;
8608int
8609main (void)
8610{
8611
8612  ;
8613  return 0;
8614}
8615_ACEOF
8616if ac_fn_c_try_link "$LINENO"
8617then :
8618  eval $cacheid=yes
8619else $as_nop
8620  eval $cacheid=no
8621fi
8622rm -f core conftest.err conftest.$ac_objext conftest.beam \
8623    conftest$ac_exeext conftest.$ac_ext
8624fi
8625
8626
8627		CFLAGS="$xorg_testset_save_CFLAGS"
8628
8629		eval supported=\$$cacheid
8630		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8631printf "%s\n" "$supported" >&6; }
8632		if test "$supported" = "yes" ; then
8633			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
8634			found="yes"
8635		fi
8636	fi
8637
8638
8639
8640# These are currently disabled because they are noisy.  They will be enabled
8641# in the future once the codebase is sufficiently modernized to silence
8642# them.  For now, I don't want them to drown out the other warnings.
8643# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
8644# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
8645# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
8646
8647# Turn some warnings into errors, so we don't accidentally get successful builds
8648# when there are problems that should be fixed.
8649
8650if test "x$SELECTIVE_WERROR" = "xyes" ; then
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664xorg_testset_save_CFLAGS="$CFLAGS"
8665
8666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8667	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8668	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8669printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8670if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8671then :
8672  printf %s "(cached) " >&6
8673else $as_nop
8674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675/* end confdefs.h.  */
8676int i;
8677_ACEOF
8678if ac_fn_c_try_compile "$LINENO"
8679then :
8680  xorg_cv_cc_flag_unknown_warning_option=yes
8681else $as_nop
8682  xorg_cv_cc_flag_unknown_warning_option=no
8683fi
8684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8685fi
8686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8687printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8689	CFLAGS="$xorg_testset_save_CFLAGS"
8690fi
8691
8692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8695	fi
8696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8697	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8698printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8699if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8700then :
8701  printf %s "(cached) " >&6
8702else $as_nop
8703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704/* end confdefs.h.  */
8705int i;
8706_ACEOF
8707if ac_fn_c_try_compile "$LINENO"
8708then :
8709  xorg_cv_cc_flag_unused_command_line_argument=yes
8710else $as_nop
8711  xorg_cv_cc_flag_unused_command_line_argument=no
8712fi
8713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8714fi
8715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8716printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8718	CFLAGS="$xorg_testset_save_CFLAGS"
8719fi
8720
8721found="no"
8722
8723	if test $found = "no" ; then
8724		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726		fi
8727
8728		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8730		fi
8731
8732		CFLAGS="$CFLAGS -Werror=implicit"
8733
8734		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
8735printf %s "checking if $CC supports -Werror=implicit... " >&6; }
8736		cacheid=xorg_cv_cc_flag__Werror_implicit
8737		if eval test \${$cacheid+y}
8738then :
8739  printf %s "(cached) " >&6
8740else $as_nop
8741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742/* end confdefs.h.  */
8743int i;
8744int
8745main (void)
8746{
8747
8748  ;
8749  return 0;
8750}
8751_ACEOF
8752if ac_fn_c_try_link "$LINENO"
8753then :
8754  eval $cacheid=yes
8755else $as_nop
8756  eval $cacheid=no
8757fi
8758rm -f core conftest.err conftest.$ac_objext conftest.beam \
8759    conftest$ac_exeext conftest.$ac_ext
8760fi
8761
8762
8763		CFLAGS="$xorg_testset_save_CFLAGS"
8764
8765		eval supported=\$$cacheid
8766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8767printf "%s\n" "$supported" >&6; }
8768		if test "$supported" = "yes" ; then
8769			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
8770			found="yes"
8771		fi
8772	fi
8773
8774	if test $found = "no" ; then
8775		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777		fi
8778
8779		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8781		fi
8782
8783		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8784
8785		{ 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
8786printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
8787		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
8788		if eval test \${$cacheid+y}
8789then :
8790  printf %s "(cached) " >&6
8791else $as_nop
8792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793/* end confdefs.h.  */
8794int i;
8795int
8796main (void)
8797{
8798
8799  ;
8800  return 0;
8801}
8802_ACEOF
8803if ac_fn_c_try_link "$LINENO"
8804then :
8805  eval $cacheid=yes
8806else $as_nop
8807  eval $cacheid=no
8808fi
8809rm -f core conftest.err conftest.$ac_objext conftest.beam \
8810    conftest$ac_exeext conftest.$ac_ext
8811fi
8812
8813
8814		CFLAGS="$xorg_testset_save_CFLAGS"
8815
8816		eval supported=\$$cacheid
8817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8818printf "%s\n" "$supported" >&6; }
8819		if test "$supported" = "yes" ; then
8820			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8821			found="yes"
8822		fi
8823	fi
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839xorg_testset_save_CFLAGS="$CFLAGS"
8840
8841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8842	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8843	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8844printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8845if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8846then :
8847  printf %s "(cached) " >&6
8848else $as_nop
8849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850/* end confdefs.h.  */
8851int i;
8852_ACEOF
8853if ac_fn_c_try_compile "$LINENO"
8854then :
8855  xorg_cv_cc_flag_unknown_warning_option=yes
8856else $as_nop
8857  xorg_cv_cc_flag_unknown_warning_option=no
8858fi
8859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8860fi
8861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8862printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8864	CFLAGS="$xorg_testset_save_CFLAGS"
8865fi
8866
8867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8870	fi
8871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8872	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8873printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8874if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8875then :
8876  printf %s "(cached) " >&6
8877else $as_nop
8878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879/* end confdefs.h.  */
8880int i;
8881_ACEOF
8882if ac_fn_c_try_compile "$LINENO"
8883then :
8884  xorg_cv_cc_flag_unused_command_line_argument=yes
8885else $as_nop
8886  xorg_cv_cc_flag_unused_command_line_argument=no
8887fi
8888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8889fi
8890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8891printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8892	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8893	CFLAGS="$xorg_testset_save_CFLAGS"
8894fi
8895
8896found="no"
8897
8898	if test $found = "no" ; then
8899		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8900			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901		fi
8902
8903		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8904			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8905		fi
8906
8907		CFLAGS="$CFLAGS -Werror=nonnull"
8908
8909		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8910printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
8911		cacheid=xorg_cv_cc_flag__Werror_nonnull
8912		if eval test \${$cacheid+y}
8913then :
8914  printf %s "(cached) " >&6
8915else $as_nop
8916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917/* end confdefs.h.  */
8918int i;
8919int
8920main (void)
8921{
8922
8923  ;
8924  return 0;
8925}
8926_ACEOF
8927if ac_fn_c_try_link "$LINENO"
8928then :
8929  eval $cacheid=yes
8930else $as_nop
8931  eval $cacheid=no
8932fi
8933rm -f core conftest.err conftest.$ac_objext conftest.beam \
8934    conftest$ac_exeext conftest.$ac_ext
8935fi
8936
8937
8938		CFLAGS="$xorg_testset_save_CFLAGS"
8939
8940		eval supported=\$$cacheid
8941		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8942printf "%s\n" "$supported" >&6; }
8943		if test "$supported" = "yes" ; then
8944			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8945			found="yes"
8946		fi
8947	fi
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963xorg_testset_save_CFLAGS="$CFLAGS"
8964
8965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8969if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8970then :
8971  printf %s "(cached) " >&6
8972else $as_nop
8973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974/* end confdefs.h.  */
8975int i;
8976_ACEOF
8977if ac_fn_c_try_compile "$LINENO"
8978then :
8979  xorg_cv_cc_flag_unknown_warning_option=yes
8980else $as_nop
8981  xorg_cv_cc_flag_unknown_warning_option=no
8982fi
8983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8984fi
8985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8988	CFLAGS="$xorg_testset_save_CFLAGS"
8989fi
8990
8991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8994	fi
8995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8996	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8998if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8999then :
9000  printf %s "(cached) " >&6
9001else $as_nop
9002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003/* end confdefs.h.  */
9004int i;
9005_ACEOF
9006if ac_fn_c_try_compile "$LINENO"
9007then :
9008  xorg_cv_cc_flag_unused_command_line_argument=yes
9009else $as_nop
9010  xorg_cv_cc_flag_unused_command_line_argument=no
9011fi
9012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9013fi
9014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9017	CFLAGS="$xorg_testset_save_CFLAGS"
9018fi
9019
9020found="no"
9021
9022	if test $found = "no" ; then
9023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025		fi
9026
9027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9029		fi
9030
9031		CFLAGS="$CFLAGS -Werror=init-self"
9032
9033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
9034printf %s "checking if $CC supports -Werror=init-self... " >&6; }
9035		cacheid=xorg_cv_cc_flag__Werror_init_self
9036		if eval test \${$cacheid+y}
9037then :
9038  printf %s "(cached) " >&6
9039else $as_nop
9040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041/* end confdefs.h.  */
9042int i;
9043int
9044main (void)
9045{
9046
9047  ;
9048  return 0;
9049}
9050_ACEOF
9051if ac_fn_c_try_link "$LINENO"
9052then :
9053  eval $cacheid=yes
9054else $as_nop
9055  eval $cacheid=no
9056fi
9057rm -f core conftest.err conftest.$ac_objext conftest.beam \
9058    conftest$ac_exeext conftest.$ac_ext
9059fi
9060
9061
9062		CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064		eval supported=\$$cacheid
9065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066printf "%s\n" "$supported" >&6; }
9067		if test "$supported" = "yes" ; then
9068			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
9069			found="yes"
9070		fi
9071	fi
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087xorg_testset_save_CFLAGS="$CFLAGS"
9088
9089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9093if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9094then :
9095  printf %s "(cached) " >&6
9096else $as_nop
9097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098/* end confdefs.h.  */
9099int i;
9100_ACEOF
9101if ac_fn_c_try_compile "$LINENO"
9102then :
9103  xorg_cv_cc_flag_unknown_warning_option=yes
9104else $as_nop
9105  xorg_cv_cc_flag_unknown_warning_option=no
9106fi
9107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9108fi
9109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9112	CFLAGS="$xorg_testset_save_CFLAGS"
9113fi
9114
9115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118	fi
9119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9122if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9123then :
9124  printf %s "(cached) " >&6
9125else $as_nop
9126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127/* end confdefs.h.  */
9128int i;
9129_ACEOF
9130if ac_fn_c_try_compile "$LINENO"
9131then :
9132  xorg_cv_cc_flag_unused_command_line_argument=yes
9133else $as_nop
9134  xorg_cv_cc_flag_unused_command_line_argument=no
9135fi
9136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9137fi
9138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9141	CFLAGS="$xorg_testset_save_CFLAGS"
9142fi
9143
9144found="no"
9145
9146	if test $found = "no" ; then
9147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9149		fi
9150
9151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9153		fi
9154
9155		CFLAGS="$CFLAGS -Werror=main"
9156
9157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
9158printf %s "checking if $CC supports -Werror=main... " >&6; }
9159		cacheid=xorg_cv_cc_flag__Werror_main
9160		if eval test \${$cacheid+y}
9161then :
9162  printf %s "(cached) " >&6
9163else $as_nop
9164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h.  */
9166int i;
9167int
9168main (void)
9169{
9170
9171  ;
9172  return 0;
9173}
9174_ACEOF
9175if ac_fn_c_try_link "$LINENO"
9176then :
9177  eval $cacheid=yes
9178else $as_nop
9179  eval $cacheid=no
9180fi
9181rm -f core conftest.err conftest.$ac_objext conftest.beam \
9182    conftest$ac_exeext conftest.$ac_ext
9183fi
9184
9185
9186		CFLAGS="$xorg_testset_save_CFLAGS"
9187
9188		eval supported=\$$cacheid
9189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9190printf "%s\n" "$supported" >&6; }
9191		if test "$supported" = "yes" ; then
9192			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
9193			found="yes"
9194		fi
9195	fi
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211xorg_testset_save_CFLAGS="$CFLAGS"
9212
9213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9217if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9218then :
9219  printf %s "(cached) " >&6
9220else $as_nop
9221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222/* end confdefs.h.  */
9223int i;
9224_ACEOF
9225if ac_fn_c_try_compile "$LINENO"
9226then :
9227  xorg_cv_cc_flag_unknown_warning_option=yes
9228else $as_nop
9229  xorg_cv_cc_flag_unknown_warning_option=no
9230fi
9231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9232fi
9233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9236	CFLAGS="$xorg_testset_save_CFLAGS"
9237fi
9238
9239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242	fi
9243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9246if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9247then :
9248  printf %s "(cached) " >&6
9249else $as_nop
9250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251/* end confdefs.h.  */
9252int i;
9253_ACEOF
9254if ac_fn_c_try_compile "$LINENO"
9255then :
9256  xorg_cv_cc_flag_unused_command_line_argument=yes
9257else $as_nop
9258  xorg_cv_cc_flag_unused_command_line_argument=no
9259fi
9260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9261fi
9262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9265	CFLAGS="$xorg_testset_save_CFLAGS"
9266fi
9267
9268found="no"
9269
9270	if test $found = "no" ; then
9271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9273		fi
9274
9275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9277		fi
9278
9279		CFLAGS="$CFLAGS -Werror=missing-braces"
9280
9281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
9282printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
9283		cacheid=xorg_cv_cc_flag__Werror_missing_braces
9284		if eval test \${$cacheid+y}
9285then :
9286  printf %s "(cached) " >&6
9287else $as_nop
9288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289/* end confdefs.h.  */
9290int i;
9291int
9292main (void)
9293{
9294
9295  ;
9296  return 0;
9297}
9298_ACEOF
9299if ac_fn_c_try_link "$LINENO"
9300then :
9301  eval $cacheid=yes
9302else $as_nop
9303  eval $cacheid=no
9304fi
9305rm -f core conftest.err conftest.$ac_objext conftest.beam \
9306    conftest$ac_exeext conftest.$ac_ext
9307fi
9308
9309
9310		CFLAGS="$xorg_testset_save_CFLAGS"
9311
9312		eval supported=\$$cacheid
9313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9314printf "%s\n" "$supported" >&6; }
9315		if test "$supported" = "yes" ; then
9316			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
9317			found="yes"
9318		fi
9319	fi
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335xorg_testset_save_CFLAGS="$CFLAGS"
9336
9337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9341if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9342then :
9343  printf %s "(cached) " >&6
9344else $as_nop
9345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346/* end confdefs.h.  */
9347int i;
9348_ACEOF
9349if ac_fn_c_try_compile "$LINENO"
9350then :
9351  xorg_cv_cc_flag_unknown_warning_option=yes
9352else $as_nop
9353  xorg_cv_cc_flag_unknown_warning_option=no
9354fi
9355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9356fi
9357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9358printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9360	CFLAGS="$xorg_testset_save_CFLAGS"
9361fi
9362
9363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366	fi
9367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9369printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9370if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9371then :
9372  printf %s "(cached) " >&6
9373else $as_nop
9374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375/* end confdefs.h.  */
9376int i;
9377_ACEOF
9378if ac_fn_c_try_compile "$LINENO"
9379then :
9380  xorg_cv_cc_flag_unused_command_line_argument=yes
9381else $as_nop
9382  xorg_cv_cc_flag_unused_command_line_argument=no
9383fi
9384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9385fi
9386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9389	CFLAGS="$xorg_testset_save_CFLAGS"
9390fi
9391
9392found="no"
9393
9394	if test $found = "no" ; then
9395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9397		fi
9398
9399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9401		fi
9402
9403		CFLAGS="$CFLAGS -Werror=sequence-point"
9404
9405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
9406printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
9407		cacheid=xorg_cv_cc_flag__Werror_sequence_point
9408		if eval test \${$cacheid+y}
9409then :
9410  printf %s "(cached) " >&6
9411else $as_nop
9412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413/* end confdefs.h.  */
9414int i;
9415int
9416main (void)
9417{
9418
9419  ;
9420  return 0;
9421}
9422_ACEOF
9423if ac_fn_c_try_link "$LINENO"
9424then :
9425  eval $cacheid=yes
9426else $as_nop
9427  eval $cacheid=no
9428fi
9429rm -f core conftest.err conftest.$ac_objext conftest.beam \
9430    conftest$ac_exeext conftest.$ac_ext
9431fi
9432
9433
9434		CFLAGS="$xorg_testset_save_CFLAGS"
9435
9436		eval supported=\$$cacheid
9437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9438printf "%s\n" "$supported" >&6; }
9439		if test "$supported" = "yes" ; then
9440			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
9441			found="yes"
9442		fi
9443	fi
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459xorg_testset_save_CFLAGS="$CFLAGS"
9460
9461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9465if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9466then :
9467  printf %s "(cached) " >&6
9468else $as_nop
9469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470/* end confdefs.h.  */
9471int i;
9472_ACEOF
9473if ac_fn_c_try_compile "$LINENO"
9474then :
9475  xorg_cv_cc_flag_unknown_warning_option=yes
9476else $as_nop
9477  xorg_cv_cc_flag_unknown_warning_option=no
9478fi
9479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9480fi
9481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9484	CFLAGS="$xorg_testset_save_CFLAGS"
9485fi
9486
9487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490	fi
9491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9494if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9495then :
9496  printf %s "(cached) " >&6
9497else $as_nop
9498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499/* end confdefs.h.  */
9500int i;
9501_ACEOF
9502if ac_fn_c_try_compile "$LINENO"
9503then :
9504  xorg_cv_cc_flag_unused_command_line_argument=yes
9505else $as_nop
9506  xorg_cv_cc_flag_unused_command_line_argument=no
9507fi
9508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9509fi
9510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9513	CFLAGS="$xorg_testset_save_CFLAGS"
9514fi
9515
9516found="no"
9517
9518	if test $found = "no" ; then
9519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9521		fi
9522
9523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9525		fi
9526
9527		CFLAGS="$CFLAGS -Werror=return-type"
9528
9529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
9530printf %s "checking if $CC supports -Werror=return-type... " >&6; }
9531		cacheid=xorg_cv_cc_flag__Werror_return_type
9532		if eval test \${$cacheid+y}
9533then :
9534  printf %s "(cached) " >&6
9535else $as_nop
9536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537/* end confdefs.h.  */
9538int i;
9539int
9540main (void)
9541{
9542
9543  ;
9544  return 0;
9545}
9546_ACEOF
9547if ac_fn_c_try_link "$LINENO"
9548then :
9549  eval $cacheid=yes
9550else $as_nop
9551  eval $cacheid=no
9552fi
9553rm -f core conftest.err conftest.$ac_objext conftest.beam \
9554    conftest$ac_exeext conftest.$ac_ext
9555fi
9556
9557
9558		CFLAGS="$xorg_testset_save_CFLAGS"
9559
9560		eval supported=\$$cacheid
9561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9562printf "%s\n" "$supported" >&6; }
9563		if test "$supported" = "yes" ; then
9564			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
9565			found="yes"
9566		fi
9567	fi
9568
9569	if test $found = "no" ; then
9570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572		fi
9573
9574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9576		fi
9577
9578		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9579
9580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
9581printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
9582		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
9583		if eval test \${$cacheid+y}
9584then :
9585  printf %s "(cached) " >&6
9586else $as_nop
9587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588/* end confdefs.h.  */
9589int i;
9590int
9591main (void)
9592{
9593
9594  ;
9595  return 0;
9596}
9597_ACEOF
9598if ac_fn_c_try_link "$LINENO"
9599then :
9600  eval $cacheid=yes
9601else $as_nop
9602  eval $cacheid=no
9603fi
9604rm -f core conftest.err conftest.$ac_objext conftest.beam \
9605    conftest$ac_exeext conftest.$ac_ext
9606fi
9607
9608
9609		CFLAGS="$xorg_testset_save_CFLAGS"
9610
9611		eval supported=\$$cacheid
9612		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9613printf "%s\n" "$supported" >&6; }
9614		if test "$supported" = "yes" ; then
9615			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9616			found="yes"
9617		fi
9618	fi
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634xorg_testset_save_CFLAGS="$CFLAGS"
9635
9636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9637	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9638	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9639printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9640if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9641then :
9642  printf %s "(cached) " >&6
9643else $as_nop
9644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645/* end confdefs.h.  */
9646int i;
9647_ACEOF
9648if ac_fn_c_try_compile "$LINENO"
9649then :
9650  xorg_cv_cc_flag_unknown_warning_option=yes
9651else $as_nop
9652  xorg_cv_cc_flag_unknown_warning_option=no
9653fi
9654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9655fi
9656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9657printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9659	CFLAGS="$xorg_testset_save_CFLAGS"
9660fi
9661
9662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665	fi
9666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9667	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9668printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9669if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9670then :
9671  printf %s "(cached) " >&6
9672else $as_nop
9673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674/* end confdefs.h.  */
9675int i;
9676_ACEOF
9677if ac_fn_c_try_compile "$LINENO"
9678then :
9679  xorg_cv_cc_flag_unused_command_line_argument=yes
9680else $as_nop
9681  xorg_cv_cc_flag_unused_command_line_argument=no
9682fi
9683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9684fi
9685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9686printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9687	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9688	CFLAGS="$xorg_testset_save_CFLAGS"
9689fi
9690
9691found="no"
9692
9693	if test $found = "no" ; then
9694		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9695			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9696		fi
9697
9698		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9699			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9700		fi
9701
9702		CFLAGS="$CFLAGS -Werror=trigraphs"
9703
9704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
9705printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
9706		cacheid=xorg_cv_cc_flag__Werror_trigraphs
9707		if eval test \${$cacheid+y}
9708then :
9709  printf %s "(cached) " >&6
9710else $as_nop
9711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712/* end confdefs.h.  */
9713int i;
9714int
9715main (void)
9716{
9717
9718  ;
9719  return 0;
9720}
9721_ACEOF
9722if ac_fn_c_try_link "$LINENO"
9723then :
9724  eval $cacheid=yes
9725else $as_nop
9726  eval $cacheid=no
9727fi
9728rm -f core conftest.err conftest.$ac_objext conftest.beam \
9729    conftest$ac_exeext conftest.$ac_ext
9730fi
9731
9732
9733		CFLAGS="$xorg_testset_save_CFLAGS"
9734
9735		eval supported=\$$cacheid
9736		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9737printf "%s\n" "$supported" >&6; }
9738		if test "$supported" = "yes" ; then
9739			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9740			found="yes"
9741		fi
9742	fi
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758xorg_testset_save_CFLAGS="$CFLAGS"
9759
9760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9763printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9764if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9765then :
9766  printf %s "(cached) " >&6
9767else $as_nop
9768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769/* end confdefs.h.  */
9770int i;
9771_ACEOF
9772if ac_fn_c_try_compile "$LINENO"
9773then :
9774  xorg_cv_cc_flag_unknown_warning_option=yes
9775else $as_nop
9776  xorg_cv_cc_flag_unknown_warning_option=no
9777fi
9778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9779fi
9780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9781printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9783	CFLAGS="$xorg_testset_save_CFLAGS"
9784fi
9785
9786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9789	fi
9790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9791	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9792printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9793if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9794then :
9795  printf %s "(cached) " >&6
9796else $as_nop
9797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798/* end confdefs.h.  */
9799int i;
9800_ACEOF
9801if ac_fn_c_try_compile "$LINENO"
9802then :
9803  xorg_cv_cc_flag_unused_command_line_argument=yes
9804else $as_nop
9805  xorg_cv_cc_flag_unused_command_line_argument=no
9806fi
9807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9808fi
9809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9810printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9811	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9812	CFLAGS="$xorg_testset_save_CFLAGS"
9813fi
9814
9815found="no"
9816
9817	if test $found = "no" ; then
9818		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9820		fi
9821
9822		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9824		fi
9825
9826		CFLAGS="$CFLAGS -Werror=array-bounds"
9827
9828		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9829printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
9830		cacheid=xorg_cv_cc_flag__Werror_array_bounds
9831		if eval test \${$cacheid+y}
9832then :
9833  printf %s "(cached) " >&6
9834else $as_nop
9835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836/* end confdefs.h.  */
9837int i;
9838int
9839main (void)
9840{
9841
9842  ;
9843  return 0;
9844}
9845_ACEOF
9846if ac_fn_c_try_link "$LINENO"
9847then :
9848  eval $cacheid=yes
9849else $as_nop
9850  eval $cacheid=no
9851fi
9852rm -f core conftest.err conftest.$ac_objext conftest.beam \
9853    conftest$ac_exeext conftest.$ac_ext
9854fi
9855
9856
9857		CFLAGS="$xorg_testset_save_CFLAGS"
9858
9859		eval supported=\$$cacheid
9860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9861printf "%s\n" "$supported" >&6; }
9862		if test "$supported" = "yes" ; then
9863			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9864			found="yes"
9865		fi
9866	fi
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882xorg_testset_save_CFLAGS="$CFLAGS"
9883
9884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9886	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9887printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9888if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9889then :
9890  printf %s "(cached) " >&6
9891else $as_nop
9892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h.  */
9894int i;
9895_ACEOF
9896if ac_fn_c_try_compile "$LINENO"
9897then :
9898  xorg_cv_cc_flag_unknown_warning_option=yes
9899else $as_nop
9900  xorg_cv_cc_flag_unknown_warning_option=no
9901fi
9902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9903fi
9904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9905printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9907	CFLAGS="$xorg_testset_save_CFLAGS"
9908fi
9909
9910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9913	fi
9914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9915	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9916printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9917if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9918then :
9919  printf %s "(cached) " >&6
9920else $as_nop
9921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922/* end confdefs.h.  */
9923int i;
9924_ACEOF
9925if ac_fn_c_try_compile "$LINENO"
9926then :
9927  xorg_cv_cc_flag_unused_command_line_argument=yes
9928else $as_nop
9929  xorg_cv_cc_flag_unused_command_line_argument=no
9930fi
9931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9932fi
9933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9935	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9936	CFLAGS="$xorg_testset_save_CFLAGS"
9937fi
9938
9939found="no"
9940
9941	if test $found = "no" ; then
9942		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9943			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9944		fi
9945
9946		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9947			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9948		fi
9949
9950		CFLAGS="$CFLAGS -Werror=write-strings"
9951
9952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9953printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
9954		cacheid=xorg_cv_cc_flag__Werror_write_strings
9955		if eval test \${$cacheid+y}
9956then :
9957  printf %s "(cached) " >&6
9958else $as_nop
9959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960/* end confdefs.h.  */
9961int i;
9962int
9963main (void)
9964{
9965
9966  ;
9967  return 0;
9968}
9969_ACEOF
9970if ac_fn_c_try_link "$LINENO"
9971then :
9972  eval $cacheid=yes
9973else $as_nop
9974  eval $cacheid=no
9975fi
9976rm -f core conftest.err conftest.$ac_objext conftest.beam \
9977    conftest$ac_exeext conftest.$ac_ext
9978fi
9979
9980
9981		CFLAGS="$xorg_testset_save_CFLAGS"
9982
9983		eval supported=\$$cacheid
9984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9985printf "%s\n" "$supported" >&6; }
9986		if test "$supported" = "yes" ; then
9987			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9988			found="yes"
9989		fi
9990	fi
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006xorg_testset_save_CFLAGS="$CFLAGS"
10007
10008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10009	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10010	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10011printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10012if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10013then :
10014  printf %s "(cached) " >&6
10015else $as_nop
10016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017/* end confdefs.h.  */
10018int i;
10019_ACEOF
10020if ac_fn_c_try_compile "$LINENO"
10021then :
10022  xorg_cv_cc_flag_unknown_warning_option=yes
10023else $as_nop
10024  xorg_cv_cc_flag_unknown_warning_option=no
10025fi
10026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10027fi
10028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10029printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10031	CFLAGS="$xorg_testset_save_CFLAGS"
10032fi
10033
10034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10037	fi
10038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10040printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10041if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10042then :
10043  printf %s "(cached) " >&6
10044else $as_nop
10045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046/* end confdefs.h.  */
10047int i;
10048_ACEOF
10049if ac_fn_c_try_compile "$LINENO"
10050then :
10051  xorg_cv_cc_flag_unused_command_line_argument=yes
10052else $as_nop
10053  xorg_cv_cc_flag_unused_command_line_argument=no
10054fi
10055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10056fi
10057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10058printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10059	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10060	CFLAGS="$xorg_testset_save_CFLAGS"
10061fi
10062
10063found="no"
10064
10065	if test $found = "no" ; then
10066		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10067			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10068		fi
10069
10070		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10071			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10072		fi
10073
10074		CFLAGS="$CFLAGS -Werror=address"
10075
10076		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
10077printf %s "checking if $CC supports -Werror=address... " >&6; }
10078		cacheid=xorg_cv_cc_flag__Werror_address
10079		if eval test \${$cacheid+y}
10080then :
10081  printf %s "(cached) " >&6
10082else $as_nop
10083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084/* end confdefs.h.  */
10085int i;
10086int
10087main (void)
10088{
10089
10090  ;
10091  return 0;
10092}
10093_ACEOF
10094if ac_fn_c_try_link "$LINENO"
10095then :
10096  eval $cacheid=yes
10097else $as_nop
10098  eval $cacheid=no
10099fi
10100rm -f core conftest.err conftest.$ac_objext conftest.beam \
10101    conftest$ac_exeext conftest.$ac_ext
10102fi
10103
10104
10105		CFLAGS="$xorg_testset_save_CFLAGS"
10106
10107		eval supported=\$$cacheid
10108		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10109printf "%s\n" "$supported" >&6; }
10110		if test "$supported" = "yes" ; then
10111			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
10112			found="yes"
10113		fi
10114	fi
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130xorg_testset_save_CFLAGS="$CFLAGS"
10131
10132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10133	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10134	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10135printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10136if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10137then :
10138  printf %s "(cached) " >&6
10139else $as_nop
10140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141/* end confdefs.h.  */
10142int i;
10143_ACEOF
10144if ac_fn_c_try_compile "$LINENO"
10145then :
10146  xorg_cv_cc_flag_unknown_warning_option=yes
10147else $as_nop
10148  xorg_cv_cc_flag_unknown_warning_option=no
10149fi
10150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10151fi
10152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10153printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10154	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10155	CFLAGS="$xorg_testset_save_CFLAGS"
10156fi
10157
10158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10159	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10160		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10161	fi
10162	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10163	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10164printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10165if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10166then :
10167  printf %s "(cached) " >&6
10168else $as_nop
10169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170/* end confdefs.h.  */
10171int i;
10172_ACEOF
10173if ac_fn_c_try_compile "$LINENO"
10174then :
10175  xorg_cv_cc_flag_unused_command_line_argument=yes
10176else $as_nop
10177  xorg_cv_cc_flag_unused_command_line_argument=no
10178fi
10179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10180fi
10181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10182printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10183	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10184	CFLAGS="$xorg_testset_save_CFLAGS"
10185fi
10186
10187found="no"
10188
10189	if test $found = "no" ; then
10190		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10192		fi
10193
10194		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10196		fi
10197
10198		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
10199
10200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
10201printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
10202		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
10203		if eval test \${$cacheid+y}
10204then :
10205  printf %s "(cached) " >&6
10206else $as_nop
10207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208/* end confdefs.h.  */
10209int i;
10210int
10211main (void)
10212{
10213
10214  ;
10215  return 0;
10216}
10217_ACEOF
10218if ac_fn_c_try_link "$LINENO"
10219then :
10220  eval $cacheid=yes
10221else $as_nop
10222  eval $cacheid=no
10223fi
10224rm -f core conftest.err conftest.$ac_objext conftest.beam \
10225    conftest$ac_exeext conftest.$ac_ext
10226fi
10227
10228
10229		CFLAGS="$xorg_testset_save_CFLAGS"
10230
10231		eval supported=\$$cacheid
10232		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10233printf "%s\n" "$supported" >&6; }
10234		if test "$supported" = "yes" ; then
10235			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
10236			found="yes"
10237		fi
10238	fi
10239
10240	if test $found = "no" ; then
10241		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10243		fi
10244
10245		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10247		fi
10248
10249		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10250
10251		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
10252printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
10253		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
10254		if eval test \${$cacheid+y}
10255then :
10256  printf %s "(cached) " >&6
10257else $as_nop
10258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259/* end confdefs.h.  */
10260int i;
10261int
10262main (void)
10263{
10264
10265  ;
10266  return 0;
10267}
10268_ACEOF
10269if ac_fn_c_try_link "$LINENO"
10270then :
10271  eval $cacheid=yes
10272else $as_nop
10273  eval $cacheid=no
10274fi
10275rm -f core conftest.err conftest.$ac_objext conftest.beam \
10276    conftest$ac_exeext conftest.$ac_ext
10277fi
10278
10279
10280		CFLAGS="$xorg_testset_save_CFLAGS"
10281
10282		eval supported=\$$cacheid
10283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10284printf "%s\n" "$supported" >&6; }
10285		if test "$supported" = "yes" ; then
10286			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10287			found="yes"
10288		fi
10289	fi
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305xorg_testset_save_CFLAGS="$CFLAGS"
10306
10307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10309	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10311if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10312then :
10313  printf %s "(cached) " >&6
10314else $as_nop
10315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316/* end confdefs.h.  */
10317int i;
10318_ACEOF
10319if ac_fn_c_try_compile "$LINENO"
10320then :
10321  xorg_cv_cc_flag_unknown_warning_option=yes
10322else $as_nop
10323  xorg_cv_cc_flag_unknown_warning_option=no
10324fi
10325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10326fi
10327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10328printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10330	CFLAGS="$xorg_testset_save_CFLAGS"
10331fi
10332
10333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10336	fi
10337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10339printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10340if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10341then :
10342  printf %s "(cached) " >&6
10343else $as_nop
10344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345/* end confdefs.h.  */
10346int i;
10347_ACEOF
10348if ac_fn_c_try_compile "$LINENO"
10349then :
10350  xorg_cv_cc_flag_unused_command_line_argument=yes
10351else $as_nop
10352  xorg_cv_cc_flag_unused_command_line_argument=no
10353fi
10354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10355fi
10356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10357printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10359	CFLAGS="$xorg_testset_save_CFLAGS"
10360fi
10361
10362found="no"
10363
10364	if test $found = "no" ; then
10365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10367		fi
10368
10369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10371		fi
10372
10373		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
10374
10375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
10376printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
10377		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
10378		if eval test \${$cacheid+y}
10379then :
10380  printf %s "(cached) " >&6
10381else $as_nop
10382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383/* end confdefs.h.  */
10384int i;
10385int
10386main (void)
10387{
10388
10389  ;
10390  return 0;
10391}
10392_ACEOF
10393if ac_fn_c_try_link "$LINENO"
10394then :
10395  eval $cacheid=yes
10396else $as_nop
10397  eval $cacheid=no
10398fi
10399rm -f core conftest.err conftest.$ac_objext conftest.beam \
10400    conftest$ac_exeext conftest.$ac_ext
10401fi
10402
10403
10404		CFLAGS="$xorg_testset_save_CFLAGS"
10405
10406		eval supported=\$$cacheid
10407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10408printf "%s\n" "$supported" >&6; }
10409		if test "$supported" = "yes" ; then
10410			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10411			found="yes"
10412		fi
10413	fi
10414
10415 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10416else
10417{ 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
10418printf "%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;}
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432xorg_testset_save_CFLAGS="$CFLAGS"
10433
10434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10436	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10437printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10438if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10439then :
10440  printf %s "(cached) " >&6
10441else $as_nop
10442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h.  */
10444int i;
10445_ACEOF
10446if ac_fn_c_try_compile "$LINENO"
10447then :
10448  xorg_cv_cc_flag_unknown_warning_option=yes
10449else $as_nop
10450  xorg_cv_cc_flag_unknown_warning_option=no
10451fi
10452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10453fi
10454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10455printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10456	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10457	CFLAGS="$xorg_testset_save_CFLAGS"
10458fi
10459
10460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10461	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10462		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10463	fi
10464	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10466printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10467if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10468then :
10469  printf %s "(cached) " >&6
10470else $as_nop
10471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472/* end confdefs.h.  */
10473int i;
10474_ACEOF
10475if ac_fn_c_try_compile "$LINENO"
10476then :
10477  xorg_cv_cc_flag_unused_command_line_argument=yes
10478else $as_nop
10479  xorg_cv_cc_flag_unused_command_line_argument=no
10480fi
10481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10482fi
10483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10484printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10486	CFLAGS="$xorg_testset_save_CFLAGS"
10487fi
10488
10489found="no"
10490
10491	if test $found = "no" ; then
10492		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10494		fi
10495
10496		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10498		fi
10499
10500		CFLAGS="$CFLAGS -Wimplicit"
10501
10502		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
10503printf %s "checking if $CC supports -Wimplicit... " >&6; }
10504		cacheid=xorg_cv_cc_flag__Wimplicit
10505		if eval test \${$cacheid+y}
10506then :
10507  printf %s "(cached) " >&6
10508else $as_nop
10509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510/* end confdefs.h.  */
10511int i;
10512int
10513main (void)
10514{
10515
10516  ;
10517  return 0;
10518}
10519_ACEOF
10520if ac_fn_c_try_link "$LINENO"
10521then :
10522  eval $cacheid=yes
10523else $as_nop
10524  eval $cacheid=no
10525fi
10526rm -f core conftest.err conftest.$ac_objext conftest.beam \
10527    conftest$ac_exeext conftest.$ac_ext
10528fi
10529
10530
10531		CFLAGS="$xorg_testset_save_CFLAGS"
10532
10533		eval supported=\$$cacheid
10534		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10535printf "%s\n" "$supported" >&6; }
10536		if test "$supported" = "yes" ; then
10537			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10538			found="yes"
10539		fi
10540	fi
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556xorg_testset_save_CFLAGS="$CFLAGS"
10557
10558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10561printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10562if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10563then :
10564  printf %s "(cached) " >&6
10565else $as_nop
10566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567/* end confdefs.h.  */
10568int i;
10569_ACEOF
10570if ac_fn_c_try_compile "$LINENO"
10571then :
10572  xorg_cv_cc_flag_unknown_warning_option=yes
10573else $as_nop
10574  xorg_cv_cc_flag_unknown_warning_option=no
10575fi
10576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10577fi
10578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10579printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10580	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10581	CFLAGS="$xorg_testset_save_CFLAGS"
10582fi
10583
10584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10585	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10586		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10587	fi
10588	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10590printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10591if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10592then :
10593  printf %s "(cached) " >&6
10594else $as_nop
10595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596/* end confdefs.h.  */
10597int i;
10598_ACEOF
10599if ac_fn_c_try_compile "$LINENO"
10600then :
10601  xorg_cv_cc_flag_unused_command_line_argument=yes
10602else $as_nop
10603  xorg_cv_cc_flag_unused_command_line_argument=no
10604fi
10605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10606fi
10607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10608printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10610	CFLAGS="$xorg_testset_save_CFLAGS"
10611fi
10612
10613found="no"
10614
10615	if test $found = "no" ; then
10616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10618		fi
10619
10620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10622		fi
10623
10624		CFLAGS="$CFLAGS -Wnonnull"
10625
10626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
10627printf %s "checking if $CC supports -Wnonnull... " >&6; }
10628		cacheid=xorg_cv_cc_flag__Wnonnull
10629		if eval test \${$cacheid+y}
10630then :
10631  printf %s "(cached) " >&6
10632else $as_nop
10633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634/* end confdefs.h.  */
10635int i;
10636int
10637main (void)
10638{
10639
10640  ;
10641  return 0;
10642}
10643_ACEOF
10644if ac_fn_c_try_link "$LINENO"
10645then :
10646  eval $cacheid=yes
10647else $as_nop
10648  eval $cacheid=no
10649fi
10650rm -f core conftest.err conftest.$ac_objext conftest.beam \
10651    conftest$ac_exeext conftest.$ac_ext
10652fi
10653
10654
10655		CFLAGS="$xorg_testset_save_CFLAGS"
10656
10657		eval supported=\$$cacheid
10658		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10659printf "%s\n" "$supported" >&6; }
10660		if test "$supported" = "yes" ; then
10661			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
10662			found="yes"
10663		fi
10664	fi
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680xorg_testset_save_CFLAGS="$CFLAGS"
10681
10682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10684	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10685printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10686if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10687then :
10688  printf %s "(cached) " >&6
10689else $as_nop
10690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691/* end confdefs.h.  */
10692int i;
10693_ACEOF
10694if ac_fn_c_try_compile "$LINENO"
10695then :
10696  xorg_cv_cc_flag_unknown_warning_option=yes
10697else $as_nop
10698  xorg_cv_cc_flag_unknown_warning_option=no
10699fi
10700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10701fi
10702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10703printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10704	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10705	CFLAGS="$xorg_testset_save_CFLAGS"
10706fi
10707
10708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10709	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10710		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10711	fi
10712	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10713	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10714printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10715if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10716then :
10717  printf %s "(cached) " >&6
10718else $as_nop
10719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720/* end confdefs.h.  */
10721int i;
10722_ACEOF
10723if ac_fn_c_try_compile "$LINENO"
10724then :
10725  xorg_cv_cc_flag_unused_command_line_argument=yes
10726else $as_nop
10727  xorg_cv_cc_flag_unused_command_line_argument=no
10728fi
10729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10730fi
10731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10732printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10734	CFLAGS="$xorg_testset_save_CFLAGS"
10735fi
10736
10737found="no"
10738
10739	if test $found = "no" ; then
10740		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10742		fi
10743
10744		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10746		fi
10747
10748		CFLAGS="$CFLAGS -Winit-self"
10749
10750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
10751printf %s "checking if $CC supports -Winit-self... " >&6; }
10752		cacheid=xorg_cv_cc_flag__Winit_self
10753		if eval test \${$cacheid+y}
10754then :
10755  printf %s "(cached) " >&6
10756else $as_nop
10757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758/* end confdefs.h.  */
10759int i;
10760int
10761main (void)
10762{
10763
10764  ;
10765  return 0;
10766}
10767_ACEOF
10768if ac_fn_c_try_link "$LINENO"
10769then :
10770  eval $cacheid=yes
10771else $as_nop
10772  eval $cacheid=no
10773fi
10774rm -f core conftest.err conftest.$ac_objext conftest.beam \
10775    conftest$ac_exeext conftest.$ac_ext
10776fi
10777
10778
10779		CFLAGS="$xorg_testset_save_CFLAGS"
10780
10781		eval supported=\$$cacheid
10782		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10783printf "%s\n" "$supported" >&6; }
10784		if test "$supported" = "yes" ; then
10785			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10786			found="yes"
10787		fi
10788	fi
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804xorg_testset_save_CFLAGS="$CFLAGS"
10805
10806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10808	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10809printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10810if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10811then :
10812  printf %s "(cached) " >&6
10813else $as_nop
10814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815/* end confdefs.h.  */
10816int i;
10817_ACEOF
10818if ac_fn_c_try_compile "$LINENO"
10819then :
10820  xorg_cv_cc_flag_unknown_warning_option=yes
10821else $as_nop
10822  xorg_cv_cc_flag_unknown_warning_option=no
10823fi
10824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10825fi
10826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10827printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10828	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10829	CFLAGS="$xorg_testset_save_CFLAGS"
10830fi
10831
10832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10833	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10834		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10835	fi
10836	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10837	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10838printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10839if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10840then :
10841  printf %s "(cached) " >&6
10842else $as_nop
10843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844/* end confdefs.h.  */
10845int i;
10846_ACEOF
10847if ac_fn_c_try_compile "$LINENO"
10848then :
10849  xorg_cv_cc_flag_unused_command_line_argument=yes
10850else $as_nop
10851  xorg_cv_cc_flag_unused_command_line_argument=no
10852fi
10853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10854fi
10855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10856printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10857	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10858	CFLAGS="$xorg_testset_save_CFLAGS"
10859fi
10860
10861found="no"
10862
10863	if test $found = "no" ; then
10864		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10865			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10866		fi
10867
10868		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10869			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10870		fi
10871
10872		CFLAGS="$CFLAGS -Wmain"
10873
10874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10875printf %s "checking if $CC supports -Wmain... " >&6; }
10876		cacheid=xorg_cv_cc_flag__Wmain
10877		if eval test \${$cacheid+y}
10878then :
10879  printf %s "(cached) " >&6
10880else $as_nop
10881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882/* end confdefs.h.  */
10883int i;
10884int
10885main (void)
10886{
10887
10888  ;
10889  return 0;
10890}
10891_ACEOF
10892if ac_fn_c_try_link "$LINENO"
10893then :
10894  eval $cacheid=yes
10895else $as_nop
10896  eval $cacheid=no
10897fi
10898rm -f core conftest.err conftest.$ac_objext conftest.beam \
10899    conftest$ac_exeext conftest.$ac_ext
10900fi
10901
10902
10903		CFLAGS="$xorg_testset_save_CFLAGS"
10904
10905		eval supported=\$$cacheid
10906		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10907printf "%s\n" "$supported" >&6; }
10908		if test "$supported" = "yes" ; then
10909			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10910			found="yes"
10911		fi
10912	fi
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928xorg_testset_save_CFLAGS="$CFLAGS"
10929
10930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10933printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10934if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10935then :
10936  printf %s "(cached) " >&6
10937else $as_nop
10938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h.  */
10940int i;
10941_ACEOF
10942if ac_fn_c_try_compile "$LINENO"
10943then :
10944  xorg_cv_cc_flag_unknown_warning_option=yes
10945else $as_nop
10946  xorg_cv_cc_flag_unknown_warning_option=no
10947fi
10948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10949fi
10950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10951printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10952	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10953	CFLAGS="$xorg_testset_save_CFLAGS"
10954fi
10955
10956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10957	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10958		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10959	fi
10960	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10962printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10963if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10964then :
10965  printf %s "(cached) " >&6
10966else $as_nop
10967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968/* end confdefs.h.  */
10969int i;
10970_ACEOF
10971if ac_fn_c_try_compile "$LINENO"
10972then :
10973  xorg_cv_cc_flag_unused_command_line_argument=yes
10974else $as_nop
10975  xorg_cv_cc_flag_unused_command_line_argument=no
10976fi
10977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10978fi
10979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10980printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10981	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10982	CFLAGS="$xorg_testset_save_CFLAGS"
10983fi
10984
10985found="no"
10986
10987	if test $found = "no" ; then
10988		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10990		fi
10991
10992		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10994		fi
10995
10996		CFLAGS="$CFLAGS -Wmissing-braces"
10997
10998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10999printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
11000		cacheid=xorg_cv_cc_flag__Wmissing_braces
11001		if eval test \${$cacheid+y}
11002then :
11003  printf %s "(cached) " >&6
11004else $as_nop
11005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006/* end confdefs.h.  */
11007int i;
11008int
11009main (void)
11010{
11011
11012  ;
11013  return 0;
11014}
11015_ACEOF
11016if ac_fn_c_try_link "$LINENO"
11017then :
11018  eval $cacheid=yes
11019else $as_nop
11020  eval $cacheid=no
11021fi
11022rm -f core conftest.err conftest.$ac_objext conftest.beam \
11023    conftest$ac_exeext conftest.$ac_ext
11024fi
11025
11026
11027		CFLAGS="$xorg_testset_save_CFLAGS"
11028
11029		eval supported=\$$cacheid
11030		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11031printf "%s\n" "$supported" >&6; }
11032		if test "$supported" = "yes" ; then
11033			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
11034			found="yes"
11035		fi
11036	fi
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052xorg_testset_save_CFLAGS="$CFLAGS"
11053
11054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11055	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11056	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11058if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11059then :
11060  printf %s "(cached) " >&6
11061else $as_nop
11062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063/* end confdefs.h.  */
11064int i;
11065_ACEOF
11066if ac_fn_c_try_compile "$LINENO"
11067then :
11068  xorg_cv_cc_flag_unknown_warning_option=yes
11069else $as_nop
11070  xorg_cv_cc_flag_unknown_warning_option=no
11071fi
11072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11073fi
11074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11076	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11077	CFLAGS="$xorg_testset_save_CFLAGS"
11078fi
11079
11080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11081	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11082		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11083	fi
11084	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11087if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11088then :
11089  printf %s "(cached) " >&6
11090else $as_nop
11091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092/* end confdefs.h.  */
11093int i;
11094_ACEOF
11095if ac_fn_c_try_compile "$LINENO"
11096then :
11097  xorg_cv_cc_flag_unused_command_line_argument=yes
11098else $as_nop
11099  xorg_cv_cc_flag_unused_command_line_argument=no
11100fi
11101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11102fi
11103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11106	CFLAGS="$xorg_testset_save_CFLAGS"
11107fi
11108
11109found="no"
11110
11111	if test $found = "no" ; then
11112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11114		fi
11115
11116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11118		fi
11119
11120		CFLAGS="$CFLAGS -Wsequence-point"
11121
11122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
11123printf %s "checking if $CC supports -Wsequence-point... " >&6; }
11124		cacheid=xorg_cv_cc_flag__Wsequence_point
11125		if eval test \${$cacheid+y}
11126then :
11127  printf %s "(cached) " >&6
11128else $as_nop
11129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130/* end confdefs.h.  */
11131int i;
11132int
11133main (void)
11134{
11135
11136  ;
11137  return 0;
11138}
11139_ACEOF
11140if ac_fn_c_try_link "$LINENO"
11141then :
11142  eval $cacheid=yes
11143else $as_nop
11144  eval $cacheid=no
11145fi
11146rm -f core conftest.err conftest.$ac_objext conftest.beam \
11147    conftest$ac_exeext conftest.$ac_ext
11148fi
11149
11150
11151		CFLAGS="$xorg_testset_save_CFLAGS"
11152
11153		eval supported=\$$cacheid
11154		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11155printf "%s\n" "$supported" >&6; }
11156		if test "$supported" = "yes" ; then
11157			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
11158			found="yes"
11159		fi
11160	fi
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176xorg_testset_save_CFLAGS="$CFLAGS"
11177
11178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11180	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11182if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11183then :
11184  printf %s "(cached) " >&6
11185else $as_nop
11186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187/* end confdefs.h.  */
11188int i;
11189_ACEOF
11190if ac_fn_c_try_compile "$LINENO"
11191then :
11192  xorg_cv_cc_flag_unknown_warning_option=yes
11193else $as_nop
11194  xorg_cv_cc_flag_unknown_warning_option=no
11195fi
11196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11197fi
11198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11199printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11200	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11201	CFLAGS="$xorg_testset_save_CFLAGS"
11202fi
11203
11204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11205	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11206		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11207	fi
11208	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11209	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11210printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11211if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11212then :
11213  printf %s "(cached) " >&6
11214else $as_nop
11215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216/* end confdefs.h.  */
11217int i;
11218_ACEOF
11219if ac_fn_c_try_compile "$LINENO"
11220then :
11221  xorg_cv_cc_flag_unused_command_line_argument=yes
11222else $as_nop
11223  xorg_cv_cc_flag_unused_command_line_argument=no
11224fi
11225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11226fi
11227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11228printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11230	CFLAGS="$xorg_testset_save_CFLAGS"
11231fi
11232
11233found="no"
11234
11235	if test $found = "no" ; then
11236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11238		fi
11239
11240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11242		fi
11243
11244		CFLAGS="$CFLAGS -Wreturn-type"
11245
11246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
11247printf %s "checking if $CC supports -Wreturn-type... " >&6; }
11248		cacheid=xorg_cv_cc_flag__Wreturn_type
11249		if eval test \${$cacheid+y}
11250then :
11251  printf %s "(cached) " >&6
11252else $as_nop
11253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254/* end confdefs.h.  */
11255int i;
11256int
11257main (void)
11258{
11259
11260  ;
11261  return 0;
11262}
11263_ACEOF
11264if ac_fn_c_try_link "$LINENO"
11265then :
11266  eval $cacheid=yes
11267else $as_nop
11268  eval $cacheid=no
11269fi
11270rm -f core conftest.err conftest.$ac_objext conftest.beam \
11271    conftest$ac_exeext conftest.$ac_ext
11272fi
11273
11274
11275		CFLAGS="$xorg_testset_save_CFLAGS"
11276
11277		eval supported=\$$cacheid
11278		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11279printf "%s\n" "$supported" >&6; }
11280		if test "$supported" = "yes" ; then
11281			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
11282			found="yes"
11283		fi
11284	fi
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300xorg_testset_save_CFLAGS="$CFLAGS"
11301
11302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11304	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11306if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11307then :
11308  printf %s "(cached) " >&6
11309else $as_nop
11310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311/* end confdefs.h.  */
11312int i;
11313_ACEOF
11314if ac_fn_c_try_compile "$LINENO"
11315then :
11316  xorg_cv_cc_flag_unknown_warning_option=yes
11317else $as_nop
11318  xorg_cv_cc_flag_unknown_warning_option=no
11319fi
11320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11321fi
11322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11324	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11325	CFLAGS="$xorg_testset_save_CFLAGS"
11326fi
11327
11328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11329	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11331	fi
11332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11335if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11336then :
11337  printf %s "(cached) " >&6
11338else $as_nop
11339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340/* end confdefs.h.  */
11341int i;
11342_ACEOF
11343if ac_fn_c_try_compile "$LINENO"
11344then :
11345  xorg_cv_cc_flag_unused_command_line_argument=yes
11346else $as_nop
11347  xorg_cv_cc_flag_unused_command_line_argument=no
11348fi
11349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11350fi
11351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11353	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11354	CFLAGS="$xorg_testset_save_CFLAGS"
11355fi
11356
11357found="no"
11358
11359	if test $found = "no" ; then
11360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11362		fi
11363
11364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11366		fi
11367
11368		CFLAGS="$CFLAGS -Wtrigraphs"
11369
11370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
11371printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
11372		cacheid=xorg_cv_cc_flag__Wtrigraphs
11373		if eval test \${$cacheid+y}
11374then :
11375  printf %s "(cached) " >&6
11376else $as_nop
11377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378/* end confdefs.h.  */
11379int i;
11380int
11381main (void)
11382{
11383
11384  ;
11385  return 0;
11386}
11387_ACEOF
11388if ac_fn_c_try_link "$LINENO"
11389then :
11390  eval $cacheid=yes
11391else $as_nop
11392  eval $cacheid=no
11393fi
11394rm -f core conftest.err conftest.$ac_objext conftest.beam \
11395    conftest$ac_exeext conftest.$ac_ext
11396fi
11397
11398
11399		CFLAGS="$xorg_testset_save_CFLAGS"
11400
11401		eval supported=\$$cacheid
11402		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11403printf "%s\n" "$supported" >&6; }
11404		if test "$supported" = "yes" ; then
11405			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
11406			found="yes"
11407		fi
11408	fi
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424xorg_testset_save_CFLAGS="$CFLAGS"
11425
11426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11427	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11430if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11431then :
11432  printf %s "(cached) " >&6
11433else $as_nop
11434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435/* end confdefs.h.  */
11436int i;
11437_ACEOF
11438if ac_fn_c_try_compile "$LINENO"
11439then :
11440  xorg_cv_cc_flag_unknown_warning_option=yes
11441else $as_nop
11442  xorg_cv_cc_flag_unknown_warning_option=no
11443fi
11444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11445fi
11446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11449	CFLAGS="$xorg_testset_save_CFLAGS"
11450fi
11451
11452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11455	fi
11456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11459if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11460then :
11461  printf %s "(cached) " >&6
11462else $as_nop
11463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464/* end confdefs.h.  */
11465int i;
11466_ACEOF
11467if ac_fn_c_try_compile "$LINENO"
11468then :
11469  xorg_cv_cc_flag_unused_command_line_argument=yes
11470else $as_nop
11471  xorg_cv_cc_flag_unused_command_line_argument=no
11472fi
11473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11474fi
11475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11478	CFLAGS="$xorg_testset_save_CFLAGS"
11479fi
11480
11481found="no"
11482
11483	if test $found = "no" ; then
11484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11486		fi
11487
11488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11490		fi
11491
11492		CFLAGS="$CFLAGS -Warray-bounds"
11493
11494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
11495printf %s "checking if $CC supports -Warray-bounds... " >&6; }
11496		cacheid=xorg_cv_cc_flag__Warray_bounds
11497		if eval test \${$cacheid+y}
11498then :
11499  printf %s "(cached) " >&6
11500else $as_nop
11501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502/* end confdefs.h.  */
11503int i;
11504int
11505main (void)
11506{
11507
11508  ;
11509  return 0;
11510}
11511_ACEOF
11512if ac_fn_c_try_link "$LINENO"
11513then :
11514  eval $cacheid=yes
11515else $as_nop
11516  eval $cacheid=no
11517fi
11518rm -f core conftest.err conftest.$ac_objext conftest.beam \
11519    conftest$ac_exeext conftest.$ac_ext
11520fi
11521
11522
11523		CFLAGS="$xorg_testset_save_CFLAGS"
11524
11525		eval supported=\$$cacheid
11526		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11527printf "%s\n" "$supported" >&6; }
11528		if test "$supported" = "yes" ; then
11529			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
11530			found="yes"
11531		fi
11532	fi
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548xorg_testset_save_CFLAGS="$CFLAGS"
11549
11550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11553printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11554if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11555then :
11556  printf %s "(cached) " >&6
11557else $as_nop
11558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559/* end confdefs.h.  */
11560int i;
11561_ACEOF
11562if ac_fn_c_try_compile "$LINENO"
11563then :
11564  xorg_cv_cc_flag_unknown_warning_option=yes
11565else $as_nop
11566  xorg_cv_cc_flag_unknown_warning_option=no
11567fi
11568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11569fi
11570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11573	CFLAGS="$xorg_testset_save_CFLAGS"
11574fi
11575
11576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11579	fi
11580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11583if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11584then :
11585  printf %s "(cached) " >&6
11586else $as_nop
11587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588/* end confdefs.h.  */
11589int i;
11590_ACEOF
11591if ac_fn_c_try_compile "$LINENO"
11592then :
11593  xorg_cv_cc_flag_unused_command_line_argument=yes
11594else $as_nop
11595  xorg_cv_cc_flag_unused_command_line_argument=no
11596fi
11597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11598fi
11599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11602	CFLAGS="$xorg_testset_save_CFLAGS"
11603fi
11604
11605found="no"
11606
11607	if test $found = "no" ; then
11608		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11610		fi
11611
11612		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11614		fi
11615
11616		CFLAGS="$CFLAGS -Wwrite-strings"
11617
11618		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
11619printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
11620		cacheid=xorg_cv_cc_flag__Wwrite_strings
11621		if eval test \${$cacheid+y}
11622then :
11623  printf %s "(cached) " >&6
11624else $as_nop
11625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626/* end confdefs.h.  */
11627int i;
11628int
11629main (void)
11630{
11631
11632  ;
11633  return 0;
11634}
11635_ACEOF
11636if ac_fn_c_try_link "$LINENO"
11637then :
11638  eval $cacheid=yes
11639else $as_nop
11640  eval $cacheid=no
11641fi
11642rm -f core conftest.err conftest.$ac_objext conftest.beam \
11643    conftest$ac_exeext conftest.$ac_ext
11644fi
11645
11646
11647		CFLAGS="$xorg_testset_save_CFLAGS"
11648
11649		eval supported=\$$cacheid
11650		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11651printf "%s\n" "$supported" >&6; }
11652		if test "$supported" = "yes" ; then
11653			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
11654			found="yes"
11655		fi
11656	fi
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672xorg_testset_save_CFLAGS="$CFLAGS"
11673
11674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11676	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11677printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11678if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11679then :
11680  printf %s "(cached) " >&6
11681else $as_nop
11682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683/* end confdefs.h.  */
11684int i;
11685_ACEOF
11686if ac_fn_c_try_compile "$LINENO"
11687then :
11688  xorg_cv_cc_flag_unknown_warning_option=yes
11689else $as_nop
11690  xorg_cv_cc_flag_unknown_warning_option=no
11691fi
11692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11693fi
11694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11697	CFLAGS="$xorg_testset_save_CFLAGS"
11698fi
11699
11700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11703	fi
11704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11707if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11708then :
11709  printf %s "(cached) " >&6
11710else $as_nop
11711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712/* end confdefs.h.  */
11713int i;
11714_ACEOF
11715if ac_fn_c_try_compile "$LINENO"
11716then :
11717  xorg_cv_cc_flag_unused_command_line_argument=yes
11718else $as_nop
11719  xorg_cv_cc_flag_unused_command_line_argument=no
11720fi
11721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11722fi
11723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11725	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11726	CFLAGS="$xorg_testset_save_CFLAGS"
11727fi
11728
11729found="no"
11730
11731	if test $found = "no" ; then
11732		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11733			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11734		fi
11735
11736		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11737			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11738		fi
11739
11740		CFLAGS="$CFLAGS -Waddress"
11741
11742		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11743printf %s "checking if $CC supports -Waddress... " >&6; }
11744		cacheid=xorg_cv_cc_flag__Waddress
11745		if eval test \${$cacheid+y}
11746then :
11747  printf %s "(cached) " >&6
11748else $as_nop
11749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750/* end confdefs.h.  */
11751int i;
11752int
11753main (void)
11754{
11755
11756  ;
11757  return 0;
11758}
11759_ACEOF
11760if ac_fn_c_try_link "$LINENO"
11761then :
11762  eval $cacheid=yes
11763else $as_nop
11764  eval $cacheid=no
11765fi
11766rm -f core conftest.err conftest.$ac_objext conftest.beam \
11767    conftest$ac_exeext conftest.$ac_ext
11768fi
11769
11770
11771		CFLAGS="$xorg_testset_save_CFLAGS"
11772
11773		eval supported=\$$cacheid
11774		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11775printf "%s\n" "$supported" >&6; }
11776		if test "$supported" = "yes" ; then
11777			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11778			found="yes"
11779		fi
11780	fi
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796xorg_testset_save_CFLAGS="$CFLAGS"
11797
11798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11800	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11801printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11802if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11803then :
11804  printf %s "(cached) " >&6
11805else $as_nop
11806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807/* end confdefs.h.  */
11808int i;
11809_ACEOF
11810if ac_fn_c_try_compile "$LINENO"
11811then :
11812  xorg_cv_cc_flag_unknown_warning_option=yes
11813else $as_nop
11814  xorg_cv_cc_flag_unknown_warning_option=no
11815fi
11816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11817fi
11818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11819printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11820	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11821	CFLAGS="$xorg_testset_save_CFLAGS"
11822fi
11823
11824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11825	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11826		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11827	fi
11828	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11829	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11830printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11831if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11832then :
11833  printf %s "(cached) " >&6
11834else $as_nop
11835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836/* end confdefs.h.  */
11837int i;
11838_ACEOF
11839if ac_fn_c_try_compile "$LINENO"
11840then :
11841  xorg_cv_cc_flag_unused_command_line_argument=yes
11842else $as_nop
11843  xorg_cv_cc_flag_unused_command_line_argument=no
11844fi
11845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11846fi
11847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11849	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11850	CFLAGS="$xorg_testset_save_CFLAGS"
11851fi
11852
11853found="no"
11854
11855	if test $found = "no" ; then
11856		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11858		fi
11859
11860		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11862		fi
11863
11864		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11865
11866		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11867printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11868		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11869		if eval test \${$cacheid+y}
11870then :
11871  printf %s "(cached) " >&6
11872else $as_nop
11873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874/* end confdefs.h.  */
11875int i;
11876int
11877main (void)
11878{
11879
11880  ;
11881  return 0;
11882}
11883_ACEOF
11884if ac_fn_c_try_link "$LINENO"
11885then :
11886  eval $cacheid=yes
11887else $as_nop
11888  eval $cacheid=no
11889fi
11890rm -f core conftest.err conftest.$ac_objext conftest.beam \
11891    conftest$ac_exeext conftest.$ac_ext
11892fi
11893
11894
11895		CFLAGS="$xorg_testset_save_CFLAGS"
11896
11897		eval supported=\$$cacheid
11898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11899printf "%s\n" "$supported" >&6; }
11900		if test "$supported" = "yes" ; then
11901			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11902			found="yes"
11903		fi
11904	fi
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920xorg_testset_save_CFLAGS="$CFLAGS"
11921
11922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11923	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11924	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11925printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11926if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11927then :
11928  printf %s "(cached) " >&6
11929else $as_nop
11930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931/* end confdefs.h.  */
11932int i;
11933_ACEOF
11934if ac_fn_c_try_compile "$LINENO"
11935then :
11936  xorg_cv_cc_flag_unknown_warning_option=yes
11937else $as_nop
11938  xorg_cv_cc_flag_unknown_warning_option=no
11939fi
11940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11941fi
11942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11943printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11945	CFLAGS="$xorg_testset_save_CFLAGS"
11946fi
11947
11948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11951	fi
11952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11953	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11954printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11955if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11956then :
11957  printf %s "(cached) " >&6
11958else $as_nop
11959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960/* end confdefs.h.  */
11961int i;
11962_ACEOF
11963if ac_fn_c_try_compile "$LINENO"
11964then :
11965  xorg_cv_cc_flag_unused_command_line_argument=yes
11966else $as_nop
11967  xorg_cv_cc_flag_unused_command_line_argument=no
11968fi
11969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11970fi
11971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11973	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11974	CFLAGS="$xorg_testset_save_CFLAGS"
11975fi
11976
11977found="no"
11978
11979	if test $found = "no" ; then
11980		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11981			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11982		fi
11983
11984		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11985			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11986		fi
11987
11988		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11989
11990		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11991printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11992		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11993		if eval test \${$cacheid+y}
11994then :
11995  printf %s "(cached) " >&6
11996else $as_nop
11997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998/* end confdefs.h.  */
11999int i;
12000int
12001main (void)
12002{
12003
12004  ;
12005  return 0;
12006}
12007_ACEOF
12008if ac_fn_c_try_link "$LINENO"
12009then :
12010  eval $cacheid=yes
12011else $as_nop
12012  eval $cacheid=no
12013fi
12014rm -f core conftest.err conftest.$ac_objext conftest.beam \
12015    conftest$ac_exeext conftest.$ac_ext
12016fi
12017
12018
12019		CFLAGS="$xorg_testset_save_CFLAGS"
12020
12021		eval supported=\$$cacheid
12022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12023printf "%s\n" "$supported" >&6; }
12024		if test "$supported" = "yes" ; then
12025			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
12026			found="yes"
12027		fi
12028	fi
12029
12030
12031fi
12032
12033
12034
12035
12036
12037
12038
12039		CWARNFLAGS="$BASE_CFLAGS"
12040		if  test "x$GCC" = xyes ; then
12041		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
12042		fi
12043
12044
12045
12046
12047
12048
12049
12050
12051# Check whether --enable-strict-compilation was given.
12052if test ${enable_strict_compilation+y}
12053then :
12054  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12055else $as_nop
12056  STRICT_COMPILE=no
12057fi
12058
12059
12060
12061
12062
12063
12064STRICT_CFLAGS=""
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078xorg_testset_save_CFLAGS="$CFLAGS"
12079
12080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12082	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12083printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12084if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12085then :
12086  printf %s "(cached) " >&6
12087else $as_nop
12088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089/* end confdefs.h.  */
12090int i;
12091_ACEOF
12092if ac_fn_c_try_compile "$LINENO"
12093then :
12094  xorg_cv_cc_flag_unknown_warning_option=yes
12095else $as_nop
12096  xorg_cv_cc_flag_unknown_warning_option=no
12097fi
12098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12099fi
12100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12101printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12103	CFLAGS="$xorg_testset_save_CFLAGS"
12104fi
12105
12106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12109	fi
12110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12111	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12112printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12113if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12114then :
12115  printf %s "(cached) " >&6
12116else $as_nop
12117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118/* end confdefs.h.  */
12119int i;
12120_ACEOF
12121if ac_fn_c_try_compile "$LINENO"
12122then :
12123  xorg_cv_cc_flag_unused_command_line_argument=yes
12124else $as_nop
12125  xorg_cv_cc_flag_unused_command_line_argument=no
12126fi
12127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12128fi
12129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12130printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12132	CFLAGS="$xorg_testset_save_CFLAGS"
12133fi
12134
12135found="no"
12136
12137	if test $found = "no" ; then
12138		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12140		fi
12141
12142		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12144		fi
12145
12146		CFLAGS="$CFLAGS -pedantic"
12147
12148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
12149printf %s "checking if $CC supports -pedantic... " >&6; }
12150		cacheid=xorg_cv_cc_flag__pedantic
12151		if eval test \${$cacheid+y}
12152then :
12153  printf %s "(cached) " >&6
12154else $as_nop
12155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156/* end confdefs.h.  */
12157int i;
12158int
12159main (void)
12160{
12161
12162  ;
12163  return 0;
12164}
12165_ACEOF
12166if ac_fn_c_try_link "$LINENO"
12167then :
12168  eval $cacheid=yes
12169else $as_nop
12170  eval $cacheid=no
12171fi
12172rm -f core conftest.err conftest.$ac_objext conftest.beam \
12173    conftest$ac_exeext conftest.$ac_ext
12174fi
12175
12176
12177		CFLAGS="$xorg_testset_save_CFLAGS"
12178
12179		eval supported=\$$cacheid
12180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12181printf "%s\n" "$supported" >&6; }
12182		if test "$supported" = "yes" ; then
12183			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
12184			found="yes"
12185		fi
12186	fi
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202xorg_testset_save_CFLAGS="$CFLAGS"
12203
12204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12206	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12207printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12208if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12209then :
12210  printf %s "(cached) " >&6
12211else $as_nop
12212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213/* end confdefs.h.  */
12214int i;
12215_ACEOF
12216if ac_fn_c_try_compile "$LINENO"
12217then :
12218  xorg_cv_cc_flag_unknown_warning_option=yes
12219else $as_nop
12220  xorg_cv_cc_flag_unknown_warning_option=no
12221fi
12222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12223fi
12224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12225printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12226	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12227	CFLAGS="$xorg_testset_save_CFLAGS"
12228fi
12229
12230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12231	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12232		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12233	fi
12234	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12235	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12236printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12237if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12238then :
12239  printf %s "(cached) " >&6
12240else $as_nop
12241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242/* end confdefs.h.  */
12243int i;
12244_ACEOF
12245if ac_fn_c_try_compile "$LINENO"
12246then :
12247  xorg_cv_cc_flag_unused_command_line_argument=yes
12248else $as_nop
12249  xorg_cv_cc_flag_unused_command_line_argument=no
12250fi
12251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12252fi
12253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12256	CFLAGS="$xorg_testset_save_CFLAGS"
12257fi
12258
12259found="no"
12260
12261	if test $found = "no" ; then
12262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12264		fi
12265
12266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12268		fi
12269
12270		CFLAGS="$CFLAGS -Werror"
12271
12272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
12273printf %s "checking if $CC supports -Werror... " >&6; }
12274		cacheid=xorg_cv_cc_flag__Werror
12275		if eval test \${$cacheid+y}
12276then :
12277  printf %s "(cached) " >&6
12278else $as_nop
12279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280/* end confdefs.h.  */
12281int i;
12282int
12283main (void)
12284{
12285
12286  ;
12287  return 0;
12288}
12289_ACEOF
12290if ac_fn_c_try_link "$LINENO"
12291then :
12292  eval $cacheid=yes
12293else $as_nop
12294  eval $cacheid=no
12295fi
12296rm -f core conftest.err conftest.$ac_objext conftest.beam \
12297    conftest$ac_exeext conftest.$ac_ext
12298fi
12299
12300
12301		CFLAGS="$xorg_testset_save_CFLAGS"
12302
12303		eval supported=\$$cacheid
12304		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12305printf "%s\n" "$supported" >&6; }
12306		if test "$supported" = "yes" ; then
12307			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
12308			found="yes"
12309		fi
12310	fi
12311
12312	if test $found = "no" ; then
12313		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12315		fi
12316
12317		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12319		fi
12320
12321		CFLAGS="$CFLAGS -errwarn"
12322
12323		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
12324printf %s "checking if $CC supports -errwarn... " >&6; }
12325		cacheid=xorg_cv_cc_flag__errwarn
12326		if eval test \${$cacheid+y}
12327then :
12328  printf %s "(cached) " >&6
12329else $as_nop
12330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331/* end confdefs.h.  */
12332int i;
12333int
12334main (void)
12335{
12336
12337  ;
12338  return 0;
12339}
12340_ACEOF
12341if ac_fn_c_try_link "$LINENO"
12342then :
12343  eval $cacheid=yes
12344else $as_nop
12345  eval $cacheid=no
12346fi
12347rm -f core conftest.err conftest.$ac_objext conftest.beam \
12348    conftest$ac_exeext conftest.$ac_ext
12349fi
12350
12351
12352		CFLAGS="$xorg_testset_save_CFLAGS"
12353
12354		eval supported=\$$cacheid
12355		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12356printf "%s\n" "$supported" >&6; }
12357		if test "$supported" = "yes" ; then
12358			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
12359			found="yes"
12360		fi
12361	fi
12362
12363
12364
12365# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
12366# activate it with -Werror, so we add it here explicitly.
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380xorg_testset_save_CFLAGS="$CFLAGS"
12381
12382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12383	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12384	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12385printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12386if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12387then :
12388  printf %s "(cached) " >&6
12389else $as_nop
12390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391/* end confdefs.h.  */
12392int i;
12393_ACEOF
12394if ac_fn_c_try_compile "$LINENO"
12395then :
12396  xorg_cv_cc_flag_unknown_warning_option=yes
12397else $as_nop
12398  xorg_cv_cc_flag_unknown_warning_option=no
12399fi
12400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12401fi
12402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12403printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12404	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12405	CFLAGS="$xorg_testset_save_CFLAGS"
12406fi
12407
12408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12409	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12410		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12411	fi
12412	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12413	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12414printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12415if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12416then :
12417  printf %s "(cached) " >&6
12418else $as_nop
12419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420/* end confdefs.h.  */
12421int i;
12422_ACEOF
12423if ac_fn_c_try_compile "$LINENO"
12424then :
12425  xorg_cv_cc_flag_unused_command_line_argument=yes
12426else $as_nop
12427  xorg_cv_cc_flag_unused_command_line_argument=no
12428fi
12429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12430fi
12431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12432printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12434	CFLAGS="$xorg_testset_save_CFLAGS"
12435fi
12436
12437found="no"
12438
12439	if test $found = "no" ; then
12440		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12442		fi
12443
12444		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12446		fi
12447
12448		CFLAGS="$CFLAGS -Werror=attributes"
12449
12450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
12451printf %s "checking if $CC supports -Werror=attributes... " >&6; }
12452		cacheid=xorg_cv_cc_flag__Werror_attributes
12453		if eval test \${$cacheid+y}
12454then :
12455  printf %s "(cached) " >&6
12456else $as_nop
12457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458/* end confdefs.h.  */
12459int i;
12460int
12461main (void)
12462{
12463
12464  ;
12465  return 0;
12466}
12467_ACEOF
12468if ac_fn_c_try_link "$LINENO"
12469then :
12470  eval $cacheid=yes
12471else $as_nop
12472  eval $cacheid=no
12473fi
12474rm -f core conftest.err conftest.$ac_objext conftest.beam \
12475    conftest$ac_exeext conftest.$ac_ext
12476fi
12477
12478
12479		CFLAGS="$xorg_testset_save_CFLAGS"
12480
12481		eval supported=\$$cacheid
12482		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12483printf "%s\n" "$supported" >&6; }
12484		if test "$supported" = "yes" ; then
12485			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12486			found="yes"
12487		fi
12488	fi
12489
12490
12491
12492if test "x$STRICT_COMPILE" = "xyes"; then
12493    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
12494    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12495fi
12496
12497
12498
12499
12500
12501
12502
12503
12504cat >>confdefs.h <<_ACEOF
12505#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12506_ACEOF
12507
12508	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12509	if test "x$PVM" = "x"; then
12510		PVM="0"
12511	fi
12512
12513printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
12514
12515	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12516	if test "x$PVP" = "x"; then
12517		PVP="0"
12518	fi
12519
12520printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
12521
12522
12523
12524CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
12525mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12526|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
12527touch \$(top_srcdir)/ChangeLog; \
12528echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
12529
12530
12531
12532
12533macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12534INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12535mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12536|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
12537touch \$(top_srcdir)/INSTALL; \
12538echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
12539
12540
12541
12542
12543
12544
12545case $host_os in
12546    solaris*)
12547        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
12548        # check for a man page file found in later versions that use
12549        # traditional section numbers instead
12550        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
12551printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
12552if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
12553then :
12554  printf %s "(cached) " >&6
12555else $as_nop
12556  test "$cross_compiling" = yes &&
12557  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12558if test -r "/usr/share/man/man7/attributes.7"; then
12559  ac_cv_file__usr_share_man_man7_attributes_7=yes
12560else
12561  ac_cv_file__usr_share_man_man7_attributes_7=no
12562fi
12563fi
12564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
12565printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
12566if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
12567then :
12568  SYSV_MAN_SECTIONS=false
12569else $as_nop
12570  SYSV_MAN_SECTIONS=true
12571fi
12572
12573        ;;
12574    *) SYSV_MAN_SECTIONS=false ;;
12575esac
12576
12577if test x$APP_MAN_SUFFIX = x    ; then
12578    APP_MAN_SUFFIX=1
12579fi
12580if test x$APP_MAN_DIR = x    ; then
12581    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12582fi
12583
12584if test x$LIB_MAN_SUFFIX = x    ; then
12585    LIB_MAN_SUFFIX=3
12586fi
12587if test x$LIB_MAN_DIR = x    ; then
12588    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12589fi
12590
12591if test x$FILE_MAN_SUFFIX = x    ; then
12592    case $SYSV_MAN_SECTIONS in
12593	true)				FILE_MAN_SUFFIX=4  ;;
12594	*)				FILE_MAN_SUFFIX=5  ;;
12595    esac
12596fi
12597if test x$FILE_MAN_DIR = x    ; then
12598    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12599fi
12600
12601if test x$MISC_MAN_SUFFIX = x    ; then
12602    case $SYSV_MAN_SECTIONS in
12603	true)				MISC_MAN_SUFFIX=5  ;;
12604	*)				MISC_MAN_SUFFIX=7  ;;
12605    esac
12606fi
12607if test x$MISC_MAN_DIR = x    ; then
12608    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12609fi
12610
12611if test x$DRIVER_MAN_SUFFIX = x    ; then
12612    case $SYSV_MAN_SECTIONS in
12613	true)				DRIVER_MAN_SUFFIX=7  ;;
12614	*)				DRIVER_MAN_SUFFIX=4  ;;
12615    esac
12616fi
12617if test x$DRIVER_MAN_DIR = x    ; then
12618    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12619fi
12620
12621if test x$ADMIN_MAN_SUFFIX = x    ; then
12622    case $SYSV_MAN_SECTIONS in
12623	true)				ADMIN_MAN_SUFFIX=1m ;;
12624	*)				ADMIN_MAN_SUFFIX=8  ;;
12625    esac
12626fi
12627if test x$ADMIN_MAN_DIR = x    ; then
12628    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12629fi
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645XORG_MAN_PAGE="X Version 11"
12646
12647MAN_SUBSTS="\
12648	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12649	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12650	-e 's|__xservername__|Xorg|g' \
12651	-e 's|__xconfigfile__|xorg.conf|g' \
12652	-e 's|__projectroot__|\$(prefix)|g' \
12653	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12654	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12655	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12656	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12657	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12658	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12659	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12660
12661
12662
12663# Check whether --enable-silent-rules was given.
12664if test ${enable_silent_rules+y}
12665then :
12666  enableval=$enable_silent_rules;
12667fi
12668
12669case $enable_silent_rules in # (((
12670  yes) AM_DEFAULT_VERBOSITY=0;;
12671   no) AM_DEFAULT_VERBOSITY=1;;
12672    *) AM_DEFAULT_VERBOSITY=0;;
12673esac
12674am_make=${MAKE-make}
12675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12676printf %s "checking whether $am_make supports nested variables... " >&6; }
12677if test ${am_cv_make_support_nested_variables+y}
12678then :
12679  printf %s "(cached) " >&6
12680else $as_nop
12681  if printf "%s\n" 'TRUE=$(BAR$(V))
12682BAR0=false
12683BAR1=true
12684V=1
12685am__doit:
12686	@$(TRUE)
12687.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12688  am_cv_make_support_nested_variables=yes
12689else
12690  am_cv_make_support_nested_variables=no
12691fi
12692fi
12693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12694printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
12695if test $am_cv_make_support_nested_variables = yes; then
12696    AM_V='$(V)'
12697  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12698else
12699  AM_V=$AM_DEFAULT_VERBOSITY
12700  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12701fi
12702AM_BACKSLASH='\'
12703
12704
12705
12706
12707# Checks for library functions
12708ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
12709if test "x$ac_cv_func_strlcat" = xyes
12710then :
12711  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
12712
12713fi
12714
12715
12716# Use POSIX strnlen or the implementation supplied in this module
12717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
12718printf %s "checking for working strnlen... " >&6; }
12719if test ${ac_cv_func_strnlen_working+y}
12720then :
12721  printf %s "(cached) " >&6
12722else $as_nop
12723  if test "$cross_compiling" = yes
12724then :
12725  # Guess no on AIX systems, yes otherwise.
12726		case "$host_os" in
12727		  aix*) ac_cv_func_strnlen_working=no;;
12728		  *)    ac_cv_func_strnlen_working=yes;;
12729		esac
12730else $as_nop
12731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732/* end confdefs.h.  */
12733$ac_includes_default
12734int
12735main (void)
12736{
12737
12738#define S "foobar"
12739#define S_LEN (sizeof S - 1)
12740
12741  /* At least one implementation is buggy: that of AIX 4.3 would
12742     give strnlen (S, 1) == 3.  */
12743
12744  int i;
12745  for (i = 0; i < S_LEN + 1; ++i)
12746    {
12747      int expected = i <= S_LEN ? i : S_LEN;
12748      if (strnlen (S, i) != expected)
12749	return 1;
12750    }
12751  return 0;
12752
12753  ;
12754  return 0;
12755}
12756_ACEOF
12757if ac_fn_c_try_run "$LINENO"
12758then :
12759  ac_cv_func_strnlen_working=yes
12760else $as_nop
12761  ac_cv_func_strnlen_working=no
12762fi
12763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12764  conftest.$ac_objext conftest.beam conftest.$ac_ext
12765fi
12766
12767fi
12768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
12769printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
12770test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
12771  *" strnlen.$ac_objext "* ) ;;
12772  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
12773 ;;
12774esac
12775
12776
12777if test "x$ac_cv_func_strnlen_working" = xyes; then
12778
12779printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
12780
12781fi
12782
12783# Define a configure option for using the XCB ICCCM helper functions
12784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use xcb-icccm library" >&5
12785printf %s "checking whether to use xcb-icccm library... " >&6; }
12786
12787# Check whether --with-xcb-icccm was given.
12788if test ${with_xcb_icccm+y}
12789then :
12790  withval=$with_xcb_icccm;
12791else $as_nop
12792  with_xcb_icccm=no
12793fi
12794
12795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_xcb_icccm" >&5
12796printf "%s\n" "$with_xcb_icccm" >&6; }
12797if test "x$with_xcb_icccm" != xno ; then
12798
12799printf "%s\n" "#define USE_XCB_ICCCM 1" >>confdefs.h
12800
12801	xcb_icccm_pc='xcb-icccm >= 0.3.8'
12802fi
12803
12804# Define a configure option for using the XCB Error helper functions
12805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use xcb-errors library" >&5
12806printf %s "checking whether to use xcb-errors library... " >&6; }
12807
12808# Check whether --with-xcb-errors was given.
12809if test ${with_xcb_errors+y}
12810then :
12811  withval=$with_xcb_errors;
12812else $as_nop
12813  with_xcb_errors=no
12814fi
12815
12816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_xcb_errors" >&5
12817printf "%s\n" "$with_xcb_errors" >&6; }
12818if test "x$with_xcb_errors" != xno ; then
12819
12820printf "%s\n" "#define USE_XCB_ERRORS 1" >>confdefs.h
12821
12822	xcb_errors_pc='xcb-errors >= 1.0'
12823fi
12824
12825# Obtain compiler/linker options for xwininfo dependencies
12826
12827pkg_failed=no
12828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XWININFO" >&5
12829printf %s "checking for XWININFO... " >&6; }
12830
12831if test -n "$XWININFO_CFLAGS"; then
12832    pkg_cv_XWININFO_CFLAGS="$XWININFO_CFLAGS"
12833 elif test -n "$PKG_CONFIG"; then
12834    if test -n "$PKG_CONFIG" && \
12835    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc} \${xcb_errors_pc}\""; } >&5
12836  ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}") 2>&5
12837  ac_status=$?
12838  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12839  test $ac_status = 0; }; then
12840  pkg_cv_XWININFO_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}" 2>/dev/null`
12841		      test "x$?" != "x0" && pkg_failed=yes
12842else
12843  pkg_failed=yes
12844fi
12845 else
12846    pkg_failed=untried
12847fi
12848if test -n "$XWININFO_LIBS"; then
12849    pkg_cv_XWININFO_LIBS="$XWININFO_LIBS"
12850 elif test -n "$PKG_CONFIG"; then
12851    if test -n "$PKG_CONFIG" && \
12852    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc} \${xcb_errors_pc}\""; } >&5
12853  ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}") 2>&5
12854  ac_status=$?
12855  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856  test $ac_status = 0; }; then
12857  pkg_cv_XWININFO_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}" 2>/dev/null`
12858		      test "x$?" != "x0" && pkg_failed=yes
12859else
12860  pkg_failed=yes
12861fi
12862 else
12863    pkg_failed=untried
12864fi
12865
12866
12867
12868if test $pkg_failed = yes; then
12869   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870printf "%s\n" "no" >&6; }
12871
12872if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12873        _pkg_short_errors_supported=yes
12874else
12875        _pkg_short_errors_supported=no
12876fi
12877        if test $_pkg_short_errors_supported = yes; then
12878	        XWININFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}" 2>&1`
12879        else
12880	        XWININFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}" 2>&1`
12881        fi
12882	# Put the nasty error message in config.log where it belongs
12883	echo "$XWININFO_PKG_ERRORS" >&5
12884
12885	as_fn_error $? "Package requirements (xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}) were not met:
12886
12887$XWININFO_PKG_ERRORS
12888
12889Consider adjusting the PKG_CONFIG_PATH environment variable if you
12890installed software in a non-standard prefix.
12891
12892Alternatively, you may set the environment variables XWININFO_CFLAGS
12893and XWININFO_LIBS to avoid the need to call pkg-config.
12894See the pkg-config man page for more details." "$LINENO" 5
12895elif test $pkg_failed = untried; then
12896     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897printf "%s\n" "no" >&6; }
12898	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12899printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12900as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12901is in your PATH or set the PKG_CONFIG environment variable to the full
12902path to pkg-config.
12903
12904Alternatively, you may set the environment variables XWININFO_CFLAGS
12905and XWININFO_LIBS to avoid the need to call pkg-config.
12906See the pkg-config man page for more details.
12907
12908To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12909See \`config.log' for more details" "$LINENO" 5; }
12910else
12911	XWININFO_CFLAGS=$pkg_cv_XWININFO_CFLAGS
12912	XWININFO_LIBS=$pkg_cv_XWININFO_LIBS
12913        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12914printf "%s\n" "yes" >&6; }
12915
12916fi
12917
12918# Even when using xcb, xproto is still required for Xfuncproto.h
12919# and libX11 headers for cursorfont.h
12920
12921pkg_failed=no
12922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
12923printf %s "checking for XLIB... " >&6; }
12924
12925if test -n "$XLIB_CFLAGS"; then
12926    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
12927 elif test -n "$PKG_CONFIG"; then
12928    if test -n "$PKG_CONFIG" && \
12929    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
12930  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
12931  ac_status=$?
12932  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12933  test $ac_status = 0; }; then
12934  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
12935		      test "x$?" != "x0" && pkg_failed=yes
12936else
12937  pkg_failed=yes
12938fi
12939 else
12940    pkg_failed=untried
12941fi
12942if test -n "$XLIB_LIBS"; then
12943    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
12944 elif test -n "$PKG_CONFIG"; then
12945    if test -n "$PKG_CONFIG" && \
12946    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
12947  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
12948  ac_status=$?
12949  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950  test $ac_status = 0; }; then
12951  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
12952		      test "x$?" != "x0" && pkg_failed=yes
12953else
12954  pkg_failed=yes
12955fi
12956 else
12957    pkg_failed=untried
12958fi
12959
12960
12961
12962if test $pkg_failed = yes; then
12963   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12964printf "%s\n" "no" >&6; }
12965
12966if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12967        _pkg_short_errors_supported=yes
12968else
12969        _pkg_short_errors_supported=no
12970fi
12971        if test $_pkg_short_errors_supported = yes; then
12972	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
12973        else
12974	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
12975        fi
12976	# Put the nasty error message in config.log where it belongs
12977	echo "$XLIB_PKG_ERRORS" >&5
12978
12979	as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
12980
12981$XLIB_PKG_ERRORS
12982
12983Consider adjusting the PKG_CONFIG_PATH environment variable if you
12984installed software in a non-standard prefix.
12985
12986Alternatively, you may set the environment variables XLIB_CFLAGS
12987and XLIB_LIBS to avoid the need to call pkg-config.
12988See the pkg-config man page for more details." "$LINENO" 5
12989elif test $pkg_failed = untried; then
12990     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991printf "%s\n" "no" >&6; }
12992	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12993printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12994as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12995is in your PATH or set the PKG_CONFIG environment variable to the full
12996path to pkg-config.
12997
12998Alternatively, you may set the environment variables XLIB_CFLAGS
12999and XLIB_LIBS to avoid the need to call pkg-config.
13000See the pkg-config man page for more details.
13001
13002To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13003See \`config.log' for more details" "$LINENO" 5; }
13004else
13005	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
13006	XLIB_LIBS=$pkg_cv_XLIB_LIBS
13007        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13008printf "%s\n" "yes" >&6; }
13009
13010fi
13011XWININFO_CFLAGS="${XWININFO_CFLAGS} ${XLIB_CFLAGS}"
13012XWININFO_LIBS="${XWININFO_LIBS} ${LIBICONV}"
13013
13014ac_config_files="$ac_config_files Makefile man/Makefile"
13015
13016cat >confcache <<\_ACEOF
13017# This file is a shell script that caches the results of configure
13018# tests run on this system so they can be shared between configure
13019# scripts and configure runs, see configure's option --config-cache.
13020# It is not useful on other systems.  If it contains results you don't
13021# want to keep, you may remove or edit it.
13022#
13023# config.status only pays attention to the cache file if you give it
13024# the --recheck option to rerun configure.
13025#
13026# `ac_cv_env_foo' variables (set or unset) will be overridden when
13027# loading this file, other *unset* `ac_cv_foo' will be assigned the
13028# following values.
13029
13030_ACEOF
13031
13032# The following way of writing the cache mishandles newlines in values,
13033# but we know of no workaround that is simple, portable, and efficient.
13034# So, we kill variables containing newlines.
13035# Ultrix sh set writes to stderr and can't be redirected directly,
13036# and sets the high bit in the cache file unless we assign to the vars.
13037(
13038  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13039    eval ac_val=\$$ac_var
13040    case $ac_val in #(
13041    *${as_nl}*)
13042      case $ac_var in #(
13043      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13044printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13045      esac
13046      case $ac_var in #(
13047      _ | IFS | as_nl) ;; #(
13048      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13049      *) { eval $ac_var=; unset $ac_var;} ;;
13050      esac ;;
13051    esac
13052  done
13053
13054  (set) 2>&1 |
13055    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13056    *${as_nl}ac_space=\ *)
13057      # `set' does not quote correctly, so add quotes: double-quote
13058      # substitution turns \\\\ into \\, and sed turns \\ into \.
13059      sed -n \
13060	"s/'/'\\\\''/g;
13061	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13062      ;; #(
13063    *)
13064      # `set' quotes correctly as required by POSIX, so do not add quotes.
13065      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13066      ;;
13067    esac |
13068    sort
13069) |
13070  sed '
13071     /^ac_cv_env_/b end
13072     t clear
13073     :clear
13074     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13075     t end
13076     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13077     :end' >>confcache
13078if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13079  if test -w "$cache_file"; then
13080    if test "x$cache_file" != "x/dev/null"; then
13081      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13082printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13083      if test ! -f "$cache_file" || test -h "$cache_file"; then
13084	cat confcache >"$cache_file"
13085      else
13086        case $cache_file in #(
13087        */* | ?:*)
13088	  mv -f confcache "$cache_file"$$ &&
13089	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13090        *)
13091	  mv -f confcache "$cache_file" ;;
13092	esac
13093      fi
13094    fi
13095  else
13096    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13097printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13098  fi
13099fi
13100rm -f confcache
13101
13102test "x$prefix" = xNONE && prefix=$ac_default_prefix
13103# Let make expand exec_prefix.
13104test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13105
13106DEFS=-DHAVE_CONFIG_H
13107
13108ac_libobjs=
13109ac_ltlibobjs=
13110U=
13111for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13112  # 1. Remove the extension, and $U if already installed.
13113  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13114  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13115  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13116  #    will be set to the directory where LIBOBJS objects are built.
13117  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13118  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13119done
13120LIBOBJS=$ac_libobjs
13121
13122LTLIBOBJS=$ac_ltlibobjs
13123
13124
13125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13126printf %s "checking that generated files are newer than configure... " >&6; }
13127   if test -n "$am_sleep_pid"; then
13128     # Hide warnings about reused PIDs.
13129     wait $am_sleep_pid 2>/dev/null
13130   fi
13131   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13132printf "%s\n" "done" >&6; }
13133if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13134  as_fn_error $? "conditional \"AMDEP\" was never defined.
13135Usually this means the macro was only invoked conditionally." "$LINENO" 5
13136fi
13137if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13138  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13139Usually this means the macro was only invoked conditionally." "$LINENO" 5
13140fi
13141 if test -n "$EXEEXT"; then
13142  am__EXEEXT_TRUE=
13143  am__EXEEXT_FALSE='#'
13144else
13145  am__EXEEXT_TRUE='#'
13146  am__EXEEXT_FALSE=
13147fi
13148
13149
13150: "${CONFIG_STATUS=./config.status}"
13151ac_write_fail=0
13152ac_clean_files_save=$ac_clean_files
13153ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13155printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13156as_write_fail=0
13157cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13158#! $SHELL
13159# Generated by $as_me.
13160# Run this file to recreate the current configuration.
13161# Compiler output produced by configure, useful for debugging
13162# configure, is in config.log if it exists.
13163
13164debug=false
13165ac_cs_recheck=false
13166ac_cs_silent=false
13167
13168SHELL=\${CONFIG_SHELL-$SHELL}
13169export SHELL
13170_ASEOF
13171cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13172## -------------------- ##
13173## M4sh Initialization. ##
13174## -------------------- ##
13175
13176# Be more Bourne compatible
13177DUALCASE=1; export DUALCASE # for MKS sh
13178as_nop=:
13179if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13180then :
13181  emulate sh
13182  NULLCMD=:
13183  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13184  # is contrary to our usage.  Disable this feature.
13185  alias -g '${1+"$@"}'='"$@"'
13186  setopt NO_GLOB_SUBST
13187else $as_nop
13188  case `(set -o) 2>/dev/null` in #(
13189  *posix*) :
13190    set -o posix ;; #(
13191  *) :
13192     ;;
13193esac
13194fi
13195
13196
13197
13198# Reset variables that may have inherited troublesome values from
13199# the environment.
13200
13201# IFS needs to be set, to space, tab, and newline, in precisely that order.
13202# (If _AS_PATH_WALK were called with IFS unset, it would have the
13203# side effect of setting IFS to empty, thus disabling word splitting.)
13204# Quoting is to prevent editors from complaining about space-tab.
13205as_nl='
13206'
13207export as_nl
13208IFS=" ""	$as_nl"
13209
13210PS1='$ '
13211PS2='> '
13212PS4='+ '
13213
13214# Ensure predictable behavior from utilities with locale-dependent output.
13215LC_ALL=C
13216export LC_ALL
13217LANGUAGE=C
13218export LANGUAGE
13219
13220# We cannot yet rely on "unset" to work, but we need these variables
13221# to be unset--not just set to an empty or harmless value--now, to
13222# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
13223# also avoids known problems related to "unset" and subshell syntax
13224# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13225for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13226do eval test \${$as_var+y} \
13227  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13228done
13229
13230# Ensure that fds 0, 1, and 2 are open.
13231if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13232if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13233if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
13234
13235# The user is always right.
13236if ${PATH_SEPARATOR+false} :; then
13237  PATH_SEPARATOR=:
13238  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13239    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13240      PATH_SEPARATOR=';'
13241  }
13242fi
13243
13244
13245# Find who we are.  Look in the path if we contain no directory separator.
13246as_myself=
13247case $0 in #((
13248  *[\\/]* ) as_myself=$0 ;;
13249  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250for as_dir in $PATH
13251do
13252  IFS=$as_save_IFS
13253  case $as_dir in #(((
13254    '') as_dir=./ ;;
13255    */) ;;
13256    *) as_dir=$as_dir/ ;;
13257  esac
13258    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13259  done
13260IFS=$as_save_IFS
13261
13262     ;;
13263esac
13264# We did not find ourselves, most probably we were run as `sh COMMAND'
13265# in which case we are not to be found in the path.
13266if test "x$as_myself" = x; then
13267  as_myself=$0
13268fi
13269if test ! -f "$as_myself"; then
13270  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13271  exit 1
13272fi
13273
13274
13275
13276# as_fn_error STATUS ERROR [LINENO LOG_FD]
13277# ----------------------------------------
13278# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13279# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13280# script with STATUS, using 1 if that was 0.
13281as_fn_error ()
13282{
13283  as_status=$1; test $as_status -eq 0 && as_status=1
13284  if test "$4"; then
13285    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13286    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13287  fi
13288  printf "%s\n" "$as_me: error: $2" >&2
13289  as_fn_exit $as_status
13290} # as_fn_error
13291
13292
13293
13294# as_fn_set_status STATUS
13295# -----------------------
13296# Set $? to STATUS, without forking.
13297as_fn_set_status ()
13298{
13299  return $1
13300} # as_fn_set_status
13301
13302# as_fn_exit STATUS
13303# -----------------
13304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13305as_fn_exit ()
13306{
13307  set +e
13308  as_fn_set_status $1
13309  exit $1
13310} # as_fn_exit
13311
13312# as_fn_unset VAR
13313# ---------------
13314# Portably unset VAR.
13315as_fn_unset ()
13316{
13317  { eval $1=; unset $1;}
13318}
13319as_unset=as_fn_unset
13320
13321# as_fn_append VAR VALUE
13322# ----------------------
13323# Append the text in VALUE to the end of the definition contained in VAR. Take
13324# advantage of any shell optimizations that allow amortized linear growth over
13325# repeated appends, instead of the typical quadratic growth present in naive
13326# implementations.
13327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13328then :
13329  eval 'as_fn_append ()
13330  {
13331    eval $1+=\$2
13332  }'
13333else $as_nop
13334  as_fn_append ()
13335  {
13336    eval $1=\$$1\$2
13337  }
13338fi # as_fn_append
13339
13340# as_fn_arith ARG...
13341# ------------------
13342# Perform arithmetic evaluation on the ARGs, and store the result in the
13343# global $as_val. Take advantage of shells that can avoid forks. The arguments
13344# must be portable across $(()) and expr.
13345if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
13346then :
13347  eval 'as_fn_arith ()
13348  {
13349    as_val=$(( $* ))
13350  }'
13351else $as_nop
13352  as_fn_arith ()
13353  {
13354    as_val=`expr "$@" || test $? -eq 1`
13355  }
13356fi # as_fn_arith
13357
13358
13359if expr a : '\(a\)' >/dev/null 2>&1 &&
13360   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13361  as_expr=expr
13362else
13363  as_expr=false
13364fi
13365
13366if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13367  as_basename=basename
13368else
13369  as_basename=false
13370fi
13371
13372if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13373  as_dirname=dirname
13374else
13375  as_dirname=false
13376fi
13377
13378as_me=`$as_basename -- "$0" ||
13379$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13380	 X"$0" : 'X\(//\)$' \| \
13381	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13382printf "%s\n" X/"$0" |
13383    sed '/^.*\/\([^/][^/]*\)\/*$/{
13384	    s//\1/
13385	    q
13386	  }
13387	  /^X\/\(\/\/\)$/{
13388	    s//\1/
13389	    q
13390	  }
13391	  /^X\/\(\/\).*/{
13392	    s//\1/
13393	    q
13394	  }
13395	  s/.*/./; q'`
13396
13397# Avoid depending upon Character Ranges.
13398as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13399as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13400as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13401as_cr_digits='0123456789'
13402as_cr_alnum=$as_cr_Letters$as_cr_digits
13403
13404
13405# Determine whether it's possible to make 'echo' print without a newline.
13406# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13407# for compatibility with existing Makefiles.
13408ECHO_C= ECHO_N= ECHO_T=
13409case `echo -n x` in #(((((
13410-n*)
13411  case `echo 'xy\c'` in
13412  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13413  xy)  ECHO_C='\c';;
13414  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13415       ECHO_T='	';;
13416  esac;;
13417*)
13418  ECHO_N='-n';;
13419esac
13420
13421# For backward compatibility with old third-party macros, we provide
13422# the shell variables $as_echo and $as_echo_n.  New code should use
13423# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13424as_echo='printf %s\n'
13425as_echo_n='printf %s'
13426
13427rm -f conf$$ conf$$.exe conf$$.file
13428if test -d conf$$.dir; then
13429  rm -f conf$$.dir/conf$$.file
13430else
13431  rm -f conf$$.dir
13432  mkdir conf$$.dir 2>/dev/null
13433fi
13434if (echo >conf$$.file) 2>/dev/null; then
13435  if ln -s conf$$.file conf$$ 2>/dev/null; then
13436    as_ln_s='ln -s'
13437    # ... but there are two gotchas:
13438    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13439    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13440    # In both cases, we have to default to `cp -pR'.
13441    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13442      as_ln_s='cp -pR'
13443  elif ln conf$$.file conf$$ 2>/dev/null; then
13444    as_ln_s=ln
13445  else
13446    as_ln_s='cp -pR'
13447  fi
13448else
13449  as_ln_s='cp -pR'
13450fi
13451rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13452rmdir conf$$.dir 2>/dev/null
13453
13454
13455# as_fn_mkdir_p
13456# -------------
13457# Create "$as_dir" as a directory, including parents if necessary.
13458as_fn_mkdir_p ()
13459{
13460
13461  case $as_dir in #(
13462  -*) as_dir=./$as_dir;;
13463  esac
13464  test -d "$as_dir" || eval $as_mkdir_p || {
13465    as_dirs=
13466    while :; do
13467      case $as_dir in #(
13468      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13469      *) as_qdir=$as_dir;;
13470      esac
13471      as_dirs="'$as_qdir' $as_dirs"
13472      as_dir=`$as_dirname -- "$as_dir" ||
13473$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13474	 X"$as_dir" : 'X\(//\)[^/]' \| \
13475	 X"$as_dir" : 'X\(//\)$' \| \
13476	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13477printf "%s\n" X"$as_dir" |
13478    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13479	    s//\1/
13480	    q
13481	  }
13482	  /^X\(\/\/\)[^/].*/{
13483	    s//\1/
13484	    q
13485	  }
13486	  /^X\(\/\/\)$/{
13487	    s//\1/
13488	    q
13489	  }
13490	  /^X\(\/\).*/{
13491	    s//\1/
13492	    q
13493	  }
13494	  s/.*/./; q'`
13495      test -d "$as_dir" && break
13496    done
13497    test -z "$as_dirs" || eval "mkdir $as_dirs"
13498  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13499
13500
13501} # as_fn_mkdir_p
13502if mkdir -p . 2>/dev/null; then
13503  as_mkdir_p='mkdir -p "$as_dir"'
13504else
13505  test -d ./-p && rmdir ./-p
13506  as_mkdir_p=false
13507fi
13508
13509
13510# as_fn_executable_p FILE
13511# -----------------------
13512# Test if FILE is an executable regular file.
13513as_fn_executable_p ()
13514{
13515  test -f "$1" && test -x "$1"
13516} # as_fn_executable_p
13517as_test_x='test -x'
13518as_executable_p=as_fn_executable_p
13519
13520# Sed expression to map a string onto a valid CPP name.
13521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13522
13523# Sed expression to map a string onto a valid variable name.
13524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13525
13526
13527exec 6>&1
13528## ----------------------------------- ##
13529## Main body of $CONFIG_STATUS script. ##
13530## ----------------------------------- ##
13531_ASEOF
13532test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13533
13534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13535# Save the log message, to keep $0 and so on meaningful, and to
13536# report actual input values of CONFIG_FILES etc. instead of their
13537# values after options handling.
13538ac_log="
13539This file was extended by xwininfo $as_me 1.1.6, which was
13540generated by GNU Autoconf 2.71.  Invocation command line was
13541
13542  CONFIG_FILES    = $CONFIG_FILES
13543  CONFIG_HEADERS  = $CONFIG_HEADERS
13544  CONFIG_LINKS    = $CONFIG_LINKS
13545  CONFIG_COMMANDS = $CONFIG_COMMANDS
13546  $ $0 $@
13547
13548on `(hostname || uname -n) 2>/dev/null | sed 1q`
13549"
13550
13551_ACEOF
13552
13553case $ac_config_files in *"
13554"*) set x $ac_config_files; shift; ac_config_files=$*;;
13555esac
13556
13557case $ac_config_headers in *"
13558"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13559esac
13560
13561
13562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13563# Files that config.status was made for.
13564config_files="$ac_config_files"
13565config_headers="$ac_config_headers"
13566config_commands="$ac_config_commands"
13567
13568_ACEOF
13569
13570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13571ac_cs_usage="\
13572\`$as_me' instantiates files and other configuration actions
13573from templates according to the current configuration.  Unless the files
13574and actions are specified as TAGs, all are instantiated by default.
13575
13576Usage: $0 [OPTION]... [TAG]...
13577
13578  -h, --help       print this help, then exit
13579  -V, --version    print version number and configuration settings, then exit
13580      --config     print configuration, then exit
13581  -q, --quiet, --silent
13582                   do not print progress messages
13583  -d, --debug      don't remove temporary files
13584      --recheck    update $as_me by reconfiguring in the same conditions
13585      --file=FILE[:TEMPLATE]
13586                   instantiate the configuration file FILE
13587      --header=FILE[:TEMPLATE]
13588                   instantiate the configuration header FILE
13589
13590Configuration files:
13591$config_files
13592
13593Configuration headers:
13594$config_headers
13595
13596Configuration commands:
13597$config_commands
13598
13599Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwininfo/-/issues>."
13600
13601_ACEOF
13602ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13603ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13605ac_cs_config='$ac_cs_config_escaped'
13606ac_cs_version="\\
13607xwininfo config.status 1.1.6
13608configured by $0, generated by GNU Autoconf 2.71,
13609  with options \\"\$ac_cs_config\\"
13610
13611Copyright (C) 2021 Free Software Foundation, Inc.
13612This config.status script is free software; the Free Software Foundation
13613gives unlimited permission to copy, distribute and modify it."
13614
13615ac_pwd='$ac_pwd'
13616srcdir='$srcdir'
13617INSTALL='$INSTALL'
13618MKDIR_P='$MKDIR_P'
13619AWK='$AWK'
13620test -n "\$AWK" || AWK=awk
13621_ACEOF
13622
13623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13624# The default lists apply if the user does not specify any file.
13625ac_need_defaults=:
13626while test $# != 0
13627do
13628  case $1 in
13629  --*=?*)
13630    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13631    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13632    ac_shift=:
13633    ;;
13634  --*=)
13635    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13636    ac_optarg=
13637    ac_shift=:
13638    ;;
13639  *)
13640    ac_option=$1
13641    ac_optarg=$2
13642    ac_shift=shift
13643    ;;
13644  esac
13645
13646  case $ac_option in
13647  # Handling of the options.
13648  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13649    ac_cs_recheck=: ;;
13650  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13651    printf "%s\n" "$ac_cs_version"; exit ;;
13652  --config | --confi | --conf | --con | --co | --c )
13653    printf "%s\n" "$ac_cs_config"; exit ;;
13654  --debug | --debu | --deb | --de | --d | -d )
13655    debug=: ;;
13656  --file | --fil | --fi | --f )
13657    $ac_shift
13658    case $ac_optarg in
13659    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13660    '') as_fn_error $? "missing file argument" ;;
13661    esac
13662    as_fn_append CONFIG_FILES " '$ac_optarg'"
13663    ac_need_defaults=false;;
13664  --header | --heade | --head | --hea )
13665    $ac_shift
13666    case $ac_optarg in
13667    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13668    esac
13669    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13670    ac_need_defaults=false;;
13671  --he | --h)
13672    # Conflict between --help and --header
13673    as_fn_error $? "ambiguous option: \`$1'
13674Try \`$0 --help' for more information.";;
13675  --help | --hel | -h )
13676    printf "%s\n" "$ac_cs_usage"; exit ;;
13677  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13678  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13679    ac_cs_silent=: ;;
13680
13681  # This is an error.
13682  -*) as_fn_error $? "unrecognized option: \`$1'
13683Try \`$0 --help' for more information." ;;
13684
13685  *) as_fn_append ac_config_targets " $1"
13686     ac_need_defaults=false ;;
13687
13688  esac
13689  shift
13690done
13691
13692ac_configure_extra_args=
13693
13694if $ac_cs_silent; then
13695  exec 6>/dev/null
13696  ac_configure_extra_args="$ac_configure_extra_args --silent"
13697fi
13698
13699_ACEOF
13700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13701if \$ac_cs_recheck; then
13702  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13703  shift
13704  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13705  CONFIG_SHELL='$SHELL'
13706  export CONFIG_SHELL
13707  exec "\$@"
13708fi
13709
13710_ACEOF
13711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13712exec 5>>config.log
13713{
13714  echo
13715  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13716## Running $as_me. ##
13717_ASBOX
13718  printf "%s\n" "$ac_log"
13719} >&5
13720
13721_ACEOF
13722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13723#
13724# INIT-COMMANDS
13725#
13726AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13727
13728_ACEOF
13729
13730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13731
13732# Handling of arguments.
13733for ac_config_target in $ac_config_targets
13734do
13735  case $ac_config_target in
13736    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13737    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13738    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13739    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13740
13741  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13742  esac
13743done
13744
13745
13746# If the user did not use the arguments to specify the items to instantiate,
13747# then the envvar interface is used.  Set only those that are not.
13748# We use the long form for the default assignment because of an extremely
13749# bizarre bug on SunOS 4.1.3.
13750if $ac_need_defaults; then
13751  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13752  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13753  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13754fi
13755
13756# Have a temporary directory for convenience.  Make it in the build tree
13757# simply because there is no reason against having it here, and in addition,
13758# creating and moving files from /tmp can sometimes cause problems.
13759# Hook for its removal unless debugging.
13760# Note that there is a small window in which the directory will not be cleaned:
13761# after its creation but before its name has been assigned to `$tmp'.
13762$debug ||
13763{
13764  tmp= ac_tmp=
13765  trap 'exit_status=$?
13766  : "${ac_tmp:=$tmp}"
13767  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13768' 0
13769  trap 'as_fn_exit 1' 1 2 13 15
13770}
13771# Create a (secure) tmp directory for tmp files.
13772
13773{
13774  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13775  test -d "$tmp"
13776}  ||
13777{
13778  tmp=./conf$$-$RANDOM
13779  (umask 077 && mkdir "$tmp")
13780} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13781ac_tmp=$tmp
13782
13783# Set up the scripts for CONFIG_FILES section.
13784# No need to generate them if there are no CONFIG_FILES.
13785# This happens for instance with `./config.status config.h'.
13786if test -n "$CONFIG_FILES"; then
13787
13788
13789ac_cr=`echo X | tr X '\015'`
13790# On cygwin, bash can eat \r inside `` if the user requested igncr.
13791# But we know of no other shell where ac_cr would be empty at this
13792# point, so we can use a bashism as a fallback.
13793if test "x$ac_cr" = x; then
13794  eval ac_cr=\$\'\\r\'
13795fi
13796ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13797if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13798  ac_cs_awk_cr='\\r'
13799else
13800  ac_cs_awk_cr=$ac_cr
13801fi
13802
13803echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13804_ACEOF
13805
13806
13807{
13808  echo "cat >conf$$subs.awk <<_ACEOF" &&
13809  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13810  echo "_ACEOF"
13811} >conf$$subs.sh ||
13812  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13813ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13814ac_delim='%!_!# '
13815for ac_last_try in false false false false false :; do
13816  . ./conf$$subs.sh ||
13817    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13818
13819  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13820  if test $ac_delim_n = $ac_delim_num; then
13821    break
13822  elif $ac_last_try; then
13823    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13824  else
13825    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13826  fi
13827done
13828rm -f conf$$subs.sh
13829
13830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13831cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13832_ACEOF
13833sed -n '
13834h
13835s/^/S["/; s/!.*/"]=/
13836p
13837g
13838s/^[^!]*!//
13839:repl
13840t repl
13841s/'"$ac_delim"'$//
13842t delim
13843:nl
13844h
13845s/\(.\{148\}\)..*/\1/
13846t more1
13847s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13848p
13849n
13850b repl
13851:more1
13852s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13853p
13854g
13855s/.\{148\}//
13856t nl
13857:delim
13858h
13859s/\(.\{148\}\)..*/\1/
13860t more2
13861s/["\\]/\\&/g; s/^/"/; s/$/"/
13862p
13863b
13864:more2
13865s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13866p
13867g
13868s/.\{148\}//
13869t delim
13870' <conf$$subs.awk | sed '
13871/^[^""]/{
13872  N
13873  s/\n//
13874}
13875' >>$CONFIG_STATUS || ac_write_fail=1
13876rm -f conf$$subs.awk
13877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13878_ACAWK
13879cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13880  for (key in S) S_is_set[key] = 1
13881  FS = ""
13882
13883}
13884{
13885  line = $ 0
13886  nfields = split(line, field, "@")
13887  substed = 0
13888  len = length(field[1])
13889  for (i = 2; i < nfields; i++) {
13890    key = field[i]
13891    keylen = length(key)
13892    if (S_is_set[key]) {
13893      value = S[key]
13894      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13895      len += length(value) + length(field[++i])
13896      substed = 1
13897    } else
13898      len += 1 + keylen
13899  }
13900
13901  print line
13902}
13903
13904_ACAWK
13905_ACEOF
13906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13907if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13908  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13909else
13910  cat
13911fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13912  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13913_ACEOF
13914
13915# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13916# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13917# trailing colons and then remove the whole line if VPATH becomes empty
13918# (actually we leave an empty line to preserve line numbers).
13919if test "x$srcdir" = x.; then
13920  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13921h
13922s///
13923s/^/:/
13924s/[	 ]*$/:/
13925s/:\$(srcdir):/:/g
13926s/:\${srcdir}:/:/g
13927s/:@srcdir@:/:/g
13928s/^:*//
13929s/:*$//
13930x
13931s/\(=[	 ]*\).*/\1/
13932G
13933s/\n//
13934s/^[^=]*=[	 ]*$//
13935}'
13936fi
13937
13938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13939fi # test -n "$CONFIG_FILES"
13940
13941# Set up the scripts for CONFIG_HEADERS section.
13942# No need to generate them if there are no CONFIG_HEADERS.
13943# This happens for instance with `./config.status Makefile'.
13944if test -n "$CONFIG_HEADERS"; then
13945cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13946BEGIN {
13947_ACEOF
13948
13949# Transform confdefs.h into an awk script `defines.awk', embedded as
13950# here-document in config.status, that substitutes the proper values into
13951# config.h.in to produce config.h.
13952
13953# Create a delimiter string that does not exist in confdefs.h, to ease
13954# handling of long lines.
13955ac_delim='%!_!# '
13956for ac_last_try in false false :; do
13957  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13958  if test -z "$ac_tt"; then
13959    break
13960  elif $ac_last_try; then
13961    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13962  else
13963    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13964  fi
13965done
13966
13967# For the awk script, D is an array of macro values keyed by name,
13968# likewise P contains macro parameters if any.  Preserve backslash
13969# newline sequences.
13970
13971ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13972sed -n '
13973s/.\{148\}/&'"$ac_delim"'/g
13974t rset
13975:rset
13976s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13977t def
13978d
13979:def
13980s/\\$//
13981t bsnl
13982s/["\\]/\\&/g
13983s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13984D["\1"]=" \3"/p
13985s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13986d
13987:bsnl
13988s/["\\]/\\&/g
13989s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13990D["\1"]=" \3\\\\\\n"\\/p
13991t cont
13992s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13993t cont
13994d
13995:cont
13996n
13997s/.\{148\}/&'"$ac_delim"'/g
13998t clear
13999:clear
14000s/\\$//
14001t bsnlc
14002s/["\\]/\\&/g; s/^/"/; s/$/"/p
14003d
14004:bsnlc
14005s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14006b cont
14007' <confdefs.h | sed '
14008s/'"$ac_delim"'/"\\\
14009"/g' >>$CONFIG_STATUS || ac_write_fail=1
14010
14011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14012  for (key in D) D_is_set[key] = 1
14013  FS = ""
14014}
14015/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14016  line = \$ 0
14017  split(line, arg, " ")
14018  if (arg[1] == "#") {
14019    defundef = arg[2]
14020    mac1 = arg[3]
14021  } else {
14022    defundef = substr(arg[1], 2)
14023    mac1 = arg[2]
14024  }
14025  split(mac1, mac2, "(") #)
14026  macro = mac2[1]
14027  prefix = substr(line, 1, index(line, defundef) - 1)
14028  if (D_is_set[macro]) {
14029    # Preserve the white space surrounding the "#".
14030    print prefix "define", macro P[macro] D[macro]
14031    next
14032  } else {
14033    # Replace #undef with comments.  This is necessary, for example,
14034    # in the case of _POSIX_SOURCE, which is predefined and required
14035    # on some systems where configure will not decide to define it.
14036    if (defundef == "undef") {
14037      print "/*", prefix defundef, macro, "*/"
14038      next
14039    }
14040  }
14041}
14042{ print }
14043_ACAWK
14044_ACEOF
14045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14046  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14047fi # test -n "$CONFIG_HEADERS"
14048
14049
14050eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14051shift
14052for ac_tag
14053do
14054  case $ac_tag in
14055  :[FHLC]) ac_mode=$ac_tag; continue;;
14056  esac
14057  case $ac_mode$ac_tag in
14058  :[FHL]*:*);;
14059  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14060  :[FH]-) ac_tag=-:-;;
14061  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14062  esac
14063  ac_save_IFS=$IFS
14064  IFS=:
14065  set x $ac_tag
14066  IFS=$ac_save_IFS
14067  shift
14068  ac_file=$1
14069  shift
14070
14071  case $ac_mode in
14072  :L) ac_source=$1;;
14073  :[FH])
14074    ac_file_inputs=
14075    for ac_f
14076    do
14077      case $ac_f in
14078      -) ac_f="$ac_tmp/stdin";;
14079      *) # Look for the file first in the build tree, then in the source tree
14080	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14081	 # because $ac_f cannot contain `:'.
14082	 test -f "$ac_f" ||
14083	   case $ac_f in
14084	   [\\/$]*) false;;
14085	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14086	   esac ||
14087	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14088      esac
14089      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14090      as_fn_append ac_file_inputs " '$ac_f'"
14091    done
14092
14093    # Let's still pretend it is `configure' which instantiates (i.e., don't
14094    # use $as_me), people would be surprised to read:
14095    #    /* config.h.  Generated by config.status.  */
14096    configure_input='Generated from '`
14097	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14098	`' by configure.'
14099    if test x"$ac_file" != x-; then
14100      configure_input="$ac_file.  $configure_input"
14101      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14102printf "%s\n" "$as_me: creating $ac_file" >&6;}
14103    fi
14104    # Neutralize special characters interpreted by sed in replacement strings.
14105    case $configure_input in #(
14106    *\&* | *\|* | *\\* )
14107       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
14108       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14109    *) ac_sed_conf_input=$configure_input;;
14110    esac
14111
14112    case $ac_tag in
14113    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14114      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14115    esac
14116    ;;
14117  esac
14118
14119  ac_dir=`$as_dirname -- "$ac_file" ||
14120$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14121	 X"$ac_file" : 'X\(//\)[^/]' \| \
14122	 X"$ac_file" : 'X\(//\)$' \| \
14123	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14124printf "%s\n" X"$ac_file" |
14125    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14126	    s//\1/
14127	    q
14128	  }
14129	  /^X\(\/\/\)[^/].*/{
14130	    s//\1/
14131	    q
14132	  }
14133	  /^X\(\/\/\)$/{
14134	    s//\1/
14135	    q
14136	  }
14137	  /^X\(\/\).*/{
14138	    s//\1/
14139	    q
14140	  }
14141	  s/.*/./; q'`
14142  as_dir="$ac_dir"; as_fn_mkdir_p
14143  ac_builddir=.
14144
14145case "$ac_dir" in
14146.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14147*)
14148  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14149  # A ".." for each directory in $ac_dir_suffix.
14150  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14151  case $ac_top_builddir_sub in
14152  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14153  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14154  esac ;;
14155esac
14156ac_abs_top_builddir=$ac_pwd
14157ac_abs_builddir=$ac_pwd$ac_dir_suffix
14158# for backward compatibility:
14159ac_top_builddir=$ac_top_build_prefix
14160
14161case $srcdir in
14162  .)  # We are building in place.
14163    ac_srcdir=.
14164    ac_top_srcdir=$ac_top_builddir_sub
14165    ac_abs_top_srcdir=$ac_pwd ;;
14166  [\\/]* | ?:[\\/]* )  # Absolute name.
14167    ac_srcdir=$srcdir$ac_dir_suffix;
14168    ac_top_srcdir=$srcdir
14169    ac_abs_top_srcdir=$srcdir ;;
14170  *) # Relative name.
14171    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14172    ac_top_srcdir=$ac_top_build_prefix$srcdir
14173    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14174esac
14175ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14176
14177
14178  case $ac_mode in
14179  :F)
14180  #
14181  # CONFIG_FILE
14182  #
14183
14184  case $INSTALL in
14185  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14186  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14187  esac
14188  ac_MKDIR_P=$MKDIR_P
14189  case $MKDIR_P in
14190  [\\/$]* | ?:[\\/]* ) ;;
14191  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14192  esac
14193_ACEOF
14194
14195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14196# If the template does not know about datarootdir, expand it.
14197# FIXME: This hack should be removed a few years after 2.60.
14198ac_datarootdir_hack=; ac_datarootdir_seen=
14199ac_sed_dataroot='
14200/datarootdir/ {
14201  p
14202  q
14203}
14204/@datadir@/p
14205/@docdir@/p
14206/@infodir@/p
14207/@localedir@/p
14208/@mandir@/p'
14209case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14210*datarootdir*) ac_datarootdir_seen=yes;;
14211*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14213printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14214_ACEOF
14215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14216  ac_datarootdir_hack='
14217  s&@datadir@&$datadir&g
14218  s&@docdir@&$docdir&g
14219  s&@infodir@&$infodir&g
14220  s&@localedir@&$localedir&g
14221  s&@mandir@&$mandir&g
14222  s&\\\${datarootdir}&$datarootdir&g' ;;
14223esac
14224_ACEOF
14225
14226# Neutralize VPATH when `$srcdir' = `.'.
14227# Shell code in configure.ac might set extrasub.
14228# FIXME: do we really want to maintain this feature?
14229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14230ac_sed_extra="$ac_vpsub
14231$extrasub
14232_ACEOF
14233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14234:t
14235/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14236s|@configure_input@|$ac_sed_conf_input|;t t
14237s&@top_builddir@&$ac_top_builddir_sub&;t t
14238s&@top_build_prefix@&$ac_top_build_prefix&;t t
14239s&@srcdir@&$ac_srcdir&;t t
14240s&@abs_srcdir@&$ac_abs_srcdir&;t t
14241s&@top_srcdir@&$ac_top_srcdir&;t t
14242s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14243s&@builddir@&$ac_builddir&;t t
14244s&@abs_builddir@&$ac_abs_builddir&;t t
14245s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14246s&@INSTALL@&$ac_INSTALL&;t t
14247s&@MKDIR_P@&$ac_MKDIR_P&;t t
14248$ac_datarootdir_hack
14249"
14250eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14251  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14252
14253test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14254  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14255  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14256      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14258which seems to be undefined.  Please make sure it is defined" >&5
14259printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14260which seems to be undefined.  Please make sure it is defined" >&2;}
14261
14262  rm -f "$ac_tmp/stdin"
14263  case $ac_file in
14264  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14265  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14266  esac \
14267  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14268 ;;
14269  :H)
14270  #
14271  # CONFIG_HEADER
14272  #
14273  if test x"$ac_file" != x-; then
14274    {
14275      printf "%s\n" "/* $configure_input  */" >&1 \
14276      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14277    } >"$ac_tmp/config.h" \
14278      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14279    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14280      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14281printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
14282    else
14283      rm -f "$ac_file"
14284      mv "$ac_tmp/config.h" "$ac_file" \
14285	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14286    fi
14287  else
14288    printf "%s\n" "/* $configure_input  */" >&1 \
14289      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14290      || as_fn_error $? "could not create -" "$LINENO" 5
14291  fi
14292# Compute "$ac_file"'s index in $config_headers.
14293_am_arg="$ac_file"
14294_am_stamp_count=1
14295for _am_header in $config_headers :; do
14296  case $_am_header in
14297    $_am_arg | $_am_arg:* )
14298      break ;;
14299    * )
14300      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14301  esac
14302done
14303echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14304$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14305	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14306	 X"$_am_arg" : 'X\(//\)$' \| \
14307	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14308printf "%s\n" X"$_am_arg" |
14309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14310	    s//\1/
14311	    q
14312	  }
14313	  /^X\(\/\/\)[^/].*/{
14314	    s//\1/
14315	    q
14316	  }
14317	  /^X\(\/\/\)$/{
14318	    s//\1/
14319	    q
14320	  }
14321	  /^X\(\/\).*/{
14322	    s//\1/
14323	    q
14324	  }
14325	  s/.*/./; q'`/stamp-h$_am_stamp_count
14326 ;;
14327
14328  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14329printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
14330 ;;
14331  esac
14332
14333
14334  case $ac_file$ac_mode in
14335    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14336  # Older Autoconf quotes --file arguments for eval, but not when files
14337  # are listed without --file.  Let's play safe and only enable the eval
14338  # if we detect the quoting.
14339  # TODO: see whether this extra hack can be removed once we start
14340  # requiring Autoconf 2.70 or later.
14341  case $CONFIG_FILES in #(
14342  *\'*) :
14343    eval set x "$CONFIG_FILES" ;; #(
14344  *) :
14345    set x $CONFIG_FILES ;; #(
14346  *) :
14347     ;;
14348esac
14349  shift
14350  # Used to flag and report bootstrapping failures.
14351  am_rc=0
14352  for am_mf
14353  do
14354    # Strip MF so we end up with the name of the file.
14355    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
14356    # Check whether this is an Automake generated Makefile which includes
14357    # dependency-tracking related rules and includes.
14358    # Grep'ing the whole file directly is not great: AIX grep has a line
14359    # limit of 2048, but all sed's we know have understand at least 4000.
14360    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14361      || continue
14362    am_dirpart=`$as_dirname -- "$am_mf" ||
14363$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14364	 X"$am_mf" : 'X\(//\)[^/]' \| \
14365	 X"$am_mf" : 'X\(//\)$' \| \
14366	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14367printf "%s\n" X"$am_mf" |
14368    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14369	    s//\1/
14370	    q
14371	  }
14372	  /^X\(\/\/\)[^/].*/{
14373	    s//\1/
14374	    q
14375	  }
14376	  /^X\(\/\/\)$/{
14377	    s//\1/
14378	    q
14379	  }
14380	  /^X\(\/\).*/{
14381	    s//\1/
14382	    q
14383	  }
14384	  s/.*/./; q'`
14385    am_filepart=`$as_basename -- "$am_mf" ||
14386$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14387	 X"$am_mf" : 'X\(//\)$' \| \
14388	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14389printf "%s\n" X/"$am_mf" |
14390    sed '/^.*\/\([^/][^/]*\)\/*$/{
14391	    s//\1/
14392	    q
14393	  }
14394	  /^X\/\(\/\/\)$/{
14395	    s//\1/
14396	    q
14397	  }
14398	  /^X\/\(\/\).*/{
14399	    s//\1/
14400	    q
14401	  }
14402	  s/.*/./; q'`
14403    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14404      && sed -e '/# am--include-marker/d' "$am_filepart" \
14405        | $MAKE -f - am--depfiles" >&5
14406   (cd "$am_dirpart" \
14407      && sed -e '/# am--include-marker/d' "$am_filepart" \
14408        | $MAKE -f - am--depfiles) >&5 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } || am_rc=$?
14412  done
14413  if test $am_rc -ne 0; then
14414    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14415printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14416as_fn_error $? "Something went wrong bootstrapping makefile fragments
14417    for automatic dependency tracking.  If GNU make was not used, consider
14418    re-running the configure script with MAKE=\"gmake\" (or whatever is
14419    necessary).  You can also try re-running configure with the
14420    '--disable-dependency-tracking' option to at least be able to build
14421    the package (albeit without support for automatic dependency tracking).
14422See \`config.log' for more details" "$LINENO" 5; }
14423  fi
14424  { am_dirpart=; unset am_dirpart;}
14425  { am_filepart=; unset am_filepart;}
14426  { am_mf=; unset am_mf;}
14427  { am_rc=; unset am_rc;}
14428  rm -f conftest-deps.mk
14429}
14430 ;;
14431
14432  esac
14433done # for ac_tag
14434
14435
14436as_fn_exit 0
14437_ACEOF
14438ac_clean_files=$ac_clean_files_save
14439
14440test $ac_write_fail = 0 ||
14441  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14442
14443
14444# configure is writing to config.log, and then calls config.status.
14445# config.status does its own redirection, appending to config.log.
14446# Unfortunately, on DOS this fails, as config.log is still kept open
14447# by configure, so config.status won't be able to write to it; its
14448# output is simply discarded.  So we exec the FD to /dev/null,
14449# effectively closing config.log, so it can be properly (re)opened and
14450# appended to by config.status.  When coming back to configure, we
14451# need to make the FD available again.
14452if test "$no_create" != yes; then
14453  ac_cs_success=:
14454  ac_config_status_args=
14455  test "$silent" = yes &&
14456    ac_config_status_args="$ac_config_status_args --quiet"
14457  exec 5>/dev/null
14458  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14459  exec 5>>config.log
14460  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14461  # would make configure fail if this is the last instruction.
14462  $ac_cs_success || as_fn_exit 1
14463fi
14464if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14466printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14467fi
14468
14469
14470