1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xeyes 1.3.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/-/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/xeyes/-/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='xeyes'
614PACKAGE_TARNAME='xeyes'
615PACKAGE_VERSION='1.3.0'
616PACKAGE_STRING='xeyes 1.3.0'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xeyes/-/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657PRESENT_LIBS
658PRESENT_CFLAGS
659XRENDER_LIBS
660XRENDER_CFLAGS
661XEYES_LIBS
662XEYES_CFLAGS
663MAN_SUBSTS
664XORG_MAN_PAGE
665ADMIN_MAN_DIR
666DRIVER_MAN_DIR
667MISC_MAN_DIR
668FILE_MAN_DIR
669LIB_MAN_DIR
670APP_MAN_DIR
671ADMIN_MAN_SUFFIX
672DRIVER_MAN_SUFFIX
673MISC_MAN_SUFFIX
674FILE_MAN_SUFFIX
675LIB_MAN_SUFFIX
676APP_MAN_SUFFIX
677SED
678host_os
679host_vendor
680host_cpu
681host
682build_os
683build_vendor
684build_cpu
685build
686INSTALL_CMD
687PKG_CONFIG_LIBDIR
688PKG_CONFIG_PATH
689PKG_CONFIG
690CHANGELOG_CMD
691STRICT_CFLAGS
692CWARNFLAGS
693BASE_CFLAGS
694am__fastdepCC_FALSE
695am__fastdepCC_TRUE
696CCDEPMODE
697am__nodep
698AMDEPBACKSLASH
699AMDEP_FALSE
700AMDEP_TRUE
701am__include
702DEPDIR
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710AM_BACKSLASH
711AM_DEFAULT_VERBOSITY
712AM_DEFAULT_V
713AM_V
714CSCOPE
715ETAGS
716CTAGS
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759runstatedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL
779am__quote'
780ac_subst_files=''
781ac_user_opts='
782enable_option_checking
783enable_silent_rules
784enable_dependency_tracking
785enable_selective_werror
786enable_strict_compilation
787with_xrender
788with_present
789'
790      ac_precious_vars='build_alias
791host_alias
792target_alias
793CC
794CFLAGS
795LDFLAGS
796LIBS
797CPPFLAGS
798PKG_CONFIG
799PKG_CONFIG_PATH
800PKG_CONFIG_LIBDIR
801XEYES_CFLAGS
802XEYES_LIBS
803XRENDER_CFLAGS
804XRENDER_LIBS
805PRESENT_CFLAGS
806PRESENT_LIBS'
807
808
809# Initialize some variables set by options.
810ac_init_help=
811ac_init_version=false
812ac_unrecognized_opts=
813ac_unrecognized_sep=
814# The variables have the same names as the options, with
815# dashes changed to underlines.
816cache_file=/dev/null
817exec_prefix=NONE
818no_create=
819no_recursion=
820prefix=NONE
821program_prefix=NONE
822program_suffix=NONE
823program_transform_name=s,x,x,
824silent=
825site=
826srcdir=
827verbose=
828x_includes=NONE
829x_libraries=NONE
830
831# Installation directory options.
832# These are left unexpanded so users can "make install exec_prefix=/foo"
833# and all the variables that are supposed to be based on exec_prefix
834# by default will actually change.
835# Use braces instead of parens because sh, perl, etc. also accept them.
836# (The list follows the same order as the GNU Coding Standards.)
837bindir='${exec_prefix}/bin'
838sbindir='${exec_prefix}/sbin'
839libexecdir='${exec_prefix}/libexec'
840datarootdir='${prefix}/share'
841datadir='${datarootdir}'
842sysconfdir='${prefix}/etc'
843sharedstatedir='${prefix}/com'
844localstatedir='${prefix}/var'
845runstatedir='${localstatedir}/run'
846includedir='${prefix}/include'
847oldincludedir='/usr/include'
848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849infodir='${datarootdir}/info'
850htmldir='${docdir}'
851dvidir='${docdir}'
852pdfdir='${docdir}'
853psdir='${docdir}'
854libdir='${exec_prefix}/lib'
855localedir='${datarootdir}/locale'
856mandir='${datarootdir}/man'
857
858ac_prev=
859ac_dashdash=
860for ac_option
861do
862  # If the previous option needs an argument, assign it.
863  if test -n "$ac_prev"; then
864    eval $ac_prev=\$ac_option
865    ac_prev=
866    continue
867  fi
868
869  case $ac_option in
870  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871  *=)   ac_optarg= ;;
872  *)    ac_optarg=yes ;;
873  esac
874
875  case $ac_dashdash$ac_option in
876  --)
877    ac_dashdash=yes ;;
878
879  -bindir | --bindir | --bindi | --bind | --bin | --bi)
880    ac_prev=bindir ;;
881  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882    bindir=$ac_optarg ;;
883
884  -build | --build | --buil | --bui | --bu)
885    ac_prev=build_alias ;;
886  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887    build_alias=$ac_optarg ;;
888
889  -cache-file | --cache-file | --cache-fil | --cache-fi \
890  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891    ac_prev=cache_file ;;
892  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894    cache_file=$ac_optarg ;;
895
896  --config-cache | -C)
897    cache_file=config.cache ;;
898
899  -datadir | --datadir | --datadi | --datad)
900    ac_prev=datadir ;;
901  -datadir=* | --datadir=* | --datadi=* | --datad=*)
902    datadir=$ac_optarg ;;
903
904  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905  | --dataroo | --dataro | --datar)
906    ac_prev=datarootdir ;;
907  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909    datarootdir=$ac_optarg ;;
910
911  -disable-* | --disable-*)
912    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913    # Reject names that are not valid shell variable names.
914    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915      as_fn_error $? "invalid feature name: \`$ac_useropt'"
916    ac_useropt_orig=$ac_useropt
917    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
918    case $ac_user_opts in
919      *"
920"enable_$ac_useropt"
921"*) ;;
922      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923	 ac_unrecognized_sep=', ';;
924    esac
925    eval enable_$ac_useropt=no ;;
926
927  -docdir | --docdir | --docdi | --doc | --do)
928    ac_prev=docdir ;;
929  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930    docdir=$ac_optarg ;;
931
932  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933    ac_prev=dvidir ;;
934  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935    dvidir=$ac_optarg ;;
936
937  -enable-* | --enable-*)
938    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939    # Reject names that are not valid shell variable names.
940    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941      as_fn_error $? "invalid feature name: \`$ac_useropt'"
942    ac_useropt_orig=$ac_useropt
943    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
944    case $ac_user_opts in
945      *"
946"enable_$ac_useropt"
947"*) ;;
948      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949	 ac_unrecognized_sep=', ';;
950    esac
951    eval enable_$ac_useropt=\$ac_optarg ;;
952
953  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955  | --exec | --exe | --ex)
956    ac_prev=exec_prefix ;;
957  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959  | --exec=* | --exe=* | --ex=*)
960    exec_prefix=$ac_optarg ;;
961
962  -gas | --gas | --ga | --g)
963    # Obsolete; use --with-gas.
964    with_gas=yes ;;
965
966  -help | --help | --hel | --he | -h)
967    ac_init_help=long ;;
968  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969    ac_init_help=recursive ;;
970  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971    ac_init_help=short ;;
972
973  -host | --host | --hos | --ho)
974    ac_prev=host_alias ;;
975  -host=* | --host=* | --hos=* | --ho=*)
976    host_alias=$ac_optarg ;;
977
978  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979    ac_prev=htmldir ;;
980  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981  | --ht=*)
982    htmldir=$ac_optarg ;;
983
984  -includedir | --includedir | --includedi | --included | --include \
985  | --includ | --inclu | --incl | --inc)
986    ac_prev=includedir ;;
987  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988  | --includ=* | --inclu=* | --incl=* | --inc=*)
989    includedir=$ac_optarg ;;
990
991  -infodir | --infodir | --infodi | --infod | --info | --inf)
992    ac_prev=infodir ;;
993  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994    infodir=$ac_optarg ;;
995
996  -libdir | --libdir | --libdi | --libd)
997    ac_prev=libdir ;;
998  -libdir=* | --libdir=* | --libdi=* | --libd=*)
999    libdir=$ac_optarg ;;
1000
1001  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002  | --libexe | --libex | --libe)
1003    ac_prev=libexecdir ;;
1004  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005  | --libexe=* | --libex=* | --libe=*)
1006    libexecdir=$ac_optarg ;;
1007
1008  -localedir | --localedir | --localedi | --localed | --locale)
1009    ac_prev=localedir ;;
1010  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011    localedir=$ac_optarg ;;
1012
1013  -localstatedir | --localstatedir | --localstatedi | --localstated \
1014  | --localstate | --localstat | --localsta | --localst | --locals)
1015    ac_prev=localstatedir ;;
1016  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018    localstatedir=$ac_optarg ;;
1019
1020  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021    ac_prev=mandir ;;
1022  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023    mandir=$ac_optarg ;;
1024
1025  -nfp | --nfp | --nf)
1026    # Obsolete; use --without-fp.
1027    with_fp=no ;;
1028
1029  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030  | --no-cr | --no-c | -n)
1031    no_create=yes ;;
1032
1033  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035    no_recursion=yes ;;
1036
1037  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039  | --oldin | --oldi | --old | --ol | --o)
1040    ac_prev=oldincludedir ;;
1041  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044    oldincludedir=$ac_optarg ;;
1045
1046  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047    ac_prev=prefix ;;
1048  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049    prefix=$ac_optarg ;;
1050
1051  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052  | --program-pre | --program-pr | --program-p)
1053    ac_prev=program_prefix ;;
1054  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056    program_prefix=$ac_optarg ;;
1057
1058  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059  | --program-suf | --program-su | --program-s)
1060    ac_prev=program_suffix ;;
1061  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063    program_suffix=$ac_optarg ;;
1064
1065  -program-transform-name | --program-transform-name \
1066  | --program-transform-nam | --program-transform-na \
1067  | --program-transform-n | --program-transform- \
1068  | --program-transform | --program-transfor \
1069  | --program-transfo | --program-transf \
1070  | --program-trans | --program-tran \
1071  | --progr-tra | --program-tr | --program-t)
1072    ac_prev=program_transform_name ;;
1073  -program-transform-name=* | --program-transform-name=* \
1074  | --program-transform-nam=* | --program-transform-na=* \
1075  | --program-transform-n=* | --program-transform-=* \
1076  | --program-transform=* | --program-transfor=* \
1077  | --program-transfo=* | --program-transf=* \
1078  | --program-trans=* | --program-tran=* \
1079  | --progr-tra=* | --program-tr=* | --program-t=*)
1080    program_transform_name=$ac_optarg ;;
1081
1082  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083    ac_prev=pdfdir ;;
1084  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085    pdfdir=$ac_optarg ;;
1086
1087  -psdir | --psdir | --psdi | --psd | --ps)
1088    ac_prev=psdir ;;
1089  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090    psdir=$ac_optarg ;;
1091
1092  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093  | -silent | --silent | --silen | --sile | --sil)
1094    silent=yes ;;
1095
1096  -runstatedir | --runstatedir | --runstatedi | --runstated \
1097  | --runstate | --runstat | --runsta | --runst | --runs \
1098  | --run | --ru | --r)
1099    ac_prev=runstatedir ;;
1100  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1101  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1102  | --run=* | --ru=* | --r=*)
1103    runstatedir=$ac_optarg ;;
1104
1105  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106    ac_prev=sbindir ;;
1107  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108  | --sbi=* | --sb=*)
1109    sbindir=$ac_optarg ;;
1110
1111  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113  | --sharedst | --shareds | --shared | --share | --shar \
1114  | --sha | --sh)
1115    ac_prev=sharedstatedir ;;
1116  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119  | --sha=* | --sh=*)
1120    sharedstatedir=$ac_optarg ;;
1121
1122  -site | --site | --sit)
1123    ac_prev=site ;;
1124  -site=* | --site=* | --sit=*)
1125    site=$ac_optarg ;;
1126
1127  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128    ac_prev=srcdir ;;
1129  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130    srcdir=$ac_optarg ;;
1131
1132  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133  | --syscon | --sysco | --sysc | --sys | --sy)
1134    ac_prev=sysconfdir ;;
1135  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137    sysconfdir=$ac_optarg ;;
1138
1139  -target | --target | --targe | --targ | --tar | --ta | --t)
1140    ac_prev=target_alias ;;
1141  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142    target_alias=$ac_optarg ;;
1143
1144  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145    verbose=yes ;;
1146
1147  -version | --version | --versio | --versi | --vers | -V)
1148    ac_init_version=: ;;
1149
1150  -with-* | --with-*)
1151    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152    # Reject names that are not valid shell variable names.
1153    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154      as_fn_error $? "invalid package name: \`$ac_useropt'"
1155    ac_useropt_orig=$ac_useropt
1156    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1157    case $ac_user_opts in
1158      *"
1159"with_$ac_useropt"
1160"*) ;;
1161      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162	 ac_unrecognized_sep=', ';;
1163    esac
1164    eval with_$ac_useropt=\$ac_optarg ;;
1165
1166  -without-* | --without-*)
1167    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168    # Reject names that are not valid shell variable names.
1169    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170      as_fn_error $? "invalid package name: \`$ac_useropt'"
1171    ac_useropt_orig=$ac_useropt
1172    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1173    case $ac_user_opts in
1174      *"
1175"with_$ac_useropt"
1176"*) ;;
1177      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178	 ac_unrecognized_sep=', ';;
1179    esac
1180    eval with_$ac_useropt=no ;;
1181
1182  --x)
1183    # Obsolete; use --with-x.
1184    with_x=yes ;;
1185
1186  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187  | --x-incl | --x-inc | --x-in | --x-i)
1188    ac_prev=x_includes ;;
1189  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191    x_includes=$ac_optarg ;;
1192
1193  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195    ac_prev=x_libraries ;;
1196  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198    x_libraries=$ac_optarg ;;
1199
1200  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201Try \`$0 --help' for more information"
1202    ;;
1203
1204  *=*)
1205    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206    # Reject names that are not valid shell variable names.
1207    case $ac_envvar in #(
1208      '' | [0-9]* | *[!_$as_cr_alnum]* )
1209      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210    esac
1211    eval $ac_envvar=\$ac_optarg
1212    export $ac_envvar ;;
1213
1214  *)
1215    # FIXME: should be removed in autoconf 3.0.
1216    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1217    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1219    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220    ;;
1221
1222  esac
1223done
1224
1225if test -n "$ac_prev"; then
1226  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227  as_fn_error $? "missing argument to $ac_option"
1228fi
1229
1230if test -n "$ac_unrecognized_opts"; then
1231  case $enable_option_checking in
1232    no) ;;
1233    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235  esac
1236fi
1237
1238# Check all directory arguments for consistency.
1239for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240		datadir sysconfdir sharedstatedir localstatedir includedir \
1241		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242		libdir localedir mandir runstatedir
1243do
1244  eval ac_val=\$$ac_var
1245  # Remove trailing slashes.
1246  case $ac_val in
1247    */ )
1248      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249      eval $ac_var=\$ac_val;;
1250  esac
1251  # Be sure to have absolute directory names.
1252  case $ac_val in
1253    [\\/$]* | ?:[\\/]* )  continue;;
1254    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255  esac
1256  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257done
1258
1259# There might be people who depend on the old broken behavior: `$host'
1260# used to hold the argument of --host etc.
1261# FIXME: To remove some day.
1262build=$build_alias
1263host=$host_alias
1264target=$target_alias
1265
1266# FIXME: To remove some day.
1267if test "x$host_alias" != x; then
1268  if test "x$build_alias" = x; then
1269    cross_compiling=maybe
1270  elif test "x$build_alias" != "x$host_alias"; then
1271    cross_compiling=yes
1272  fi
1273fi
1274
1275ac_tool_prefix=
1276test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278test "$silent" = yes && exec 6>/dev/null
1279
1280
1281ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282ac_ls_di=`ls -di .` &&
1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284  as_fn_error $? "working directory cannot be determined"
1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286  as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289# Find the source files, if location was not specified.
1290if test -z "$srcdir"; then
1291  ac_srcdir_defaulted=yes
1292  # Try the directory containing this script, then the parent directory.
1293  ac_confdir=`$as_dirname -- "$as_myself" ||
1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295	 X"$as_myself" : 'X\(//\)[^/]' \| \
1296	 X"$as_myself" : 'X\(//\)$' \| \
1297	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298printf "%s\n" X"$as_myself" |
1299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\/\)[^/].*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)$/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\).*/{
1312	    s//\1/
1313	    q
1314	  }
1315	  s/.*/./; q'`
1316  srcdir=$ac_confdir
1317  if test ! -r "$srcdir/$ac_unique_file"; then
1318    srcdir=..
1319  fi
1320else
1321  ac_srcdir_defaulted=no
1322fi
1323if test ! -r "$srcdir/$ac_unique_file"; then
1324  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326fi
1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328ac_abs_confdir=`(
1329	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330	pwd)`
1331# When building in place, set srcdir=.
1332if test "$ac_abs_confdir" = "$ac_pwd"; then
1333  srcdir=.
1334fi
1335# Remove unnecessary trailing slashes from srcdir.
1336# Double slashes in file names in object file debugging info
1337# mess up M-x gdb in Emacs.
1338case $srcdir in
1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340esac
1341for ac_var in $ac_precious_vars; do
1342  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343  eval ac_env_${ac_var}_value=\$${ac_var}
1344  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346done
1347
1348#
1349# Report the --help message.
1350#
1351if test "$ac_init_help" = "long"; then
1352  # Omit some internal or obsolete options to make the list less imposing.
1353  # This message is too long to be a string in the A/UX 3.1 sh.
1354  cat <<_ACEOF
1355\`configure' configures xeyes 1.3.0 to adapt to many kinds of systems.
1356
1357Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360VAR=VALUE.  See below for descriptions of some of the useful variables.
1361
1362Defaults for the options are specified in brackets.
1363
1364Configuration:
1365  -h, --help              display this help and exit
1366      --help=short        display options specific to this package
1367      --help=recursive    display the short help of all the included packages
1368  -V, --version           display version information and exit
1369  -q, --quiet, --silent   do not print \`checking ...' messages
1370      --cache-file=FILE   cache test results in FILE [disabled]
1371  -C, --config-cache      alias for \`--cache-file=config.cache'
1372  -n, --no-create         do not create output files
1373      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1374
1375Installation directories:
1376  --prefix=PREFIX         install architecture-independent files in PREFIX
1377                          [$ac_default_prefix]
1378  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379                          [PREFIX]
1380
1381By default, \`make install' will install all the files in
1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1383an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384for instance \`--prefix=\$HOME'.
1385
1386For better control, use the options below.
1387
1388Fine tuning of the installation directories:
1389  --bindir=DIR            user executables [EPREFIX/bin]
1390  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1391  --libexecdir=DIR        program executables [EPREFIX/libexec]
1392  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1393  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1394  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1395  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1396  --libdir=DIR            object code libraries [EPREFIX/lib]
1397  --includedir=DIR        C header files [PREFIX/include]
1398  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401  --infodir=DIR           info documentation [DATAROOTDIR/info]
1402  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403  --mandir=DIR            man documentation [DATAROOTDIR/man]
1404  --docdir=DIR            documentation root [DATAROOTDIR/doc/xeyes]
1405  --htmldir=DIR           html documentation [DOCDIR]
1406  --dvidir=DIR            dvi documentation [DOCDIR]
1407  --pdfdir=DIR            pdf documentation [DOCDIR]
1408  --psdir=DIR             ps documentation [DOCDIR]
1409_ACEOF
1410
1411  cat <<\_ACEOF
1412
1413Program names:
1414  --program-prefix=PREFIX            prepend PREFIX to installed program names
1415  --program-suffix=SUFFIX            append SUFFIX to installed program names
1416  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418System types:
1419  --build=BUILD     configure for building on BUILD [guessed]
1420  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421_ACEOF
1422fi
1423
1424if test -n "$ac_init_help"; then
1425  case $ac_init_help in
1426     short | recursive ) echo "Configuration of xeyes 1.3.0:";;
1427   esac
1428  cat <<\_ACEOF
1429
1430Optional Features:
1431  --disable-option-checking  ignore unrecognized --enable/--with options
1432  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434  --enable-silent-rules   less verbose build output (undo: "make V=1")
1435  --disable-silent-rules  verbose build output (undo: "make V=0")
1436  --enable-dependency-tracking
1437                          do not reject slow dependency extractors
1438  --disable-dependency-tracking
1439                          speeds up one-time build
1440  --disable-selective-werror
1441                          Turn off selective compiler errors. (default:
1442                          enabled)
1443  --enable-strict-compilation
1444                          Enable all warnings from compiler and make them
1445                          errors (default: disabled)
1446
1447Optional Packages:
1448  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1449  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1450  --with-xrender          Use Xrender for rendering (Default is YES)
1451  --with-present          Use Present for updates (Default is AUTO)
1452
1453Some influential environment variables:
1454  CC          C compiler command
1455  CFLAGS      C compiler flags
1456  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1457              nonstandard directory <lib dir>
1458  LIBS        libraries to pass to the linker, e.g. -l<library>
1459  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460              you have headers in a nonstandard directory <include dir>
1461  PKG_CONFIG  path to pkg-config utility
1462  PKG_CONFIG_PATH
1463              directories to add to pkg-config's search path
1464  PKG_CONFIG_LIBDIR
1465              path overriding pkg-config's built-in search path
1466  XEYES_CFLAGS
1467              C compiler flags for XEYES, overriding pkg-config
1468  XEYES_LIBS  linker flags for XEYES, overriding pkg-config
1469  XRENDER_CFLAGS
1470              C compiler flags for XRENDER, overriding pkg-config
1471  XRENDER_LIBS
1472              linker flags for XRENDER, overriding pkg-config
1473  PRESENT_CFLAGS
1474              C compiler flags for PRESENT, overriding pkg-config
1475  PRESENT_LIBS
1476              linker flags for PRESENT, overriding pkg-config
1477
1478Use these variables to override the choices made by `configure' or to help
1479it to find libraries and programs with nonstandard names/locations.
1480
1481Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/-/issues>.
1482_ACEOF
1483ac_status=$?
1484fi
1485
1486if test "$ac_init_help" = "recursive"; then
1487  # If there are subdirs, report their specific --help.
1488  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489    test -d "$ac_dir" ||
1490      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491      continue
1492    ac_builddir=.
1493
1494case "$ac_dir" in
1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496*)
1497  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1498  # A ".." for each directory in $ac_dir_suffix.
1499  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500  case $ac_top_builddir_sub in
1501  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503  esac ;;
1504esac
1505ac_abs_top_builddir=$ac_pwd
1506ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507# for backward compatibility:
1508ac_top_builddir=$ac_top_build_prefix
1509
1510case $srcdir in
1511  .)  # We are building in place.
1512    ac_srcdir=.
1513    ac_top_srcdir=$ac_top_builddir_sub
1514    ac_abs_top_srcdir=$ac_pwd ;;
1515  [\\/]* | ?:[\\/]* )  # Absolute name.
1516    ac_srcdir=$srcdir$ac_dir_suffix;
1517    ac_top_srcdir=$srcdir
1518    ac_abs_top_srcdir=$srcdir ;;
1519  *) # Relative name.
1520    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521    ac_top_srcdir=$ac_top_build_prefix$srcdir
1522    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523esac
1524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526    cd "$ac_dir" || { ac_status=$?; continue; }
1527    # Check for configure.gnu first; this name is used for a wrapper for
1528    # Metaconfig's "Configure" on case-insensitive file systems.
1529    if test -f "$ac_srcdir/configure.gnu"; then
1530      echo &&
1531      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532    elif test -f "$ac_srcdir/configure"; then
1533      echo &&
1534      $SHELL "$ac_srcdir/configure" --help=recursive
1535    else
1536      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537    fi || ac_status=$?
1538    cd "$ac_pwd" || { ac_status=$?; break; }
1539  done
1540fi
1541
1542test -n "$ac_init_help" && exit $ac_status
1543if $ac_init_version; then
1544  cat <<\_ACEOF
1545xeyes configure 1.3.0
1546generated by GNU Autoconf 2.71
1547
1548Copyright (C) 2021 Free Software Foundation, Inc.
1549This configure script is free software; the Free Software Foundation
1550gives unlimited permission to copy, distribute and modify it.
1551_ACEOF
1552  exit
1553fi
1554
1555## ------------------------ ##
1556## Autoconf initialization. ##
1557## ------------------------ ##
1558
1559# ac_fn_c_try_compile LINENO
1560# --------------------------
1561# Try to compile conftest.$ac_ext, and return whether this succeeded.
1562ac_fn_c_try_compile ()
1563{
1564  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565  rm -f conftest.$ac_objext conftest.beam
1566  if { { ac_try="$ac_compile"
1567case "(($ac_try" in
1568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569  *) ac_try_echo=$ac_try;;
1570esac
1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572printf "%s\n" "$ac_try_echo"; } >&5
1573  (eval "$ac_compile") 2>conftest.err
1574  ac_status=$?
1575  if test -s conftest.err; then
1576    grep -v '^ *+' conftest.err >conftest.er1
1577    cat conftest.er1 >&5
1578    mv -f conftest.er1 conftest.err
1579  fi
1580  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581  test $ac_status = 0; } && {
1582	 test -z "$ac_c_werror_flag" ||
1583	 test ! -s conftest.err
1584       } && test -s conftest.$ac_objext
1585then :
1586  ac_retval=0
1587else $as_nop
1588  printf "%s\n" "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591	ac_retval=1
1592fi
1593  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594  as_fn_set_status $ac_retval
1595
1596} # ac_fn_c_try_compile
1597
1598# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1599# ------------------------------------------------------------------
1600# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1601# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1602ac_fn_check_decl ()
1603{
1604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605  as_decl_name=`echo $2|sed 's/ *(.*//'`
1606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1607printf %s "checking whether $as_decl_name is declared... " >&6; }
1608if eval test \${$3+y}
1609then :
1610  printf %s "(cached) " >&6
1611else $as_nop
1612  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1613  eval ac_save_FLAGS=\$$6
1614  as_fn_append $6 " $5"
1615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616/* end confdefs.h.  */
1617$4
1618int
1619main (void)
1620{
1621#ifndef $as_decl_name
1622#ifdef __cplusplus
1623  (void) $as_decl_use;
1624#else
1625  (void) $as_decl_name;
1626#endif
1627#endif
1628
1629  ;
1630  return 0;
1631}
1632_ACEOF
1633if ac_fn_c_try_compile "$LINENO"
1634then :
1635  eval "$3=yes"
1636else $as_nop
1637  eval "$3=no"
1638fi
1639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1640  eval $6=\$ac_save_FLAGS
1641
1642fi
1643eval ac_res=\$$3
1644	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645printf "%s\n" "$ac_res" >&6; }
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647
1648} # ac_fn_check_decl
1649
1650# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1651# -------------------------------------------------------
1652# Tests whether HEADER exists and can be compiled using the include files in
1653# INCLUDES, setting the cache variable VAR accordingly.
1654ac_fn_c_check_header_compile ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658printf %s "checking for $2... " >&6; }
1659if eval test \${$3+y}
1660then :
1661  printf %s "(cached) " >&6
1662else $as_nop
1663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664/* end confdefs.h.  */
1665$4
1666#include <$2>
1667_ACEOF
1668if ac_fn_c_try_compile "$LINENO"
1669then :
1670  eval "$3=yes"
1671else $as_nop
1672  eval "$3=no"
1673fi
1674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1675fi
1676eval ac_res=\$$3
1677	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678printf "%s\n" "$ac_res" >&6; }
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681} # ac_fn_c_check_header_compile
1682
1683# ac_fn_c_try_link LINENO
1684# -----------------------
1685# Try to link conftest.$ac_ext, and return whether this succeeded.
1686ac_fn_c_try_link ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1690  if { { ac_try="$ac_link"
1691case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696printf "%s\n" "$ac_try_echo"; } >&5
1697  (eval "$ac_link") 2>conftest.err
1698  ac_status=$?
1699  if test -s conftest.err; then
1700    grep -v '^ *+' conftest.err >conftest.er1
1701    cat conftest.er1 >&5
1702    mv -f conftest.er1 conftest.err
1703  fi
1704  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; } && {
1706	 test -z "$ac_c_werror_flag" ||
1707	 test ! -s conftest.err
1708       } && test -s conftest$ac_exeext && {
1709	 test "$cross_compiling" = yes ||
1710	 test -x conftest$ac_exeext
1711       }
1712then :
1713  ac_retval=0
1714else $as_nop
1715  printf "%s\n" "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718	ac_retval=1
1719fi
1720  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1721  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1722  # interfere with the next link command; also delete a directory that is
1723  # left behind by Apple's compiler.  We do this before executing the actions.
1724  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726  as_fn_set_status $ac_retval
1727
1728} # ac_fn_c_try_link
1729ac_configure_args_raw=
1730for ac_arg
1731do
1732  case $ac_arg in
1733  *\'*)
1734    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1735  esac
1736  as_fn_append ac_configure_args_raw " '$ac_arg'"
1737done
1738
1739case $ac_configure_args_raw in
1740  *$as_nl*)
1741    ac_safe_unquote= ;;
1742  *)
1743    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1744    ac_unsafe_a="$ac_unsafe_z#~"
1745    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1746    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1747esac
1748
1749cat >config.log <<_ACEOF
1750This file contains any messages produced by compilers while
1751running configure, to aid debugging if configure makes a mistake.
1752
1753It was created by xeyes $as_me 1.3.0, which was
1754generated by GNU Autoconf 2.71.  Invocation command line was
1755
1756  $ $0$ac_configure_args_raw
1757
1758_ACEOF
1759exec 5>>config.log
1760{
1761cat <<_ASUNAME
1762## --------- ##
1763## Platform. ##
1764## --------- ##
1765
1766hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1767uname -m = `(uname -m) 2>/dev/null || echo unknown`
1768uname -r = `(uname -r) 2>/dev/null || echo unknown`
1769uname -s = `(uname -s) 2>/dev/null || echo unknown`
1770uname -v = `(uname -v) 2>/dev/null || echo unknown`
1771
1772/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1773/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1774
1775/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1776/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1777/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1778/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1779/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1780/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1781/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1782
1783_ASUNAME
1784
1785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786for as_dir in $PATH
1787do
1788  IFS=$as_save_IFS
1789  case $as_dir in #(((
1790    '') as_dir=./ ;;
1791    */) ;;
1792    *) as_dir=$as_dir/ ;;
1793  esac
1794    printf "%s\n" "PATH: $as_dir"
1795  done
1796IFS=$as_save_IFS
1797
1798} >&5
1799
1800cat >&5 <<_ACEOF
1801
1802
1803## ----------- ##
1804## Core tests. ##
1805## ----------- ##
1806
1807_ACEOF
1808
1809
1810# Keep a trace of the command line.
1811# Strip out --no-create and --no-recursion so they do not pile up.
1812# Strip out --silent because we don't want to record it for future runs.
1813# Also quote any args containing shell meta-characters.
1814# Make two passes to allow for proper duplicate-argument suppression.
1815ac_configure_args=
1816ac_configure_args0=
1817ac_configure_args1=
1818ac_must_keep_next=false
1819for ac_pass in 1 2
1820do
1821  for ac_arg
1822  do
1823    case $ac_arg in
1824    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1825    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1826    | -silent | --silent | --silen | --sile | --sil)
1827      continue ;;
1828    *\'*)
1829      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1830    esac
1831    case $ac_pass in
1832    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1833    2)
1834      as_fn_append ac_configure_args1 " '$ac_arg'"
1835      if test $ac_must_keep_next = true; then
1836	ac_must_keep_next=false # Got value, back to normal.
1837      else
1838	case $ac_arg in
1839	  *=* | --config-cache | -C | -disable-* | --disable-* \
1840	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1841	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1842	  | -with-* | --with-* | -without-* | --without-* | --x)
1843	    case "$ac_configure_args0 " in
1844	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1845	    esac
1846	    ;;
1847	  -* ) ac_must_keep_next=true ;;
1848	esac
1849      fi
1850      as_fn_append ac_configure_args " '$ac_arg'"
1851      ;;
1852    esac
1853  done
1854done
1855{ ac_configure_args0=; unset ac_configure_args0;}
1856{ ac_configure_args1=; unset ac_configure_args1;}
1857
1858# When interrupted or exit'd, cleanup temporary files, and complete
1859# config.log.  We remove comments because anyway the quotes in there
1860# would cause problems or look ugly.
1861# WARNING: Use '\'' to represent an apostrophe within the trap.
1862# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1863trap 'exit_status=$?
1864  # Sanitize IFS.
1865  IFS=" ""	$as_nl"
1866  # Save into config.log some information that might help in debugging.
1867  {
1868    echo
1869
1870    printf "%s\n" "## ---------------- ##
1871## Cache variables. ##
1872## ---------------- ##"
1873    echo
1874    # The following way of writing the cache mishandles newlines in values,
1875(
1876  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1877    eval ac_val=\$$ac_var
1878    case $ac_val in #(
1879    *${as_nl}*)
1880      case $ac_var in #(
1881      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1882printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1883      esac
1884      case $ac_var in #(
1885      _ | IFS | as_nl) ;; #(
1886      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1887      *) { eval $ac_var=; unset $ac_var;} ;;
1888      esac ;;
1889    esac
1890  done
1891  (set) 2>&1 |
1892    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1893    *${as_nl}ac_space=\ *)
1894      sed -n \
1895	"s/'\''/'\''\\\\'\'''\''/g;
1896	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1897      ;; #(
1898    *)
1899      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1900      ;;
1901    esac |
1902    sort
1903)
1904    echo
1905
1906    printf "%s\n" "## ----------------- ##
1907## Output variables. ##
1908## ----------------- ##"
1909    echo
1910    for ac_var in $ac_subst_vars
1911    do
1912      eval ac_val=\$$ac_var
1913      case $ac_val in
1914      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1915      esac
1916      printf "%s\n" "$ac_var='\''$ac_val'\''"
1917    done | sort
1918    echo
1919
1920    if test -n "$ac_subst_files"; then
1921      printf "%s\n" "## ------------------- ##
1922## File substitutions. ##
1923## ------------------- ##"
1924      echo
1925      for ac_var in $ac_subst_files
1926      do
1927	eval ac_val=\$$ac_var
1928	case $ac_val in
1929	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1930	esac
1931	printf "%s\n" "$ac_var='\''$ac_val'\''"
1932      done | sort
1933      echo
1934    fi
1935
1936    if test -s confdefs.h; then
1937      printf "%s\n" "## ----------- ##
1938## confdefs.h. ##
1939## ----------- ##"
1940      echo
1941      cat confdefs.h
1942      echo
1943    fi
1944    test "$ac_signal" != 0 &&
1945      printf "%s\n" "$as_me: caught signal $ac_signal"
1946    printf "%s\n" "$as_me: exit $exit_status"
1947  } >&5
1948  rm -f core *.core core.conftest.* &&
1949    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1950    exit $exit_status
1951' 0
1952for ac_signal in 1 2 13 15; do
1953  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1954done
1955ac_signal=0
1956
1957# confdefs.h avoids OS command line length limits that DEFS can exceed.
1958rm -f -r conftest* confdefs.h
1959
1960printf "%s\n" "/* confdefs.h */" > confdefs.h
1961
1962# Predefined preprocessor variables.
1963
1964printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1965
1966printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1967
1968printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1969
1970printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1971
1972printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1973
1974printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1975
1976
1977# Let the site file select an alternate cache file if it wants to.
1978# Prefer an explicitly selected file to automatically selected ones.
1979if test -n "$CONFIG_SITE"; then
1980  ac_site_files="$CONFIG_SITE"
1981elif test "x$prefix" != xNONE; then
1982  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1983else
1984  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1985fi
1986
1987for ac_site_file in $ac_site_files
1988do
1989  case $ac_site_file in #(
1990  */*) :
1991     ;; #(
1992  *) :
1993    ac_site_file=./$ac_site_file ;;
1994esac
1995  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1996    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1997printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1998    sed 's/^/| /' "$ac_site_file" >&5
1999    . "$ac_site_file" \
2000      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2001printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2002as_fn_error $? "failed to load site script $ac_site_file
2003See \`config.log' for more details" "$LINENO" 5; }
2004  fi
2005done
2006
2007if test -r "$cache_file"; then
2008  # Some versions of bash will fail to source /dev/null (special files
2009  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2010  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2011    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2012printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2013    case $cache_file in
2014      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2015      *)                      . "./$cache_file";;
2016    esac
2017  fi
2018else
2019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2020printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2021  >$cache_file
2022fi
2023
2024# Test code for whether the C compiler supports C89 (global declarations)
2025ac_c_conftest_c89_globals='
2026/* Does the compiler advertise C89 conformance?
2027   Do not test the value of __STDC__, because some compilers set it to 0
2028   while being otherwise adequately conformant. */
2029#if !defined __STDC__
2030# error "Compiler does not advertise C89 conformance"
2031#endif
2032
2033#include <stddef.h>
2034#include <stdarg.h>
2035struct stat;
2036/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2037struct buf { int x; };
2038struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2039static char *e (p, i)
2040     char **p;
2041     int i;
2042{
2043  return p[i];
2044}
2045static char *f (char * (*g) (char **, int), char **p, ...)
2046{
2047  char *s;
2048  va_list v;
2049  va_start (v,p);
2050  s = g (p, va_arg (v,int));
2051  va_end (v);
2052  return s;
2053}
2054
2055/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2056   function prototypes and stuff, but not \xHH hex character constants.
2057   These do not provoke an error unfortunately, instead are silently treated
2058   as an "x".  The following induces an error, until -std is added to get
2059   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2060   array size at least.  It is necessary to write \x00 == 0 to get something
2061   that is true only with -std.  */
2062int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2063
2064/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2065   inside strings and character constants.  */
2066#define FOO(x) '\''x'\''
2067int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2068
2069int test (int i, double x);
2070struct s1 {int (*f) (int a);};
2071struct s2 {int (*f) (double a);};
2072int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2073               int, int);'
2074
2075# Test code for whether the C compiler supports C89 (body of main).
2076ac_c_conftest_c89_main='
2077ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2078'
2079
2080# Test code for whether the C compiler supports C99 (global declarations)
2081ac_c_conftest_c99_globals='
2082// Does the compiler advertise C99 conformance?
2083#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2084# error "Compiler does not advertise C99 conformance"
2085#endif
2086
2087#include <stdbool.h>
2088extern int puts (const char *);
2089extern int printf (const char *, ...);
2090extern int dprintf (int, const char *, ...);
2091extern void *malloc (size_t);
2092
2093// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2094// dprintf is used instead of fprintf to avoid needing to declare
2095// FILE and stderr.
2096#define debug(...) dprintf (2, __VA_ARGS__)
2097#define showlist(...) puts (#__VA_ARGS__)
2098#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2099static void
2100test_varargs_macros (void)
2101{
2102  int x = 1234;
2103  int y = 5678;
2104  debug ("Flag");
2105  debug ("X = %d\n", x);
2106  showlist (The first, second, and third items.);
2107  report (x>y, "x is %d but y is %d", x, y);
2108}
2109
2110// Check long long types.
2111#define BIG64 18446744073709551615ull
2112#define BIG32 4294967295ul
2113#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2114#if !BIG_OK
2115  #error "your preprocessor is broken"
2116#endif
2117#if BIG_OK
2118#else
2119  #error "your preprocessor is broken"
2120#endif
2121static long long int bignum = -9223372036854775807LL;
2122static unsigned long long int ubignum = BIG64;
2123
2124struct incomplete_array
2125{
2126  int datasize;
2127  double data[];
2128};
2129
2130struct named_init {
2131  int number;
2132  const wchar_t *name;
2133  double average;
2134};
2135
2136typedef const char *ccp;
2137
2138static inline int
2139test_restrict (ccp restrict text)
2140{
2141  // See if C++-style comments work.
2142  // Iterate through items via the restricted pointer.
2143  // Also check for declarations in for loops.
2144  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2145    continue;
2146  return 0;
2147}
2148
2149// Check varargs and va_copy.
2150static bool
2151test_varargs (const char *format, ...)
2152{
2153  va_list args;
2154  va_start (args, format);
2155  va_list args_copy;
2156  va_copy (args_copy, args);
2157
2158  const char *str = "";
2159  int number = 0;
2160  float fnumber = 0;
2161
2162  while (*format)
2163    {
2164      switch (*format++)
2165	{
2166	case '\''s'\'': // string
2167	  str = va_arg (args_copy, const char *);
2168	  break;
2169	case '\''d'\'': // int
2170	  number = va_arg (args_copy, int);
2171	  break;
2172	case '\''f'\'': // float
2173	  fnumber = va_arg (args_copy, double);
2174	  break;
2175	default:
2176	  break;
2177	}
2178    }
2179  va_end (args_copy);
2180  va_end (args);
2181
2182  return *str && number && fnumber;
2183}
2184'
2185
2186# Test code for whether the C compiler supports C99 (body of main).
2187ac_c_conftest_c99_main='
2188  // Check bool.
2189  _Bool success = false;
2190  success |= (argc != 0);
2191
2192  // Check restrict.
2193  if (test_restrict ("String literal") == 0)
2194    success = true;
2195  char *restrict newvar = "Another string";
2196
2197  // Check varargs.
2198  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2199  test_varargs_macros ();
2200
2201  // Check flexible array members.
2202  struct incomplete_array *ia =
2203    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2204  ia->datasize = 10;
2205  for (int i = 0; i < ia->datasize; ++i)
2206    ia->data[i] = i * 1.234;
2207
2208  // Check named initializers.
2209  struct named_init ni = {
2210    .number = 34,
2211    .name = L"Test wide string",
2212    .average = 543.34343,
2213  };
2214
2215  ni.number = 58;
2216
2217  int dynamic_array[ni.number];
2218  dynamic_array[0] = argv[0][0];
2219  dynamic_array[ni.number - 1] = 543;
2220
2221  // work around unused variable warnings
2222  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2223	 || dynamic_array[ni.number - 1] != 543);
2224'
2225
2226# Test code for whether the C compiler supports C11 (global declarations)
2227ac_c_conftest_c11_globals='
2228// Does the compiler advertise C11 conformance?
2229#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2230# error "Compiler does not advertise C11 conformance"
2231#endif
2232
2233// Check _Alignas.
2234char _Alignas (double) aligned_as_double;
2235char _Alignas (0) no_special_alignment;
2236extern char aligned_as_int;
2237char _Alignas (0) _Alignas (int) aligned_as_int;
2238
2239// Check _Alignof.
2240enum
2241{
2242  int_alignment = _Alignof (int),
2243  int_array_alignment = _Alignof (int[100]),
2244  char_alignment = _Alignof (char)
2245};
2246_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2247
2248// Check _Noreturn.
2249int _Noreturn does_not_return (void) { for (;;) continue; }
2250
2251// Check _Static_assert.
2252struct test_static_assert
2253{
2254  int x;
2255  _Static_assert (sizeof (int) <= sizeof (long int),
2256                  "_Static_assert does not work in struct");
2257  long int y;
2258};
2259
2260// Check UTF-8 literals.
2261#define u8 syntax error!
2262char const utf8_literal[] = u8"happens to be ASCII" "another string";
2263
2264// Check duplicate typedefs.
2265typedef long *long_ptr;
2266typedef long int *long_ptr;
2267typedef long_ptr long_ptr;
2268
2269// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2270struct anonymous
2271{
2272  union {
2273    struct { int i; int j; };
2274    struct { int k; long int l; } w;
2275  };
2276  int m;
2277} v1;
2278'
2279
2280# Test code for whether the C compiler supports C11 (body of main).
2281ac_c_conftest_c11_main='
2282  _Static_assert ((offsetof (struct anonymous, i)
2283		   == offsetof (struct anonymous, w.k)),
2284		  "Anonymous union alignment botch");
2285  v1.i = 2;
2286  v1.w.k = 5;
2287  ok |= v1.i != 5;
2288'
2289
2290# Test code for whether the C compiler supports C11 (complete).
2291ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2292${ac_c_conftest_c99_globals}
2293${ac_c_conftest_c11_globals}
2294
2295int
2296main (int argc, char **argv)
2297{
2298  int ok = 0;
2299  ${ac_c_conftest_c89_main}
2300  ${ac_c_conftest_c99_main}
2301  ${ac_c_conftest_c11_main}
2302  return ok;
2303}
2304"
2305
2306# Test code for whether the C compiler supports C99 (complete).
2307ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2308${ac_c_conftest_c99_globals}
2309
2310int
2311main (int argc, char **argv)
2312{
2313  int ok = 0;
2314  ${ac_c_conftest_c89_main}
2315  ${ac_c_conftest_c99_main}
2316  return ok;
2317}
2318"
2319
2320# Test code for whether the C compiler supports C89 (complete).
2321ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2322
2323int
2324main (int argc, char **argv)
2325{
2326  int ok = 0;
2327  ${ac_c_conftest_c89_main}
2328  return ok;
2329}
2330"
2331
2332as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2333as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2334as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2335as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2336as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2337as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2338as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2339as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2340as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2341
2342# Auxiliary files required by this configure script.
2343ac_aux_files="config.guess config.sub compile missing install-sh"
2344
2345# Locations in which to look for auxiliary files.
2346ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2347
2348# Search for a directory containing all of the required auxiliary files,
2349# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2350# If we don't find one directory that contains all the files we need,
2351# we report the set of missing files from the *first* directory in
2352# $ac_aux_dir_candidates and give up.
2353ac_missing_aux_files=""
2354ac_first_candidate=:
2355printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357as_found=false
2358for as_dir in $ac_aux_dir_candidates
2359do
2360  IFS=$as_save_IFS
2361  case $as_dir in #(((
2362    '') as_dir=./ ;;
2363    */) ;;
2364    *) as_dir=$as_dir/ ;;
2365  esac
2366  as_found=:
2367
2368  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2369  ac_aux_dir_found=yes
2370  ac_install_sh=
2371  for ac_aux in $ac_aux_files
2372  do
2373    # As a special case, if "install-sh" is required, that requirement
2374    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2375    # and $ac_install_sh is set appropriately for whichever one is found.
2376    if test x"$ac_aux" = x"install-sh"
2377    then
2378      if test -f "${as_dir}install-sh"; then
2379        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2380        ac_install_sh="${as_dir}install-sh -c"
2381      elif test -f "${as_dir}install.sh"; then
2382        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2383        ac_install_sh="${as_dir}install.sh -c"
2384      elif test -f "${as_dir}shtool"; then
2385        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2386        ac_install_sh="${as_dir}shtool install -c"
2387      else
2388        ac_aux_dir_found=no
2389        if $ac_first_candidate; then
2390          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2391        else
2392          break
2393        fi
2394      fi
2395    else
2396      if test -f "${as_dir}${ac_aux}"; then
2397        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2398      else
2399        ac_aux_dir_found=no
2400        if $ac_first_candidate; then
2401          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2402        else
2403          break
2404        fi
2405      fi
2406    fi
2407  done
2408  if test "$ac_aux_dir_found" = yes; then
2409    ac_aux_dir="$as_dir"
2410    break
2411  fi
2412  ac_first_candidate=false
2413
2414  as_found=false
2415done
2416IFS=$as_save_IFS
2417if $as_found
2418then :
2419
2420else $as_nop
2421  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2422fi
2423
2424
2425# These three variables are undocumented and unsupported,
2426# and are intended to be withdrawn in a future Autoconf release.
2427# They can cause serious problems if a builder's source tree is in a directory
2428# whose full name contains unusual characters.
2429if test -f "${ac_aux_dir}config.guess"; then
2430  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2431fi
2432if test -f "${ac_aux_dir}config.sub"; then
2433  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2434fi
2435if test -f "$ac_aux_dir/configure"; then
2436  ac_configure="$SHELL ${ac_aux_dir}configure"
2437fi
2438
2439# Check that the precious variables saved in the cache have kept the same
2440# value.
2441ac_cache_corrupted=false
2442for ac_var in $ac_precious_vars; do
2443  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2444  eval ac_new_set=\$ac_env_${ac_var}_set
2445  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2446  eval ac_new_val=\$ac_env_${ac_var}_value
2447  case $ac_old_set,$ac_new_set in
2448    set,)
2449      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2450printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2451      ac_cache_corrupted=: ;;
2452    ,set)
2453      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2454printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2455      ac_cache_corrupted=: ;;
2456    ,);;
2457    *)
2458      if test "x$ac_old_val" != "x$ac_new_val"; then
2459	# differences in whitespace do not lead to failure.
2460	ac_old_val_w=`echo x $ac_old_val`
2461	ac_new_val_w=`echo x $ac_new_val`
2462	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2463	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2464printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2465	  ac_cache_corrupted=:
2466	else
2467	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2468printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2469	  eval $ac_var=\$ac_old_val
2470	fi
2471	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2472printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2474printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2475      fi;;
2476  esac
2477  # Pass precious variables to config.status.
2478  if test "$ac_new_set" = set; then
2479    case $ac_new_val in
2480    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2481    *) ac_arg=$ac_var=$ac_new_val ;;
2482    esac
2483    case " $ac_configure_args " in
2484      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2485      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2486    esac
2487  fi
2488done
2489if $ac_cache_corrupted; then
2490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2491printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2493printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2494  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2495	    and start over" "$LINENO" 5
2496fi
2497## -------------------- ##
2498## Main body of script. ##
2499## -------------------- ##
2500
2501ac_ext=c
2502ac_cpp='$CPP $CPPFLAGS'
2503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506
2507
2508
2509ac_config_headers="$ac_config_headers config.h"
2510
2511
2512# Initialize Automake
2513am__api_version='1.16'
2514
2515
2516
2517  # Find a good install program.  We prefer a C program (faster),
2518# so one script is as good as another.  But avoid the broken or
2519# incompatible versions:
2520# SysV /etc/install, /usr/sbin/install
2521# SunOS /usr/etc/install
2522# IRIX /sbin/install
2523# AIX /bin/install
2524# AmigaOS /C/install, which installs bootblocks on floppy discs
2525# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2526# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2527# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2528# OS/2's system install, which has a completely different semantic
2529# ./install, which can be erroneously created by make from ./install.sh.
2530# Reject install programs that cannot install multiple files.
2531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2532printf %s "checking for a BSD-compatible install... " >&6; }
2533if test -z "$INSTALL"; then
2534if test ${ac_cv_path_install+y}
2535then :
2536  printf %s "(cached) " >&6
2537else $as_nop
2538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541  IFS=$as_save_IFS
2542  case $as_dir in #(((
2543    '') as_dir=./ ;;
2544    */) ;;
2545    *) as_dir=$as_dir/ ;;
2546  esac
2547    # Account for fact that we put trailing slashes in our PATH walk.
2548case $as_dir in #((
2549  ./ | /[cC]/* | \
2550  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2551  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2552  /usr/ucb/* ) ;;
2553  *)
2554    # OSF1 and SCO ODT 3.0 have their own names for install.
2555    # Don't use installbsd from OSF since it installs stuff as root
2556    # by default.
2557    for ac_prog in ginstall scoinst install; do
2558      for ac_exec_ext in '' $ac_executable_extensions; do
2559	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2560	  if test $ac_prog = install &&
2561	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562	    # AIX install.  It has an incompatible calling convention.
2563	    :
2564	  elif test $ac_prog = install &&
2565	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566	    # program-specific install script used by HP pwplus--don't use.
2567	    :
2568	  else
2569	    rm -rf conftest.one conftest.two conftest.dir
2570	    echo one > conftest.one
2571	    echo two > conftest.two
2572	    mkdir conftest.dir
2573	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2574	      test -s conftest.one && test -s conftest.two &&
2575	      test -s conftest.dir/conftest.one &&
2576	      test -s conftest.dir/conftest.two
2577	    then
2578	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2579	      break 3
2580	    fi
2581	  fi
2582	fi
2583      done
2584    done
2585    ;;
2586esac
2587
2588  done
2589IFS=$as_save_IFS
2590
2591rm -rf conftest.one conftest.two conftest.dir
2592
2593fi
2594  if test ${ac_cv_path_install+y}; then
2595    INSTALL=$ac_cv_path_install
2596  else
2597    # As a last resort, use the slow shell script.  Don't cache a
2598    # value for INSTALL within a source directory, because that will
2599    # break other packages using the cache if that directory is
2600    # removed, or if the value is a relative name.
2601    INSTALL=$ac_install_sh
2602  fi
2603fi
2604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2605printf "%s\n" "$INSTALL" >&6; }
2606
2607# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2608# It thinks the first close brace ends the variable substitution.
2609test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2610
2611test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2612
2613test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2614
2615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2616printf %s "checking whether build environment is sane... " >&6; }
2617# Reject unsafe characters in $srcdir or the absolute working directory
2618# name.  Accept space and tab only in the latter.
2619am_lf='
2620'
2621case `pwd` in
2622  *[\\\"\#\$\&\'\`$am_lf]*)
2623    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2624esac
2625case $srcdir in
2626  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2627    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2628esac
2629
2630# Do 'set' in a subshell so we don't clobber the current shell's
2631# arguments.  Must try -L first in case configure is actually a
2632# symlink; some systems play weird games with the mod time of symlinks
2633# (eg FreeBSD returns the mod time of the symlink's containing
2634# directory).
2635if (
2636   am_has_slept=no
2637   for am_try in 1 2; do
2638     echo "timestamp, slept: $am_has_slept" > conftest.file
2639     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2640     if test "$*" = "X"; then
2641	# -L didn't work.
2642	set X `ls -t "$srcdir/configure" conftest.file`
2643     fi
2644     if test "$*" != "X $srcdir/configure conftest.file" \
2645	&& test "$*" != "X conftest.file $srcdir/configure"; then
2646
2647	# If neither matched, then we have a broken ls.  This can happen
2648	# if, for instance, CONFIG_SHELL is bash and it inherits a
2649	# broken ls alias from the environment.  This has actually
2650	# happened.  Such a system could not be considered "sane".
2651	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2652  alias in your environment" "$LINENO" 5
2653     fi
2654     if test "$2" = conftest.file || test $am_try -eq 2; then
2655       break
2656     fi
2657     # Just in case.
2658     sleep 1
2659     am_has_slept=yes
2660   done
2661   test "$2" = conftest.file
2662   )
2663then
2664   # Ok.
2665   :
2666else
2667   as_fn_error $? "newly created file is older than distributed files!
2668Check your system clock" "$LINENO" 5
2669fi
2670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671printf "%s\n" "yes" >&6; }
2672# If we didn't sleep, we still need to ensure time stamps of config.status and
2673# generated files are strictly newer.
2674am_sleep_pid=
2675if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2676  ( sleep 1 ) &
2677  am_sleep_pid=$!
2678fi
2679
2680rm -f conftest.file
2681
2682test "$program_prefix" != NONE &&
2683  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2684# Use a double $ so make ignores it.
2685test "$program_suffix" != NONE &&
2686  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2687# Double any \ or $.
2688# By default was `s,x,x', remove it if useless.
2689ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2690program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2691
2692
2693# Expand $ac_aux_dir to an absolute path.
2694am_aux_dir=`cd "$ac_aux_dir" && pwd`
2695
2696
2697  if test x"${MISSING+set}" != xset; then
2698  MISSING="\${SHELL} '$am_aux_dir/missing'"
2699fi
2700# Use eval to expand $SHELL
2701if eval "$MISSING --is-lightweight"; then
2702  am_missing_run="$MISSING "
2703else
2704  am_missing_run=
2705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2706printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2707fi
2708
2709if test x"${install_sh+set}" != xset; then
2710  case $am_aux_dir in
2711  *\ * | *\	*)
2712    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2713  *)
2714    install_sh="\${SHELL} $am_aux_dir/install-sh"
2715  esac
2716fi
2717
2718# Installed binaries are usually stripped using 'strip' when the user
2719# run "make install-strip".  However 'strip' might not be the right
2720# tool to use in cross-compilation environments, therefore Automake
2721# will honor the 'STRIP' environment variable to overrule this program.
2722if test "$cross_compiling" != no; then
2723  if test -n "$ac_tool_prefix"; then
2724  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2725set dummy ${ac_tool_prefix}strip; ac_word=$2
2726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727printf %s "checking for $ac_word... " >&6; }
2728if test ${ac_cv_prog_STRIP+y}
2729then :
2730  printf %s "(cached) " >&6
2731else $as_nop
2732  if test -n "$STRIP"; then
2733  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738  IFS=$as_save_IFS
2739  case $as_dir in #(((
2740    '') as_dir=./ ;;
2741    */) ;;
2742    *) as_dir=$as_dir/ ;;
2743  esac
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2746    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751  done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756STRIP=$ac_cv_prog_STRIP
2757if test -n "$STRIP"; then
2758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2759printf "%s\n" "$STRIP" >&6; }
2760else
2761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762printf "%s\n" "no" >&6; }
2763fi
2764
2765
2766fi
2767if test -z "$ac_cv_prog_STRIP"; then
2768  ac_ct_STRIP=$STRIP
2769  # Extract the first word of "strip", so it can be a program name with args.
2770set dummy strip; ac_word=$2
2771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772printf %s "checking for $ac_word... " >&6; }
2773if test ${ac_cv_prog_ac_ct_STRIP+y}
2774then :
2775  printf %s "(cached) " >&6
2776else $as_nop
2777  if test -n "$ac_ct_STRIP"; then
2778  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  case $as_dir in #(((
2785    '') as_dir=./ ;;
2786    */) ;;
2787    *) as_dir=$as_dir/ ;;
2788  esac
2789    for ac_exec_ext in '' $ac_executable_extensions; do
2790  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2791    ac_cv_prog_ac_ct_STRIP="strip"
2792    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2793    break 2
2794  fi
2795done
2796  done
2797IFS=$as_save_IFS
2798
2799fi
2800fi
2801ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2802if test -n "$ac_ct_STRIP"; then
2803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2804printf "%s\n" "$ac_ct_STRIP" >&6; }
2805else
2806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807printf "%s\n" "no" >&6; }
2808fi
2809
2810  if test "x$ac_ct_STRIP" = x; then
2811    STRIP=":"
2812  else
2813    case $cross_compiling:$ac_tool_warned in
2814yes:)
2815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2816printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2817ac_tool_warned=yes ;;
2818esac
2819    STRIP=$ac_ct_STRIP
2820  fi
2821else
2822  STRIP="$ac_cv_prog_STRIP"
2823fi
2824
2825fi
2826INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2827
2828
2829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2830printf %s "checking for a race-free mkdir -p... " >&6; }
2831if test -z "$MKDIR_P"; then
2832  if test ${ac_cv_path_mkdir+y}
2833then :
2834  printf %s "(cached) " >&6
2835else $as_nop
2836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2838do
2839  IFS=$as_save_IFS
2840  case $as_dir in #(((
2841    '') as_dir=./ ;;
2842    */) ;;
2843    *) as_dir=$as_dir/ ;;
2844  esac
2845    for ac_prog in mkdir gmkdir; do
2846	 for ac_exec_ext in '' $ac_executable_extensions; do
2847	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2848	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2849	     'mkdir ('*'coreutils) '* | \
2850	     'BusyBox '* | \
2851	     'mkdir (fileutils) '4.1*)
2852	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2853	       break 3;;
2854	   esac
2855	 done
2856       done
2857  done
2858IFS=$as_save_IFS
2859
2860fi
2861
2862  test -d ./--version && rmdir ./--version
2863  if test ${ac_cv_path_mkdir+y}; then
2864    MKDIR_P="$ac_cv_path_mkdir -p"
2865  else
2866    # As a last resort, use the slow shell script.  Don't cache a
2867    # value for MKDIR_P within a source directory, because that will
2868    # break other packages using the cache if that directory is
2869    # removed, or if the value is a relative name.
2870    MKDIR_P="$ac_install_sh -d"
2871  fi
2872fi
2873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2874printf "%s\n" "$MKDIR_P" >&6; }
2875
2876for ac_prog in gawk mawk nawk awk
2877do
2878  # Extract the first word of "$ac_prog", so it can be a program name with args.
2879set dummy $ac_prog; ac_word=$2
2880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881printf %s "checking for $ac_word... " >&6; }
2882if test ${ac_cv_prog_AWK+y}
2883then :
2884  printf %s "(cached) " >&6
2885else $as_nop
2886  if test -n "$AWK"; then
2887  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  case $as_dir in #(((
2894    '') as_dir=./ ;;
2895    */) ;;
2896    *) as_dir=$as_dir/ ;;
2897  esac
2898    for ac_exec_ext in '' $ac_executable_extensions; do
2899  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2900    ac_cv_prog_AWK="$ac_prog"
2901    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2902    break 2
2903  fi
2904done
2905  done
2906IFS=$as_save_IFS
2907
2908fi
2909fi
2910AWK=$ac_cv_prog_AWK
2911if test -n "$AWK"; then
2912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2913printf "%s\n" "$AWK" >&6; }
2914else
2915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916printf "%s\n" "no" >&6; }
2917fi
2918
2919
2920  test -n "$AWK" && break
2921done
2922
2923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2924printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2925set x ${MAKE-make}
2926ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2927if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2928then :
2929  printf %s "(cached) " >&6
2930else $as_nop
2931  cat >conftest.make <<\_ACEOF
2932SHELL = /bin/sh
2933all:
2934	@echo '@@@%%%=$(MAKE)=@@@%%%'
2935_ACEOF
2936# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2937case `${MAKE-make} -f conftest.make 2>/dev/null` in
2938  *@@@%%%=?*=@@@%%%*)
2939    eval ac_cv_prog_make_${ac_make}_set=yes;;
2940  *)
2941    eval ac_cv_prog_make_${ac_make}_set=no;;
2942esac
2943rm -f conftest.make
2944fi
2945if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947printf "%s\n" "yes" >&6; }
2948  SET_MAKE=
2949else
2950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951printf "%s\n" "no" >&6; }
2952  SET_MAKE="MAKE=${MAKE-make}"
2953fi
2954
2955rm -rf .tst 2>/dev/null
2956mkdir .tst 2>/dev/null
2957if test -d .tst; then
2958  am__leading_dot=.
2959else
2960  am__leading_dot=_
2961fi
2962rmdir .tst 2>/dev/null
2963
2964# Check whether --enable-silent-rules was given.
2965if test ${enable_silent_rules+y}
2966then :
2967  enableval=$enable_silent_rules;
2968fi
2969
2970case $enable_silent_rules in # (((
2971  yes) AM_DEFAULT_VERBOSITY=0;;
2972   no) AM_DEFAULT_VERBOSITY=1;;
2973    *) AM_DEFAULT_VERBOSITY=1;;
2974esac
2975am_make=${MAKE-make}
2976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2977printf %s "checking whether $am_make supports nested variables... " >&6; }
2978if test ${am_cv_make_support_nested_variables+y}
2979then :
2980  printf %s "(cached) " >&6
2981else $as_nop
2982  if printf "%s\n" 'TRUE=$(BAR$(V))
2983BAR0=false
2984BAR1=true
2985V=1
2986am__doit:
2987	@$(TRUE)
2988.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2989  am_cv_make_support_nested_variables=yes
2990else
2991  am_cv_make_support_nested_variables=no
2992fi
2993fi
2994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2995printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2996if test $am_cv_make_support_nested_variables = yes; then
2997    AM_V='$(V)'
2998  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2999else
3000  AM_V=$AM_DEFAULT_VERBOSITY
3001  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3002fi
3003AM_BACKSLASH='\'
3004
3005if test "`cd $srcdir && pwd`" != "`pwd`"; then
3006  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3007  # is not polluted with repeated "-I."
3008  am__isrc=' -I$(srcdir)'
3009  # test to see if srcdir already configured
3010  if test -f $srcdir/config.status; then
3011    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3012  fi
3013fi
3014
3015# test whether we have cygpath
3016if test -z "$CYGPATH_W"; then
3017  if (cygpath --version) >/dev/null 2>/dev/null; then
3018    CYGPATH_W='cygpath -w'
3019  else
3020    CYGPATH_W=echo
3021  fi
3022fi
3023
3024
3025# Define the identity of the package.
3026 PACKAGE='xeyes'
3027 VERSION='1.3.0'
3028
3029
3030printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3031
3032
3033printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3034
3035# Some tools Automake needs.
3036
3037ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3038
3039
3040AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3041
3042
3043AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3044
3045
3046AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3047
3048
3049MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3050
3051# For better backward compatibility.  To be removed once Automake 1.9.x
3052# dies out for good.  For more background, see:
3053# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3054# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3055mkdir_p='$(MKDIR_P)'
3056
3057# We need awk for the "check" target (and possibly the TAP driver).  The
3058# system "awk" is bad on some platforms.
3059# Always define AMTAR for backward compatibility.  Yes, it's still used
3060# in the wild :-(  We should find a proper way to deprecate it ...
3061AMTAR='$${TAR-tar}'
3062
3063
3064# We'll loop over all known methods to create a tar archive until one works.
3065_am_tools='gnutar  pax cpio none'
3066
3067am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3068
3069
3070
3071
3072
3073# Variables for tags utilities; see am/tags.am
3074if test -z "$CTAGS"; then
3075  CTAGS=ctags
3076fi
3077
3078if test -z "$ETAGS"; then
3079  ETAGS=etags
3080fi
3081
3082if test -z "$CSCOPE"; then
3083  CSCOPE=cscope
3084fi
3085
3086
3087
3088# POSIX will say in a future version that running "rm -f" with no argument
3089# is OK; and we want to be able to make that assumption in our Makefile
3090# recipes.  So use an aggressive probe to check that the usage we want is
3091# actually supported "in the wild" to an acceptable degree.
3092# See automake bug#10828.
3093# To make any issue more visible, cause the running configure to be aborted
3094# by default if the 'rm' program in use doesn't match our expectations; the
3095# user can still override this though.
3096if rm -f && rm -fr && rm -rf; then : OK; else
3097  cat >&2 <<'END'
3098Oops!
3099
3100Your 'rm' program seems unable to run without file operands specified
3101on the command line, even when the '-f' option is present.  This is contrary
3102to the behaviour of most rm programs out there, and not conforming with
3103the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3104
3105Please tell bug-automake@gnu.org about your system, including the value
3106of your $PATH and any error possibly output before this message.  This
3107can help us improve future automake versions.
3108
3109END
3110  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3111    echo 'Configuration will proceed anyway, since you have set the' >&2
3112    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3113    echo >&2
3114  else
3115    cat >&2 <<'END'
3116Aborting the configuration process, to ensure you take notice of the issue.
3117
3118You can download and install GNU coreutils to get an 'rm' implementation
3119that behaves properly: <https://www.gnu.org/software/coreutils/>.
3120
3121If you want to complete the configuration process using your problematic
3122'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3123to "yes", and re-run configure.
3124
3125END
3126    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3127  fi
3128fi
3129
3130
3131# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152DEPDIR="${am__leading_dot}deps"
3153
3154ac_config_commands="$ac_config_commands depfiles"
3155
3156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3157printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3158cat > confinc.mk << 'END'
3159am__doit:
3160	@echo this is the am__doit target >confinc.out
3161.PHONY: am__doit
3162END
3163am__include="#"
3164am__quote=
3165# BSD make does it like this.
3166echo '.include "confinc.mk" # ignored' > confmf.BSD
3167# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3168echo 'include confinc.mk # ignored' > confmf.GNU
3169_am_result=no
3170for s in GNU BSD; do
3171  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3172   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }
3176  case $?:`cat confinc.out 2>/dev/null` in #(
3177  '0:this is the am__doit target') :
3178    case $s in #(
3179  BSD) :
3180    am__include='.include' am__quote='"' ;; #(
3181  *) :
3182    am__include='include' am__quote='' ;;
3183esac ;; #(
3184  *) :
3185     ;;
3186esac
3187  if test "$am__include" != "#"; then
3188    _am_result="yes ($s style)"
3189    break
3190  fi
3191done
3192rm -f confinc.* confmf.*
3193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3194printf "%s\n" "${_am_result}" >&6; }
3195
3196# Check whether --enable-dependency-tracking was given.
3197if test ${enable_dependency_tracking+y}
3198then :
3199  enableval=$enable_dependency_tracking;
3200fi
3201
3202if test "x$enable_dependency_tracking" != xno; then
3203  am_depcomp="$ac_aux_dir/depcomp"
3204  AMDEPBACKSLASH='\'
3205  am__nodep='_no'
3206fi
3207 if test "x$enable_dependency_tracking" != xno; then
3208  AMDEP_TRUE=
3209  AMDEP_FALSE='#'
3210else
3211  AMDEP_TRUE='#'
3212  AMDEP_FALSE=
3213fi
3214
3215
3216ac_ext=c
3217ac_cpp='$CPP $CPPFLAGS'
3218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221if test -n "$ac_tool_prefix"; then
3222  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3223set dummy ${ac_tool_prefix}gcc; ac_word=$2
3224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225printf %s "checking for $ac_word... " >&6; }
3226if test ${ac_cv_prog_CC+y}
3227then :
3228  printf %s "(cached) " >&6
3229else $as_nop
3230  if test -n "$CC"; then
3231  ac_cv_prog_CC="$CC" # Let the user override the test.
3232else
3233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234for as_dir in $PATH
3235do
3236  IFS=$as_save_IFS
3237  case $as_dir in #(((
3238    '') as_dir=./ ;;
3239    */) ;;
3240    *) as_dir=$as_dir/ ;;
3241  esac
3242    for ac_exec_ext in '' $ac_executable_extensions; do
3243  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3244    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3245    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3246    break 2
3247  fi
3248done
3249  done
3250IFS=$as_save_IFS
3251
3252fi
3253fi
3254CC=$ac_cv_prog_CC
3255if test -n "$CC"; then
3256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257printf "%s\n" "$CC" >&6; }
3258else
3259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260printf "%s\n" "no" >&6; }
3261fi
3262
3263
3264fi
3265if test -z "$ac_cv_prog_CC"; then
3266  ac_ct_CC=$CC
3267  # Extract the first word of "gcc", so it can be a program name with args.
3268set dummy gcc; ac_word=$2
3269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270printf %s "checking for $ac_word... " >&6; }
3271if test ${ac_cv_prog_ac_ct_CC+y}
3272then :
3273  printf %s "(cached) " >&6
3274else $as_nop
3275  if test -n "$ac_ct_CC"; then
3276  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277else
3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279for as_dir in $PATH
3280do
3281  IFS=$as_save_IFS
3282  case $as_dir in #(((
3283    '') as_dir=./ ;;
3284    */) ;;
3285    *) as_dir=$as_dir/ ;;
3286  esac
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3289    ac_cv_prog_ac_ct_CC="gcc"
3290    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294  done
3295IFS=$as_save_IFS
3296
3297fi
3298fi
3299ac_ct_CC=$ac_cv_prog_ac_ct_CC
3300if test -n "$ac_ct_CC"; then
3301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3302printf "%s\n" "$ac_ct_CC" >&6; }
3303else
3304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305printf "%s\n" "no" >&6; }
3306fi
3307
3308  if test "x$ac_ct_CC" = x; then
3309    CC=""
3310  else
3311    case $cross_compiling:$ac_tool_warned in
3312yes:)
3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3314printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3315ac_tool_warned=yes ;;
3316esac
3317    CC=$ac_ct_CC
3318  fi
3319else
3320  CC="$ac_cv_prog_CC"
3321fi
3322
3323if test -z "$CC"; then
3324          if test -n "$ac_tool_prefix"; then
3325    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3326set dummy ${ac_tool_prefix}cc; ac_word=$2
3327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328printf %s "checking for $ac_word... " >&6; }
3329if test ${ac_cv_prog_CC+y}
3330then :
3331  printf %s "(cached) " >&6
3332else $as_nop
3333  if test -n "$CC"; then
3334  ac_cv_prog_CC="$CC" # Let the user override the test.
3335else
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339  IFS=$as_save_IFS
3340  case $as_dir in #(((
3341    '') as_dir=./ ;;
3342    */) ;;
3343    *) as_dir=$as_dir/ ;;
3344  esac
3345    for ac_exec_ext in '' $ac_executable_extensions; do
3346  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3347    ac_cv_prog_CC="${ac_tool_prefix}cc"
3348    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3349    break 2
3350  fi
3351done
3352  done
3353IFS=$as_save_IFS
3354
3355fi
3356fi
3357CC=$ac_cv_prog_CC
3358if test -n "$CC"; then
3359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360printf "%s\n" "$CC" >&6; }
3361else
3362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363printf "%s\n" "no" >&6; }
3364fi
3365
3366
3367  fi
3368fi
3369if test -z "$CC"; then
3370  # Extract the first word of "cc", so it can be a program name with args.
3371set dummy cc; ac_word=$2
3372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373printf %s "checking for $ac_word... " >&6; }
3374if test ${ac_cv_prog_CC+y}
3375then :
3376  printf %s "(cached) " >&6
3377else $as_nop
3378  if test -n "$CC"; then
3379  ac_cv_prog_CC="$CC" # Let the user override the test.
3380else
3381  ac_prog_rejected=no
3382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383for as_dir in $PATH
3384do
3385  IFS=$as_save_IFS
3386  case $as_dir in #(((
3387    '') as_dir=./ ;;
3388    */) ;;
3389    *) as_dir=$as_dir/ ;;
3390  esac
3391    for ac_exec_ext in '' $ac_executable_extensions; do
3392  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3393    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3394       ac_prog_rejected=yes
3395       continue
3396     fi
3397    ac_cv_prog_CC="cc"
3398    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3399    break 2
3400  fi
3401done
3402  done
3403IFS=$as_save_IFS
3404
3405if test $ac_prog_rejected = yes; then
3406  # We found a bogon in the path, so make sure we never use it.
3407  set dummy $ac_cv_prog_CC
3408  shift
3409  if test $# != 0; then
3410    # We chose a different compiler from the bogus one.
3411    # However, it has the same basename, so the bogon will be chosen
3412    # first if we set CC to just the basename; use the full file name.
3413    shift
3414    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3415  fi
3416fi
3417fi
3418fi
3419CC=$ac_cv_prog_CC
3420if test -n "$CC"; then
3421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422printf "%s\n" "$CC" >&6; }
3423else
3424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425printf "%s\n" "no" >&6; }
3426fi
3427
3428
3429fi
3430if test -z "$CC"; then
3431  if test -n "$ac_tool_prefix"; then
3432  for ac_prog in cl.exe
3433  do
3434    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3435set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437printf %s "checking for $ac_word... " >&6; }
3438if test ${ac_cv_prog_CC+y}
3439then :
3440  printf %s "(cached) " >&6
3441else $as_nop
3442  if test -n "$CC"; then
3443  ac_cv_prog_CC="$CC" # Let the user override the test.
3444else
3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448  IFS=$as_save_IFS
3449  case $as_dir in #(((
3450    '') as_dir=./ ;;
3451    */) ;;
3452    *) as_dir=$as_dir/ ;;
3453  esac
3454    for ac_exec_ext in '' $ac_executable_extensions; do
3455  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3456    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3457    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3458    break 2
3459  fi
3460done
3461  done
3462IFS=$as_save_IFS
3463
3464fi
3465fi
3466CC=$ac_cv_prog_CC
3467if test -n "$CC"; then
3468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469printf "%s\n" "$CC" >&6; }
3470else
3471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472printf "%s\n" "no" >&6; }
3473fi
3474
3475
3476    test -n "$CC" && break
3477  done
3478fi
3479if test -z "$CC"; then
3480  ac_ct_CC=$CC
3481  for ac_prog in cl.exe
3482do
3483  # Extract the first word of "$ac_prog", so it can be a program name with args.
3484set dummy $ac_prog; ac_word=$2
3485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486printf %s "checking for $ac_word... " >&6; }
3487if test ${ac_cv_prog_ac_ct_CC+y}
3488then :
3489  printf %s "(cached) " >&6
3490else $as_nop
3491  if test -n "$ac_ct_CC"; then
3492  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3493else
3494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495for as_dir in $PATH
3496do
3497  IFS=$as_save_IFS
3498  case $as_dir in #(((
3499    '') as_dir=./ ;;
3500    */) ;;
3501    *) as_dir=$as_dir/ ;;
3502  esac
3503    for ac_exec_ext in '' $ac_executable_extensions; do
3504  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3505    ac_cv_prog_ac_ct_CC="$ac_prog"
3506    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3507    break 2
3508  fi
3509done
3510  done
3511IFS=$as_save_IFS
3512
3513fi
3514fi
3515ac_ct_CC=$ac_cv_prog_ac_ct_CC
3516if test -n "$ac_ct_CC"; then
3517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3518printf "%s\n" "$ac_ct_CC" >&6; }
3519else
3520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521printf "%s\n" "no" >&6; }
3522fi
3523
3524
3525  test -n "$ac_ct_CC" && break
3526done
3527
3528  if test "x$ac_ct_CC" = x; then
3529    CC=""
3530  else
3531    case $cross_compiling:$ac_tool_warned in
3532yes:)
3533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535ac_tool_warned=yes ;;
3536esac
3537    CC=$ac_ct_CC
3538  fi
3539fi
3540
3541fi
3542if test -z "$CC"; then
3543  if test -n "$ac_tool_prefix"; then
3544  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3545set dummy ${ac_tool_prefix}clang; ac_word=$2
3546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547printf %s "checking for $ac_word... " >&6; }
3548if test ${ac_cv_prog_CC+y}
3549then :
3550  printf %s "(cached) " >&6
3551else $as_nop
3552  if test -n "$CC"; then
3553  ac_cv_prog_CC="$CC" # Let the user override the test.
3554else
3555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556for as_dir in $PATH
3557do
3558  IFS=$as_save_IFS
3559  case $as_dir in #(((
3560    '') as_dir=./ ;;
3561    */) ;;
3562    *) as_dir=$as_dir/ ;;
3563  esac
3564    for ac_exec_ext in '' $ac_executable_extensions; do
3565  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3566    ac_cv_prog_CC="${ac_tool_prefix}clang"
3567    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3568    break 2
3569  fi
3570done
3571  done
3572IFS=$as_save_IFS
3573
3574fi
3575fi
3576CC=$ac_cv_prog_CC
3577if test -n "$CC"; then
3578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579printf "%s\n" "$CC" >&6; }
3580else
3581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582printf "%s\n" "no" >&6; }
3583fi
3584
3585
3586fi
3587if test -z "$ac_cv_prog_CC"; then
3588  ac_ct_CC=$CC
3589  # Extract the first word of "clang", so it can be a program name with args.
3590set dummy clang; ac_word=$2
3591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592printf %s "checking for $ac_word... " >&6; }
3593if test ${ac_cv_prog_ac_ct_CC+y}
3594then :
3595  printf %s "(cached) " >&6
3596else $as_nop
3597  if test -n "$ac_ct_CC"; then
3598  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3599else
3600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601for as_dir in $PATH
3602do
3603  IFS=$as_save_IFS
3604  case $as_dir in #(((
3605    '') as_dir=./ ;;
3606    */) ;;
3607    *) as_dir=$as_dir/ ;;
3608  esac
3609    for ac_exec_ext in '' $ac_executable_extensions; do
3610  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3611    ac_cv_prog_ac_ct_CC="clang"
3612    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3613    break 2
3614  fi
3615done
3616  done
3617IFS=$as_save_IFS
3618
3619fi
3620fi
3621ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622if test -n "$ac_ct_CC"; then
3623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624printf "%s\n" "$ac_ct_CC" >&6; }
3625else
3626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627printf "%s\n" "no" >&6; }
3628fi
3629
3630  if test "x$ac_ct_CC" = x; then
3631    CC=""
3632  else
3633    case $cross_compiling:$ac_tool_warned in
3634yes:)
3635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637ac_tool_warned=yes ;;
3638esac
3639    CC=$ac_ct_CC
3640  fi
3641else
3642  CC="$ac_cv_prog_CC"
3643fi
3644
3645fi
3646
3647
3648test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3650as_fn_error $? "no acceptable C compiler found in \$PATH
3651See \`config.log' for more details" "$LINENO" 5; }
3652
3653# Provide some information about the compiler.
3654printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3655set X $ac_compile
3656ac_compiler=$2
3657for ac_option in --version -v -V -qversion -version; do
3658  { { ac_try="$ac_compiler $ac_option >&5"
3659case "(($ac_try" in
3660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661  *) ac_try_echo=$ac_try;;
3662esac
3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664printf "%s\n" "$ac_try_echo"; } >&5
3665  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3666  ac_status=$?
3667  if test -s conftest.err; then
3668    sed '10a\
3669... rest of stderr output deleted ...
3670         10q' conftest.err >conftest.er1
3671    cat conftest.er1 >&5
3672  fi
3673  rm -f conftest.er1 conftest.err
3674  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675  test $ac_status = 0; }
3676done
3677
3678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h.  */
3680
3681int
3682main (void)
3683{
3684
3685  ;
3686  return 0;
3687}
3688_ACEOF
3689ac_clean_files_save=$ac_clean_files
3690ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3691# Try to create an executable without -o first, disregard a.out.
3692# It will help us diagnose broken compilers, and finding out an intuition
3693# of exeext.
3694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3695printf %s "checking whether the C compiler works... " >&6; }
3696ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3697
3698# The possible output files:
3699ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3700
3701ac_rmfiles=
3702for ac_file in $ac_files
3703do
3704  case $ac_file in
3705    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3706    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3707  esac
3708done
3709rm -f $ac_rmfiles
3710
3711if { { ac_try="$ac_link_default"
3712case "(($ac_try" in
3713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714  *) ac_try_echo=$ac_try;;
3715esac
3716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717printf "%s\n" "$ac_try_echo"; } >&5
3718  (eval "$ac_link_default") 2>&5
3719  ac_status=$?
3720  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721  test $ac_status = 0; }
3722then :
3723  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3724# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3725# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3726# so that the user can short-circuit this test for compilers unknown to
3727# Autoconf.
3728for ac_file in $ac_files ''
3729do
3730  test -f "$ac_file" || continue
3731  case $ac_file in
3732    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3733	;;
3734    [ab].out )
3735	# We found the default executable, but exeext='' is most
3736	# certainly right.
3737	break;;
3738    *.* )
3739	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3740	then :; else
3741	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3742	fi
3743	# We set ac_cv_exeext here because the later test for it is not
3744	# safe: cross compilers may not add the suffix if given an `-o'
3745	# argument, so we may need to know it at that point already.
3746	# Even if this section looks crufty: it has the advantage of
3747	# actually working.
3748	break;;
3749    * )
3750	break;;
3751  esac
3752done
3753test "$ac_cv_exeext" = no && ac_cv_exeext=
3754
3755else $as_nop
3756  ac_file=''
3757fi
3758if test -z "$ac_file"
3759then :
3760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761printf "%s\n" "no" >&6; }
3762printf "%s\n" "$as_me: failed program was:" >&5
3763sed 's/^/| /' conftest.$ac_ext >&5
3764
3765{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3767as_fn_error 77 "C compiler cannot create executables
3768See \`config.log' for more details" "$LINENO" 5; }
3769else $as_nop
3770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3771printf "%s\n" "yes" >&6; }
3772fi
3773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3774printf %s "checking for C compiler default output file name... " >&6; }
3775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3776printf "%s\n" "$ac_file" >&6; }
3777ac_exeext=$ac_cv_exeext
3778
3779rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3780ac_clean_files=$ac_clean_files_save
3781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3782printf %s "checking for suffix of executables... " >&6; }
3783if { { ac_try="$ac_link"
3784case "(($ac_try" in
3785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786  *) ac_try_echo=$ac_try;;
3787esac
3788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789printf "%s\n" "$ac_try_echo"; } >&5
3790  (eval "$ac_link") 2>&5
3791  ac_status=$?
3792  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793  test $ac_status = 0; }
3794then :
3795  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3796# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3797# work properly (i.e., refer to `conftest.exe'), while it won't with
3798# `rm'.
3799for ac_file in conftest.exe conftest conftest.*; do
3800  test -f "$ac_file" || continue
3801  case $ac_file in
3802    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3803    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3804	  break;;
3805    * ) break;;
3806  esac
3807done
3808else $as_nop
3809  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3811as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3812See \`config.log' for more details" "$LINENO" 5; }
3813fi
3814rm -f conftest conftest$ac_cv_exeext
3815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3816printf "%s\n" "$ac_cv_exeext" >&6; }
3817
3818rm -f conftest.$ac_ext
3819EXEEXT=$ac_cv_exeext
3820ac_exeext=$EXEEXT
3821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822/* end confdefs.h.  */
3823#include <stdio.h>
3824int
3825main (void)
3826{
3827FILE *f = fopen ("conftest.out", "w");
3828 return ferror (f) || fclose (f) != 0;
3829
3830  ;
3831  return 0;
3832}
3833_ACEOF
3834ac_clean_files="$ac_clean_files conftest.out"
3835# Check that the compiler produces executables we can run.  If not, either
3836# the compiler is broken, or we cross compile.
3837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3838printf %s "checking whether we are cross compiling... " >&6; }
3839if test "$cross_compiling" != yes; then
3840  { { ac_try="$ac_link"
3841case "(($ac_try" in
3842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843  *) ac_try_echo=$ac_try;;
3844esac
3845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846printf "%s\n" "$ac_try_echo"; } >&5
3847  (eval "$ac_link") 2>&5
3848  ac_status=$?
3849  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850  test $ac_status = 0; }
3851  if { ac_try='./conftest$ac_cv_exeext'
3852  { { case "(($ac_try" in
3853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854  *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857printf "%s\n" "$ac_try_echo"; } >&5
3858  (eval "$ac_try") 2>&5
3859  ac_status=$?
3860  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861  test $ac_status = 0; }; }; then
3862    cross_compiling=no
3863  else
3864    if test "$cross_compiling" = maybe; then
3865	cross_compiling=yes
3866    else
3867	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3869as_fn_error 77 "cannot run C compiled programs.
3870If you meant to cross compile, use \`--host'.
3871See \`config.log' for more details" "$LINENO" 5; }
3872    fi
3873  fi
3874fi
3875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3876printf "%s\n" "$cross_compiling" >&6; }
3877
3878rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3879ac_clean_files=$ac_clean_files_save
3880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3881printf %s "checking for suffix of object files... " >&6; }
3882if test ${ac_cv_objext+y}
3883then :
3884  printf %s "(cached) " >&6
3885else $as_nop
3886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h.  */
3888
3889int
3890main (void)
3891{
3892
3893  ;
3894  return 0;
3895}
3896_ACEOF
3897rm -f conftest.o conftest.obj
3898if { { ac_try="$ac_compile"
3899case "(($ac_try" in
3900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901  *) ac_try_echo=$ac_try;;
3902esac
3903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904printf "%s\n" "$ac_try_echo"; } >&5
3905  (eval "$ac_compile") 2>&5
3906  ac_status=$?
3907  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908  test $ac_status = 0; }
3909then :
3910  for ac_file in conftest.o conftest.obj conftest.*; do
3911  test -f "$ac_file" || continue;
3912  case $ac_file in
3913    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3914    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3915       break;;
3916  esac
3917done
3918else $as_nop
3919  printf "%s\n" "$as_me: failed program was:" >&5
3920sed 's/^/| /' conftest.$ac_ext >&5
3921
3922{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3924as_fn_error $? "cannot compute suffix of object files: cannot compile
3925See \`config.log' for more details" "$LINENO" 5; }
3926fi
3927rm -f conftest.$ac_cv_objext conftest.$ac_ext
3928fi
3929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3930printf "%s\n" "$ac_cv_objext" >&6; }
3931OBJEXT=$ac_cv_objext
3932ac_objext=$OBJEXT
3933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3934printf %s "checking whether the compiler supports GNU C... " >&6; }
3935if test ${ac_cv_c_compiler_gnu+y}
3936then :
3937  printf %s "(cached) " >&6
3938else $as_nop
3939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h.  */
3941
3942int
3943main (void)
3944{
3945#ifndef __GNUC__
3946       choke me
3947#endif
3948
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953if ac_fn_c_try_compile "$LINENO"
3954then :
3955  ac_compiler_gnu=yes
3956else $as_nop
3957  ac_compiler_gnu=no
3958fi
3959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3960ac_cv_c_compiler_gnu=$ac_compiler_gnu
3961
3962fi
3963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3964printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3965ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966
3967if test $ac_compiler_gnu = yes; then
3968  GCC=yes
3969else
3970  GCC=
3971fi
3972ac_test_CFLAGS=${CFLAGS+y}
3973ac_save_CFLAGS=$CFLAGS
3974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3975printf %s "checking whether $CC accepts -g... " >&6; }
3976if test ${ac_cv_prog_cc_g+y}
3977then :
3978  printf %s "(cached) " >&6
3979else $as_nop
3980  ac_save_c_werror_flag=$ac_c_werror_flag
3981   ac_c_werror_flag=yes
3982   ac_cv_prog_cc_g=no
3983   CFLAGS="-g"
3984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985/* end confdefs.h.  */
3986
3987int
3988main (void)
3989{
3990
3991  ;
3992  return 0;
3993}
3994_ACEOF
3995if ac_fn_c_try_compile "$LINENO"
3996then :
3997  ac_cv_prog_cc_g=yes
3998else $as_nop
3999  CFLAGS=""
4000      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001/* end confdefs.h.  */
4002
4003int
4004main (void)
4005{
4006
4007  ;
4008  return 0;
4009}
4010_ACEOF
4011if ac_fn_c_try_compile "$LINENO"
4012then :
4013
4014else $as_nop
4015  ac_c_werror_flag=$ac_save_c_werror_flag
4016	 CFLAGS="-g"
4017	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h.  */
4019
4020int
4021main (void)
4022{
4023
4024  ;
4025  return 0;
4026}
4027_ACEOF
4028if ac_fn_c_try_compile "$LINENO"
4029then :
4030  ac_cv_prog_cc_g=yes
4031fi
4032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4033fi
4034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4035fi
4036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4037   ac_c_werror_flag=$ac_save_c_werror_flag
4038fi
4039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4040printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4041if test $ac_test_CFLAGS; then
4042  CFLAGS=$ac_save_CFLAGS
4043elif test $ac_cv_prog_cc_g = yes; then
4044  if test "$GCC" = yes; then
4045    CFLAGS="-g -O2"
4046  else
4047    CFLAGS="-g"
4048  fi
4049else
4050  if test "$GCC" = yes; then
4051    CFLAGS="-O2"
4052  else
4053    CFLAGS=
4054  fi
4055fi
4056ac_prog_cc_stdc=no
4057if test x$ac_prog_cc_stdc = xno
4058then :
4059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4060printf %s "checking for $CC option to enable C11 features... " >&6; }
4061if test ${ac_cv_prog_cc_c11+y}
4062then :
4063  printf %s "(cached) " >&6
4064else $as_nop
4065  ac_cv_prog_cc_c11=no
4066ac_save_CC=$CC
4067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068/* end confdefs.h.  */
4069$ac_c_conftest_c11_program
4070_ACEOF
4071for ac_arg in '' -std=gnu11
4072do
4073  CC="$ac_save_CC $ac_arg"
4074  if ac_fn_c_try_compile "$LINENO"
4075then :
4076  ac_cv_prog_cc_c11=$ac_arg
4077fi
4078rm -f core conftest.err conftest.$ac_objext conftest.beam
4079  test "x$ac_cv_prog_cc_c11" != "xno" && break
4080done
4081rm -f conftest.$ac_ext
4082CC=$ac_save_CC
4083fi
4084
4085if test "x$ac_cv_prog_cc_c11" = xno
4086then :
4087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4088printf "%s\n" "unsupported" >&6; }
4089else $as_nop
4090  if test "x$ac_cv_prog_cc_c11" = x
4091then :
4092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4093printf "%s\n" "none needed" >&6; }
4094else $as_nop
4095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4096printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4097     CC="$CC $ac_cv_prog_cc_c11"
4098fi
4099  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4100  ac_prog_cc_stdc=c11
4101fi
4102fi
4103if test x$ac_prog_cc_stdc = xno
4104then :
4105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4106printf %s "checking for $CC option to enable C99 features... " >&6; }
4107if test ${ac_cv_prog_cc_c99+y}
4108then :
4109  printf %s "(cached) " >&6
4110else $as_nop
4111  ac_cv_prog_cc_c99=no
4112ac_save_CC=$CC
4113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114/* end confdefs.h.  */
4115$ac_c_conftest_c99_program
4116_ACEOF
4117for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4118do
4119  CC="$ac_save_CC $ac_arg"
4120  if ac_fn_c_try_compile "$LINENO"
4121then :
4122  ac_cv_prog_cc_c99=$ac_arg
4123fi
4124rm -f core conftest.err conftest.$ac_objext conftest.beam
4125  test "x$ac_cv_prog_cc_c99" != "xno" && break
4126done
4127rm -f conftest.$ac_ext
4128CC=$ac_save_CC
4129fi
4130
4131if test "x$ac_cv_prog_cc_c99" = xno
4132then :
4133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4134printf "%s\n" "unsupported" >&6; }
4135else $as_nop
4136  if test "x$ac_cv_prog_cc_c99" = x
4137then :
4138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4139printf "%s\n" "none needed" >&6; }
4140else $as_nop
4141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4142printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4143     CC="$CC $ac_cv_prog_cc_c99"
4144fi
4145  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4146  ac_prog_cc_stdc=c99
4147fi
4148fi
4149if test x$ac_prog_cc_stdc = xno
4150then :
4151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4152printf %s "checking for $CC option to enable C89 features... " >&6; }
4153if test ${ac_cv_prog_cc_c89+y}
4154then :
4155  printf %s "(cached) " >&6
4156else $as_nop
4157  ac_cv_prog_cc_c89=no
4158ac_save_CC=$CC
4159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h.  */
4161$ac_c_conftest_c89_program
4162_ACEOF
4163for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4164do
4165  CC="$ac_save_CC $ac_arg"
4166  if ac_fn_c_try_compile "$LINENO"
4167then :
4168  ac_cv_prog_cc_c89=$ac_arg
4169fi
4170rm -f core conftest.err conftest.$ac_objext conftest.beam
4171  test "x$ac_cv_prog_cc_c89" != "xno" && break
4172done
4173rm -f conftest.$ac_ext
4174CC=$ac_save_CC
4175fi
4176
4177if test "x$ac_cv_prog_cc_c89" = xno
4178then :
4179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4180printf "%s\n" "unsupported" >&6; }
4181else $as_nop
4182  if test "x$ac_cv_prog_cc_c89" = x
4183then :
4184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4185printf "%s\n" "none needed" >&6; }
4186else $as_nop
4187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4188printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4189     CC="$CC $ac_cv_prog_cc_c89"
4190fi
4191  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4192  ac_prog_cc_stdc=c89
4193fi
4194fi
4195
4196ac_ext=c
4197ac_cpp='$CPP $CPPFLAGS'
4198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201
4202
4203  ac_ext=c
4204ac_cpp='$CPP $CPPFLAGS'
4205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4209printf %s "checking whether $CC understands -c and -o together... " >&6; }
4210if test ${am_cv_prog_cc_c_o+y}
4211then :
4212  printf %s "(cached) " >&6
4213else $as_nop
4214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216
4217int
4218main (void)
4219{
4220
4221  ;
4222  return 0;
4223}
4224_ACEOF
4225  # Make sure it works both with $CC and with simple cc.
4226  # Following AC_PROG_CC_C_O, we do the test twice because some
4227  # compilers refuse to overwrite an existing .o file with -o,
4228  # though they will create one.
4229  am_cv_prog_cc_c_o=yes
4230  for am_i in 1 2; do
4231    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4232   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } \
4236         && test -f conftest2.$ac_objext; then
4237      : OK
4238    else
4239      am_cv_prog_cc_c_o=no
4240      break
4241    fi
4242  done
4243  rm -f core conftest*
4244  unset am_i
4245fi
4246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4247printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4248if test "$am_cv_prog_cc_c_o" != yes; then
4249   # Losing compiler, so override with the script.
4250   # FIXME: It is wrong to rewrite CC.
4251   # But if we don't then we get into trouble of one sort or another.
4252   # A longer-term fix would be to have automake use am__CC in this case,
4253   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4254   CC="$am_aux_dir/compile $CC"
4255fi
4256ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262
4263depcc="$CC"   am_compiler_list=
4264
4265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4266printf %s "checking dependency style of $depcc... " >&6; }
4267if test ${am_cv_CC_dependencies_compiler_type+y}
4268then :
4269  printf %s "(cached) " >&6
4270else $as_nop
4271  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4272  # We make a subdir and do the tests there.  Otherwise we can end up
4273  # making bogus files that we don't know about and never remove.  For
4274  # instance it was reported that on HP-UX the gcc test will end up
4275  # making a dummy file named 'D' -- because '-MD' means "put the output
4276  # in D".
4277  rm -rf conftest.dir
4278  mkdir conftest.dir
4279  # Copy depcomp to subdir because otherwise we won't find it if we're
4280  # using a relative directory.
4281  cp "$am_depcomp" conftest.dir
4282  cd conftest.dir
4283  # We will build objects and dependencies in a subdirectory because
4284  # it helps to detect inapplicable dependency modes.  For instance
4285  # both Tru64's cc and ICC support -MD to output dependencies as a
4286  # side effect of compilation, but ICC will put the dependencies in
4287  # the current directory while Tru64 will put them in the object
4288  # directory.
4289  mkdir sub
4290
4291  am_cv_CC_dependencies_compiler_type=none
4292  if test "$am_compiler_list" = ""; then
4293     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4294  fi
4295  am__universal=false
4296  case " $depcc " in #(
4297     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4298     esac
4299
4300  for depmode in $am_compiler_list; do
4301    # Setup a source with many dependencies, because some compilers
4302    # like to wrap large dependency lists on column 80 (with \), and
4303    # we should not choose a depcomp mode which is confused by this.
4304    #
4305    # We need to recreate these files for each test, as the compiler may
4306    # overwrite some of them when testing with obscure command lines.
4307    # This happens at least with the AIX C compiler.
4308    : > sub/conftest.c
4309    for i in 1 2 3 4 5 6; do
4310      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4311      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4312      # Solaris 10 /bin/sh.
4313      echo '/* dummy */' > sub/conftst$i.h
4314    done
4315    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4316
4317    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4318    # mode.  It turns out that the SunPro C++ compiler does not properly
4319    # handle '-M -o', and we need to detect this.  Also, some Intel
4320    # versions had trouble with output in subdirs.
4321    am__obj=sub/conftest.${OBJEXT-o}
4322    am__minus_obj="-o $am__obj"
4323    case $depmode in
4324    gcc)
4325      # This depmode causes a compiler race in universal mode.
4326      test "$am__universal" = false || continue
4327      ;;
4328    nosideeffect)
4329      # After this tag, mechanisms are not by side-effect, so they'll
4330      # only be used when explicitly requested.
4331      if test "x$enable_dependency_tracking" = xyes; then
4332	continue
4333      else
4334	break
4335      fi
4336      ;;
4337    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4338      # This compiler won't grok '-c -o', but also, the minuso test has
4339      # not run yet.  These depmodes are late enough in the game, and
4340      # so weak that their functioning should not be impacted.
4341      am__obj=conftest.${OBJEXT-o}
4342      am__minus_obj=
4343      ;;
4344    none) break ;;
4345    esac
4346    if depmode=$depmode \
4347       source=sub/conftest.c object=$am__obj \
4348       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4349       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4350         >/dev/null 2>conftest.err &&
4351       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4352       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4353       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4354       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4355      # icc doesn't choke on unknown options, it will just issue warnings
4356      # or remarks (even with -Werror).  So we grep stderr for any message
4357      # that says an option was ignored or not supported.
4358      # When given -MP, icc 7.0 and 7.1 complain thusly:
4359      #   icc: Command line warning: ignoring option '-M'; no argument required
4360      # The diagnosis changed in icc 8.0:
4361      #   icc: Command line remark: option '-MP' not supported
4362      if (grep 'ignoring option' conftest.err ||
4363          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4364        am_cv_CC_dependencies_compiler_type=$depmode
4365        break
4366      fi
4367    fi
4368  done
4369
4370  cd ..
4371  rm -rf conftest.dir
4372else
4373  am_cv_CC_dependencies_compiler_type=none
4374fi
4375
4376fi
4377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4378printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4379CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4380
4381 if
4382  test "x$enable_dependency_tracking" != xno \
4383  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4384  am__fastdepCC_TRUE=
4385  am__fastdepCC_FALSE='#'
4386else
4387  am__fastdepCC_TRUE='#'
4388  am__fastdepCC_FALSE=
4389fi
4390
4391
4392
4393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4394printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4395if test ${ac_cv_c_undeclared_builtin_options+y}
4396then :
4397  printf %s "(cached) " >&6
4398else $as_nop
4399  ac_save_CFLAGS=$CFLAGS
4400   ac_cv_c_undeclared_builtin_options='cannot detect'
4401   for ac_arg in '' -fno-builtin; do
4402     CFLAGS="$ac_save_CFLAGS $ac_arg"
4403     # This test program should *not* compile successfully.
4404     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405/* end confdefs.h.  */
4406
4407int
4408main (void)
4409{
4410(void) strchr;
4411  ;
4412  return 0;
4413}
4414_ACEOF
4415if ac_fn_c_try_compile "$LINENO"
4416then :
4417
4418else $as_nop
4419  # This test program should compile successfully.
4420        # No library function is consistently available on
4421        # freestanding implementations, so test against a dummy
4422        # declaration.  Include always-available headers on the
4423        # off chance that they somehow elicit warnings.
4424        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h.  */
4426#include <float.h>
4427#include <limits.h>
4428#include <stdarg.h>
4429#include <stddef.h>
4430extern void ac_decl (int, char *);
4431
4432int
4433main (void)
4434{
4435(void) ac_decl (0, (char *) 0);
4436  (void) ac_decl;
4437
4438  ;
4439  return 0;
4440}
4441_ACEOF
4442if ac_fn_c_try_compile "$LINENO"
4443then :
4444  if test x"$ac_arg" = x
4445then :
4446  ac_cv_c_undeclared_builtin_options='none needed'
4447else $as_nop
4448  ac_cv_c_undeclared_builtin_options=$ac_arg
4449fi
4450          break
4451fi
4452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4453fi
4454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4455    done
4456    CFLAGS=$ac_save_CFLAGS
4457
4458fi
4459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4460printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4461  case $ac_cv_c_undeclared_builtin_options in #(
4462  'cannot detect') :
4463    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4465as_fn_error $? "cannot make $CC report undeclared builtins
4466See \`config.log' for more details" "$LINENO" 5; } ;; #(
4467  'none needed') :
4468    ac_c_undeclared_builtin_options='' ;; #(
4469  *) :
4470    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4471esac
4472
4473ac_header= ac_cache=
4474for ac_item in $ac_header_c_list
4475do
4476  if test $ac_cache; then
4477    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4478    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4479      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4480    fi
4481    ac_header= ac_cache=
4482  elif test $ac_header; then
4483    ac_cache=$ac_item
4484  else
4485    ac_header=$ac_item
4486  fi
4487done
4488
4489
4490
4491
4492
4493
4494
4495
4496if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4497then :
4498
4499printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4500
4501fi
4502
4503
4504
4505
4506ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4507if test "x$ac_cv_have_decl___clang__" = xyes
4508then :
4509  CLANGCC="yes"
4510else $as_nop
4511  CLANGCC="no"
4512fi
4513ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4514if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4515then :
4516  INTELCC="yes"
4517else $as_nop
4518  INTELCC="no"
4519fi
4520ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4521if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4522then :
4523  SUNCC="yes"
4524else $as_nop
4525  SUNCC="no"
4526fi
4527
4528
4529
4530
4531
4532
4533
4534
4535if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4536	if test -n "$ac_tool_prefix"; then
4537  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4538set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540printf %s "checking for $ac_word... " >&6; }
4541if test ${ac_cv_path_PKG_CONFIG+y}
4542then :
4543  printf %s "(cached) " >&6
4544else $as_nop
4545  case $PKG_CONFIG in
4546  [\\/]* | ?:[\\/]*)
4547  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4548  ;;
4549  *)
4550  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553  IFS=$as_save_IFS
4554  case $as_dir in #(((
4555    '') as_dir=./ ;;
4556    */) ;;
4557    *) as_dir=$as_dir/ ;;
4558  esac
4559    for ac_exec_ext in '' $ac_executable_extensions; do
4560  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4561    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4562    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4563    break 2
4564  fi
4565done
4566  done
4567IFS=$as_save_IFS
4568
4569  ;;
4570esac
4571fi
4572PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4573if test -n "$PKG_CONFIG"; then
4574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4575printf "%s\n" "$PKG_CONFIG" >&6; }
4576else
4577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578printf "%s\n" "no" >&6; }
4579fi
4580
4581
4582fi
4583if test -z "$ac_cv_path_PKG_CONFIG"; then
4584  ac_pt_PKG_CONFIG=$PKG_CONFIG
4585  # Extract the first word of "pkg-config", so it can be a program name with args.
4586set dummy pkg-config; ac_word=$2
4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588printf %s "checking for $ac_word... " >&6; }
4589if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4590then :
4591  printf %s "(cached) " >&6
4592else $as_nop
4593  case $ac_pt_PKG_CONFIG in
4594  [\\/]* | ?:[\\/]*)
4595  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4596  ;;
4597  *)
4598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601  IFS=$as_save_IFS
4602  case $as_dir in #(((
4603    '') as_dir=./ ;;
4604    */) ;;
4605    *) as_dir=$as_dir/ ;;
4606  esac
4607    for ac_exec_ext in '' $ac_executable_extensions; do
4608  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4609    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4610    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4611    break 2
4612  fi
4613done
4614  done
4615IFS=$as_save_IFS
4616
4617  ;;
4618esac
4619fi
4620ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4621if test -n "$ac_pt_PKG_CONFIG"; then
4622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4623printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4624else
4625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626printf "%s\n" "no" >&6; }
4627fi
4628
4629  if test "x$ac_pt_PKG_CONFIG" = x; then
4630    PKG_CONFIG=""
4631  else
4632    case $cross_compiling:$ac_tool_warned in
4633yes:)
4634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636ac_tool_warned=yes ;;
4637esac
4638    PKG_CONFIG=$ac_pt_PKG_CONFIG
4639  fi
4640else
4641  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4642fi
4643
4644fi
4645if test -n "$PKG_CONFIG"; then
4646	_pkg_min_version=0.9.0
4647	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4648printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4649	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4650		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4651printf "%s\n" "yes" >&6; }
4652	else
4653		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654printf "%s\n" "no" >&6; }
4655		PKG_CONFIG=""
4656	fi
4657fi
4658
4659
4660  # Make sure we can run config.sub.
4661$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4662  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4663
4664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4665printf %s "checking build system type... " >&6; }
4666if test ${ac_cv_build+y}
4667then :
4668  printf %s "(cached) " >&6
4669else $as_nop
4670  ac_build_alias=$build_alias
4671test "x$ac_build_alias" = x &&
4672  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4673test "x$ac_build_alias" = x &&
4674  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4675ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4676  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4677
4678fi
4679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4680printf "%s\n" "$ac_cv_build" >&6; }
4681case $ac_cv_build in
4682*-*-*) ;;
4683*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4684esac
4685build=$ac_cv_build
4686ac_save_IFS=$IFS; IFS='-'
4687set x $ac_cv_build
4688shift
4689build_cpu=$1
4690build_vendor=$2
4691shift; shift
4692# Remember, the first character of IFS is used to create $*,
4693# except with old shells:
4694build_os=$*
4695IFS=$ac_save_IFS
4696case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4697
4698
4699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4700printf %s "checking host system type... " >&6; }
4701if test ${ac_cv_host+y}
4702then :
4703  printf %s "(cached) " >&6
4704else $as_nop
4705  if test "x$host_alias" = x; then
4706  ac_cv_host=$ac_cv_build
4707else
4708  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4709    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4710fi
4711
4712fi
4713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4714printf "%s\n" "$ac_cv_host" >&6; }
4715case $ac_cv_host in
4716*-*-*) ;;
4717*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4718esac
4719host=$ac_cv_host
4720ac_save_IFS=$IFS; IFS='-'
4721set x $ac_cv_host
4722shift
4723host_cpu=$1
4724host_vendor=$2
4725shift; shift
4726# Remember, the first character of IFS is used to create $*,
4727# except with old shells:
4728host_os=$*
4729IFS=$ac_save_IFS
4730case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4731
4732
4733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4734printf %s "checking for a sed that does not truncate output... " >&6; }
4735if test ${ac_cv_path_SED+y}
4736then :
4737  printf %s "(cached) " >&6
4738else $as_nop
4739            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4740     for ac_i in 1 2 3 4 5 6 7; do
4741       ac_script="$ac_script$as_nl$ac_script"
4742     done
4743     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4744     { ac_script=; unset ac_script;}
4745     if test -z "$SED"; then
4746  ac_path_SED_found=false
4747  # Loop through the user's path and test for each of PROGNAME-LIST
4748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751  IFS=$as_save_IFS
4752  case $as_dir in #(((
4753    '') as_dir=./ ;;
4754    */) ;;
4755    *) as_dir=$as_dir/ ;;
4756  esac
4757    for ac_prog in sed gsed
4758   do
4759    for ac_exec_ext in '' $ac_executable_extensions; do
4760      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4761      as_fn_executable_p "$ac_path_SED" || continue
4762# Check for GNU ac_path_SED and select it if it is found.
4763  # Check for GNU $ac_path_SED
4764case `"$ac_path_SED" --version 2>&1` in
4765*GNU*)
4766  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4767*)
4768  ac_count=0
4769  printf %s 0123456789 >"conftest.in"
4770  while :
4771  do
4772    cat "conftest.in" "conftest.in" >"conftest.tmp"
4773    mv "conftest.tmp" "conftest.in"
4774    cp "conftest.in" "conftest.nl"
4775    printf "%s\n" '' >> "conftest.nl"
4776    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4777    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4778    as_fn_arith $ac_count + 1 && ac_count=$as_val
4779    if test $ac_count -gt ${ac_path_SED_max-0}; then
4780      # Best one so far, save it but keep looking for a better one
4781      ac_cv_path_SED="$ac_path_SED"
4782      ac_path_SED_max=$ac_count
4783    fi
4784    # 10*(2^10) chars as input seems more than enough
4785    test $ac_count -gt 10 && break
4786  done
4787  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4788esac
4789
4790      $ac_path_SED_found && break 3
4791    done
4792  done
4793  done
4794IFS=$as_save_IFS
4795  if test -z "$ac_cv_path_SED"; then
4796    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4797  fi
4798else
4799  ac_cv_path_SED=$SED
4800fi
4801
4802fi
4803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4804printf "%s\n" "$ac_cv_path_SED" >&6; }
4805 SED="$ac_cv_path_SED"
4806  rm -f conftest.sed
4807
4808
4809
4810
4811
4812
4813# Check whether --enable-selective-werror was given.
4814if test ${enable_selective_werror+y}
4815then :
4816  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4817else $as_nop
4818  SELECTIVE_WERROR=yes
4819fi
4820
4821
4822
4823
4824
4825# -v is too short to test reliably with XORG_TESTSET_CFLAG
4826if test "x$SUNCC" = "xyes"; then
4827    BASE_CFLAGS="-v"
4828else
4829    BASE_CFLAGS=""
4830fi
4831
4832# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846xorg_testset_save_CFLAGS="$CFLAGS"
4847
4848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4850	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4851printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4852if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4853then :
4854  printf %s "(cached) " >&6
4855else $as_nop
4856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h.  */
4858int i;
4859_ACEOF
4860if ac_fn_c_try_compile "$LINENO"
4861then :
4862  xorg_cv_cc_flag_unknown_warning_option=yes
4863else $as_nop
4864  xorg_cv_cc_flag_unknown_warning_option=no
4865fi
4866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4867fi
4868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4869printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4870	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4871	CFLAGS="$xorg_testset_save_CFLAGS"
4872fi
4873
4874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4875	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4877	fi
4878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4879	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4880printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4881if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4882then :
4883  printf %s "(cached) " >&6
4884else $as_nop
4885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886/* end confdefs.h.  */
4887int i;
4888_ACEOF
4889if ac_fn_c_try_compile "$LINENO"
4890then :
4891  xorg_cv_cc_flag_unused_command_line_argument=yes
4892else $as_nop
4893  xorg_cv_cc_flag_unused_command_line_argument=no
4894fi
4895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4896fi
4897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4898printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4899	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4900	CFLAGS="$xorg_testset_save_CFLAGS"
4901fi
4902
4903found="no"
4904
4905	if test $found = "no" ; then
4906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4908		fi
4909
4910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4912		fi
4913
4914		CFLAGS="$CFLAGS -Wall"
4915
4916		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4917printf %s "checking if $CC supports -Wall... " >&6; }
4918		cacheid=xorg_cv_cc_flag__Wall
4919		if eval test \${$cacheid+y}
4920then :
4921  printf %s "(cached) " >&6
4922else $as_nop
4923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h.  */
4925int i;
4926int
4927main (void)
4928{
4929
4930  ;
4931  return 0;
4932}
4933_ACEOF
4934if ac_fn_c_try_link "$LINENO"
4935then :
4936  eval $cacheid=yes
4937else $as_nop
4938  eval $cacheid=no
4939fi
4940rm -f core conftest.err conftest.$ac_objext conftest.beam \
4941    conftest$ac_exeext conftest.$ac_ext
4942fi
4943
4944
4945		CFLAGS="$xorg_testset_save_CFLAGS"
4946
4947		eval supported=\$$cacheid
4948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4949printf "%s\n" "$supported" >&6; }
4950		if test "$supported" = "yes" ; then
4951			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4952			found="yes"
4953		fi
4954	fi
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970xorg_testset_save_CFLAGS="$CFLAGS"
4971
4972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4974	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4975printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4976if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4977then :
4978  printf %s "(cached) " >&6
4979else $as_nop
4980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981/* end confdefs.h.  */
4982int i;
4983_ACEOF
4984if ac_fn_c_try_compile "$LINENO"
4985then :
4986  xorg_cv_cc_flag_unknown_warning_option=yes
4987else $as_nop
4988  xorg_cv_cc_flag_unknown_warning_option=no
4989fi
4990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4991fi
4992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4995	CFLAGS="$xorg_testset_save_CFLAGS"
4996fi
4997
4998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5001	fi
5002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5003	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5005if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5006then :
5007  printf %s "(cached) " >&6
5008else $as_nop
5009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h.  */
5011int i;
5012_ACEOF
5013if ac_fn_c_try_compile "$LINENO"
5014then :
5015  xorg_cv_cc_flag_unused_command_line_argument=yes
5016else $as_nop
5017  xorg_cv_cc_flag_unused_command_line_argument=no
5018fi
5019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5020fi
5021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5024	CFLAGS="$xorg_testset_save_CFLAGS"
5025fi
5026
5027found="no"
5028
5029	if test $found = "no" ; then
5030		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032		fi
5033
5034		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5036		fi
5037
5038		CFLAGS="$CFLAGS -Wpointer-arith"
5039
5040		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5041printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5042		cacheid=xorg_cv_cc_flag__Wpointer_arith
5043		if eval test \${$cacheid+y}
5044then :
5045  printf %s "(cached) " >&6
5046else $as_nop
5047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048/* end confdefs.h.  */
5049int i;
5050int
5051main (void)
5052{
5053
5054  ;
5055  return 0;
5056}
5057_ACEOF
5058if ac_fn_c_try_link "$LINENO"
5059then :
5060  eval $cacheid=yes
5061else $as_nop
5062  eval $cacheid=no
5063fi
5064rm -f core conftest.err conftest.$ac_objext conftest.beam \
5065    conftest$ac_exeext conftest.$ac_ext
5066fi
5067
5068
5069		CFLAGS="$xorg_testset_save_CFLAGS"
5070
5071		eval supported=\$$cacheid
5072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5073printf "%s\n" "$supported" >&6; }
5074		if test "$supported" = "yes" ; then
5075			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5076			found="yes"
5077		fi
5078	fi
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094xorg_testset_save_CFLAGS="$CFLAGS"
5095
5096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5100if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5101then :
5102  printf %s "(cached) " >&6
5103else $as_nop
5104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h.  */
5106int i;
5107_ACEOF
5108if ac_fn_c_try_compile "$LINENO"
5109then :
5110  xorg_cv_cc_flag_unknown_warning_option=yes
5111else $as_nop
5112  xorg_cv_cc_flag_unknown_warning_option=no
5113fi
5114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5115fi
5116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5119	CFLAGS="$xorg_testset_save_CFLAGS"
5120fi
5121
5122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5125	fi
5126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5127	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5129if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5130then :
5131  printf %s "(cached) " >&6
5132else $as_nop
5133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134/* end confdefs.h.  */
5135int i;
5136_ACEOF
5137if ac_fn_c_try_compile "$LINENO"
5138then :
5139  xorg_cv_cc_flag_unused_command_line_argument=yes
5140else $as_nop
5141  xorg_cv_cc_flag_unused_command_line_argument=no
5142fi
5143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5144fi
5145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5148	CFLAGS="$xorg_testset_save_CFLAGS"
5149fi
5150
5151found="no"
5152
5153	if test $found = "no" ; then
5154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5156		fi
5157
5158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5160		fi
5161
5162		CFLAGS="$CFLAGS -Wmissing-declarations"
5163
5164		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5165printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5166		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5167		if eval test \${$cacheid+y}
5168then :
5169  printf %s "(cached) " >&6
5170else $as_nop
5171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172/* end confdefs.h.  */
5173int i;
5174int
5175main (void)
5176{
5177
5178  ;
5179  return 0;
5180}
5181_ACEOF
5182if ac_fn_c_try_link "$LINENO"
5183then :
5184  eval $cacheid=yes
5185else $as_nop
5186  eval $cacheid=no
5187fi
5188rm -f core conftest.err conftest.$ac_objext conftest.beam \
5189    conftest$ac_exeext conftest.$ac_ext
5190fi
5191
5192
5193		CFLAGS="$xorg_testset_save_CFLAGS"
5194
5195		eval supported=\$$cacheid
5196		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5197printf "%s\n" "$supported" >&6; }
5198		if test "$supported" = "yes" ; then
5199			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5200			found="yes"
5201		fi
5202	fi
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218xorg_testset_save_CFLAGS="$CFLAGS"
5219
5220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5224if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5225then :
5226  printf %s "(cached) " >&6
5227else $as_nop
5228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229/* end confdefs.h.  */
5230int i;
5231_ACEOF
5232if ac_fn_c_try_compile "$LINENO"
5233then :
5234  xorg_cv_cc_flag_unknown_warning_option=yes
5235else $as_nop
5236  xorg_cv_cc_flag_unknown_warning_option=no
5237fi
5238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5239fi
5240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5242	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5243	CFLAGS="$xorg_testset_save_CFLAGS"
5244fi
5245
5246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5247	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5248		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5249	fi
5250	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5253if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5254then :
5255  printf %s "(cached) " >&6
5256else $as_nop
5257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258/* end confdefs.h.  */
5259int i;
5260_ACEOF
5261if ac_fn_c_try_compile "$LINENO"
5262then :
5263  xorg_cv_cc_flag_unused_command_line_argument=yes
5264else $as_nop
5265  xorg_cv_cc_flag_unused_command_line_argument=no
5266fi
5267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5268fi
5269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5270printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5271	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5272	CFLAGS="$xorg_testset_save_CFLAGS"
5273fi
5274
5275found="no"
5276
5277	if test $found = "no" ; then
5278		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5280		fi
5281
5282		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5284		fi
5285
5286		CFLAGS="$CFLAGS -Wformat=2"
5287
5288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5289printf %s "checking if $CC supports -Wformat=2... " >&6; }
5290		cacheid=xorg_cv_cc_flag__Wformat_2
5291		if eval test \${$cacheid+y}
5292then :
5293  printf %s "(cached) " >&6
5294else $as_nop
5295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296/* end confdefs.h.  */
5297int i;
5298int
5299main (void)
5300{
5301
5302  ;
5303  return 0;
5304}
5305_ACEOF
5306if ac_fn_c_try_link "$LINENO"
5307then :
5308  eval $cacheid=yes
5309else $as_nop
5310  eval $cacheid=no
5311fi
5312rm -f core conftest.err conftest.$ac_objext conftest.beam \
5313    conftest$ac_exeext conftest.$ac_ext
5314fi
5315
5316
5317		CFLAGS="$xorg_testset_save_CFLAGS"
5318
5319		eval supported=\$$cacheid
5320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5321printf "%s\n" "$supported" >&6; }
5322		if test "$supported" = "yes" ; then
5323			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5324			found="yes"
5325		fi
5326	fi
5327
5328	if test $found = "no" ; then
5329		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5331		fi
5332
5333		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5335		fi
5336
5337		CFLAGS="$CFLAGS -Wformat"
5338
5339		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5340printf %s "checking if $CC supports -Wformat... " >&6; }
5341		cacheid=xorg_cv_cc_flag__Wformat
5342		if eval test \${$cacheid+y}
5343then :
5344  printf %s "(cached) " >&6
5345else $as_nop
5346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347/* end confdefs.h.  */
5348int i;
5349int
5350main (void)
5351{
5352
5353  ;
5354  return 0;
5355}
5356_ACEOF
5357if ac_fn_c_try_link "$LINENO"
5358then :
5359  eval $cacheid=yes
5360else $as_nop
5361  eval $cacheid=no
5362fi
5363rm -f core conftest.err conftest.$ac_objext conftest.beam \
5364    conftest$ac_exeext conftest.$ac_ext
5365fi
5366
5367
5368		CFLAGS="$xorg_testset_save_CFLAGS"
5369
5370		eval supported=\$$cacheid
5371		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5372printf "%s\n" "$supported" >&6; }
5373		if test "$supported" = "yes" ; then
5374			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5375			found="yes"
5376		fi
5377	fi
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395xorg_testset_save_CFLAGS="$CFLAGS"
5396
5397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5400printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5401if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5402then :
5403  printf %s "(cached) " >&6
5404else $as_nop
5405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h.  */
5407int i;
5408_ACEOF
5409if ac_fn_c_try_compile "$LINENO"
5410then :
5411  xorg_cv_cc_flag_unknown_warning_option=yes
5412else $as_nop
5413  xorg_cv_cc_flag_unknown_warning_option=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5416fi
5417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5418printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5420	CFLAGS="$xorg_testset_save_CFLAGS"
5421fi
5422
5423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5426	fi
5427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5429printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5430if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5431then :
5432  printf %s "(cached) " >&6
5433else $as_nop
5434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h.  */
5436int i;
5437_ACEOF
5438if ac_fn_c_try_compile "$LINENO"
5439then :
5440  xorg_cv_cc_flag_unused_command_line_argument=yes
5441else $as_nop
5442  xorg_cv_cc_flag_unused_command_line_argument=no
5443fi
5444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5445fi
5446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5447printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5448	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5449	CFLAGS="$xorg_testset_save_CFLAGS"
5450fi
5451
5452found="no"
5453
5454	if test $found = "no" ; then
5455		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5456			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5457		fi
5458
5459		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5460			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5461		fi
5462
5463		CFLAGS="$CFLAGS -Wstrict-prototypes"
5464
5465		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5466printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5467		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5468		if eval test \${$cacheid+y}
5469then :
5470  printf %s "(cached) " >&6
5471else $as_nop
5472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473/* end confdefs.h.  */
5474int i;
5475int
5476main (void)
5477{
5478
5479  ;
5480  return 0;
5481}
5482_ACEOF
5483if ac_fn_c_try_link "$LINENO"
5484then :
5485  eval $cacheid=yes
5486else $as_nop
5487  eval $cacheid=no
5488fi
5489rm -f core conftest.err conftest.$ac_objext conftest.beam \
5490    conftest$ac_exeext conftest.$ac_ext
5491fi
5492
5493
5494		CFLAGS="$xorg_testset_save_CFLAGS"
5495
5496		eval supported=\$$cacheid
5497		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5498printf "%s\n" "$supported" >&6; }
5499		if test "$supported" = "yes" ; then
5500			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5501			found="yes"
5502		fi
5503	fi
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519xorg_testset_save_CFLAGS="$CFLAGS"
5520
5521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5522	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5523	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5524printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5525if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5526then :
5527  printf %s "(cached) " >&6
5528else $as_nop
5529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531int i;
5532_ACEOF
5533if ac_fn_c_try_compile "$LINENO"
5534then :
5535  xorg_cv_cc_flag_unknown_warning_option=yes
5536else $as_nop
5537  xorg_cv_cc_flag_unknown_warning_option=no
5538fi
5539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5540fi
5541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5542printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5544	CFLAGS="$xorg_testset_save_CFLAGS"
5545fi
5546
5547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5550	fi
5551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5553printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5554if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5555then :
5556  printf %s "(cached) " >&6
5557else $as_nop
5558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559/* end confdefs.h.  */
5560int i;
5561_ACEOF
5562if ac_fn_c_try_compile "$LINENO"
5563then :
5564  xorg_cv_cc_flag_unused_command_line_argument=yes
5565else $as_nop
5566  xorg_cv_cc_flag_unused_command_line_argument=no
5567fi
5568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5569fi
5570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5571printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5572	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5573	CFLAGS="$xorg_testset_save_CFLAGS"
5574fi
5575
5576found="no"
5577
5578	if test $found = "no" ; then
5579		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5581		fi
5582
5583		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5585		fi
5586
5587		CFLAGS="$CFLAGS -Wmissing-prototypes"
5588
5589		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5590printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5591		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5592		if eval test \${$cacheid+y}
5593then :
5594  printf %s "(cached) " >&6
5595else $as_nop
5596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597/* end confdefs.h.  */
5598int i;
5599int
5600main (void)
5601{
5602
5603  ;
5604  return 0;
5605}
5606_ACEOF
5607if ac_fn_c_try_link "$LINENO"
5608then :
5609  eval $cacheid=yes
5610else $as_nop
5611  eval $cacheid=no
5612fi
5613rm -f core conftest.err conftest.$ac_objext conftest.beam \
5614    conftest$ac_exeext conftest.$ac_ext
5615fi
5616
5617
5618		CFLAGS="$xorg_testset_save_CFLAGS"
5619
5620		eval supported=\$$cacheid
5621		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5622printf "%s\n" "$supported" >&6; }
5623		if test "$supported" = "yes" ; then
5624			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5625			found="yes"
5626		fi
5627	fi
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643xorg_testset_save_CFLAGS="$CFLAGS"
5644
5645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5646	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5647	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5648printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5649if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5650then :
5651  printf %s "(cached) " >&6
5652else $as_nop
5653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h.  */
5655int i;
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"
5658then :
5659  xorg_cv_cc_flag_unknown_warning_option=yes
5660else $as_nop
5661  xorg_cv_cc_flag_unknown_warning_option=no
5662fi
5663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5664fi
5665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5666printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5668	CFLAGS="$xorg_testset_save_CFLAGS"
5669fi
5670
5671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5674	fi
5675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5677printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5678if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5679then :
5680  printf %s "(cached) " >&6
5681else $as_nop
5682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h.  */
5684int i;
5685_ACEOF
5686if ac_fn_c_try_compile "$LINENO"
5687then :
5688  xorg_cv_cc_flag_unused_command_line_argument=yes
5689else $as_nop
5690  xorg_cv_cc_flag_unused_command_line_argument=no
5691fi
5692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5693fi
5694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5695printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5696	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5697	CFLAGS="$xorg_testset_save_CFLAGS"
5698fi
5699
5700found="no"
5701
5702	if test $found = "no" ; then
5703		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5704			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5705		fi
5706
5707		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5708			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5709		fi
5710
5711		CFLAGS="$CFLAGS -Wnested-externs"
5712
5713		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5714printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5715		cacheid=xorg_cv_cc_flag__Wnested_externs
5716		if eval test \${$cacheid+y}
5717then :
5718  printf %s "(cached) " >&6
5719else $as_nop
5720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h.  */
5722int i;
5723int
5724main (void)
5725{
5726
5727  ;
5728  return 0;
5729}
5730_ACEOF
5731if ac_fn_c_try_link "$LINENO"
5732then :
5733  eval $cacheid=yes
5734else $as_nop
5735  eval $cacheid=no
5736fi
5737rm -f core conftest.err conftest.$ac_objext conftest.beam \
5738    conftest$ac_exeext conftest.$ac_ext
5739fi
5740
5741
5742		CFLAGS="$xorg_testset_save_CFLAGS"
5743
5744		eval supported=\$$cacheid
5745		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5746printf "%s\n" "$supported" >&6; }
5747		if test "$supported" = "yes" ; then
5748			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5749			found="yes"
5750		fi
5751	fi
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767xorg_testset_save_CFLAGS="$CFLAGS"
5768
5769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5770	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5771	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5772printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5773if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5774then :
5775  printf %s "(cached) " >&6
5776else $as_nop
5777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h.  */
5779int i;
5780_ACEOF
5781if ac_fn_c_try_compile "$LINENO"
5782then :
5783  xorg_cv_cc_flag_unknown_warning_option=yes
5784else $as_nop
5785  xorg_cv_cc_flag_unknown_warning_option=no
5786fi
5787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5788fi
5789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5790printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5791	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5792	CFLAGS="$xorg_testset_save_CFLAGS"
5793fi
5794
5795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5796	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5797		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5798	fi
5799	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5800	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5801printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5802if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5803then :
5804  printf %s "(cached) " >&6
5805else $as_nop
5806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807/* end confdefs.h.  */
5808int i;
5809_ACEOF
5810if ac_fn_c_try_compile "$LINENO"
5811then :
5812  xorg_cv_cc_flag_unused_command_line_argument=yes
5813else $as_nop
5814  xorg_cv_cc_flag_unused_command_line_argument=no
5815fi
5816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5817fi
5818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5819printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5820	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5821	CFLAGS="$xorg_testset_save_CFLAGS"
5822fi
5823
5824found="no"
5825
5826	if test $found = "no" ; then
5827		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5828			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5829		fi
5830
5831		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5832			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5833		fi
5834
5835		CFLAGS="$CFLAGS -Wbad-function-cast"
5836
5837		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5838printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5839		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5840		if eval test \${$cacheid+y}
5841then :
5842  printf %s "(cached) " >&6
5843else $as_nop
5844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845/* end confdefs.h.  */
5846int i;
5847int
5848main (void)
5849{
5850
5851  ;
5852  return 0;
5853}
5854_ACEOF
5855if ac_fn_c_try_link "$LINENO"
5856then :
5857  eval $cacheid=yes
5858else $as_nop
5859  eval $cacheid=no
5860fi
5861rm -f core conftest.err conftest.$ac_objext conftest.beam \
5862    conftest$ac_exeext conftest.$ac_ext
5863fi
5864
5865
5866		CFLAGS="$xorg_testset_save_CFLAGS"
5867
5868		eval supported=\$$cacheid
5869		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5870printf "%s\n" "$supported" >&6; }
5871		if test "$supported" = "yes" ; then
5872			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5873			found="yes"
5874		fi
5875	fi
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891xorg_testset_save_CFLAGS="$CFLAGS"
5892
5893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5894	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5896printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5897if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5898then :
5899  printf %s "(cached) " >&6
5900else $as_nop
5901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h.  */
5903int i;
5904_ACEOF
5905if ac_fn_c_try_compile "$LINENO"
5906then :
5907  xorg_cv_cc_flag_unknown_warning_option=yes
5908else $as_nop
5909  xorg_cv_cc_flag_unknown_warning_option=no
5910fi
5911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5912fi
5913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5914printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5916	CFLAGS="$xorg_testset_save_CFLAGS"
5917fi
5918
5919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5922	fi
5923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5924	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5925printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5926if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5927then :
5928  printf %s "(cached) " >&6
5929else $as_nop
5930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h.  */
5932int i;
5933_ACEOF
5934if ac_fn_c_try_compile "$LINENO"
5935then :
5936  xorg_cv_cc_flag_unused_command_line_argument=yes
5937else $as_nop
5938  xorg_cv_cc_flag_unused_command_line_argument=no
5939fi
5940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5941fi
5942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5943printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5944	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5945	CFLAGS="$xorg_testset_save_CFLAGS"
5946fi
5947
5948found="no"
5949
5950	if test $found = "no" ; then
5951		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5952			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5953		fi
5954
5955		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5956			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5957		fi
5958
5959		CFLAGS="$CFLAGS -Wold-style-definition"
5960
5961		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5962printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5963		cacheid=xorg_cv_cc_flag__Wold_style_definition
5964		if eval test \${$cacheid+y}
5965then :
5966  printf %s "(cached) " >&6
5967else $as_nop
5968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969/* end confdefs.h.  */
5970int i;
5971int
5972main (void)
5973{
5974
5975  ;
5976  return 0;
5977}
5978_ACEOF
5979if ac_fn_c_try_link "$LINENO"
5980then :
5981  eval $cacheid=yes
5982else $as_nop
5983  eval $cacheid=no
5984fi
5985rm -f core conftest.err conftest.$ac_objext conftest.beam \
5986    conftest$ac_exeext conftest.$ac_ext
5987fi
5988
5989
5990		CFLAGS="$xorg_testset_save_CFLAGS"
5991
5992		eval supported=\$$cacheid
5993		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5994printf "%s\n" "$supported" >&6; }
5995		if test "$supported" = "yes" ; then
5996			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5997			found="yes"
5998		fi
5999	fi
6000
6001	if test $found = "no" ; then
6002		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6003			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6004		fi
6005
6006		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6007			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6008		fi
6009
6010		CFLAGS="$CFLAGS -fd"
6011
6012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6013printf %s "checking if $CC supports -fd... " >&6; }
6014		cacheid=xorg_cv_cc_flag__fd
6015		if eval test \${$cacheid+y}
6016then :
6017  printf %s "(cached) " >&6
6018else $as_nop
6019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020/* end confdefs.h.  */
6021int i;
6022int
6023main (void)
6024{
6025
6026  ;
6027  return 0;
6028}
6029_ACEOF
6030if ac_fn_c_try_link "$LINENO"
6031then :
6032  eval $cacheid=yes
6033else $as_nop
6034  eval $cacheid=no
6035fi
6036rm -f core conftest.err conftest.$ac_objext conftest.beam \
6037    conftest$ac_exeext conftest.$ac_ext
6038fi
6039
6040
6041		CFLAGS="$xorg_testset_save_CFLAGS"
6042
6043		eval supported=\$$cacheid
6044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6045printf "%s\n" "$supported" >&6; }
6046		if test "$supported" = "yes" ; then
6047			BASE_CFLAGS="$BASE_CFLAGS -fd"
6048			found="yes"
6049		fi
6050	fi
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066xorg_testset_save_CFLAGS="$CFLAGS"
6067
6068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6071printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6072if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6073then :
6074  printf %s "(cached) " >&6
6075else $as_nop
6076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077/* end confdefs.h.  */
6078int i;
6079_ACEOF
6080if ac_fn_c_try_compile "$LINENO"
6081then :
6082  xorg_cv_cc_flag_unknown_warning_option=yes
6083else $as_nop
6084  xorg_cv_cc_flag_unknown_warning_option=no
6085fi
6086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6087fi
6088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6089printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6090	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6091	CFLAGS="$xorg_testset_save_CFLAGS"
6092fi
6093
6094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6095	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6096		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097	fi
6098	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6099	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6100printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6101if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6102then :
6103  printf %s "(cached) " >&6
6104else $as_nop
6105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106/* end confdefs.h.  */
6107int i;
6108_ACEOF
6109if ac_fn_c_try_compile "$LINENO"
6110then :
6111  xorg_cv_cc_flag_unused_command_line_argument=yes
6112else $as_nop
6113  xorg_cv_cc_flag_unused_command_line_argument=no
6114fi
6115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6116fi
6117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6118printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6119	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6120	CFLAGS="$xorg_testset_save_CFLAGS"
6121fi
6122
6123found="no"
6124
6125	if test $found = "no" ; then
6126		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6127			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6128		fi
6129
6130		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6131			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6132		fi
6133
6134		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6135
6136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6137printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6138		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6139		if eval test \${$cacheid+y}
6140then :
6141  printf %s "(cached) " >&6
6142else $as_nop
6143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144/* end confdefs.h.  */
6145int i;
6146int
6147main (void)
6148{
6149
6150  ;
6151  return 0;
6152}
6153_ACEOF
6154if ac_fn_c_try_link "$LINENO"
6155then :
6156  eval $cacheid=yes
6157else $as_nop
6158  eval $cacheid=no
6159fi
6160rm -f core conftest.err conftest.$ac_objext conftest.beam \
6161    conftest$ac_exeext conftest.$ac_ext
6162fi
6163
6164
6165		CFLAGS="$xorg_testset_save_CFLAGS"
6166
6167		eval supported=\$$cacheid
6168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6169printf "%s\n" "$supported" >&6; }
6170		if test "$supported" = "yes" ; then
6171			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6172			found="yes"
6173		fi
6174	fi
6175
6176
6177
6178
6179
6180# This chunk adds additional warnings that could catch undesired effects.
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194xorg_testset_save_CFLAGS="$CFLAGS"
6195
6196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6198	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6199printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6200if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6201then :
6202  printf %s "(cached) " >&6
6203else $as_nop
6204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205/* end confdefs.h.  */
6206int i;
6207_ACEOF
6208if ac_fn_c_try_compile "$LINENO"
6209then :
6210  xorg_cv_cc_flag_unknown_warning_option=yes
6211else $as_nop
6212  xorg_cv_cc_flag_unknown_warning_option=no
6213fi
6214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6215fi
6216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6217printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6219	CFLAGS="$xorg_testset_save_CFLAGS"
6220fi
6221
6222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225	fi
6226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6229if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6230then :
6231  printf %s "(cached) " >&6
6232else $as_nop
6233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234/* end confdefs.h.  */
6235int i;
6236_ACEOF
6237if ac_fn_c_try_compile "$LINENO"
6238then :
6239  xorg_cv_cc_flag_unused_command_line_argument=yes
6240else $as_nop
6241  xorg_cv_cc_flag_unused_command_line_argument=no
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6244fi
6245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6248	CFLAGS="$xorg_testset_save_CFLAGS"
6249fi
6250
6251found="no"
6252
6253	if test $found = "no" ; then
6254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256		fi
6257
6258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6260		fi
6261
6262		CFLAGS="$CFLAGS -Wunused"
6263
6264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6265printf %s "checking if $CC supports -Wunused... " >&6; }
6266		cacheid=xorg_cv_cc_flag__Wunused
6267		if eval test \${$cacheid+y}
6268then :
6269  printf %s "(cached) " >&6
6270else $as_nop
6271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h.  */
6273int i;
6274int
6275main (void)
6276{
6277
6278  ;
6279  return 0;
6280}
6281_ACEOF
6282if ac_fn_c_try_link "$LINENO"
6283then :
6284  eval $cacheid=yes
6285else $as_nop
6286  eval $cacheid=no
6287fi
6288rm -f core conftest.err conftest.$ac_objext conftest.beam \
6289    conftest$ac_exeext conftest.$ac_ext
6290fi
6291
6292
6293		CFLAGS="$xorg_testset_save_CFLAGS"
6294
6295		eval supported=\$$cacheid
6296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6297printf "%s\n" "$supported" >&6; }
6298		if test "$supported" = "yes" ; then
6299			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6300			found="yes"
6301		fi
6302	fi
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318xorg_testset_save_CFLAGS="$CFLAGS"
6319
6320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6323printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6324if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6325then :
6326  printf %s "(cached) " >&6
6327else $as_nop
6328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h.  */
6330int i;
6331_ACEOF
6332if ac_fn_c_try_compile "$LINENO"
6333then :
6334  xorg_cv_cc_flag_unknown_warning_option=yes
6335else $as_nop
6336  xorg_cv_cc_flag_unknown_warning_option=no
6337fi
6338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6339fi
6340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6341printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6342	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6343	CFLAGS="$xorg_testset_save_CFLAGS"
6344fi
6345
6346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6347	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6348		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6349	fi
6350	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6351	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6352printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6353if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6354then :
6355  printf %s "(cached) " >&6
6356else $as_nop
6357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358/* end confdefs.h.  */
6359int i;
6360_ACEOF
6361if ac_fn_c_try_compile "$LINENO"
6362then :
6363  xorg_cv_cc_flag_unused_command_line_argument=yes
6364else $as_nop
6365  xorg_cv_cc_flag_unused_command_line_argument=no
6366fi
6367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6368fi
6369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6370printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6371	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6372	CFLAGS="$xorg_testset_save_CFLAGS"
6373fi
6374
6375found="no"
6376
6377	if test $found = "no" ; then
6378		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6379			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6380		fi
6381
6382		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6383			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6384		fi
6385
6386		CFLAGS="$CFLAGS -Wuninitialized"
6387
6388		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6389printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6390		cacheid=xorg_cv_cc_flag__Wuninitialized
6391		if eval test \${$cacheid+y}
6392then :
6393  printf %s "(cached) " >&6
6394else $as_nop
6395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396/* end confdefs.h.  */
6397int i;
6398int
6399main (void)
6400{
6401
6402  ;
6403  return 0;
6404}
6405_ACEOF
6406if ac_fn_c_try_link "$LINENO"
6407then :
6408  eval $cacheid=yes
6409else $as_nop
6410  eval $cacheid=no
6411fi
6412rm -f core conftest.err conftest.$ac_objext conftest.beam \
6413    conftest$ac_exeext conftest.$ac_ext
6414fi
6415
6416
6417		CFLAGS="$xorg_testset_save_CFLAGS"
6418
6419		eval supported=\$$cacheid
6420		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6421printf "%s\n" "$supported" >&6; }
6422		if test "$supported" = "yes" ; then
6423			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6424			found="yes"
6425		fi
6426	fi
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442xorg_testset_save_CFLAGS="$CFLAGS"
6443
6444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6446	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6447printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6448if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6449then :
6450  printf %s "(cached) " >&6
6451else $as_nop
6452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453/* end confdefs.h.  */
6454int i;
6455_ACEOF
6456if ac_fn_c_try_compile "$LINENO"
6457then :
6458  xorg_cv_cc_flag_unknown_warning_option=yes
6459else $as_nop
6460  xorg_cv_cc_flag_unknown_warning_option=no
6461fi
6462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6463fi
6464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6465printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6466	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6467	CFLAGS="$xorg_testset_save_CFLAGS"
6468fi
6469
6470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6471	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6472		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6473	fi
6474	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6475	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6476printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6477if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6478then :
6479  printf %s "(cached) " >&6
6480else $as_nop
6481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482/* end confdefs.h.  */
6483int i;
6484_ACEOF
6485if ac_fn_c_try_compile "$LINENO"
6486then :
6487  xorg_cv_cc_flag_unused_command_line_argument=yes
6488else $as_nop
6489  xorg_cv_cc_flag_unused_command_line_argument=no
6490fi
6491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6492fi
6493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6494printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6495	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6496	CFLAGS="$xorg_testset_save_CFLAGS"
6497fi
6498
6499found="no"
6500
6501	if test $found = "no" ; then
6502		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6503			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6504		fi
6505
6506		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6507			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6508		fi
6509
6510		CFLAGS="$CFLAGS -Wshadow"
6511
6512		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6513printf %s "checking if $CC supports -Wshadow... " >&6; }
6514		cacheid=xorg_cv_cc_flag__Wshadow
6515		if eval test \${$cacheid+y}
6516then :
6517  printf %s "(cached) " >&6
6518else $as_nop
6519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520/* end confdefs.h.  */
6521int i;
6522int
6523main (void)
6524{
6525
6526  ;
6527  return 0;
6528}
6529_ACEOF
6530if ac_fn_c_try_link "$LINENO"
6531then :
6532  eval $cacheid=yes
6533else $as_nop
6534  eval $cacheid=no
6535fi
6536rm -f core conftest.err conftest.$ac_objext conftest.beam \
6537    conftest$ac_exeext conftest.$ac_ext
6538fi
6539
6540
6541		CFLAGS="$xorg_testset_save_CFLAGS"
6542
6543		eval supported=\$$cacheid
6544		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6545printf "%s\n" "$supported" >&6; }
6546		if test "$supported" = "yes" ; then
6547			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6548			found="yes"
6549		fi
6550	fi
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566xorg_testset_save_CFLAGS="$CFLAGS"
6567
6568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6569	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6570	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6571printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6572if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6573then :
6574  printf %s "(cached) " >&6
6575else $as_nop
6576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h.  */
6578int i;
6579_ACEOF
6580if ac_fn_c_try_compile "$LINENO"
6581then :
6582  xorg_cv_cc_flag_unknown_warning_option=yes
6583else $as_nop
6584  xorg_cv_cc_flag_unknown_warning_option=no
6585fi
6586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6587fi
6588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6589printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6591	CFLAGS="$xorg_testset_save_CFLAGS"
6592fi
6593
6594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6597	fi
6598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6599	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6600printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6601if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6602then :
6603  printf %s "(cached) " >&6
6604else $as_nop
6605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606/* end confdefs.h.  */
6607int i;
6608_ACEOF
6609if ac_fn_c_try_compile "$LINENO"
6610then :
6611  xorg_cv_cc_flag_unused_command_line_argument=yes
6612else $as_nop
6613  xorg_cv_cc_flag_unused_command_line_argument=no
6614fi
6615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6616fi
6617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6618printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6619	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6620	CFLAGS="$xorg_testset_save_CFLAGS"
6621fi
6622
6623found="no"
6624
6625	if test $found = "no" ; then
6626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6628		fi
6629
6630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6632		fi
6633
6634		CFLAGS="$CFLAGS -Wmissing-noreturn"
6635
6636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6637printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6638		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6639		if eval test \${$cacheid+y}
6640then :
6641  printf %s "(cached) " >&6
6642else $as_nop
6643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644/* end confdefs.h.  */
6645int i;
6646int
6647main (void)
6648{
6649
6650  ;
6651  return 0;
6652}
6653_ACEOF
6654if ac_fn_c_try_link "$LINENO"
6655then :
6656  eval $cacheid=yes
6657else $as_nop
6658  eval $cacheid=no
6659fi
6660rm -f core conftest.err conftest.$ac_objext conftest.beam \
6661    conftest$ac_exeext conftest.$ac_ext
6662fi
6663
6664
6665		CFLAGS="$xorg_testset_save_CFLAGS"
6666
6667		eval supported=\$$cacheid
6668		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6669printf "%s\n" "$supported" >&6; }
6670		if test "$supported" = "yes" ; then
6671			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6672			found="yes"
6673		fi
6674	fi
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690xorg_testset_save_CFLAGS="$CFLAGS"
6691
6692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6693	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6694	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6695printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6696if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6697then :
6698  printf %s "(cached) " >&6
6699else $as_nop
6700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702int i;
6703_ACEOF
6704if ac_fn_c_try_compile "$LINENO"
6705then :
6706  xorg_cv_cc_flag_unknown_warning_option=yes
6707else $as_nop
6708  xorg_cv_cc_flag_unknown_warning_option=no
6709fi
6710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6711fi
6712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6713printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6714	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6715	CFLAGS="$xorg_testset_save_CFLAGS"
6716fi
6717
6718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6719	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6720		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6721	fi
6722	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6723	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6724printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6725if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6726then :
6727  printf %s "(cached) " >&6
6728else $as_nop
6729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730/* end confdefs.h.  */
6731int i;
6732_ACEOF
6733if ac_fn_c_try_compile "$LINENO"
6734then :
6735  xorg_cv_cc_flag_unused_command_line_argument=yes
6736else $as_nop
6737  xorg_cv_cc_flag_unused_command_line_argument=no
6738fi
6739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6740fi
6741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6742printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6743	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6744	CFLAGS="$xorg_testset_save_CFLAGS"
6745fi
6746
6747found="no"
6748
6749	if test $found = "no" ; then
6750		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6751			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6752		fi
6753
6754		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6755			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6756		fi
6757
6758		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6759
6760		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6761printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6762		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6763		if eval test \${$cacheid+y}
6764then :
6765  printf %s "(cached) " >&6
6766else $as_nop
6767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768/* end confdefs.h.  */
6769int i;
6770int
6771main (void)
6772{
6773
6774  ;
6775  return 0;
6776}
6777_ACEOF
6778if ac_fn_c_try_link "$LINENO"
6779then :
6780  eval $cacheid=yes
6781else $as_nop
6782  eval $cacheid=no
6783fi
6784rm -f core conftest.err conftest.$ac_objext conftest.beam \
6785    conftest$ac_exeext conftest.$ac_ext
6786fi
6787
6788
6789		CFLAGS="$xorg_testset_save_CFLAGS"
6790
6791		eval supported=\$$cacheid
6792		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6793printf "%s\n" "$supported" >&6; }
6794		if test "$supported" = "yes" ; then
6795			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6796			found="yes"
6797		fi
6798	fi
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814xorg_testset_save_CFLAGS="$CFLAGS"
6815
6816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6817	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6818	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6819printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6820if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6821then :
6822  printf %s "(cached) " >&6
6823else $as_nop
6824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825/* end confdefs.h.  */
6826int i;
6827_ACEOF
6828if ac_fn_c_try_compile "$LINENO"
6829then :
6830  xorg_cv_cc_flag_unknown_warning_option=yes
6831else $as_nop
6832  xorg_cv_cc_flag_unknown_warning_option=no
6833fi
6834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6835fi
6836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6837printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6838	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6839	CFLAGS="$xorg_testset_save_CFLAGS"
6840fi
6841
6842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6843	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6844		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6845	fi
6846	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6848printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6849if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6850then :
6851  printf %s "(cached) " >&6
6852else $as_nop
6853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854/* end confdefs.h.  */
6855int i;
6856_ACEOF
6857if ac_fn_c_try_compile "$LINENO"
6858then :
6859  xorg_cv_cc_flag_unused_command_line_argument=yes
6860else $as_nop
6861  xorg_cv_cc_flag_unused_command_line_argument=no
6862fi
6863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6864fi
6865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6866printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6867	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6868	CFLAGS="$xorg_testset_save_CFLAGS"
6869fi
6870
6871found="no"
6872
6873	if test $found = "no" ; then
6874		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6875			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6876		fi
6877
6878		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6879			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6880		fi
6881
6882		CFLAGS="$CFLAGS -Wredundant-decls"
6883
6884		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6885printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6886		cacheid=xorg_cv_cc_flag__Wredundant_decls
6887		if eval test \${$cacheid+y}
6888then :
6889  printf %s "(cached) " >&6
6890else $as_nop
6891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h.  */
6893int i;
6894int
6895main (void)
6896{
6897
6898  ;
6899  return 0;
6900}
6901_ACEOF
6902if ac_fn_c_try_link "$LINENO"
6903then :
6904  eval $cacheid=yes
6905else $as_nop
6906  eval $cacheid=no
6907fi
6908rm -f core conftest.err conftest.$ac_objext conftest.beam \
6909    conftest$ac_exeext conftest.$ac_ext
6910fi
6911
6912
6913		CFLAGS="$xorg_testset_save_CFLAGS"
6914
6915		eval supported=\$$cacheid
6916		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6917printf "%s\n" "$supported" >&6; }
6918		if test "$supported" = "yes" ; then
6919			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6920			found="yes"
6921		fi
6922	fi
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938xorg_testset_save_CFLAGS="$CFLAGS"
6939
6940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6941	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6942	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6944if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6945then :
6946  printf %s "(cached) " >&6
6947else $as_nop
6948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949/* end confdefs.h.  */
6950int i;
6951_ACEOF
6952if ac_fn_c_try_compile "$LINENO"
6953then :
6954  xorg_cv_cc_flag_unknown_warning_option=yes
6955else $as_nop
6956  xorg_cv_cc_flag_unknown_warning_option=no
6957fi
6958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6959fi
6960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6963	CFLAGS="$xorg_testset_save_CFLAGS"
6964fi
6965
6966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969	fi
6970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6973if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6974then :
6975  printf %s "(cached) " >&6
6976else $as_nop
6977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978/* end confdefs.h.  */
6979int i;
6980_ACEOF
6981if ac_fn_c_try_compile "$LINENO"
6982then :
6983  xorg_cv_cc_flag_unused_command_line_argument=yes
6984else $as_nop
6985  xorg_cv_cc_flag_unused_command_line_argument=no
6986fi
6987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6988fi
6989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6991	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6992	CFLAGS="$xorg_testset_save_CFLAGS"
6993fi
6994
6995found="no"
6996
6997	if test $found = "no" ; then
6998		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7000		fi
7001
7002		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7004		fi
7005
7006		CFLAGS="$CFLAGS -Wlogical-op"
7007
7008		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7009printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7010		cacheid=xorg_cv_cc_flag__Wlogical_op
7011		if eval test \${$cacheid+y}
7012then :
7013  printf %s "(cached) " >&6
7014else $as_nop
7015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016/* end confdefs.h.  */
7017int i;
7018int
7019main (void)
7020{
7021
7022  ;
7023  return 0;
7024}
7025_ACEOF
7026if ac_fn_c_try_link "$LINENO"
7027then :
7028  eval $cacheid=yes
7029else $as_nop
7030  eval $cacheid=no
7031fi
7032rm -f core conftest.err conftest.$ac_objext conftest.beam \
7033    conftest$ac_exeext conftest.$ac_ext
7034fi
7035
7036
7037		CFLAGS="$xorg_testset_save_CFLAGS"
7038
7039		eval supported=\$$cacheid
7040		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7041printf "%s\n" "$supported" >&6; }
7042		if test "$supported" = "yes" ; then
7043			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7044			found="yes"
7045		fi
7046	fi
7047
7048
7049
7050# These are currently disabled because they are noisy.  They will be enabled
7051# in the future once the codebase is sufficiently modernized to silence
7052# them.  For now, I don't want them to drown out the other warnings.
7053# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7054# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7055# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7056
7057# Turn some warnings into errors, so we don't accidentally get successful builds
7058# when there are problems that should be fixed.
7059
7060if test "x$SELECTIVE_WERROR" = "xyes" ; then
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074xorg_testset_save_CFLAGS="$CFLAGS"
7075
7076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7078	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7079printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7080if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7081then :
7082  printf %s "(cached) " >&6
7083else $as_nop
7084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085/* end confdefs.h.  */
7086int i;
7087_ACEOF
7088if ac_fn_c_try_compile "$LINENO"
7089then :
7090  xorg_cv_cc_flag_unknown_warning_option=yes
7091else $as_nop
7092  xorg_cv_cc_flag_unknown_warning_option=no
7093fi
7094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7095fi
7096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7097printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7099	CFLAGS="$xorg_testset_save_CFLAGS"
7100fi
7101
7102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7105	fi
7106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7108printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7109if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7110then :
7111  printf %s "(cached) " >&6
7112else $as_nop
7113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114/* end confdefs.h.  */
7115int i;
7116_ACEOF
7117if ac_fn_c_try_compile "$LINENO"
7118then :
7119  xorg_cv_cc_flag_unused_command_line_argument=yes
7120else $as_nop
7121  xorg_cv_cc_flag_unused_command_line_argument=no
7122fi
7123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7124fi
7125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7126printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7128	CFLAGS="$xorg_testset_save_CFLAGS"
7129fi
7130
7131found="no"
7132
7133	if test $found = "no" ; then
7134		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7136		fi
7137
7138		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7140		fi
7141
7142		CFLAGS="$CFLAGS -Werror=implicit"
7143
7144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7145printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7146		cacheid=xorg_cv_cc_flag__Werror_implicit
7147		if eval test \${$cacheid+y}
7148then :
7149  printf %s "(cached) " >&6
7150else $as_nop
7151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152/* end confdefs.h.  */
7153int i;
7154int
7155main (void)
7156{
7157
7158  ;
7159  return 0;
7160}
7161_ACEOF
7162if ac_fn_c_try_link "$LINENO"
7163then :
7164  eval $cacheid=yes
7165else $as_nop
7166  eval $cacheid=no
7167fi
7168rm -f core conftest.err conftest.$ac_objext conftest.beam \
7169    conftest$ac_exeext conftest.$ac_ext
7170fi
7171
7172
7173		CFLAGS="$xorg_testset_save_CFLAGS"
7174
7175		eval supported=\$$cacheid
7176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7177printf "%s\n" "$supported" >&6; }
7178		if test "$supported" = "yes" ; then
7179			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7180			found="yes"
7181		fi
7182	fi
7183
7184	if test $found = "no" ; then
7185		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7187		fi
7188
7189		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7191		fi
7192
7193		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7194
7195		{ 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
7196printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7197		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7198		if eval test \${$cacheid+y}
7199then :
7200  printf %s "(cached) " >&6
7201else $as_nop
7202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204int i;
7205int
7206main (void)
7207{
7208
7209  ;
7210  return 0;
7211}
7212_ACEOF
7213if ac_fn_c_try_link "$LINENO"
7214then :
7215  eval $cacheid=yes
7216else $as_nop
7217  eval $cacheid=no
7218fi
7219rm -f core conftest.err conftest.$ac_objext conftest.beam \
7220    conftest$ac_exeext conftest.$ac_ext
7221fi
7222
7223
7224		CFLAGS="$xorg_testset_save_CFLAGS"
7225
7226		eval supported=\$$cacheid
7227		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7228printf "%s\n" "$supported" >&6; }
7229		if test "$supported" = "yes" ; then
7230			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7231			found="yes"
7232		fi
7233	fi
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249xorg_testset_save_CFLAGS="$CFLAGS"
7250
7251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7255if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7256then :
7257  printf %s "(cached) " >&6
7258else $as_nop
7259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h.  */
7261int i;
7262_ACEOF
7263if ac_fn_c_try_compile "$LINENO"
7264then :
7265  xorg_cv_cc_flag_unknown_warning_option=yes
7266else $as_nop
7267  xorg_cv_cc_flag_unknown_warning_option=no
7268fi
7269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7270fi
7271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7273	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7274	CFLAGS="$xorg_testset_save_CFLAGS"
7275fi
7276
7277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7278	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7279		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7280	fi
7281	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7282	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7284if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7285then :
7286  printf %s "(cached) " >&6
7287else $as_nop
7288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289/* end confdefs.h.  */
7290int i;
7291_ACEOF
7292if ac_fn_c_try_compile "$LINENO"
7293then :
7294  xorg_cv_cc_flag_unused_command_line_argument=yes
7295else $as_nop
7296  xorg_cv_cc_flag_unused_command_line_argument=no
7297fi
7298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7299fi
7300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7302	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7303	CFLAGS="$xorg_testset_save_CFLAGS"
7304fi
7305
7306found="no"
7307
7308	if test $found = "no" ; then
7309		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7311		fi
7312
7313		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7315		fi
7316
7317		CFLAGS="$CFLAGS -Werror=nonnull"
7318
7319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7320printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7321		cacheid=xorg_cv_cc_flag__Werror_nonnull
7322		if eval test \${$cacheid+y}
7323then :
7324  printf %s "(cached) " >&6
7325else $as_nop
7326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327/* end confdefs.h.  */
7328int i;
7329int
7330main (void)
7331{
7332
7333  ;
7334  return 0;
7335}
7336_ACEOF
7337if ac_fn_c_try_link "$LINENO"
7338then :
7339  eval $cacheid=yes
7340else $as_nop
7341  eval $cacheid=no
7342fi
7343rm -f core conftest.err conftest.$ac_objext conftest.beam \
7344    conftest$ac_exeext conftest.$ac_ext
7345fi
7346
7347
7348		CFLAGS="$xorg_testset_save_CFLAGS"
7349
7350		eval supported=\$$cacheid
7351		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7352printf "%s\n" "$supported" >&6; }
7353		if test "$supported" = "yes" ; then
7354			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7355			found="yes"
7356		fi
7357	fi
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373xorg_testset_save_CFLAGS="$CFLAGS"
7374
7375if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7376	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7377	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7378printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7379if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7380then :
7381  printf %s "(cached) " >&6
7382else $as_nop
7383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384/* end confdefs.h.  */
7385int i;
7386_ACEOF
7387if ac_fn_c_try_compile "$LINENO"
7388then :
7389  xorg_cv_cc_flag_unknown_warning_option=yes
7390else $as_nop
7391  xorg_cv_cc_flag_unknown_warning_option=no
7392fi
7393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7394fi
7395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7396printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7397	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7398	CFLAGS="$xorg_testset_save_CFLAGS"
7399fi
7400
7401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7402	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7403		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7404	fi
7405	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7406	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7407printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7408if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7409then :
7410  printf %s "(cached) " >&6
7411else $as_nop
7412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413/* end confdefs.h.  */
7414int i;
7415_ACEOF
7416if ac_fn_c_try_compile "$LINENO"
7417then :
7418  xorg_cv_cc_flag_unused_command_line_argument=yes
7419else $as_nop
7420  xorg_cv_cc_flag_unused_command_line_argument=no
7421fi
7422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7423fi
7424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7426	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7427	CFLAGS="$xorg_testset_save_CFLAGS"
7428fi
7429
7430found="no"
7431
7432	if test $found = "no" ; then
7433		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7435		fi
7436
7437		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7439		fi
7440
7441		CFLAGS="$CFLAGS -Werror=init-self"
7442
7443		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7444printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7445		cacheid=xorg_cv_cc_flag__Werror_init_self
7446		if eval test \${$cacheid+y}
7447then :
7448  printf %s "(cached) " >&6
7449else $as_nop
7450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451/* end confdefs.h.  */
7452int i;
7453int
7454main (void)
7455{
7456
7457  ;
7458  return 0;
7459}
7460_ACEOF
7461if ac_fn_c_try_link "$LINENO"
7462then :
7463  eval $cacheid=yes
7464else $as_nop
7465  eval $cacheid=no
7466fi
7467rm -f core conftest.err conftest.$ac_objext conftest.beam \
7468    conftest$ac_exeext conftest.$ac_ext
7469fi
7470
7471
7472		CFLAGS="$xorg_testset_save_CFLAGS"
7473
7474		eval supported=\$$cacheid
7475		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7476printf "%s\n" "$supported" >&6; }
7477		if test "$supported" = "yes" ; then
7478			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7479			found="yes"
7480		fi
7481	fi
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497xorg_testset_save_CFLAGS="$CFLAGS"
7498
7499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7502printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7503if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7504then :
7505  printf %s "(cached) " >&6
7506else $as_nop
7507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h.  */
7509int i;
7510_ACEOF
7511if ac_fn_c_try_compile "$LINENO"
7512then :
7513  xorg_cv_cc_flag_unknown_warning_option=yes
7514else $as_nop
7515  xorg_cv_cc_flag_unknown_warning_option=no
7516fi
7517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7518fi
7519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7521	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7522	CFLAGS="$xorg_testset_save_CFLAGS"
7523fi
7524
7525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7526	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7527		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7528	fi
7529	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7532if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7533then :
7534  printf %s "(cached) " >&6
7535else $as_nop
7536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537/* end confdefs.h.  */
7538int i;
7539_ACEOF
7540if ac_fn_c_try_compile "$LINENO"
7541then :
7542  xorg_cv_cc_flag_unused_command_line_argument=yes
7543else $as_nop
7544  xorg_cv_cc_flag_unused_command_line_argument=no
7545fi
7546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7547fi
7548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7551	CFLAGS="$xorg_testset_save_CFLAGS"
7552fi
7553
7554found="no"
7555
7556	if test $found = "no" ; then
7557		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7559		fi
7560
7561		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7563		fi
7564
7565		CFLAGS="$CFLAGS -Werror=main"
7566
7567		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7568printf %s "checking if $CC supports -Werror=main... " >&6; }
7569		cacheid=xorg_cv_cc_flag__Werror_main
7570		if eval test \${$cacheid+y}
7571then :
7572  printf %s "(cached) " >&6
7573else $as_nop
7574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h.  */
7576int i;
7577int
7578main (void)
7579{
7580
7581  ;
7582  return 0;
7583}
7584_ACEOF
7585if ac_fn_c_try_link "$LINENO"
7586then :
7587  eval $cacheid=yes
7588else $as_nop
7589  eval $cacheid=no
7590fi
7591rm -f core conftest.err conftest.$ac_objext conftest.beam \
7592    conftest$ac_exeext conftest.$ac_ext
7593fi
7594
7595
7596		CFLAGS="$xorg_testset_save_CFLAGS"
7597
7598		eval supported=\$$cacheid
7599		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7600printf "%s\n" "$supported" >&6; }
7601		if test "$supported" = "yes" ; then
7602			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7603			found="yes"
7604		fi
7605	fi
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621xorg_testset_save_CFLAGS="$CFLAGS"
7622
7623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7625	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7626printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7627if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7628then :
7629  printf %s "(cached) " >&6
7630else $as_nop
7631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632/* end confdefs.h.  */
7633int i;
7634_ACEOF
7635if ac_fn_c_try_compile "$LINENO"
7636then :
7637  xorg_cv_cc_flag_unknown_warning_option=yes
7638else $as_nop
7639  xorg_cv_cc_flag_unknown_warning_option=no
7640fi
7641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7642fi
7643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7644printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7646	CFLAGS="$xorg_testset_save_CFLAGS"
7647fi
7648
7649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7652	fi
7653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7654	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7655printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7656if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7657then :
7658  printf %s "(cached) " >&6
7659else $as_nop
7660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661/* end confdefs.h.  */
7662int i;
7663_ACEOF
7664if ac_fn_c_try_compile "$LINENO"
7665then :
7666  xorg_cv_cc_flag_unused_command_line_argument=yes
7667else $as_nop
7668  xorg_cv_cc_flag_unused_command_line_argument=no
7669fi
7670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7671fi
7672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7673printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7674	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7675	CFLAGS="$xorg_testset_save_CFLAGS"
7676fi
7677
7678found="no"
7679
7680	if test $found = "no" ; then
7681		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683		fi
7684
7685		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7687		fi
7688
7689		CFLAGS="$CFLAGS -Werror=missing-braces"
7690
7691		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7692printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7693		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7694		if eval test \${$cacheid+y}
7695then :
7696  printf %s "(cached) " >&6
7697else $as_nop
7698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699/* end confdefs.h.  */
7700int i;
7701int
7702main (void)
7703{
7704
7705  ;
7706  return 0;
7707}
7708_ACEOF
7709if ac_fn_c_try_link "$LINENO"
7710then :
7711  eval $cacheid=yes
7712else $as_nop
7713  eval $cacheid=no
7714fi
7715rm -f core conftest.err conftest.$ac_objext conftest.beam \
7716    conftest$ac_exeext conftest.$ac_ext
7717fi
7718
7719
7720		CFLAGS="$xorg_testset_save_CFLAGS"
7721
7722		eval supported=\$$cacheid
7723		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7724printf "%s\n" "$supported" >&6; }
7725		if test "$supported" = "yes" ; then
7726			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7727			found="yes"
7728		fi
7729	fi
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745xorg_testset_save_CFLAGS="$CFLAGS"
7746
7747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7749	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7750printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7751if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7752then :
7753  printf %s "(cached) " >&6
7754else $as_nop
7755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h.  */
7757int i;
7758_ACEOF
7759if ac_fn_c_try_compile "$LINENO"
7760then :
7761  xorg_cv_cc_flag_unknown_warning_option=yes
7762else $as_nop
7763  xorg_cv_cc_flag_unknown_warning_option=no
7764fi
7765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7766fi
7767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7768printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7770	CFLAGS="$xorg_testset_save_CFLAGS"
7771fi
7772
7773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7776	fi
7777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7778	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7779printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7780if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7781then :
7782  printf %s "(cached) " >&6
7783else $as_nop
7784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785/* end confdefs.h.  */
7786int i;
7787_ACEOF
7788if ac_fn_c_try_compile "$LINENO"
7789then :
7790  xorg_cv_cc_flag_unused_command_line_argument=yes
7791else $as_nop
7792  xorg_cv_cc_flag_unused_command_line_argument=no
7793fi
7794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7795fi
7796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7797printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7798	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7799	CFLAGS="$xorg_testset_save_CFLAGS"
7800fi
7801
7802found="no"
7803
7804	if test $found = "no" ; then
7805		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7806			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7807		fi
7808
7809		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7810			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7811		fi
7812
7813		CFLAGS="$CFLAGS -Werror=sequence-point"
7814
7815		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7816printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7817		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7818		if eval test \${$cacheid+y}
7819then :
7820  printf %s "(cached) " >&6
7821else $as_nop
7822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823/* end confdefs.h.  */
7824int i;
7825int
7826main (void)
7827{
7828
7829  ;
7830  return 0;
7831}
7832_ACEOF
7833if ac_fn_c_try_link "$LINENO"
7834then :
7835  eval $cacheid=yes
7836else $as_nop
7837  eval $cacheid=no
7838fi
7839rm -f core conftest.err conftest.$ac_objext conftest.beam \
7840    conftest$ac_exeext conftest.$ac_ext
7841fi
7842
7843
7844		CFLAGS="$xorg_testset_save_CFLAGS"
7845
7846		eval supported=\$$cacheid
7847		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7848printf "%s\n" "$supported" >&6; }
7849		if test "$supported" = "yes" ; then
7850			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7851			found="yes"
7852		fi
7853	fi
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869xorg_testset_save_CFLAGS="$CFLAGS"
7870
7871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7872	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7873	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7874printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7875if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7876then :
7877  printf %s "(cached) " >&6
7878else $as_nop
7879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880/* end confdefs.h.  */
7881int i;
7882_ACEOF
7883if ac_fn_c_try_compile "$LINENO"
7884then :
7885  xorg_cv_cc_flag_unknown_warning_option=yes
7886else $as_nop
7887  xorg_cv_cc_flag_unknown_warning_option=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7890fi
7891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7892printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7893	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7894	CFLAGS="$xorg_testset_save_CFLAGS"
7895fi
7896
7897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7898	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7899		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900	fi
7901	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7903printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7904if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7905then :
7906  printf %s "(cached) " >&6
7907else $as_nop
7908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909/* end confdefs.h.  */
7910int i;
7911_ACEOF
7912if ac_fn_c_try_compile "$LINENO"
7913then :
7914  xorg_cv_cc_flag_unused_command_line_argument=yes
7915else $as_nop
7916  xorg_cv_cc_flag_unused_command_line_argument=no
7917fi
7918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7919fi
7920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7921printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7922	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7923	CFLAGS="$xorg_testset_save_CFLAGS"
7924fi
7925
7926found="no"
7927
7928	if test $found = "no" ; then
7929		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7930			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7931		fi
7932
7933		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7934			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7935		fi
7936
7937		CFLAGS="$CFLAGS -Werror=return-type"
7938
7939		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7940printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7941		cacheid=xorg_cv_cc_flag__Werror_return_type
7942		if eval test \${$cacheid+y}
7943then :
7944  printf %s "(cached) " >&6
7945else $as_nop
7946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h.  */
7948int i;
7949int
7950main (void)
7951{
7952
7953  ;
7954  return 0;
7955}
7956_ACEOF
7957if ac_fn_c_try_link "$LINENO"
7958then :
7959  eval $cacheid=yes
7960else $as_nop
7961  eval $cacheid=no
7962fi
7963rm -f core conftest.err conftest.$ac_objext conftest.beam \
7964    conftest$ac_exeext conftest.$ac_ext
7965fi
7966
7967
7968		CFLAGS="$xorg_testset_save_CFLAGS"
7969
7970		eval supported=\$$cacheid
7971		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7972printf "%s\n" "$supported" >&6; }
7973		if test "$supported" = "yes" ; then
7974			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7975			found="yes"
7976		fi
7977	fi
7978
7979	if test $found = "no" ; then
7980		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7981			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7982		fi
7983
7984		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7985			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7986		fi
7987
7988		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7989
7990		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7991printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7992		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7993		if eval test \${$cacheid+y}
7994then :
7995  printf %s "(cached) " >&6
7996else $as_nop
7997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998/* end confdefs.h.  */
7999int i;
8000int
8001main (void)
8002{
8003
8004  ;
8005  return 0;
8006}
8007_ACEOF
8008if ac_fn_c_try_link "$LINENO"
8009then :
8010  eval $cacheid=yes
8011else $as_nop
8012  eval $cacheid=no
8013fi
8014rm -f core conftest.err conftest.$ac_objext conftest.beam \
8015    conftest$ac_exeext conftest.$ac_ext
8016fi
8017
8018
8019		CFLAGS="$xorg_testset_save_CFLAGS"
8020
8021		eval supported=\$$cacheid
8022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8023printf "%s\n" "$supported" >&6; }
8024		if test "$supported" = "yes" ; then
8025			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8026			found="yes"
8027		fi
8028	fi
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044xorg_testset_save_CFLAGS="$CFLAGS"
8045
8046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8049printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8050if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8051then :
8052  printf %s "(cached) " >&6
8053else $as_nop
8054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055/* end confdefs.h.  */
8056int i;
8057_ACEOF
8058if ac_fn_c_try_compile "$LINENO"
8059then :
8060  xorg_cv_cc_flag_unknown_warning_option=yes
8061else $as_nop
8062  xorg_cv_cc_flag_unknown_warning_option=no
8063fi
8064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8065fi
8066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8067printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8069	CFLAGS="$xorg_testset_save_CFLAGS"
8070fi
8071
8072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075	fi
8076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8078printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8079if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8080then :
8081  printf %s "(cached) " >&6
8082else $as_nop
8083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084/* end confdefs.h.  */
8085int i;
8086_ACEOF
8087if ac_fn_c_try_compile "$LINENO"
8088then :
8089  xorg_cv_cc_flag_unused_command_line_argument=yes
8090else $as_nop
8091  xorg_cv_cc_flag_unused_command_line_argument=no
8092fi
8093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8094fi
8095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8096printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8097	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8098	CFLAGS="$xorg_testset_save_CFLAGS"
8099fi
8100
8101found="no"
8102
8103	if test $found = "no" ; then
8104		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8106		fi
8107
8108		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8110		fi
8111
8112		CFLAGS="$CFLAGS -Werror=trigraphs"
8113
8114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8115printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8116		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8117		if eval test \${$cacheid+y}
8118then :
8119  printf %s "(cached) " >&6
8120else $as_nop
8121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122/* end confdefs.h.  */
8123int i;
8124int
8125main (void)
8126{
8127
8128  ;
8129  return 0;
8130}
8131_ACEOF
8132if ac_fn_c_try_link "$LINENO"
8133then :
8134  eval $cacheid=yes
8135else $as_nop
8136  eval $cacheid=no
8137fi
8138rm -f core conftest.err conftest.$ac_objext conftest.beam \
8139    conftest$ac_exeext conftest.$ac_ext
8140fi
8141
8142
8143		CFLAGS="$xorg_testset_save_CFLAGS"
8144
8145		eval supported=\$$cacheid
8146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8147printf "%s\n" "$supported" >&6; }
8148		if test "$supported" = "yes" ; then
8149			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8150			found="yes"
8151		fi
8152	fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168xorg_testset_save_CFLAGS="$CFLAGS"
8169
8170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8172	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8173printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8174if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8175then :
8176  printf %s "(cached) " >&6
8177else $as_nop
8178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179/* end confdefs.h.  */
8180int i;
8181_ACEOF
8182if ac_fn_c_try_compile "$LINENO"
8183then :
8184  xorg_cv_cc_flag_unknown_warning_option=yes
8185else $as_nop
8186  xorg_cv_cc_flag_unknown_warning_option=no
8187fi
8188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8189fi
8190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8191printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8192	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8193	CFLAGS="$xorg_testset_save_CFLAGS"
8194fi
8195
8196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8197	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8199	fi
8200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8201	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8202printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8203if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8204then :
8205  printf %s "(cached) " >&6
8206else $as_nop
8207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209int i;
8210_ACEOF
8211if ac_fn_c_try_compile "$LINENO"
8212then :
8213  xorg_cv_cc_flag_unused_command_line_argument=yes
8214else $as_nop
8215  xorg_cv_cc_flag_unused_command_line_argument=no
8216fi
8217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8218fi
8219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8220printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8221	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8222	CFLAGS="$xorg_testset_save_CFLAGS"
8223fi
8224
8225found="no"
8226
8227	if test $found = "no" ; then
8228		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8230		fi
8231
8232		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8234		fi
8235
8236		CFLAGS="$CFLAGS -Werror=array-bounds"
8237
8238		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8239printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8240		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8241		if eval test \${$cacheid+y}
8242then :
8243  printf %s "(cached) " >&6
8244else $as_nop
8245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246/* end confdefs.h.  */
8247int i;
8248int
8249main (void)
8250{
8251
8252  ;
8253  return 0;
8254}
8255_ACEOF
8256if ac_fn_c_try_link "$LINENO"
8257then :
8258  eval $cacheid=yes
8259else $as_nop
8260  eval $cacheid=no
8261fi
8262rm -f core conftest.err conftest.$ac_objext conftest.beam \
8263    conftest$ac_exeext conftest.$ac_ext
8264fi
8265
8266
8267		CFLAGS="$xorg_testset_save_CFLAGS"
8268
8269		eval supported=\$$cacheid
8270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8271printf "%s\n" "$supported" >&6; }
8272		if test "$supported" = "yes" ; then
8273			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8274			found="yes"
8275		fi
8276	fi
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292xorg_testset_save_CFLAGS="$CFLAGS"
8293
8294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8296	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8297printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8298if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8299then :
8300  printf %s "(cached) " >&6
8301else $as_nop
8302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303/* end confdefs.h.  */
8304int i;
8305_ACEOF
8306if ac_fn_c_try_compile "$LINENO"
8307then :
8308  xorg_cv_cc_flag_unknown_warning_option=yes
8309else $as_nop
8310  xorg_cv_cc_flag_unknown_warning_option=no
8311fi
8312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8313fi
8314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8315printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8316	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8317	CFLAGS="$xorg_testset_save_CFLAGS"
8318fi
8319
8320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8321	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8323	fi
8324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8325	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8326printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8327if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8328then :
8329  printf %s "(cached) " >&6
8330else $as_nop
8331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332/* end confdefs.h.  */
8333int i;
8334_ACEOF
8335if ac_fn_c_try_compile "$LINENO"
8336then :
8337  xorg_cv_cc_flag_unused_command_line_argument=yes
8338else $as_nop
8339  xorg_cv_cc_flag_unused_command_line_argument=no
8340fi
8341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8342fi
8343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8344printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8345	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8346	CFLAGS="$xorg_testset_save_CFLAGS"
8347fi
8348
8349found="no"
8350
8351	if test $found = "no" ; then
8352		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8354		fi
8355
8356		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8358		fi
8359
8360		CFLAGS="$CFLAGS -Werror=write-strings"
8361
8362		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8363printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8364		cacheid=xorg_cv_cc_flag__Werror_write_strings
8365		if eval test \${$cacheid+y}
8366then :
8367  printf %s "(cached) " >&6
8368else $as_nop
8369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370/* end confdefs.h.  */
8371int i;
8372int
8373main (void)
8374{
8375
8376  ;
8377  return 0;
8378}
8379_ACEOF
8380if ac_fn_c_try_link "$LINENO"
8381then :
8382  eval $cacheid=yes
8383else $as_nop
8384  eval $cacheid=no
8385fi
8386rm -f core conftest.err conftest.$ac_objext conftest.beam \
8387    conftest$ac_exeext conftest.$ac_ext
8388fi
8389
8390
8391		CFLAGS="$xorg_testset_save_CFLAGS"
8392
8393		eval supported=\$$cacheid
8394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8395printf "%s\n" "$supported" >&6; }
8396		if test "$supported" = "yes" ; then
8397			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8398			found="yes"
8399		fi
8400	fi
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416xorg_testset_save_CFLAGS="$CFLAGS"
8417
8418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8419	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8421printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8422if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8423then :
8424  printf %s "(cached) " >&6
8425else $as_nop
8426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h.  */
8428int i;
8429_ACEOF
8430if ac_fn_c_try_compile "$LINENO"
8431then :
8432  xorg_cv_cc_flag_unknown_warning_option=yes
8433else $as_nop
8434  xorg_cv_cc_flag_unknown_warning_option=no
8435fi
8436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8437fi
8438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8439printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8440	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8441	CFLAGS="$xorg_testset_save_CFLAGS"
8442fi
8443
8444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8445	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8447	fi
8448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8449	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8450printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8451if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8452then :
8453  printf %s "(cached) " >&6
8454else $as_nop
8455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456/* end confdefs.h.  */
8457int i;
8458_ACEOF
8459if ac_fn_c_try_compile "$LINENO"
8460then :
8461  xorg_cv_cc_flag_unused_command_line_argument=yes
8462else $as_nop
8463  xorg_cv_cc_flag_unused_command_line_argument=no
8464fi
8465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8466fi
8467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8468printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8469	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8470	CFLAGS="$xorg_testset_save_CFLAGS"
8471fi
8472
8473found="no"
8474
8475	if test $found = "no" ; then
8476		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8477			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8478		fi
8479
8480		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8481			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8482		fi
8483
8484		CFLAGS="$CFLAGS -Werror=address"
8485
8486		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8487printf %s "checking if $CC supports -Werror=address... " >&6; }
8488		cacheid=xorg_cv_cc_flag__Werror_address
8489		if eval test \${$cacheid+y}
8490then :
8491  printf %s "(cached) " >&6
8492else $as_nop
8493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494/* end confdefs.h.  */
8495int i;
8496int
8497main (void)
8498{
8499
8500  ;
8501  return 0;
8502}
8503_ACEOF
8504if ac_fn_c_try_link "$LINENO"
8505then :
8506  eval $cacheid=yes
8507else $as_nop
8508  eval $cacheid=no
8509fi
8510rm -f core conftest.err conftest.$ac_objext conftest.beam \
8511    conftest$ac_exeext conftest.$ac_ext
8512fi
8513
8514
8515		CFLAGS="$xorg_testset_save_CFLAGS"
8516
8517		eval supported=\$$cacheid
8518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8519printf "%s\n" "$supported" >&6; }
8520		if test "$supported" = "yes" ; then
8521			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8522			found="yes"
8523		fi
8524	fi
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540xorg_testset_save_CFLAGS="$CFLAGS"
8541
8542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8545printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8546if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8547then :
8548  printf %s "(cached) " >&6
8549else $as_nop
8550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551/* end confdefs.h.  */
8552int i;
8553_ACEOF
8554if ac_fn_c_try_compile "$LINENO"
8555then :
8556  xorg_cv_cc_flag_unknown_warning_option=yes
8557else $as_nop
8558  xorg_cv_cc_flag_unknown_warning_option=no
8559fi
8560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8561fi
8562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8563printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8564	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8565	CFLAGS="$xorg_testset_save_CFLAGS"
8566fi
8567
8568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8569	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8570		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8571	fi
8572	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8573	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8574printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8575if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8576then :
8577  printf %s "(cached) " >&6
8578else $as_nop
8579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580/* end confdefs.h.  */
8581int i;
8582_ACEOF
8583if ac_fn_c_try_compile "$LINENO"
8584then :
8585  xorg_cv_cc_flag_unused_command_line_argument=yes
8586else $as_nop
8587  xorg_cv_cc_flag_unused_command_line_argument=no
8588fi
8589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8590fi
8591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8592printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8593	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8594	CFLAGS="$xorg_testset_save_CFLAGS"
8595fi
8596
8597found="no"
8598
8599	if test $found = "no" ; then
8600		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8601			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8602		fi
8603
8604		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8605			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8606		fi
8607
8608		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8609
8610		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8611printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8612		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8613		if eval test \${$cacheid+y}
8614then :
8615  printf %s "(cached) " >&6
8616else $as_nop
8617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618/* end confdefs.h.  */
8619int i;
8620int
8621main (void)
8622{
8623
8624  ;
8625  return 0;
8626}
8627_ACEOF
8628if ac_fn_c_try_link "$LINENO"
8629then :
8630  eval $cacheid=yes
8631else $as_nop
8632  eval $cacheid=no
8633fi
8634rm -f core conftest.err conftest.$ac_objext conftest.beam \
8635    conftest$ac_exeext conftest.$ac_ext
8636fi
8637
8638
8639		CFLAGS="$xorg_testset_save_CFLAGS"
8640
8641		eval supported=\$$cacheid
8642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8643printf "%s\n" "$supported" >&6; }
8644		if test "$supported" = "yes" ; then
8645			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8646			found="yes"
8647		fi
8648	fi
8649
8650	if test $found = "no" ; then
8651		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8653		fi
8654
8655		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8657		fi
8658
8659		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8660
8661		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8662printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8663		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8664		if eval test \${$cacheid+y}
8665then :
8666  printf %s "(cached) " >&6
8667else $as_nop
8668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669/* end confdefs.h.  */
8670int i;
8671int
8672main (void)
8673{
8674
8675  ;
8676  return 0;
8677}
8678_ACEOF
8679if ac_fn_c_try_link "$LINENO"
8680then :
8681  eval $cacheid=yes
8682else $as_nop
8683  eval $cacheid=no
8684fi
8685rm -f core conftest.err conftest.$ac_objext conftest.beam \
8686    conftest$ac_exeext conftest.$ac_ext
8687fi
8688
8689
8690		CFLAGS="$xorg_testset_save_CFLAGS"
8691
8692		eval supported=\$$cacheid
8693		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8694printf "%s\n" "$supported" >&6; }
8695		if test "$supported" = "yes" ; then
8696			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8697			found="yes"
8698		fi
8699	fi
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715xorg_testset_save_CFLAGS="$CFLAGS"
8716
8717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8720printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8721if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8722then :
8723  printf %s "(cached) " >&6
8724else $as_nop
8725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h.  */
8727int i;
8728_ACEOF
8729if ac_fn_c_try_compile "$LINENO"
8730then :
8731  xorg_cv_cc_flag_unknown_warning_option=yes
8732else $as_nop
8733  xorg_cv_cc_flag_unknown_warning_option=no
8734fi
8735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8736fi
8737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8738printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8739	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8740	CFLAGS="$xorg_testset_save_CFLAGS"
8741fi
8742
8743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8744	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8746	fi
8747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8748	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8749printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8750if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8751then :
8752  printf %s "(cached) " >&6
8753else $as_nop
8754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755/* end confdefs.h.  */
8756int i;
8757_ACEOF
8758if ac_fn_c_try_compile "$LINENO"
8759then :
8760  xorg_cv_cc_flag_unused_command_line_argument=yes
8761else $as_nop
8762  xorg_cv_cc_flag_unused_command_line_argument=no
8763fi
8764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8765fi
8766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8767printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8769	CFLAGS="$xorg_testset_save_CFLAGS"
8770fi
8771
8772found="no"
8773
8774	if test $found = "no" ; then
8775		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777		fi
8778
8779		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8781		fi
8782
8783		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8784
8785		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8786printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8787		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
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 -Werror=pointer-to-int-cast"
8821			found="yes"
8822		fi
8823	fi
8824
8825 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8826else
8827{ 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
8828printf "%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;}
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842xorg_testset_save_CFLAGS="$CFLAGS"
8843
8844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8848if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8849then :
8850  printf %s "(cached) " >&6
8851else $as_nop
8852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853/* end confdefs.h.  */
8854int i;
8855_ACEOF
8856if ac_fn_c_try_compile "$LINENO"
8857then :
8858  xorg_cv_cc_flag_unknown_warning_option=yes
8859else $as_nop
8860  xorg_cv_cc_flag_unknown_warning_option=no
8861fi
8862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8863fi
8864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8867	CFLAGS="$xorg_testset_save_CFLAGS"
8868fi
8869
8870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8873	fi
8874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8877if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8878then :
8879  printf %s "(cached) " >&6
8880else $as_nop
8881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882/* end confdefs.h.  */
8883int i;
8884_ACEOF
8885if ac_fn_c_try_compile "$LINENO"
8886then :
8887  xorg_cv_cc_flag_unused_command_line_argument=yes
8888else $as_nop
8889  xorg_cv_cc_flag_unused_command_line_argument=no
8890fi
8891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8892fi
8893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8896	CFLAGS="$xorg_testset_save_CFLAGS"
8897fi
8898
8899found="no"
8900
8901	if test $found = "no" ; then
8902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8904		fi
8905
8906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8908		fi
8909
8910		CFLAGS="$CFLAGS -Wimplicit"
8911
8912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8913printf %s "checking if $CC supports -Wimplicit... " >&6; }
8914		cacheid=xorg_cv_cc_flag__Wimplicit
8915		if eval test \${$cacheid+y}
8916then :
8917  printf %s "(cached) " >&6
8918else $as_nop
8919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920/* end confdefs.h.  */
8921int i;
8922int
8923main (void)
8924{
8925
8926  ;
8927  return 0;
8928}
8929_ACEOF
8930if ac_fn_c_try_link "$LINENO"
8931then :
8932  eval $cacheid=yes
8933else $as_nop
8934  eval $cacheid=no
8935fi
8936rm -f core conftest.err conftest.$ac_objext conftest.beam \
8937    conftest$ac_exeext conftest.$ac_ext
8938fi
8939
8940
8941		CFLAGS="$xorg_testset_save_CFLAGS"
8942
8943		eval supported=\$$cacheid
8944		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8945printf "%s\n" "$supported" >&6; }
8946		if test "$supported" = "yes" ; then
8947			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8948			found="yes"
8949		fi
8950	fi
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966xorg_testset_save_CFLAGS="$CFLAGS"
8967
8968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8972if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8973then :
8974  printf %s "(cached) " >&6
8975else $as_nop
8976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979_ACEOF
8980if ac_fn_c_try_compile "$LINENO"
8981then :
8982  xorg_cv_cc_flag_unknown_warning_option=yes
8983else $as_nop
8984  xorg_cv_cc_flag_unknown_warning_option=no
8985fi
8986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8987fi
8988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8991	CFLAGS="$xorg_testset_save_CFLAGS"
8992fi
8993
8994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8997	fi
8998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9001if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9002then :
9003  printf %s "(cached) " >&6
9004else $as_nop
9005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006/* end confdefs.h.  */
9007int i;
9008_ACEOF
9009if ac_fn_c_try_compile "$LINENO"
9010then :
9011  xorg_cv_cc_flag_unused_command_line_argument=yes
9012else $as_nop
9013  xorg_cv_cc_flag_unused_command_line_argument=no
9014fi
9015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9016fi
9017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9020	CFLAGS="$xorg_testset_save_CFLAGS"
9021fi
9022
9023found="no"
9024
9025	if test $found = "no" ; then
9026		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9028		fi
9029
9030		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9032		fi
9033
9034		CFLAGS="$CFLAGS -Wnonnull"
9035
9036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9037printf %s "checking if $CC supports -Wnonnull... " >&6; }
9038		cacheid=xorg_cv_cc_flag__Wnonnull
9039		if eval test \${$cacheid+y}
9040then :
9041  printf %s "(cached) " >&6
9042else $as_nop
9043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044/* end confdefs.h.  */
9045int i;
9046int
9047main (void)
9048{
9049
9050  ;
9051  return 0;
9052}
9053_ACEOF
9054if ac_fn_c_try_link "$LINENO"
9055then :
9056  eval $cacheid=yes
9057else $as_nop
9058  eval $cacheid=no
9059fi
9060rm -f core conftest.err conftest.$ac_objext conftest.beam \
9061    conftest$ac_exeext conftest.$ac_ext
9062fi
9063
9064
9065		CFLAGS="$xorg_testset_save_CFLAGS"
9066
9067		eval supported=\$$cacheid
9068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9069printf "%s\n" "$supported" >&6; }
9070		if test "$supported" = "yes" ; then
9071			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9072			found="yes"
9073		fi
9074	fi
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090xorg_testset_save_CFLAGS="$CFLAGS"
9091
9092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9096if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9097then :
9098  printf %s "(cached) " >&6
9099else $as_nop
9100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h.  */
9102int i;
9103_ACEOF
9104if ac_fn_c_try_compile "$LINENO"
9105then :
9106  xorg_cv_cc_flag_unknown_warning_option=yes
9107else $as_nop
9108  xorg_cv_cc_flag_unknown_warning_option=no
9109fi
9110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9111fi
9112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9115	CFLAGS="$xorg_testset_save_CFLAGS"
9116fi
9117
9118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9121	fi
9122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9123	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9125if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9126then :
9127  printf %s "(cached) " >&6
9128else $as_nop
9129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130/* end confdefs.h.  */
9131int i;
9132_ACEOF
9133if ac_fn_c_try_compile "$LINENO"
9134then :
9135  xorg_cv_cc_flag_unused_command_line_argument=yes
9136else $as_nop
9137  xorg_cv_cc_flag_unused_command_line_argument=no
9138fi
9139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9140fi
9141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9143	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9144	CFLAGS="$xorg_testset_save_CFLAGS"
9145fi
9146
9147found="no"
9148
9149	if test $found = "no" ; then
9150		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9152		fi
9153
9154		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9156		fi
9157
9158		CFLAGS="$CFLAGS -Winit-self"
9159
9160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9161printf %s "checking if $CC supports -Winit-self... " >&6; }
9162		cacheid=xorg_cv_cc_flag__Winit_self
9163		if eval test \${$cacheid+y}
9164then :
9165  printf %s "(cached) " >&6
9166else $as_nop
9167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168/* end confdefs.h.  */
9169int i;
9170int
9171main (void)
9172{
9173
9174  ;
9175  return 0;
9176}
9177_ACEOF
9178if ac_fn_c_try_link "$LINENO"
9179then :
9180  eval $cacheid=yes
9181else $as_nop
9182  eval $cacheid=no
9183fi
9184rm -f core conftest.err conftest.$ac_objext conftest.beam \
9185    conftest$ac_exeext conftest.$ac_ext
9186fi
9187
9188
9189		CFLAGS="$xorg_testset_save_CFLAGS"
9190
9191		eval supported=\$$cacheid
9192		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9193printf "%s\n" "$supported" >&6; }
9194		if test "$supported" = "yes" ; then
9195			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9196			found="yes"
9197		fi
9198	fi
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214xorg_testset_save_CFLAGS="$CFLAGS"
9215
9216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9220if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9221then :
9222  printf %s "(cached) " >&6
9223else $as_nop
9224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225/* end confdefs.h.  */
9226int i;
9227_ACEOF
9228if ac_fn_c_try_compile "$LINENO"
9229then :
9230  xorg_cv_cc_flag_unknown_warning_option=yes
9231else $as_nop
9232  xorg_cv_cc_flag_unknown_warning_option=no
9233fi
9234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9235fi
9236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9239	CFLAGS="$xorg_testset_save_CFLAGS"
9240fi
9241
9242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9245	fi
9246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9249if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9250then :
9251  printf %s "(cached) " >&6
9252else $as_nop
9253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254/* end confdefs.h.  */
9255int i;
9256_ACEOF
9257if ac_fn_c_try_compile "$LINENO"
9258then :
9259  xorg_cv_cc_flag_unused_command_line_argument=yes
9260else $as_nop
9261  xorg_cv_cc_flag_unused_command_line_argument=no
9262fi
9263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9264fi
9265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9268	CFLAGS="$xorg_testset_save_CFLAGS"
9269fi
9270
9271found="no"
9272
9273	if test $found = "no" ; then
9274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9276		fi
9277
9278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9280		fi
9281
9282		CFLAGS="$CFLAGS -Wmain"
9283
9284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9285printf %s "checking if $CC supports -Wmain... " >&6; }
9286		cacheid=xorg_cv_cc_flag__Wmain
9287		if eval test \${$cacheid+y}
9288then :
9289  printf %s "(cached) " >&6
9290else $as_nop
9291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h.  */
9293int i;
9294int
9295main (void)
9296{
9297
9298  ;
9299  return 0;
9300}
9301_ACEOF
9302if ac_fn_c_try_link "$LINENO"
9303then :
9304  eval $cacheid=yes
9305else $as_nop
9306  eval $cacheid=no
9307fi
9308rm -f core conftest.err conftest.$ac_objext conftest.beam \
9309    conftest$ac_exeext conftest.$ac_ext
9310fi
9311
9312
9313		CFLAGS="$xorg_testset_save_CFLAGS"
9314
9315		eval supported=\$$cacheid
9316		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9317printf "%s\n" "$supported" >&6; }
9318		if test "$supported" = "yes" ; then
9319			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9320			found="yes"
9321		fi
9322	fi
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338xorg_testset_save_CFLAGS="$CFLAGS"
9339
9340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9341	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9342	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9343printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9344if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9345then :
9346  printf %s "(cached) " >&6
9347else $as_nop
9348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349/* end confdefs.h.  */
9350int i;
9351_ACEOF
9352if ac_fn_c_try_compile "$LINENO"
9353then :
9354  xorg_cv_cc_flag_unknown_warning_option=yes
9355else $as_nop
9356  xorg_cv_cc_flag_unknown_warning_option=no
9357fi
9358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9359fi
9360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9361printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9362	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9363	CFLAGS="$xorg_testset_save_CFLAGS"
9364fi
9365
9366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9367	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9369	fi
9370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9372printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9373if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9374then :
9375  printf %s "(cached) " >&6
9376else $as_nop
9377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h.  */
9379int i;
9380_ACEOF
9381if ac_fn_c_try_compile "$LINENO"
9382then :
9383  xorg_cv_cc_flag_unused_command_line_argument=yes
9384else $as_nop
9385  xorg_cv_cc_flag_unused_command_line_argument=no
9386fi
9387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9388fi
9389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9390printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9391	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9392	CFLAGS="$xorg_testset_save_CFLAGS"
9393fi
9394
9395found="no"
9396
9397	if test $found = "no" ; then
9398		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9399			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9400		fi
9401
9402		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9403			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9404		fi
9405
9406		CFLAGS="$CFLAGS -Wmissing-braces"
9407
9408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9409printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9410		cacheid=xorg_cv_cc_flag__Wmissing_braces
9411		if eval test \${$cacheid+y}
9412then :
9413  printf %s "(cached) " >&6
9414else $as_nop
9415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416/* end confdefs.h.  */
9417int i;
9418int
9419main (void)
9420{
9421
9422  ;
9423  return 0;
9424}
9425_ACEOF
9426if ac_fn_c_try_link "$LINENO"
9427then :
9428  eval $cacheid=yes
9429else $as_nop
9430  eval $cacheid=no
9431fi
9432rm -f core conftest.err conftest.$ac_objext conftest.beam \
9433    conftest$ac_exeext conftest.$ac_ext
9434fi
9435
9436
9437		CFLAGS="$xorg_testset_save_CFLAGS"
9438
9439		eval supported=\$$cacheid
9440		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9441printf "%s\n" "$supported" >&6; }
9442		if test "$supported" = "yes" ; then
9443			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9444			found="yes"
9445		fi
9446	fi
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462xorg_testset_save_CFLAGS="$CFLAGS"
9463
9464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9465	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9466	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9467printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9468if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9469then :
9470  printf %s "(cached) " >&6
9471else $as_nop
9472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474int i;
9475_ACEOF
9476if ac_fn_c_try_compile "$LINENO"
9477then :
9478  xorg_cv_cc_flag_unknown_warning_option=yes
9479else $as_nop
9480  xorg_cv_cc_flag_unknown_warning_option=no
9481fi
9482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9483fi
9484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9485printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9486	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9487	CFLAGS="$xorg_testset_save_CFLAGS"
9488fi
9489
9490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9491	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9492		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9493	fi
9494	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9495	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9496printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9497if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9498then :
9499  printf %s "(cached) " >&6
9500else $as_nop
9501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502/* end confdefs.h.  */
9503int i;
9504_ACEOF
9505if ac_fn_c_try_compile "$LINENO"
9506then :
9507  xorg_cv_cc_flag_unused_command_line_argument=yes
9508else $as_nop
9509  xorg_cv_cc_flag_unused_command_line_argument=no
9510fi
9511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9512fi
9513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9515	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9516	CFLAGS="$xorg_testset_save_CFLAGS"
9517fi
9518
9519found="no"
9520
9521	if test $found = "no" ; then
9522		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9524		fi
9525
9526		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9528		fi
9529
9530		CFLAGS="$CFLAGS -Wsequence-point"
9531
9532		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9533printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9534		cacheid=xorg_cv_cc_flag__Wsequence_point
9535		if eval test \${$cacheid+y}
9536then :
9537  printf %s "(cached) " >&6
9538else $as_nop
9539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h.  */
9541int i;
9542int
9543main (void)
9544{
9545
9546  ;
9547  return 0;
9548}
9549_ACEOF
9550if ac_fn_c_try_link "$LINENO"
9551then :
9552  eval $cacheid=yes
9553else $as_nop
9554  eval $cacheid=no
9555fi
9556rm -f core conftest.err conftest.$ac_objext conftest.beam \
9557    conftest$ac_exeext conftest.$ac_ext
9558fi
9559
9560
9561		CFLAGS="$xorg_testset_save_CFLAGS"
9562
9563		eval supported=\$$cacheid
9564		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9565printf "%s\n" "$supported" >&6; }
9566		if test "$supported" = "yes" ; then
9567			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9568			found="yes"
9569		fi
9570	fi
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586xorg_testset_save_CFLAGS="$CFLAGS"
9587
9588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9589	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9590	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9591printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9592if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9593then :
9594  printf %s "(cached) " >&6
9595else $as_nop
9596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597/* end confdefs.h.  */
9598int i;
9599_ACEOF
9600if ac_fn_c_try_compile "$LINENO"
9601then :
9602  xorg_cv_cc_flag_unknown_warning_option=yes
9603else $as_nop
9604  xorg_cv_cc_flag_unknown_warning_option=no
9605fi
9606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9607fi
9608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9609printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9610	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9611	CFLAGS="$xorg_testset_save_CFLAGS"
9612fi
9613
9614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9615	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9616		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9617	fi
9618	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9619	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9620printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9621if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9622then :
9623  printf %s "(cached) " >&6
9624else $as_nop
9625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626/* end confdefs.h.  */
9627int i;
9628_ACEOF
9629if ac_fn_c_try_compile "$LINENO"
9630then :
9631  xorg_cv_cc_flag_unused_command_line_argument=yes
9632else $as_nop
9633  xorg_cv_cc_flag_unused_command_line_argument=no
9634fi
9635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9636fi
9637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9638printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9639	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9640	CFLAGS="$xorg_testset_save_CFLAGS"
9641fi
9642
9643found="no"
9644
9645	if test $found = "no" ; then
9646		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9647			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9648		fi
9649
9650		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9651			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9652		fi
9653
9654		CFLAGS="$CFLAGS -Wreturn-type"
9655
9656		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9657printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9658		cacheid=xorg_cv_cc_flag__Wreturn_type
9659		if eval test \${$cacheid+y}
9660then :
9661  printf %s "(cached) " >&6
9662else $as_nop
9663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664/* end confdefs.h.  */
9665int i;
9666int
9667main (void)
9668{
9669
9670  ;
9671  return 0;
9672}
9673_ACEOF
9674if ac_fn_c_try_link "$LINENO"
9675then :
9676  eval $cacheid=yes
9677else $as_nop
9678  eval $cacheid=no
9679fi
9680rm -f core conftest.err conftest.$ac_objext conftest.beam \
9681    conftest$ac_exeext conftest.$ac_ext
9682fi
9683
9684
9685		CFLAGS="$xorg_testset_save_CFLAGS"
9686
9687		eval supported=\$$cacheid
9688		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9689printf "%s\n" "$supported" >&6; }
9690		if test "$supported" = "yes" ; then
9691			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9692			found="yes"
9693		fi
9694	fi
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710xorg_testset_save_CFLAGS="$CFLAGS"
9711
9712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9713	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9714	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9715printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9716if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9717then :
9718  printf %s "(cached) " >&6
9719else $as_nop
9720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721/* end confdefs.h.  */
9722int i;
9723_ACEOF
9724if ac_fn_c_try_compile "$LINENO"
9725then :
9726  xorg_cv_cc_flag_unknown_warning_option=yes
9727else $as_nop
9728  xorg_cv_cc_flag_unknown_warning_option=no
9729fi
9730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9731fi
9732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9733printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9734	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9735	CFLAGS="$xorg_testset_save_CFLAGS"
9736fi
9737
9738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9739	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9740		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9741	fi
9742	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9743	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9744printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9745if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9746then :
9747  printf %s "(cached) " >&6
9748else $as_nop
9749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750/* end confdefs.h.  */
9751int i;
9752_ACEOF
9753if ac_fn_c_try_compile "$LINENO"
9754then :
9755  xorg_cv_cc_flag_unused_command_line_argument=yes
9756else $as_nop
9757  xorg_cv_cc_flag_unused_command_line_argument=no
9758fi
9759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9760fi
9761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9762printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9763	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9764	CFLAGS="$xorg_testset_save_CFLAGS"
9765fi
9766
9767found="no"
9768
9769	if test $found = "no" ; then
9770		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9771			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9772		fi
9773
9774		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9775			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9776		fi
9777
9778		CFLAGS="$CFLAGS -Wtrigraphs"
9779
9780		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9781printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9782		cacheid=xorg_cv_cc_flag__Wtrigraphs
9783		if eval test \${$cacheid+y}
9784then :
9785  printf %s "(cached) " >&6
9786else $as_nop
9787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788/* end confdefs.h.  */
9789int i;
9790int
9791main (void)
9792{
9793
9794  ;
9795  return 0;
9796}
9797_ACEOF
9798if ac_fn_c_try_link "$LINENO"
9799then :
9800  eval $cacheid=yes
9801else $as_nop
9802  eval $cacheid=no
9803fi
9804rm -f core conftest.err conftest.$ac_objext conftest.beam \
9805    conftest$ac_exeext conftest.$ac_ext
9806fi
9807
9808
9809		CFLAGS="$xorg_testset_save_CFLAGS"
9810
9811		eval supported=\$$cacheid
9812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9813printf "%s\n" "$supported" >&6; }
9814		if test "$supported" = "yes" ; then
9815			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9816			found="yes"
9817		fi
9818	fi
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834xorg_testset_save_CFLAGS="$CFLAGS"
9835
9836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9837	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9838	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9839printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9840if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9841then :
9842  printf %s "(cached) " >&6
9843else $as_nop
9844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845/* end confdefs.h.  */
9846int i;
9847_ACEOF
9848if ac_fn_c_try_compile "$LINENO"
9849then :
9850  xorg_cv_cc_flag_unknown_warning_option=yes
9851else $as_nop
9852  xorg_cv_cc_flag_unknown_warning_option=no
9853fi
9854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9855fi
9856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9857printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9858	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9859	CFLAGS="$xorg_testset_save_CFLAGS"
9860fi
9861
9862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9863	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9864		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9865	fi
9866	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9867	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9868printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9869if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9870then :
9871  printf %s "(cached) " >&6
9872else $as_nop
9873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h.  */
9875int i;
9876_ACEOF
9877if ac_fn_c_try_compile "$LINENO"
9878then :
9879  xorg_cv_cc_flag_unused_command_line_argument=yes
9880else $as_nop
9881  xorg_cv_cc_flag_unused_command_line_argument=no
9882fi
9883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9884fi
9885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9886printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9888	CFLAGS="$xorg_testset_save_CFLAGS"
9889fi
9890
9891found="no"
9892
9893	if test $found = "no" ; then
9894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9896		fi
9897
9898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9900		fi
9901
9902		CFLAGS="$CFLAGS -Warray-bounds"
9903
9904		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9905printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9906		cacheid=xorg_cv_cc_flag__Warray_bounds
9907		if eval test \${$cacheid+y}
9908then :
9909  printf %s "(cached) " >&6
9910else $as_nop
9911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912/* end confdefs.h.  */
9913int i;
9914int
9915main (void)
9916{
9917
9918  ;
9919  return 0;
9920}
9921_ACEOF
9922if ac_fn_c_try_link "$LINENO"
9923then :
9924  eval $cacheid=yes
9925else $as_nop
9926  eval $cacheid=no
9927fi
9928rm -f core conftest.err conftest.$ac_objext conftest.beam \
9929    conftest$ac_exeext conftest.$ac_ext
9930fi
9931
9932
9933		CFLAGS="$xorg_testset_save_CFLAGS"
9934
9935		eval supported=\$$cacheid
9936		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9937printf "%s\n" "$supported" >&6; }
9938		if test "$supported" = "yes" ; then
9939			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9940			found="yes"
9941		fi
9942	fi
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958xorg_testset_save_CFLAGS="$CFLAGS"
9959
9960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9962	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9963printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9964if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9965then :
9966  printf %s "(cached) " >&6
9967else $as_nop
9968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969/* end confdefs.h.  */
9970int i;
9971_ACEOF
9972if ac_fn_c_try_compile "$LINENO"
9973then :
9974  xorg_cv_cc_flag_unknown_warning_option=yes
9975else $as_nop
9976  xorg_cv_cc_flag_unknown_warning_option=no
9977fi
9978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9979fi
9980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9982	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9983	CFLAGS="$xorg_testset_save_CFLAGS"
9984fi
9985
9986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9987	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9988		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9989	fi
9990	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9991	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9993if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9994then :
9995  printf %s "(cached) " >&6
9996else $as_nop
9997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998/* end confdefs.h.  */
9999int i;
10000_ACEOF
10001if ac_fn_c_try_compile "$LINENO"
10002then :
10003  xorg_cv_cc_flag_unused_command_line_argument=yes
10004else $as_nop
10005  xorg_cv_cc_flag_unused_command_line_argument=no
10006fi
10007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10008fi
10009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10010printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10012	CFLAGS="$xorg_testset_save_CFLAGS"
10013fi
10014
10015found="no"
10016
10017	if test $found = "no" ; then
10018		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10020		fi
10021
10022		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10024		fi
10025
10026		CFLAGS="$CFLAGS -Wwrite-strings"
10027
10028		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10029printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10030		cacheid=xorg_cv_cc_flag__Wwrite_strings
10031		if eval test \${$cacheid+y}
10032then :
10033  printf %s "(cached) " >&6
10034else $as_nop
10035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036/* end confdefs.h.  */
10037int i;
10038int
10039main (void)
10040{
10041
10042  ;
10043  return 0;
10044}
10045_ACEOF
10046if ac_fn_c_try_link "$LINENO"
10047then :
10048  eval $cacheid=yes
10049else $as_nop
10050  eval $cacheid=no
10051fi
10052rm -f core conftest.err conftest.$ac_objext conftest.beam \
10053    conftest$ac_exeext conftest.$ac_ext
10054fi
10055
10056
10057		CFLAGS="$xorg_testset_save_CFLAGS"
10058
10059		eval supported=\$$cacheid
10060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10061printf "%s\n" "$supported" >&6; }
10062		if test "$supported" = "yes" ; then
10063			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10064			found="yes"
10065		fi
10066	fi
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082xorg_testset_save_CFLAGS="$CFLAGS"
10083
10084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10086	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10087printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10088if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10089then :
10090  printf %s "(cached) " >&6
10091else $as_nop
10092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093/* end confdefs.h.  */
10094int i;
10095_ACEOF
10096if ac_fn_c_try_compile "$LINENO"
10097then :
10098  xorg_cv_cc_flag_unknown_warning_option=yes
10099else $as_nop
10100  xorg_cv_cc_flag_unknown_warning_option=no
10101fi
10102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10103fi
10104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10105printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10107	CFLAGS="$xorg_testset_save_CFLAGS"
10108fi
10109
10110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10113	fi
10114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10115	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10116printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10117if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10118then :
10119  printf %s "(cached) " >&6
10120else $as_nop
10121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122/* end confdefs.h.  */
10123int i;
10124_ACEOF
10125if ac_fn_c_try_compile "$LINENO"
10126then :
10127  xorg_cv_cc_flag_unused_command_line_argument=yes
10128else $as_nop
10129  xorg_cv_cc_flag_unused_command_line_argument=no
10130fi
10131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10132fi
10133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10134printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10135	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10136	CFLAGS="$xorg_testset_save_CFLAGS"
10137fi
10138
10139found="no"
10140
10141	if test $found = "no" ; then
10142		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10143			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10144		fi
10145
10146		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10147			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10148		fi
10149
10150		CFLAGS="$CFLAGS -Waddress"
10151
10152		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10153printf %s "checking if $CC supports -Waddress... " >&6; }
10154		cacheid=xorg_cv_cc_flag__Waddress
10155		if eval test \${$cacheid+y}
10156then :
10157  printf %s "(cached) " >&6
10158else $as_nop
10159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160/* end confdefs.h.  */
10161int i;
10162int
10163main (void)
10164{
10165
10166  ;
10167  return 0;
10168}
10169_ACEOF
10170if ac_fn_c_try_link "$LINENO"
10171then :
10172  eval $cacheid=yes
10173else $as_nop
10174  eval $cacheid=no
10175fi
10176rm -f core conftest.err conftest.$ac_objext conftest.beam \
10177    conftest$ac_exeext conftest.$ac_ext
10178fi
10179
10180
10181		CFLAGS="$xorg_testset_save_CFLAGS"
10182
10183		eval supported=\$$cacheid
10184		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10185printf "%s\n" "$supported" >&6; }
10186		if test "$supported" = "yes" ; then
10187			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10188			found="yes"
10189		fi
10190	fi
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206xorg_testset_save_CFLAGS="$CFLAGS"
10207
10208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10210	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10211printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10212if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10213then :
10214  printf %s "(cached) " >&6
10215else $as_nop
10216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218int i;
10219_ACEOF
10220if ac_fn_c_try_compile "$LINENO"
10221then :
10222  xorg_cv_cc_flag_unknown_warning_option=yes
10223else $as_nop
10224  xorg_cv_cc_flag_unknown_warning_option=no
10225fi
10226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10227fi
10228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10229printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10231	CFLAGS="$xorg_testset_save_CFLAGS"
10232fi
10233
10234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10237	fi
10238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10239	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10240printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10241if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10242then :
10243  printf %s "(cached) " >&6
10244else $as_nop
10245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246/* end confdefs.h.  */
10247int i;
10248_ACEOF
10249if ac_fn_c_try_compile "$LINENO"
10250then :
10251  xorg_cv_cc_flag_unused_command_line_argument=yes
10252else $as_nop
10253  xorg_cv_cc_flag_unused_command_line_argument=no
10254fi
10255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10256fi
10257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10258printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10260	CFLAGS="$xorg_testset_save_CFLAGS"
10261fi
10262
10263found="no"
10264
10265	if test $found = "no" ; then
10266		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10268		fi
10269
10270		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10272		fi
10273
10274		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10275
10276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10277printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10278		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10279		if eval test \${$cacheid+y}
10280then :
10281  printf %s "(cached) " >&6
10282else $as_nop
10283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284/* end confdefs.h.  */
10285int i;
10286int
10287main (void)
10288{
10289
10290  ;
10291  return 0;
10292}
10293_ACEOF
10294if ac_fn_c_try_link "$LINENO"
10295then :
10296  eval $cacheid=yes
10297else $as_nop
10298  eval $cacheid=no
10299fi
10300rm -f core conftest.err conftest.$ac_objext conftest.beam \
10301    conftest$ac_exeext conftest.$ac_ext
10302fi
10303
10304
10305		CFLAGS="$xorg_testset_save_CFLAGS"
10306
10307		eval supported=\$$cacheid
10308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10309printf "%s\n" "$supported" >&6; }
10310		if test "$supported" = "yes" ; then
10311			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10312			found="yes"
10313		fi
10314	fi
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330xorg_testset_save_CFLAGS="$CFLAGS"
10331
10332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10333	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10334	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10335printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10336if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10337then :
10338  printf %s "(cached) " >&6
10339else $as_nop
10340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341/* end confdefs.h.  */
10342int i;
10343_ACEOF
10344if ac_fn_c_try_compile "$LINENO"
10345then :
10346  xorg_cv_cc_flag_unknown_warning_option=yes
10347else $as_nop
10348  xorg_cv_cc_flag_unknown_warning_option=no
10349fi
10350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10351fi
10352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10353printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10355	CFLAGS="$xorg_testset_save_CFLAGS"
10356fi
10357
10358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10361	fi
10362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10364printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10365if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10366then :
10367  printf %s "(cached) " >&6
10368else $as_nop
10369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370/* end confdefs.h.  */
10371int i;
10372_ACEOF
10373if ac_fn_c_try_compile "$LINENO"
10374then :
10375  xorg_cv_cc_flag_unused_command_line_argument=yes
10376else $as_nop
10377  xorg_cv_cc_flag_unused_command_line_argument=no
10378fi
10379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10380fi
10381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10382printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10383	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10384	CFLAGS="$xorg_testset_save_CFLAGS"
10385fi
10386
10387found="no"
10388
10389	if test $found = "no" ; then
10390		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10391			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10392		fi
10393
10394		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10395			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10396		fi
10397
10398		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10399
10400		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10401printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10402		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10403		if eval test \${$cacheid+y}
10404then :
10405  printf %s "(cached) " >&6
10406else $as_nop
10407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408/* end confdefs.h.  */
10409int i;
10410int
10411main (void)
10412{
10413
10414  ;
10415  return 0;
10416}
10417_ACEOF
10418if ac_fn_c_try_link "$LINENO"
10419then :
10420  eval $cacheid=yes
10421else $as_nop
10422  eval $cacheid=no
10423fi
10424rm -f core conftest.err conftest.$ac_objext conftest.beam \
10425    conftest$ac_exeext conftest.$ac_ext
10426fi
10427
10428
10429		CFLAGS="$xorg_testset_save_CFLAGS"
10430
10431		eval supported=\$$cacheid
10432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10433printf "%s\n" "$supported" >&6; }
10434		if test "$supported" = "yes" ; then
10435			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10436			found="yes"
10437		fi
10438	fi
10439
10440
10441fi
10442
10443
10444
10445
10446
10447
10448
10449		CWARNFLAGS="$BASE_CFLAGS"
10450		if  test "x$GCC" = xyes ; then
10451		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10452		fi
10453
10454
10455
10456
10457
10458
10459
10460
10461# Check whether --enable-strict-compilation was given.
10462if test ${enable_strict_compilation+y}
10463then :
10464  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10465else $as_nop
10466  STRICT_COMPILE=no
10467fi
10468
10469
10470
10471
10472
10473
10474STRICT_CFLAGS=""
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488xorg_testset_save_CFLAGS="$CFLAGS"
10489
10490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10493printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10494if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10495then :
10496  printf %s "(cached) " >&6
10497else $as_nop
10498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499/* end confdefs.h.  */
10500int i;
10501_ACEOF
10502if ac_fn_c_try_compile "$LINENO"
10503then :
10504  xorg_cv_cc_flag_unknown_warning_option=yes
10505else $as_nop
10506  xorg_cv_cc_flag_unknown_warning_option=no
10507fi
10508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10509fi
10510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10511printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10512	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10513	CFLAGS="$xorg_testset_save_CFLAGS"
10514fi
10515
10516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10517	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10518		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10519	fi
10520	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10521	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10522printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10523if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10524then :
10525  printf %s "(cached) " >&6
10526else $as_nop
10527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528/* end confdefs.h.  */
10529int i;
10530_ACEOF
10531if ac_fn_c_try_compile "$LINENO"
10532then :
10533  xorg_cv_cc_flag_unused_command_line_argument=yes
10534else $as_nop
10535  xorg_cv_cc_flag_unused_command_line_argument=no
10536fi
10537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10538fi
10539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10540printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10541	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10542	CFLAGS="$xorg_testset_save_CFLAGS"
10543fi
10544
10545found="no"
10546
10547	if test $found = "no" ; then
10548		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10549			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10550		fi
10551
10552		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10553			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10554		fi
10555
10556		CFLAGS="$CFLAGS -pedantic"
10557
10558		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10559printf %s "checking if $CC supports -pedantic... " >&6; }
10560		cacheid=xorg_cv_cc_flag__pedantic
10561		if eval test \${$cacheid+y}
10562then :
10563  printf %s "(cached) " >&6
10564else $as_nop
10565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566/* end confdefs.h.  */
10567int i;
10568int
10569main (void)
10570{
10571
10572  ;
10573  return 0;
10574}
10575_ACEOF
10576if ac_fn_c_try_link "$LINENO"
10577then :
10578  eval $cacheid=yes
10579else $as_nop
10580  eval $cacheid=no
10581fi
10582rm -f core conftest.err conftest.$ac_objext conftest.beam \
10583    conftest$ac_exeext conftest.$ac_ext
10584fi
10585
10586
10587		CFLAGS="$xorg_testset_save_CFLAGS"
10588
10589		eval supported=\$$cacheid
10590		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10591printf "%s\n" "$supported" >&6; }
10592		if test "$supported" = "yes" ; then
10593			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10594			found="yes"
10595		fi
10596	fi
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612xorg_testset_save_CFLAGS="$CFLAGS"
10613
10614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10618if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10619then :
10620  printf %s "(cached) " >&6
10621else $as_nop
10622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623/* end confdefs.h.  */
10624int i;
10625_ACEOF
10626if ac_fn_c_try_compile "$LINENO"
10627then :
10628  xorg_cv_cc_flag_unknown_warning_option=yes
10629else $as_nop
10630  xorg_cv_cc_flag_unknown_warning_option=no
10631fi
10632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10633fi
10634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10635printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10637	CFLAGS="$xorg_testset_save_CFLAGS"
10638fi
10639
10640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10643	fi
10644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10645	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10646printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10647if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10648then :
10649  printf %s "(cached) " >&6
10650else $as_nop
10651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652/* end confdefs.h.  */
10653int i;
10654_ACEOF
10655if ac_fn_c_try_compile "$LINENO"
10656then :
10657  xorg_cv_cc_flag_unused_command_line_argument=yes
10658else $as_nop
10659  xorg_cv_cc_flag_unused_command_line_argument=no
10660fi
10661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10662fi
10663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10664printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10666	CFLAGS="$xorg_testset_save_CFLAGS"
10667fi
10668
10669found="no"
10670
10671	if test $found = "no" ; then
10672		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10674		fi
10675
10676		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10678		fi
10679
10680		CFLAGS="$CFLAGS -Werror"
10681
10682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10683printf %s "checking if $CC supports -Werror... " >&6; }
10684		cacheid=xorg_cv_cc_flag__Werror
10685		if eval test \${$cacheid+y}
10686then :
10687  printf %s "(cached) " >&6
10688else $as_nop
10689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690/* end confdefs.h.  */
10691int i;
10692int
10693main (void)
10694{
10695
10696  ;
10697  return 0;
10698}
10699_ACEOF
10700if ac_fn_c_try_link "$LINENO"
10701then :
10702  eval $cacheid=yes
10703else $as_nop
10704  eval $cacheid=no
10705fi
10706rm -f core conftest.err conftest.$ac_objext conftest.beam \
10707    conftest$ac_exeext conftest.$ac_ext
10708fi
10709
10710
10711		CFLAGS="$xorg_testset_save_CFLAGS"
10712
10713		eval supported=\$$cacheid
10714		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10715printf "%s\n" "$supported" >&6; }
10716		if test "$supported" = "yes" ; then
10717			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10718			found="yes"
10719		fi
10720	fi
10721
10722	if test $found = "no" ; then
10723		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10725		fi
10726
10727		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10729		fi
10730
10731		CFLAGS="$CFLAGS -errwarn"
10732
10733		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10734printf %s "checking if $CC supports -errwarn... " >&6; }
10735		cacheid=xorg_cv_cc_flag__errwarn
10736		if eval test \${$cacheid+y}
10737then :
10738  printf %s "(cached) " >&6
10739else $as_nop
10740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741/* end confdefs.h.  */
10742int i;
10743int
10744main (void)
10745{
10746
10747  ;
10748  return 0;
10749}
10750_ACEOF
10751if ac_fn_c_try_link "$LINENO"
10752then :
10753  eval $cacheid=yes
10754else $as_nop
10755  eval $cacheid=no
10756fi
10757rm -f core conftest.err conftest.$ac_objext conftest.beam \
10758    conftest$ac_exeext conftest.$ac_ext
10759fi
10760
10761
10762		CFLAGS="$xorg_testset_save_CFLAGS"
10763
10764		eval supported=\$$cacheid
10765		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10766printf "%s\n" "$supported" >&6; }
10767		if test "$supported" = "yes" ; then
10768			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10769			found="yes"
10770		fi
10771	fi
10772
10773
10774
10775# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10776# activate it with -Werror, so we add it here explicitly.
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790xorg_testset_save_CFLAGS="$CFLAGS"
10791
10792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10793	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10794	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10795printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10796if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10797then :
10798  printf %s "(cached) " >&6
10799else $as_nop
10800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801/* end confdefs.h.  */
10802int i;
10803_ACEOF
10804if ac_fn_c_try_compile "$LINENO"
10805then :
10806  xorg_cv_cc_flag_unknown_warning_option=yes
10807else $as_nop
10808  xorg_cv_cc_flag_unknown_warning_option=no
10809fi
10810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10811fi
10812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10813printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10814	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10815	CFLAGS="$xorg_testset_save_CFLAGS"
10816fi
10817
10818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10819	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10820		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10821	fi
10822	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10823	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10824printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10825if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10826then :
10827  printf %s "(cached) " >&6
10828else $as_nop
10829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830/* end confdefs.h.  */
10831int i;
10832_ACEOF
10833if ac_fn_c_try_compile "$LINENO"
10834then :
10835  xorg_cv_cc_flag_unused_command_line_argument=yes
10836else $as_nop
10837  xorg_cv_cc_flag_unused_command_line_argument=no
10838fi
10839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10840fi
10841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10842printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10843	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10844	CFLAGS="$xorg_testset_save_CFLAGS"
10845fi
10846
10847found="no"
10848
10849	if test $found = "no" ; then
10850		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10852		fi
10853
10854		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10856		fi
10857
10858		CFLAGS="$CFLAGS -Werror=attributes"
10859
10860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10861printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10862		cacheid=xorg_cv_cc_flag__Werror_attributes
10863		if eval test \${$cacheid+y}
10864then :
10865  printf %s "(cached) " >&6
10866else $as_nop
10867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868/* end confdefs.h.  */
10869int i;
10870int
10871main (void)
10872{
10873
10874  ;
10875  return 0;
10876}
10877_ACEOF
10878if ac_fn_c_try_link "$LINENO"
10879then :
10880  eval $cacheid=yes
10881else $as_nop
10882  eval $cacheid=no
10883fi
10884rm -f core conftest.err conftest.$ac_objext conftest.beam \
10885    conftest$ac_exeext conftest.$ac_ext
10886fi
10887
10888
10889		CFLAGS="$xorg_testset_save_CFLAGS"
10890
10891		eval supported=\$$cacheid
10892		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10893printf "%s\n" "$supported" >&6; }
10894		if test "$supported" = "yes" ; then
10895			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10896			found="yes"
10897		fi
10898	fi
10899
10900
10901
10902if test "x$STRICT_COMPILE" = "xyes"; then
10903    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10904    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10905fi
10906
10907
10908
10909
10910
10911
10912
10913
10914cat >>confdefs.h <<_ACEOF
10915#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10916_ACEOF
10917
10918	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10919	if test "x$PVM" = "x"; then
10920		PVM="0"
10921	fi
10922
10923printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10924
10925	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10926	if test "x$PVP" = "x"; then
10927		PVP="0"
10928	fi
10929
10930printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10931
10932
10933
10934CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10935mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10936|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10937touch \$(top_srcdir)/ChangeLog; \
10938echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10939
10940
10941
10942
10943macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10944INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10945mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10946|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10947touch \$(top_srcdir)/INSTALL; \
10948echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10949
10950
10951
10952
10953
10954
10955case $host_os in
10956    solaris*)
10957        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10958        # check for a man page file found in later versions that use
10959        # traditional section numbers instead
10960        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10961printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10962if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10963then :
10964  printf %s "(cached) " >&6
10965else $as_nop
10966  test "$cross_compiling" = yes &&
10967  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10968if test -r "/usr/share/man/man7/attributes.7"; then
10969  ac_cv_file__usr_share_man_man7_attributes_7=yes
10970else
10971  ac_cv_file__usr_share_man_man7_attributes_7=no
10972fi
10973fi
10974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10975printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10976if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10977then :
10978  SYSV_MAN_SECTIONS=false
10979else $as_nop
10980  SYSV_MAN_SECTIONS=true
10981fi
10982
10983        ;;
10984    *) SYSV_MAN_SECTIONS=false ;;
10985esac
10986
10987if test x$APP_MAN_SUFFIX = x    ; then
10988    APP_MAN_SUFFIX=1
10989fi
10990if test x$APP_MAN_DIR = x    ; then
10991    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10992fi
10993
10994if test x$LIB_MAN_SUFFIX = x    ; then
10995    LIB_MAN_SUFFIX=3
10996fi
10997if test x$LIB_MAN_DIR = x    ; then
10998    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10999fi
11000
11001if test x$FILE_MAN_SUFFIX = x    ; then
11002    case $SYSV_MAN_SECTIONS in
11003	true)				FILE_MAN_SUFFIX=4  ;;
11004	*)				FILE_MAN_SUFFIX=5  ;;
11005    esac
11006fi
11007if test x$FILE_MAN_DIR = x    ; then
11008    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11009fi
11010
11011if test x$MISC_MAN_SUFFIX = x    ; then
11012    case $SYSV_MAN_SECTIONS in
11013	true)				MISC_MAN_SUFFIX=5  ;;
11014	*)				MISC_MAN_SUFFIX=7  ;;
11015    esac
11016fi
11017if test x$MISC_MAN_DIR = x    ; then
11018    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11019fi
11020
11021if test x$DRIVER_MAN_SUFFIX = x    ; then
11022    case $SYSV_MAN_SECTIONS in
11023	true)				DRIVER_MAN_SUFFIX=7  ;;
11024	*)				DRIVER_MAN_SUFFIX=4  ;;
11025    esac
11026fi
11027if test x$DRIVER_MAN_DIR = x    ; then
11028    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11029fi
11030
11031if test x$ADMIN_MAN_SUFFIX = x    ; then
11032    case $SYSV_MAN_SECTIONS in
11033	true)				ADMIN_MAN_SUFFIX=1m ;;
11034	*)				ADMIN_MAN_SUFFIX=8  ;;
11035    esac
11036fi
11037if test x$ADMIN_MAN_DIR = x    ; then
11038    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11039fi
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055XORG_MAN_PAGE="X Version 11"
11056
11057MAN_SUBSTS="\
11058	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11059	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11060	-e 's|__xservername__|Xorg|g' \
11061	-e 's|__xconfigfile__|xorg.conf|g' \
11062	-e 's|__projectroot__|\$(prefix)|g' \
11063	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11064	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11065	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11066	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11067	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11068	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11069	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11070
11071
11072
11073# Check whether --enable-silent-rules was given.
11074if test ${enable_silent_rules+y}
11075then :
11076  enableval=$enable_silent_rules;
11077fi
11078
11079case $enable_silent_rules in # (((
11080  yes) AM_DEFAULT_VERBOSITY=0;;
11081   no) AM_DEFAULT_VERBOSITY=1;;
11082    *) AM_DEFAULT_VERBOSITY=0;;
11083esac
11084am_make=${MAKE-make}
11085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11086printf %s "checking whether $am_make supports nested variables... " >&6; }
11087if test ${am_cv_make_support_nested_variables+y}
11088then :
11089  printf %s "(cached) " >&6
11090else $as_nop
11091  if printf "%s\n" 'TRUE=$(BAR$(V))
11092BAR0=false
11093BAR1=true
11094V=1
11095am__doit:
11096	@$(TRUE)
11097.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11098  am_cv_make_support_nested_variables=yes
11099else
11100  am_cv_make_support_nested_variables=no
11101fi
11102fi
11103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11104printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11105if test $am_cv_make_support_nested_variables = yes; then
11106    AM_V='$(V)'
11107  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11108else
11109  AM_V=$AM_DEFAULT_VERBOSITY
11110  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11111fi
11112AM_BACKSLASH='\'
11113
11114
11115
11116
11117# Checks for pkg-config packages
11118
11119pkg_failed=no
11120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEYES" >&5
11121printf %s "checking for XEYES... " >&6; }
11122
11123if test -n "$XEYES_CFLAGS"; then
11124    pkg_cv_XEYES_CFLAGS="$XEYES_CFLAGS"
11125 elif test -n "$PKG_CONFIG"; then
11126    if test -n "$PKG_CONFIG" && \
11127    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17\""; } >&5
11128  ($PKG_CONFIG --exists --print-errors "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17") 2>&5
11129  ac_status=$?
11130  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11131  test $ac_status = 0; }; then
11132  pkg_cv_XEYES_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>/dev/null`
11133		      test "x$?" != "x0" && pkg_failed=yes
11134else
11135  pkg_failed=yes
11136fi
11137 else
11138    pkg_failed=untried
11139fi
11140if test -n "$XEYES_LIBS"; then
11141    pkg_cv_XEYES_LIBS="$XEYES_LIBS"
11142 elif test -n "$PKG_CONFIG"; then
11143    if test -n "$PKG_CONFIG" && \
11144    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17\""; } >&5
11145  ($PKG_CONFIG --exists --print-errors "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17") 2>&5
11146  ac_status=$?
11147  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11148  test $ac_status = 0; }; then
11149  pkg_cv_XEYES_LIBS=`$PKG_CONFIG --libs "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>/dev/null`
11150		      test "x$?" != "x0" && pkg_failed=yes
11151else
11152  pkg_failed=yes
11153fi
11154 else
11155    pkg_failed=untried
11156fi
11157
11158
11159
11160if test $pkg_failed = yes; then
11161   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162printf "%s\n" "no" >&6; }
11163
11164if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11165        _pkg_short_errors_supported=yes
11166else
11167        _pkg_short_errors_supported=no
11168fi
11169        if test $_pkg_short_errors_supported = yes; then
11170	        XEYES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>&1`
11171        else
11172	        XEYES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>&1`
11173        fi
11174	# Put the nasty error message in config.log where it belongs
11175	echo "$XEYES_PKG_ERRORS" >&5
11176
11177	as_fn_error $? "Package requirements (xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17) were not met:
11178
11179$XEYES_PKG_ERRORS
11180
11181Consider adjusting the PKG_CONFIG_PATH environment variable if you
11182installed software in a non-standard prefix.
11183
11184Alternatively, you may set the environment variables XEYES_CFLAGS
11185and XEYES_LIBS to avoid the need to call pkg-config.
11186See the pkg-config man page for more details." "$LINENO" 5
11187elif test $pkg_failed = untried; then
11188     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189printf "%s\n" "no" >&6; }
11190	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11191printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11192as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11193is in your PATH or set the PKG_CONFIG environment variable to the full
11194path to pkg-config.
11195
11196Alternatively, you may set the environment variables XEYES_CFLAGS
11197and XEYES_LIBS to avoid the need to call pkg-config.
11198See the pkg-config man page for more details.
11199
11200To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11201See \`config.log' for more details" "$LINENO" 5; }
11202else
11203	XEYES_CFLAGS=$pkg_cv_XEYES_CFLAGS
11204	XEYES_LIBS=$pkg_cv_XEYES_LIBS
11205        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11206printf "%s\n" "yes" >&6; }
11207
11208fi
11209
11210
11211# Check whether --with-xrender was given.
11212if test ${with_xrender+y}
11213then :
11214  withval=$with_xrender; use_xrender="$withval"
11215else $as_nop
11216  use_xrender="try"
11217fi
11218
11219if test x$use_xrender != xno ; then
11220
11221pkg_failed=no
11222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
11223printf %s "checking for XRENDER... " >&6; }
11224
11225if test -n "$XRENDER_CFLAGS"; then
11226    pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
11227 elif test -n "$PKG_CONFIG"; then
11228    if test -n "$PKG_CONFIG" && \
11229    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.4\""; } >&5
11230  ($PKG_CONFIG --exists --print-errors "xrender >= 0.4") 2>&5
11231  ac_status=$?
11232  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11233  test $ac_status = 0; }; then
11234  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.4" 2>/dev/null`
11235		      test "x$?" != "x0" && pkg_failed=yes
11236else
11237  pkg_failed=yes
11238fi
11239 else
11240    pkg_failed=untried
11241fi
11242if test -n "$XRENDER_LIBS"; then
11243    pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
11244 elif test -n "$PKG_CONFIG"; then
11245    if test -n "$PKG_CONFIG" && \
11246    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.4\""; } >&5
11247  ($PKG_CONFIG --exists --print-errors "xrender >= 0.4") 2>&5
11248  ac_status=$?
11249  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11250  test $ac_status = 0; }; then
11251  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.4" 2>/dev/null`
11252		      test "x$?" != "x0" && pkg_failed=yes
11253else
11254  pkg_failed=yes
11255fi
11256 else
11257    pkg_failed=untried
11258fi
11259
11260
11261
11262if test $pkg_failed = yes; then
11263   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264printf "%s\n" "no" >&6; }
11265
11266if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11267        _pkg_short_errors_supported=yes
11268else
11269        _pkg_short_errors_supported=no
11270fi
11271        if test $_pkg_short_errors_supported = yes; then
11272	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.4" 2>&1`
11273        else
11274	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.4" 2>&1`
11275        fi
11276	# Put the nasty error message in config.log where it belongs
11277	echo "$XRENDER_PKG_ERRORS" >&5
11278
11279	as_fn_error $? "Package requirements (xrender >= 0.4) were not met:
11280
11281$XRENDER_PKG_ERRORS
11282
11283Consider adjusting the PKG_CONFIG_PATH environment variable if you
11284installed software in a non-standard prefix.
11285
11286Alternatively, you may set the environment variables XRENDER_CFLAGS
11287and XRENDER_LIBS to avoid the need to call pkg-config.
11288See the pkg-config man page for more details." "$LINENO" 5
11289elif test $pkg_failed = untried; then
11290     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291printf "%s\n" "no" >&6; }
11292	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11293printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11294as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11295is in your PATH or set the PKG_CONFIG environment variable to the full
11296path to pkg-config.
11297
11298Alternatively, you may set the environment variables XRENDER_CFLAGS
11299and XRENDER_LIBS to avoid the need to call pkg-config.
11300See the pkg-config man page for more details.
11301
11302To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11303See \`config.log' for more details" "$LINENO" 5; }
11304else
11305	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
11306	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
11307        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11308printf "%s\n" "yes" >&6; }
11309
11310fi
11311
11312printf "%s\n" "#define XRENDER 1" >>confdefs.h
11313
11314fi
11315
11316
11317# Check whether --with-present was given.
11318if test ${with_present+y}
11319then :
11320  withval=$with_present; use_present="$withval"
11321else $as_nop
11322  use_present="try"
11323fi
11324
11325if test x$use_present != xno ; then
11326
11327pkg_failed=no
11328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PRESENT" >&5
11329printf %s "checking for PRESENT... " >&6; }
11330
11331if test -n "$PRESENT_CFLAGS"; then
11332    pkg_cv_PRESENT_CFLAGS="$PRESENT_CFLAGS"
11333 elif test -n "$PKG_CONFIG"; then
11334    if test -n "$PKG_CONFIG" && \
11335    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage\""; } >&5
11336  ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage") 2>&5
11337  ac_status=$?
11338  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339  test $ac_status = 0; }; then
11340  pkg_cv_PRESENT_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>/dev/null`
11341		      test "x$?" != "x0" && pkg_failed=yes
11342else
11343  pkg_failed=yes
11344fi
11345 else
11346    pkg_failed=untried
11347fi
11348if test -n "$PRESENT_LIBS"; then
11349    pkg_cv_PRESENT_LIBS="$PRESENT_LIBS"
11350 elif test -n "$PKG_CONFIG"; then
11351    if test -n "$PKG_CONFIG" && \
11352    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage\""; } >&5
11353  ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage") 2>&5
11354  ac_status=$?
11355  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11356  test $ac_status = 0; }; then
11357  pkg_cv_PRESENT_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>/dev/null`
11358		      test "x$?" != "x0" && pkg_failed=yes
11359else
11360  pkg_failed=yes
11361fi
11362 else
11363    pkg_failed=untried
11364fi
11365
11366
11367
11368if test $pkg_failed = yes; then
11369   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370printf "%s\n" "no" >&6; }
11371
11372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11373        _pkg_short_errors_supported=yes
11374else
11375        _pkg_short_errors_supported=no
11376fi
11377        if test $_pkg_short_errors_supported = yes; then
11378	        PRESENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>&1`
11379        else
11380	        PRESENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>&1`
11381        fi
11382	# Put the nasty error message in config.log where it belongs
11383	echo "$PRESENT_PKG_ERRORS" >&5
11384
11385	as_fn_error $? "Package requirements (x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage) were not met:
11386
11387$PRESENT_PKG_ERRORS
11388
11389Consider adjusting the PKG_CONFIG_PATH environment variable if you
11390installed software in a non-standard prefix.
11391
11392Alternatively, you may set the environment variables PRESENT_CFLAGS
11393and PRESENT_LIBS to avoid the need to call pkg-config.
11394See the pkg-config man page for more details." "$LINENO" 5
11395elif test $pkg_failed = untried; then
11396     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397printf "%s\n" "no" >&6; }
11398	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11399printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11400as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11401is in your PATH or set the PKG_CONFIG environment variable to the full
11402path to pkg-config.
11403
11404Alternatively, you may set the environment variables PRESENT_CFLAGS
11405and PRESENT_LIBS to avoid the need to call pkg-config.
11406See the pkg-config man page for more details.
11407
11408To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11409See \`config.log' for more details" "$LINENO" 5; }
11410else
11411	PRESENT_CFLAGS=$pkg_cv_PRESENT_CFLAGS
11412	PRESENT_LIBS=$pkg_cv_PRESENT_LIBS
11413        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11414printf "%s\n" "yes" >&6; }
11415
11416fi
11417
11418printf "%s\n" "#define PRESENT 1" >>confdefs.h
11419
11420fi
11421
11422ac_config_files="$ac_config_files Makefile man/Makefile"
11423
11424cat >confcache <<\_ACEOF
11425# This file is a shell script that caches the results of configure
11426# tests run on this system so they can be shared between configure
11427# scripts and configure runs, see configure's option --config-cache.
11428# It is not useful on other systems.  If it contains results you don't
11429# want to keep, you may remove or edit it.
11430#
11431# config.status only pays attention to the cache file if you give it
11432# the --recheck option to rerun configure.
11433#
11434# `ac_cv_env_foo' variables (set or unset) will be overridden when
11435# loading this file, other *unset* `ac_cv_foo' will be assigned the
11436# following values.
11437
11438_ACEOF
11439
11440# The following way of writing the cache mishandles newlines in values,
11441# but we know of no workaround that is simple, portable, and efficient.
11442# So, we kill variables containing newlines.
11443# Ultrix sh set writes to stderr and can't be redirected directly,
11444# and sets the high bit in the cache file unless we assign to the vars.
11445(
11446  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11447    eval ac_val=\$$ac_var
11448    case $ac_val in #(
11449    *${as_nl}*)
11450      case $ac_var in #(
11451      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11452printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11453      esac
11454      case $ac_var in #(
11455      _ | IFS | as_nl) ;; #(
11456      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11457      *) { eval $ac_var=; unset $ac_var;} ;;
11458      esac ;;
11459    esac
11460  done
11461
11462  (set) 2>&1 |
11463    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11464    *${as_nl}ac_space=\ *)
11465      # `set' does not quote correctly, so add quotes: double-quote
11466      # substitution turns \\\\ into \\, and sed turns \\ into \.
11467      sed -n \
11468	"s/'/'\\\\''/g;
11469	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11470      ;; #(
11471    *)
11472      # `set' quotes correctly as required by POSIX, so do not add quotes.
11473      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11474      ;;
11475    esac |
11476    sort
11477) |
11478  sed '
11479     /^ac_cv_env_/b end
11480     t clear
11481     :clear
11482     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11483     t end
11484     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11485     :end' >>confcache
11486if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11487  if test -w "$cache_file"; then
11488    if test "x$cache_file" != "x/dev/null"; then
11489      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11490printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11491      if test ! -f "$cache_file" || test -h "$cache_file"; then
11492	cat confcache >"$cache_file"
11493      else
11494        case $cache_file in #(
11495        */* | ?:*)
11496	  mv -f confcache "$cache_file"$$ &&
11497	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11498        *)
11499	  mv -f confcache "$cache_file" ;;
11500	esac
11501      fi
11502    fi
11503  else
11504    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11505printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11506  fi
11507fi
11508rm -f confcache
11509
11510test "x$prefix" = xNONE && prefix=$ac_default_prefix
11511# Let make expand exec_prefix.
11512test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11513
11514DEFS=-DHAVE_CONFIG_H
11515
11516ac_libobjs=
11517ac_ltlibobjs=
11518U=
11519for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11520  # 1. Remove the extension, and $U if already installed.
11521  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11522  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11523  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11524  #    will be set to the directory where LIBOBJS objects are built.
11525  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11526  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11527done
11528LIBOBJS=$ac_libobjs
11529
11530LTLIBOBJS=$ac_ltlibobjs
11531
11532
11533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11534printf %s "checking that generated files are newer than configure... " >&6; }
11535   if test -n "$am_sleep_pid"; then
11536     # Hide warnings about reused PIDs.
11537     wait $am_sleep_pid 2>/dev/null
11538   fi
11539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11540printf "%s\n" "done" >&6; }
11541 if test -n "$EXEEXT"; then
11542  am__EXEEXT_TRUE=
11543  am__EXEEXT_FALSE='#'
11544else
11545  am__EXEEXT_TRUE='#'
11546  am__EXEEXT_FALSE=
11547fi
11548
11549if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11550  as_fn_error $? "conditional \"AMDEP\" was never defined.
11551Usually this means the macro was only invoked conditionally." "$LINENO" 5
11552fi
11553if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11554  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11555Usually this means the macro was only invoked conditionally." "$LINENO" 5
11556fi
11557
11558: "${CONFIG_STATUS=./config.status}"
11559ac_write_fail=0
11560ac_clean_files_save=$ac_clean_files
11561ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11563printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11564as_write_fail=0
11565cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11566#! $SHELL
11567# Generated by $as_me.
11568# Run this file to recreate the current configuration.
11569# Compiler output produced by configure, useful for debugging
11570# configure, is in config.log if it exists.
11571
11572debug=false
11573ac_cs_recheck=false
11574ac_cs_silent=false
11575
11576SHELL=\${CONFIG_SHELL-$SHELL}
11577export SHELL
11578_ASEOF
11579cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11580## -------------------- ##
11581## M4sh Initialization. ##
11582## -------------------- ##
11583
11584# Be more Bourne compatible
11585DUALCASE=1; export DUALCASE # for MKS sh
11586as_nop=:
11587if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11588then :
11589  emulate sh
11590  NULLCMD=:
11591  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11592  # is contrary to our usage.  Disable this feature.
11593  alias -g '${1+"$@"}'='"$@"'
11594  setopt NO_GLOB_SUBST
11595else $as_nop
11596  case `(set -o) 2>/dev/null` in #(
11597  *posix*) :
11598    set -o posix ;; #(
11599  *) :
11600     ;;
11601esac
11602fi
11603
11604
11605
11606# Reset variables that may have inherited troublesome values from
11607# the environment.
11608
11609# IFS needs to be set, to space, tab, and newline, in precisely that order.
11610# (If _AS_PATH_WALK were called with IFS unset, it would have the
11611# side effect of setting IFS to empty, thus disabling word splitting.)
11612# Quoting is to prevent editors from complaining about space-tab.
11613as_nl='
11614'
11615export as_nl
11616IFS=" ""	$as_nl"
11617
11618PS1='$ '
11619PS2='> '
11620PS4='+ '
11621
11622# Ensure predictable behavior from utilities with locale-dependent output.
11623LC_ALL=C
11624export LC_ALL
11625LANGUAGE=C
11626export LANGUAGE
11627
11628# We cannot yet rely on "unset" to work, but we need these variables
11629# to be unset--not just set to an empty or harmless value--now, to
11630# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11631# also avoids known problems related to "unset" and subshell syntax
11632# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11633for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11634do eval test \${$as_var+y} \
11635  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11636done
11637
11638# Ensure that fds 0, 1, and 2 are open.
11639if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11640if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11641if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11642
11643# The user is always right.
11644if ${PATH_SEPARATOR+false} :; then
11645  PATH_SEPARATOR=:
11646  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11647    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11648      PATH_SEPARATOR=';'
11649  }
11650fi
11651
11652
11653# Find who we are.  Look in the path if we contain no directory separator.
11654as_myself=
11655case $0 in #((
11656  *[\\/]* ) as_myself=$0 ;;
11657  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658for as_dir in $PATH
11659do
11660  IFS=$as_save_IFS
11661  case $as_dir in #(((
11662    '') as_dir=./ ;;
11663    */) ;;
11664    *) as_dir=$as_dir/ ;;
11665  esac
11666    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11667  done
11668IFS=$as_save_IFS
11669
11670     ;;
11671esac
11672# We did not find ourselves, most probably we were run as `sh COMMAND'
11673# in which case we are not to be found in the path.
11674if test "x$as_myself" = x; then
11675  as_myself=$0
11676fi
11677if test ! -f "$as_myself"; then
11678  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11679  exit 1
11680fi
11681
11682
11683
11684# as_fn_error STATUS ERROR [LINENO LOG_FD]
11685# ----------------------------------------
11686# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11687# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11688# script with STATUS, using 1 if that was 0.
11689as_fn_error ()
11690{
11691  as_status=$1; test $as_status -eq 0 && as_status=1
11692  if test "$4"; then
11693    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11694    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11695  fi
11696  printf "%s\n" "$as_me: error: $2" >&2
11697  as_fn_exit $as_status
11698} # as_fn_error
11699
11700
11701
11702# as_fn_set_status STATUS
11703# -----------------------
11704# Set $? to STATUS, without forking.
11705as_fn_set_status ()
11706{
11707  return $1
11708} # as_fn_set_status
11709
11710# as_fn_exit STATUS
11711# -----------------
11712# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11713as_fn_exit ()
11714{
11715  set +e
11716  as_fn_set_status $1
11717  exit $1
11718} # as_fn_exit
11719
11720# as_fn_unset VAR
11721# ---------------
11722# Portably unset VAR.
11723as_fn_unset ()
11724{
11725  { eval $1=; unset $1;}
11726}
11727as_unset=as_fn_unset
11728
11729# as_fn_append VAR VALUE
11730# ----------------------
11731# Append the text in VALUE to the end of the definition contained in VAR. Take
11732# advantage of any shell optimizations that allow amortized linear growth over
11733# repeated appends, instead of the typical quadratic growth present in naive
11734# implementations.
11735if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11736then :
11737  eval 'as_fn_append ()
11738  {
11739    eval $1+=\$2
11740  }'
11741else $as_nop
11742  as_fn_append ()
11743  {
11744    eval $1=\$$1\$2
11745  }
11746fi # as_fn_append
11747
11748# as_fn_arith ARG...
11749# ------------------
11750# Perform arithmetic evaluation on the ARGs, and store the result in the
11751# global $as_val. Take advantage of shells that can avoid forks. The arguments
11752# must be portable across $(()) and expr.
11753if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11754then :
11755  eval 'as_fn_arith ()
11756  {
11757    as_val=$(( $* ))
11758  }'
11759else $as_nop
11760  as_fn_arith ()
11761  {
11762    as_val=`expr "$@" || test $? -eq 1`
11763  }
11764fi # as_fn_arith
11765
11766
11767if expr a : '\(a\)' >/dev/null 2>&1 &&
11768   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11769  as_expr=expr
11770else
11771  as_expr=false
11772fi
11773
11774if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11775  as_basename=basename
11776else
11777  as_basename=false
11778fi
11779
11780if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11781  as_dirname=dirname
11782else
11783  as_dirname=false
11784fi
11785
11786as_me=`$as_basename -- "$0" ||
11787$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11788	 X"$0" : 'X\(//\)$' \| \
11789	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11790printf "%s\n" X/"$0" |
11791    sed '/^.*\/\([^/][^/]*\)\/*$/{
11792	    s//\1/
11793	    q
11794	  }
11795	  /^X\/\(\/\/\)$/{
11796	    s//\1/
11797	    q
11798	  }
11799	  /^X\/\(\/\).*/{
11800	    s//\1/
11801	    q
11802	  }
11803	  s/.*/./; q'`
11804
11805# Avoid depending upon Character Ranges.
11806as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11807as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11808as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11809as_cr_digits='0123456789'
11810as_cr_alnum=$as_cr_Letters$as_cr_digits
11811
11812
11813# Determine whether it's possible to make 'echo' print without a newline.
11814# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11815# for compatibility with existing Makefiles.
11816ECHO_C= ECHO_N= ECHO_T=
11817case `echo -n x` in #(((((
11818-n*)
11819  case `echo 'xy\c'` in
11820  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11821  xy)  ECHO_C='\c';;
11822  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11823       ECHO_T='	';;
11824  esac;;
11825*)
11826  ECHO_N='-n';;
11827esac
11828
11829# For backward compatibility with old third-party macros, we provide
11830# the shell variables $as_echo and $as_echo_n.  New code should use
11831# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11832as_echo='printf %s\n'
11833as_echo_n='printf %s'
11834
11835rm -f conf$$ conf$$.exe conf$$.file
11836if test -d conf$$.dir; then
11837  rm -f conf$$.dir/conf$$.file
11838else
11839  rm -f conf$$.dir
11840  mkdir conf$$.dir 2>/dev/null
11841fi
11842if (echo >conf$$.file) 2>/dev/null; then
11843  if ln -s conf$$.file conf$$ 2>/dev/null; then
11844    as_ln_s='ln -s'
11845    # ... but there are two gotchas:
11846    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11847    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11848    # In both cases, we have to default to `cp -pR'.
11849    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11850      as_ln_s='cp -pR'
11851  elif ln conf$$.file conf$$ 2>/dev/null; then
11852    as_ln_s=ln
11853  else
11854    as_ln_s='cp -pR'
11855  fi
11856else
11857  as_ln_s='cp -pR'
11858fi
11859rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11860rmdir conf$$.dir 2>/dev/null
11861
11862
11863# as_fn_mkdir_p
11864# -------------
11865# Create "$as_dir" as a directory, including parents if necessary.
11866as_fn_mkdir_p ()
11867{
11868
11869  case $as_dir in #(
11870  -*) as_dir=./$as_dir;;
11871  esac
11872  test -d "$as_dir" || eval $as_mkdir_p || {
11873    as_dirs=
11874    while :; do
11875      case $as_dir in #(
11876      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11877      *) as_qdir=$as_dir;;
11878      esac
11879      as_dirs="'$as_qdir' $as_dirs"
11880      as_dir=`$as_dirname -- "$as_dir" ||
11881$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11882	 X"$as_dir" : 'X\(//\)[^/]' \| \
11883	 X"$as_dir" : 'X\(//\)$' \| \
11884	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11885printf "%s\n" X"$as_dir" |
11886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11887	    s//\1/
11888	    q
11889	  }
11890	  /^X\(\/\/\)[^/].*/{
11891	    s//\1/
11892	    q
11893	  }
11894	  /^X\(\/\/\)$/{
11895	    s//\1/
11896	    q
11897	  }
11898	  /^X\(\/\).*/{
11899	    s//\1/
11900	    q
11901	  }
11902	  s/.*/./; q'`
11903      test -d "$as_dir" && break
11904    done
11905    test -z "$as_dirs" || eval "mkdir $as_dirs"
11906  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11907
11908
11909} # as_fn_mkdir_p
11910if mkdir -p . 2>/dev/null; then
11911  as_mkdir_p='mkdir -p "$as_dir"'
11912else
11913  test -d ./-p && rmdir ./-p
11914  as_mkdir_p=false
11915fi
11916
11917
11918# as_fn_executable_p FILE
11919# -----------------------
11920# Test if FILE is an executable regular file.
11921as_fn_executable_p ()
11922{
11923  test -f "$1" && test -x "$1"
11924} # as_fn_executable_p
11925as_test_x='test -x'
11926as_executable_p=as_fn_executable_p
11927
11928# Sed expression to map a string onto a valid CPP name.
11929as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11930
11931# Sed expression to map a string onto a valid variable name.
11932as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11933
11934
11935exec 6>&1
11936## ----------------------------------- ##
11937## Main body of $CONFIG_STATUS script. ##
11938## ----------------------------------- ##
11939_ASEOF
11940test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11941
11942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11943# Save the log message, to keep $0 and so on meaningful, and to
11944# report actual input values of CONFIG_FILES etc. instead of their
11945# values after options handling.
11946ac_log="
11947This file was extended by xeyes $as_me 1.3.0, which was
11948generated by GNU Autoconf 2.71.  Invocation command line was
11949
11950  CONFIG_FILES    = $CONFIG_FILES
11951  CONFIG_HEADERS  = $CONFIG_HEADERS
11952  CONFIG_LINKS    = $CONFIG_LINKS
11953  CONFIG_COMMANDS = $CONFIG_COMMANDS
11954  $ $0 $@
11955
11956on `(hostname || uname -n) 2>/dev/null | sed 1q`
11957"
11958
11959_ACEOF
11960
11961case $ac_config_files in *"
11962"*) set x $ac_config_files; shift; ac_config_files=$*;;
11963esac
11964
11965case $ac_config_headers in *"
11966"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11967esac
11968
11969
11970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11971# Files that config.status was made for.
11972config_files="$ac_config_files"
11973config_headers="$ac_config_headers"
11974config_commands="$ac_config_commands"
11975
11976_ACEOF
11977
11978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11979ac_cs_usage="\
11980\`$as_me' instantiates files and other configuration actions
11981from templates according to the current configuration.  Unless the files
11982and actions are specified as TAGs, all are instantiated by default.
11983
11984Usage: $0 [OPTION]... [TAG]...
11985
11986  -h, --help       print this help, then exit
11987  -V, --version    print version number and configuration settings, then exit
11988      --config     print configuration, then exit
11989  -q, --quiet, --silent
11990                   do not print progress messages
11991  -d, --debug      don't remove temporary files
11992      --recheck    update $as_me by reconfiguring in the same conditions
11993      --file=FILE[:TEMPLATE]
11994                   instantiate the configuration file FILE
11995      --header=FILE[:TEMPLATE]
11996                   instantiate the configuration header FILE
11997
11998Configuration files:
11999$config_files
12000
12001Configuration headers:
12002$config_headers
12003
12004Configuration commands:
12005$config_commands
12006
12007Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/-/issues>."
12008
12009_ACEOF
12010ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12011ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12013ac_cs_config='$ac_cs_config_escaped'
12014ac_cs_version="\\
12015xeyes config.status 1.3.0
12016configured by $0, generated by GNU Autoconf 2.71,
12017  with options \\"\$ac_cs_config\\"
12018
12019Copyright (C) 2021 Free Software Foundation, Inc.
12020This config.status script is free software; the Free Software Foundation
12021gives unlimited permission to copy, distribute and modify it."
12022
12023ac_pwd='$ac_pwd'
12024srcdir='$srcdir'
12025INSTALL='$INSTALL'
12026MKDIR_P='$MKDIR_P'
12027AWK='$AWK'
12028test -n "\$AWK" || AWK=awk
12029_ACEOF
12030
12031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12032# The default lists apply if the user does not specify any file.
12033ac_need_defaults=:
12034while test $# != 0
12035do
12036  case $1 in
12037  --*=?*)
12038    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12039    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12040    ac_shift=:
12041    ;;
12042  --*=)
12043    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12044    ac_optarg=
12045    ac_shift=:
12046    ;;
12047  *)
12048    ac_option=$1
12049    ac_optarg=$2
12050    ac_shift=shift
12051    ;;
12052  esac
12053
12054  case $ac_option in
12055  # Handling of the options.
12056  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12057    ac_cs_recheck=: ;;
12058  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12059    printf "%s\n" "$ac_cs_version"; exit ;;
12060  --config | --confi | --conf | --con | --co | --c )
12061    printf "%s\n" "$ac_cs_config"; exit ;;
12062  --debug | --debu | --deb | --de | --d | -d )
12063    debug=: ;;
12064  --file | --fil | --fi | --f )
12065    $ac_shift
12066    case $ac_optarg in
12067    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12068    '') as_fn_error $? "missing file argument" ;;
12069    esac
12070    as_fn_append CONFIG_FILES " '$ac_optarg'"
12071    ac_need_defaults=false;;
12072  --header | --heade | --head | --hea )
12073    $ac_shift
12074    case $ac_optarg in
12075    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12076    esac
12077    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12078    ac_need_defaults=false;;
12079  --he | --h)
12080    # Conflict between --help and --header
12081    as_fn_error $? "ambiguous option: \`$1'
12082Try \`$0 --help' for more information.";;
12083  --help | --hel | -h )
12084    printf "%s\n" "$ac_cs_usage"; exit ;;
12085  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12086  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12087    ac_cs_silent=: ;;
12088
12089  # This is an error.
12090  -*) as_fn_error $? "unrecognized option: \`$1'
12091Try \`$0 --help' for more information." ;;
12092
12093  *) as_fn_append ac_config_targets " $1"
12094     ac_need_defaults=false ;;
12095
12096  esac
12097  shift
12098done
12099
12100ac_configure_extra_args=
12101
12102if $ac_cs_silent; then
12103  exec 6>/dev/null
12104  ac_configure_extra_args="$ac_configure_extra_args --silent"
12105fi
12106
12107_ACEOF
12108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12109if \$ac_cs_recheck; then
12110  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12111  shift
12112  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12113  CONFIG_SHELL='$SHELL'
12114  export CONFIG_SHELL
12115  exec "\$@"
12116fi
12117
12118_ACEOF
12119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12120exec 5>>config.log
12121{
12122  echo
12123  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12124## Running $as_me. ##
12125_ASBOX
12126  printf "%s\n" "$ac_log"
12127} >&5
12128
12129_ACEOF
12130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12131#
12132# INIT-COMMANDS
12133#
12134AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12135
12136_ACEOF
12137
12138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12139
12140# Handling of arguments.
12141for ac_config_target in $ac_config_targets
12142do
12143  case $ac_config_target in
12144    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12145    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12146    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12147    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12148
12149  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12150  esac
12151done
12152
12153
12154# If the user did not use the arguments to specify the items to instantiate,
12155# then the envvar interface is used.  Set only those that are not.
12156# We use the long form for the default assignment because of an extremely
12157# bizarre bug on SunOS 4.1.3.
12158if $ac_need_defaults; then
12159  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12160  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12161  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12162fi
12163
12164# Have a temporary directory for convenience.  Make it in the build tree
12165# simply because there is no reason against having it here, and in addition,
12166# creating and moving files from /tmp can sometimes cause problems.
12167# Hook for its removal unless debugging.
12168# Note that there is a small window in which the directory will not be cleaned:
12169# after its creation but before its name has been assigned to `$tmp'.
12170$debug ||
12171{
12172  tmp= ac_tmp=
12173  trap 'exit_status=$?
12174  : "${ac_tmp:=$tmp}"
12175  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12176' 0
12177  trap 'as_fn_exit 1' 1 2 13 15
12178}
12179# Create a (secure) tmp directory for tmp files.
12180
12181{
12182  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12183  test -d "$tmp"
12184}  ||
12185{
12186  tmp=./conf$$-$RANDOM
12187  (umask 077 && mkdir "$tmp")
12188} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12189ac_tmp=$tmp
12190
12191# Set up the scripts for CONFIG_FILES section.
12192# No need to generate them if there are no CONFIG_FILES.
12193# This happens for instance with `./config.status config.h'.
12194if test -n "$CONFIG_FILES"; then
12195
12196
12197ac_cr=`echo X | tr X '\015'`
12198# On cygwin, bash can eat \r inside `` if the user requested igncr.
12199# But we know of no other shell where ac_cr would be empty at this
12200# point, so we can use a bashism as a fallback.
12201if test "x$ac_cr" = x; then
12202  eval ac_cr=\$\'\\r\'
12203fi
12204ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12205if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12206  ac_cs_awk_cr='\\r'
12207else
12208  ac_cs_awk_cr=$ac_cr
12209fi
12210
12211echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12212_ACEOF
12213
12214
12215{
12216  echo "cat >conf$$subs.awk <<_ACEOF" &&
12217  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12218  echo "_ACEOF"
12219} >conf$$subs.sh ||
12220  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12221ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12222ac_delim='%!_!# '
12223for ac_last_try in false false false false false :; do
12224  . ./conf$$subs.sh ||
12225    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12226
12227  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12228  if test $ac_delim_n = $ac_delim_num; then
12229    break
12230  elif $ac_last_try; then
12231    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12232  else
12233    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12234  fi
12235done
12236rm -f conf$$subs.sh
12237
12238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12239cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12240_ACEOF
12241sed -n '
12242h
12243s/^/S["/; s/!.*/"]=/
12244p
12245g
12246s/^[^!]*!//
12247:repl
12248t repl
12249s/'"$ac_delim"'$//
12250t delim
12251:nl
12252h
12253s/\(.\{148\}\)..*/\1/
12254t more1
12255s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12256p
12257n
12258b repl
12259:more1
12260s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12261p
12262g
12263s/.\{148\}//
12264t nl
12265:delim
12266h
12267s/\(.\{148\}\)..*/\1/
12268t more2
12269s/["\\]/\\&/g; s/^/"/; s/$/"/
12270p
12271b
12272:more2
12273s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12274p
12275g
12276s/.\{148\}//
12277t delim
12278' <conf$$subs.awk | sed '
12279/^[^""]/{
12280  N
12281  s/\n//
12282}
12283' >>$CONFIG_STATUS || ac_write_fail=1
12284rm -f conf$$subs.awk
12285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12286_ACAWK
12287cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12288  for (key in S) S_is_set[key] = 1
12289  FS = ""
12290
12291}
12292{
12293  line = $ 0
12294  nfields = split(line, field, "@")
12295  substed = 0
12296  len = length(field[1])
12297  for (i = 2; i < nfields; i++) {
12298    key = field[i]
12299    keylen = length(key)
12300    if (S_is_set[key]) {
12301      value = S[key]
12302      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12303      len += length(value) + length(field[++i])
12304      substed = 1
12305    } else
12306      len += 1 + keylen
12307  }
12308
12309  print line
12310}
12311
12312_ACAWK
12313_ACEOF
12314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12315if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12316  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12317else
12318  cat
12319fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12320  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12321_ACEOF
12322
12323# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12324# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12325# trailing colons and then remove the whole line if VPATH becomes empty
12326# (actually we leave an empty line to preserve line numbers).
12327if test "x$srcdir" = x.; then
12328  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12329h
12330s///
12331s/^/:/
12332s/[	 ]*$/:/
12333s/:\$(srcdir):/:/g
12334s/:\${srcdir}:/:/g
12335s/:@srcdir@:/:/g
12336s/^:*//
12337s/:*$//
12338x
12339s/\(=[	 ]*\).*/\1/
12340G
12341s/\n//
12342s/^[^=]*=[	 ]*$//
12343}'
12344fi
12345
12346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12347fi # test -n "$CONFIG_FILES"
12348
12349# Set up the scripts for CONFIG_HEADERS section.
12350# No need to generate them if there are no CONFIG_HEADERS.
12351# This happens for instance with `./config.status Makefile'.
12352if test -n "$CONFIG_HEADERS"; then
12353cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12354BEGIN {
12355_ACEOF
12356
12357# Transform confdefs.h into an awk script `defines.awk', embedded as
12358# here-document in config.status, that substitutes the proper values into
12359# config.h.in to produce config.h.
12360
12361# Create a delimiter string that does not exist in confdefs.h, to ease
12362# handling of long lines.
12363ac_delim='%!_!# '
12364for ac_last_try in false false :; do
12365  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12366  if test -z "$ac_tt"; then
12367    break
12368  elif $ac_last_try; then
12369    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12370  else
12371    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12372  fi
12373done
12374
12375# For the awk script, D is an array of macro values keyed by name,
12376# likewise P contains macro parameters if any.  Preserve backslash
12377# newline sequences.
12378
12379ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12380sed -n '
12381s/.\{148\}/&'"$ac_delim"'/g
12382t rset
12383:rset
12384s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12385t def
12386d
12387:def
12388s/\\$//
12389t bsnl
12390s/["\\]/\\&/g
12391s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12392D["\1"]=" \3"/p
12393s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12394d
12395:bsnl
12396s/["\\]/\\&/g
12397s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12398D["\1"]=" \3\\\\\\n"\\/p
12399t cont
12400s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12401t cont
12402d
12403:cont
12404n
12405s/.\{148\}/&'"$ac_delim"'/g
12406t clear
12407:clear
12408s/\\$//
12409t bsnlc
12410s/["\\]/\\&/g; s/^/"/; s/$/"/p
12411d
12412:bsnlc
12413s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12414b cont
12415' <confdefs.h | sed '
12416s/'"$ac_delim"'/"\\\
12417"/g' >>$CONFIG_STATUS || ac_write_fail=1
12418
12419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12420  for (key in D) D_is_set[key] = 1
12421  FS = ""
12422}
12423/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12424  line = \$ 0
12425  split(line, arg, " ")
12426  if (arg[1] == "#") {
12427    defundef = arg[2]
12428    mac1 = arg[3]
12429  } else {
12430    defundef = substr(arg[1], 2)
12431    mac1 = arg[2]
12432  }
12433  split(mac1, mac2, "(") #)
12434  macro = mac2[1]
12435  prefix = substr(line, 1, index(line, defundef) - 1)
12436  if (D_is_set[macro]) {
12437    # Preserve the white space surrounding the "#".
12438    print prefix "define", macro P[macro] D[macro]
12439    next
12440  } else {
12441    # Replace #undef with comments.  This is necessary, for example,
12442    # in the case of _POSIX_SOURCE, which is predefined and required
12443    # on some systems where configure will not decide to define it.
12444    if (defundef == "undef") {
12445      print "/*", prefix defundef, macro, "*/"
12446      next
12447    }
12448  }
12449}
12450{ print }
12451_ACAWK
12452_ACEOF
12453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12454  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12455fi # test -n "$CONFIG_HEADERS"
12456
12457
12458eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12459shift
12460for ac_tag
12461do
12462  case $ac_tag in
12463  :[FHLC]) ac_mode=$ac_tag; continue;;
12464  esac
12465  case $ac_mode$ac_tag in
12466  :[FHL]*:*);;
12467  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12468  :[FH]-) ac_tag=-:-;;
12469  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12470  esac
12471  ac_save_IFS=$IFS
12472  IFS=:
12473  set x $ac_tag
12474  IFS=$ac_save_IFS
12475  shift
12476  ac_file=$1
12477  shift
12478
12479  case $ac_mode in
12480  :L) ac_source=$1;;
12481  :[FH])
12482    ac_file_inputs=
12483    for ac_f
12484    do
12485      case $ac_f in
12486      -) ac_f="$ac_tmp/stdin";;
12487      *) # Look for the file first in the build tree, then in the source tree
12488	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12489	 # because $ac_f cannot contain `:'.
12490	 test -f "$ac_f" ||
12491	   case $ac_f in
12492	   [\\/$]*) false;;
12493	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12494	   esac ||
12495	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12496      esac
12497      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12498      as_fn_append ac_file_inputs " '$ac_f'"
12499    done
12500
12501    # Let's still pretend it is `configure' which instantiates (i.e., don't
12502    # use $as_me), people would be surprised to read:
12503    #    /* config.h.  Generated by config.status.  */
12504    configure_input='Generated from '`
12505	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12506	`' by configure.'
12507    if test x"$ac_file" != x-; then
12508      configure_input="$ac_file.  $configure_input"
12509      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12510printf "%s\n" "$as_me: creating $ac_file" >&6;}
12511    fi
12512    # Neutralize special characters interpreted by sed in replacement strings.
12513    case $configure_input in #(
12514    *\&* | *\|* | *\\* )
12515       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12516       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12517    *) ac_sed_conf_input=$configure_input;;
12518    esac
12519
12520    case $ac_tag in
12521    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12522      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12523    esac
12524    ;;
12525  esac
12526
12527  ac_dir=`$as_dirname -- "$ac_file" ||
12528$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12529	 X"$ac_file" : 'X\(//\)[^/]' \| \
12530	 X"$ac_file" : 'X\(//\)$' \| \
12531	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12532printf "%s\n" X"$ac_file" |
12533    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12534	    s//\1/
12535	    q
12536	  }
12537	  /^X\(\/\/\)[^/].*/{
12538	    s//\1/
12539	    q
12540	  }
12541	  /^X\(\/\/\)$/{
12542	    s//\1/
12543	    q
12544	  }
12545	  /^X\(\/\).*/{
12546	    s//\1/
12547	    q
12548	  }
12549	  s/.*/./; q'`
12550  as_dir="$ac_dir"; as_fn_mkdir_p
12551  ac_builddir=.
12552
12553case "$ac_dir" in
12554.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12555*)
12556  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12557  # A ".." for each directory in $ac_dir_suffix.
12558  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12559  case $ac_top_builddir_sub in
12560  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12561  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12562  esac ;;
12563esac
12564ac_abs_top_builddir=$ac_pwd
12565ac_abs_builddir=$ac_pwd$ac_dir_suffix
12566# for backward compatibility:
12567ac_top_builddir=$ac_top_build_prefix
12568
12569case $srcdir in
12570  .)  # We are building in place.
12571    ac_srcdir=.
12572    ac_top_srcdir=$ac_top_builddir_sub
12573    ac_abs_top_srcdir=$ac_pwd ;;
12574  [\\/]* | ?:[\\/]* )  # Absolute name.
12575    ac_srcdir=$srcdir$ac_dir_suffix;
12576    ac_top_srcdir=$srcdir
12577    ac_abs_top_srcdir=$srcdir ;;
12578  *) # Relative name.
12579    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12580    ac_top_srcdir=$ac_top_build_prefix$srcdir
12581    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12582esac
12583ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12584
12585
12586  case $ac_mode in
12587  :F)
12588  #
12589  # CONFIG_FILE
12590  #
12591
12592  case $INSTALL in
12593  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12594  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12595  esac
12596  ac_MKDIR_P=$MKDIR_P
12597  case $MKDIR_P in
12598  [\\/$]* | ?:[\\/]* ) ;;
12599  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12600  esac
12601_ACEOF
12602
12603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12604# If the template does not know about datarootdir, expand it.
12605# FIXME: This hack should be removed a few years after 2.60.
12606ac_datarootdir_hack=; ac_datarootdir_seen=
12607ac_sed_dataroot='
12608/datarootdir/ {
12609  p
12610  q
12611}
12612/@datadir@/p
12613/@docdir@/p
12614/@infodir@/p
12615/@localedir@/p
12616/@mandir@/p'
12617case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12618*datarootdir*) ac_datarootdir_seen=yes;;
12619*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12621printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12622_ACEOF
12623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12624  ac_datarootdir_hack='
12625  s&@datadir@&$datadir&g
12626  s&@docdir@&$docdir&g
12627  s&@infodir@&$infodir&g
12628  s&@localedir@&$localedir&g
12629  s&@mandir@&$mandir&g
12630  s&\\\${datarootdir}&$datarootdir&g' ;;
12631esac
12632_ACEOF
12633
12634# Neutralize VPATH when `$srcdir' = `.'.
12635# Shell code in configure.ac might set extrasub.
12636# FIXME: do we really want to maintain this feature?
12637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12638ac_sed_extra="$ac_vpsub
12639$extrasub
12640_ACEOF
12641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12642:t
12643/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12644s|@configure_input@|$ac_sed_conf_input|;t t
12645s&@top_builddir@&$ac_top_builddir_sub&;t t
12646s&@top_build_prefix@&$ac_top_build_prefix&;t t
12647s&@srcdir@&$ac_srcdir&;t t
12648s&@abs_srcdir@&$ac_abs_srcdir&;t t
12649s&@top_srcdir@&$ac_top_srcdir&;t t
12650s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12651s&@builddir@&$ac_builddir&;t t
12652s&@abs_builddir@&$ac_abs_builddir&;t t
12653s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12654s&@INSTALL@&$ac_INSTALL&;t t
12655s&@MKDIR_P@&$ac_MKDIR_P&;t t
12656$ac_datarootdir_hack
12657"
12658eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12659  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12660
12661test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12662  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12663  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12664      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12666which seems to be undefined.  Please make sure it is defined" >&5
12667printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12668which seems to be undefined.  Please make sure it is defined" >&2;}
12669
12670  rm -f "$ac_tmp/stdin"
12671  case $ac_file in
12672  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12673  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12674  esac \
12675  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12676 ;;
12677  :H)
12678  #
12679  # CONFIG_HEADER
12680  #
12681  if test x"$ac_file" != x-; then
12682    {
12683      printf "%s\n" "/* $configure_input  */" >&1 \
12684      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12685    } >"$ac_tmp/config.h" \
12686      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12687    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12688      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12689printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12690    else
12691      rm -f "$ac_file"
12692      mv "$ac_tmp/config.h" "$ac_file" \
12693	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12694    fi
12695  else
12696    printf "%s\n" "/* $configure_input  */" >&1 \
12697      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12698      || as_fn_error $? "could not create -" "$LINENO" 5
12699  fi
12700# Compute "$ac_file"'s index in $config_headers.
12701_am_arg="$ac_file"
12702_am_stamp_count=1
12703for _am_header in $config_headers :; do
12704  case $_am_header in
12705    $_am_arg | $_am_arg:* )
12706      break ;;
12707    * )
12708      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12709  esac
12710done
12711echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12712$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12713	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12714	 X"$_am_arg" : 'X\(//\)$' \| \
12715	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12716printf "%s\n" X"$_am_arg" |
12717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12718	    s//\1/
12719	    q
12720	  }
12721	  /^X\(\/\/\)[^/].*/{
12722	    s//\1/
12723	    q
12724	  }
12725	  /^X\(\/\/\)$/{
12726	    s//\1/
12727	    q
12728	  }
12729	  /^X\(\/\).*/{
12730	    s//\1/
12731	    q
12732	  }
12733	  s/.*/./; q'`/stamp-h$_am_stamp_count
12734 ;;
12735
12736  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12737printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12738 ;;
12739  esac
12740
12741
12742  case $ac_file$ac_mode in
12743    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12744  # Older Autoconf quotes --file arguments for eval, but not when files
12745  # are listed without --file.  Let's play safe and only enable the eval
12746  # if we detect the quoting.
12747  # TODO: see whether this extra hack can be removed once we start
12748  # requiring Autoconf 2.70 or later.
12749  case $CONFIG_FILES in #(
12750  *\'*) :
12751    eval set x "$CONFIG_FILES" ;; #(
12752  *) :
12753    set x $CONFIG_FILES ;; #(
12754  *) :
12755     ;;
12756esac
12757  shift
12758  # Used to flag and report bootstrapping failures.
12759  am_rc=0
12760  for am_mf
12761  do
12762    # Strip MF so we end up with the name of the file.
12763    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12764    # Check whether this is an Automake generated Makefile which includes
12765    # dependency-tracking related rules and includes.
12766    # Grep'ing the whole file directly is not great: AIX grep has a line
12767    # limit of 2048, but all sed's we know have understand at least 4000.
12768    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12769      || continue
12770    am_dirpart=`$as_dirname -- "$am_mf" ||
12771$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12772	 X"$am_mf" : 'X\(//\)[^/]' \| \
12773	 X"$am_mf" : 'X\(//\)$' \| \
12774	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12775printf "%s\n" X"$am_mf" |
12776    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12777	    s//\1/
12778	    q
12779	  }
12780	  /^X\(\/\/\)[^/].*/{
12781	    s//\1/
12782	    q
12783	  }
12784	  /^X\(\/\/\)$/{
12785	    s//\1/
12786	    q
12787	  }
12788	  /^X\(\/\).*/{
12789	    s//\1/
12790	    q
12791	  }
12792	  s/.*/./; q'`
12793    am_filepart=`$as_basename -- "$am_mf" ||
12794$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12795	 X"$am_mf" : 'X\(//\)$' \| \
12796	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12797printf "%s\n" X/"$am_mf" |
12798    sed '/^.*\/\([^/][^/]*\)\/*$/{
12799	    s//\1/
12800	    q
12801	  }
12802	  /^X\/\(\/\/\)$/{
12803	    s//\1/
12804	    q
12805	  }
12806	  /^X\/\(\/\).*/{
12807	    s//\1/
12808	    q
12809	  }
12810	  s/.*/./; q'`
12811    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12812      && sed -e '/# am--include-marker/d' "$am_filepart" \
12813        | $MAKE -f - am--depfiles" >&5
12814   (cd "$am_dirpart" \
12815      && sed -e '/# am--include-marker/d' "$am_filepart" \
12816        | $MAKE -f - am--depfiles) >&5 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } || am_rc=$?
12820  done
12821  if test $am_rc -ne 0; then
12822    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12823printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12824as_fn_error $? "Something went wrong bootstrapping makefile fragments
12825    for automatic dependency tracking.  If GNU make was not used, consider
12826    re-running the configure script with MAKE=\"gmake\" (or whatever is
12827    necessary).  You can also try re-running configure with the
12828    '--disable-dependency-tracking' option to at least be able to build
12829    the package (albeit without support for automatic dependency tracking).
12830See \`config.log' for more details" "$LINENO" 5; }
12831  fi
12832  { am_dirpart=; unset am_dirpart;}
12833  { am_filepart=; unset am_filepart;}
12834  { am_mf=; unset am_mf;}
12835  { am_rc=; unset am_rc;}
12836  rm -f conftest-deps.mk
12837}
12838 ;;
12839
12840  esac
12841done # for ac_tag
12842
12843
12844as_fn_exit 0
12845_ACEOF
12846ac_clean_files=$ac_clean_files_save
12847
12848test $ac_write_fail = 0 ||
12849  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12850
12851
12852# configure is writing to config.log, and then calls config.status.
12853# config.status does its own redirection, appending to config.log.
12854# Unfortunately, on DOS this fails, as config.log is still kept open
12855# by configure, so config.status won't be able to write to it; its
12856# output is simply discarded.  So we exec the FD to /dev/null,
12857# effectively closing config.log, so it can be properly (re)opened and
12858# appended to by config.status.  When coming back to configure, we
12859# need to make the FD available again.
12860if test "$no_create" != yes; then
12861  ac_cs_success=:
12862  ac_config_status_args=
12863  test "$silent" = yes &&
12864    ac_config_status_args="$ac_config_status_args --quiet"
12865  exec 5>/dev/null
12866  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12867  exec 5>>config.log
12868  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12869  # would make configure fail if this is the last instruction.
12870  $ac_cs_success || as_fn_exit 1
12871fi
12872if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12874printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12875fi
12876
12877
12878