1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xhost 1.0.9.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xhost/-/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/xhost/-/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='xhost'
614PACKAGE_TARNAME='xhost'
615PACKAGE_VERSION='1.0.9'
616PACKAGE_STRING='xhost 1.0.9'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xhost/-/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
657USE_GETTEXT_FALSE
658USE_GETTEXT_TRUE
659LOCALEDIR
660XAU_LIBS
661XAU_CFLAGS
662XHOST_LIBS
663XHOST_CFLAGS
664MAN_SUBSTS
665XORG_MAN_PAGE
666ADMIN_MAN_DIR
667DRIVER_MAN_DIR
668MISC_MAN_DIR
669FILE_MAN_DIR
670LIB_MAN_DIR
671APP_MAN_DIR
672ADMIN_MAN_SUFFIX
673DRIVER_MAN_SUFFIX
674MISC_MAN_SUFFIX
675FILE_MAN_SUFFIX
676LIB_MAN_SUFFIX
677APP_MAN_SUFFIX
678SED
679host_os
680host_vendor
681host_cpu
682host
683build_os
684build_vendor
685build_cpu
686build
687INSTALL_CMD
688PKG_CONFIG_LIBDIR
689PKG_CONFIG_PATH
690PKG_CONFIG
691CHANGELOG_CMD
692STRICT_CFLAGS
693CWARNFLAGS
694BASE_CFLAGS
695am__fastdepCC_FALSE
696am__fastdepCC_TRUE
697CCDEPMODE
698am__nodep
699AMDEPBACKSLASH
700AMDEP_FALSE
701AMDEP_TRUE
702am__include
703DEPDIR
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711AM_BACKSLASH
712AM_DEFAULT_VERBOSITY
713AM_DEFAULT_V
714AM_V
715CSCOPE
716ETAGS
717CTAGS
718am__untar
719am__tar
720AMTAR
721am__leading_dot
722SET_MAKE
723AWK
724mkdir_p
725MKDIR_P
726INSTALL_STRIP_PROGRAM
727STRIP
728install_sh
729MAKEINFO
730AUTOHEADER
731AUTOMAKE
732AUTOCONF
733ACLOCAL
734VERSION
735PACKAGE
736CYGPATH_W
737am__isrc
738INSTALL_DATA
739INSTALL_SCRIPT
740INSTALL_PROGRAM
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760runstatedir
761localstatedir
762sharedstatedir
763sysconfdir
764datadir
765datarootdir
766libexecdir
767sbindir
768bindir
769program_transform_name
770prefix
771exec_prefix
772PACKAGE_URL
773PACKAGE_BUGREPORT
774PACKAGE_STRING
775PACKAGE_VERSION
776PACKAGE_TARNAME
777PACKAGE_NAME
778PATH_SEPARATOR
779SHELL
780am__quote'
781ac_subst_files=''
782ac_user_opts='
783enable_option_checking
784enable_silent_rules
785enable_dependency_tracking
786enable_selective_werror
787enable_strict_compilation
788enable_unix_transport
789enable_tcp_transport
790enable_ipv6
791enable_local_transport
792enable_secure_rpc
793with_localedir
794'
795      ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803PKG_CONFIG
804PKG_CONFIG_PATH
805PKG_CONFIG_LIBDIR
806XHOST_CFLAGS
807XHOST_LIBS
808XAU_CFLAGS
809XAU_LIBS'
810
811
812# Initialize some variables set by options.
813ac_init_help=
814ac_init_version=false
815ac_unrecognized_opts=
816ac_unrecognized_sep=
817# The variables have the same names as the options, with
818# dashes changed to underlines.
819cache_file=/dev/null
820exec_prefix=NONE
821no_create=
822no_recursion=
823prefix=NONE
824program_prefix=NONE
825program_suffix=NONE
826program_transform_name=s,x,x,
827silent=
828site=
829srcdir=
830verbose=
831x_includes=NONE
832x_libraries=NONE
833
834# Installation directory options.
835# These are left unexpanded so users can "make install exec_prefix=/foo"
836# and all the variables that are supposed to be based on exec_prefix
837# by default will actually change.
838# Use braces instead of parens because sh, perl, etc. also accept them.
839# (The list follows the same order as the GNU Coding Standards.)
840bindir='${exec_prefix}/bin'
841sbindir='${exec_prefix}/sbin'
842libexecdir='${exec_prefix}/libexec'
843datarootdir='${prefix}/share'
844datadir='${datarootdir}'
845sysconfdir='${prefix}/etc'
846sharedstatedir='${prefix}/com'
847localstatedir='${prefix}/var'
848runstatedir='${localstatedir}/run'
849includedir='${prefix}/include'
850oldincludedir='/usr/include'
851docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852infodir='${datarootdir}/info'
853htmldir='${docdir}'
854dvidir='${docdir}'
855pdfdir='${docdir}'
856psdir='${docdir}'
857libdir='${exec_prefix}/lib'
858localedir='${datarootdir}/locale'
859mandir='${datarootdir}/man'
860
861ac_prev=
862ac_dashdash=
863for ac_option
864do
865  # If the previous option needs an argument, assign it.
866  if test -n "$ac_prev"; then
867    eval $ac_prev=\$ac_option
868    ac_prev=
869    continue
870  fi
871
872  case $ac_option in
873  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874  *=)   ac_optarg= ;;
875  *)    ac_optarg=yes ;;
876  esac
877
878  case $ac_dashdash$ac_option in
879  --)
880    ac_dashdash=yes ;;
881
882  -bindir | --bindir | --bindi | --bind | --bin | --bi)
883    ac_prev=bindir ;;
884  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885    bindir=$ac_optarg ;;
886
887  -build | --build | --buil | --bui | --bu)
888    ac_prev=build_alias ;;
889  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890    build_alias=$ac_optarg ;;
891
892  -cache-file | --cache-file | --cache-fil | --cache-fi \
893  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894    ac_prev=cache_file ;;
895  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897    cache_file=$ac_optarg ;;
898
899  --config-cache | -C)
900    cache_file=config.cache ;;
901
902  -datadir | --datadir | --datadi | --datad)
903    ac_prev=datadir ;;
904  -datadir=* | --datadir=* | --datadi=* | --datad=*)
905    datadir=$ac_optarg ;;
906
907  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908  | --dataroo | --dataro | --datar)
909    ac_prev=datarootdir ;;
910  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912    datarootdir=$ac_optarg ;;
913
914  -disable-* | --disable-*)
915    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916    # Reject names that are not valid shell variable names.
917    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918      as_fn_error $? "invalid feature name: \`$ac_useropt'"
919    ac_useropt_orig=$ac_useropt
920    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
921    case $ac_user_opts in
922      *"
923"enable_$ac_useropt"
924"*) ;;
925      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926	 ac_unrecognized_sep=', ';;
927    esac
928    eval enable_$ac_useropt=no ;;
929
930  -docdir | --docdir | --docdi | --doc | --do)
931    ac_prev=docdir ;;
932  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933    docdir=$ac_optarg ;;
934
935  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936    ac_prev=dvidir ;;
937  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938    dvidir=$ac_optarg ;;
939
940  -enable-* | --enable-*)
941    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944      as_fn_error $? "invalid feature name: \`$ac_useropt'"
945    ac_useropt_orig=$ac_useropt
946    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
947    case $ac_user_opts in
948      *"
949"enable_$ac_useropt"
950"*) ;;
951      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952	 ac_unrecognized_sep=', ';;
953    esac
954    eval enable_$ac_useropt=\$ac_optarg ;;
955
956  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958  | --exec | --exe | --ex)
959    ac_prev=exec_prefix ;;
960  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962  | --exec=* | --exe=* | --ex=*)
963    exec_prefix=$ac_optarg ;;
964
965  -gas | --gas | --ga | --g)
966    # Obsolete; use --with-gas.
967    with_gas=yes ;;
968
969  -help | --help | --hel | --he | -h)
970    ac_init_help=long ;;
971  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972    ac_init_help=recursive ;;
973  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974    ac_init_help=short ;;
975
976  -host | --host | --hos | --ho)
977    ac_prev=host_alias ;;
978  -host=* | --host=* | --hos=* | --ho=*)
979    host_alias=$ac_optarg ;;
980
981  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982    ac_prev=htmldir ;;
983  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984  | --ht=*)
985    htmldir=$ac_optarg ;;
986
987  -includedir | --includedir | --includedi | --included | --include \
988  | --includ | --inclu | --incl | --inc)
989    ac_prev=includedir ;;
990  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991  | --includ=* | --inclu=* | --incl=* | --inc=*)
992    includedir=$ac_optarg ;;
993
994  -infodir | --infodir | --infodi | --infod | --info | --inf)
995    ac_prev=infodir ;;
996  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997    infodir=$ac_optarg ;;
998
999  -libdir | --libdir | --libdi | --libd)
1000    ac_prev=libdir ;;
1001  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002    libdir=$ac_optarg ;;
1003
1004  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005  | --libexe | --libex | --libe)
1006    ac_prev=libexecdir ;;
1007  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008  | --libexe=* | --libex=* | --libe=*)
1009    libexecdir=$ac_optarg ;;
1010
1011  -localedir | --localedir | --localedi | --localed | --locale)
1012    ac_prev=localedir ;;
1013  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014    localedir=$ac_optarg ;;
1015
1016  -localstatedir | --localstatedir | --localstatedi | --localstated \
1017  | --localstate | --localstat | --localsta | --localst | --locals)
1018    ac_prev=localstatedir ;;
1019  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021    localstatedir=$ac_optarg ;;
1022
1023  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024    ac_prev=mandir ;;
1025  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026    mandir=$ac_optarg ;;
1027
1028  -nfp | --nfp | --nf)
1029    # Obsolete; use --without-fp.
1030    with_fp=no ;;
1031
1032  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033  | --no-cr | --no-c | -n)
1034    no_create=yes ;;
1035
1036  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038    no_recursion=yes ;;
1039
1040  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042  | --oldin | --oldi | --old | --ol | --o)
1043    ac_prev=oldincludedir ;;
1044  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047    oldincludedir=$ac_optarg ;;
1048
1049  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050    ac_prev=prefix ;;
1051  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052    prefix=$ac_optarg ;;
1053
1054  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055  | --program-pre | --program-pr | --program-p)
1056    ac_prev=program_prefix ;;
1057  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059    program_prefix=$ac_optarg ;;
1060
1061  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062  | --program-suf | --program-su | --program-s)
1063    ac_prev=program_suffix ;;
1064  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066    program_suffix=$ac_optarg ;;
1067
1068  -program-transform-name | --program-transform-name \
1069  | --program-transform-nam | --program-transform-na \
1070  | --program-transform-n | --program-transform- \
1071  | --program-transform | --program-transfor \
1072  | --program-transfo | --program-transf \
1073  | --program-trans | --program-tran \
1074  | --progr-tra | --program-tr | --program-t)
1075    ac_prev=program_transform_name ;;
1076  -program-transform-name=* | --program-transform-name=* \
1077  | --program-transform-nam=* | --program-transform-na=* \
1078  | --program-transform-n=* | --program-transform-=* \
1079  | --program-transform=* | --program-transfor=* \
1080  | --program-transfo=* | --program-transf=* \
1081  | --program-trans=* | --program-tran=* \
1082  | --progr-tra=* | --program-tr=* | --program-t=*)
1083    program_transform_name=$ac_optarg ;;
1084
1085  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086    ac_prev=pdfdir ;;
1087  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088    pdfdir=$ac_optarg ;;
1089
1090  -psdir | --psdir | --psdi | --psd | --ps)
1091    ac_prev=psdir ;;
1092  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093    psdir=$ac_optarg ;;
1094
1095  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096  | -silent | --silent | --silen | --sile | --sil)
1097    silent=yes ;;
1098
1099  -runstatedir | --runstatedir | --runstatedi | --runstated \
1100  | --runstate | --runstat | --runsta | --runst | --runs \
1101  | --run | --ru | --r)
1102    ac_prev=runstatedir ;;
1103  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1104  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1105  | --run=* | --ru=* | --r=*)
1106    runstatedir=$ac_optarg ;;
1107
1108  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109    ac_prev=sbindir ;;
1110  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111  | --sbi=* | --sb=*)
1112    sbindir=$ac_optarg ;;
1113
1114  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116  | --sharedst | --shareds | --shared | --share | --shar \
1117  | --sha | --sh)
1118    ac_prev=sharedstatedir ;;
1119  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122  | --sha=* | --sh=*)
1123    sharedstatedir=$ac_optarg ;;
1124
1125  -site | --site | --sit)
1126    ac_prev=site ;;
1127  -site=* | --site=* | --sit=*)
1128    site=$ac_optarg ;;
1129
1130  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131    ac_prev=srcdir ;;
1132  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133    srcdir=$ac_optarg ;;
1134
1135  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136  | --syscon | --sysco | --sysc | --sys | --sy)
1137    ac_prev=sysconfdir ;;
1138  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140    sysconfdir=$ac_optarg ;;
1141
1142  -target | --target | --targe | --targ | --tar | --ta | --t)
1143    ac_prev=target_alias ;;
1144  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145    target_alias=$ac_optarg ;;
1146
1147  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148    verbose=yes ;;
1149
1150  -version | --version | --versio | --versi | --vers | -V)
1151    ac_init_version=: ;;
1152
1153  -with-* | --with-*)
1154    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157      as_fn_error $? "invalid package name: \`$ac_useropt'"
1158    ac_useropt_orig=$ac_useropt
1159    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1160    case $ac_user_opts in
1161      *"
1162"with_$ac_useropt"
1163"*) ;;
1164      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165	 ac_unrecognized_sep=', ';;
1166    esac
1167    eval with_$ac_useropt=\$ac_optarg ;;
1168
1169  -without-* | --without-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error $? "invalid package name: \`$ac_useropt'"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"with_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval with_$ac_useropt=no ;;
1184
1185  --x)
1186    # Obsolete; use --with-x.
1187    with_x=yes ;;
1188
1189  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190  | --x-incl | --x-inc | --x-in | --x-i)
1191    ac_prev=x_includes ;;
1192  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194    x_includes=$ac_optarg ;;
1195
1196  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198    ac_prev=x_libraries ;;
1199  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201    x_libraries=$ac_optarg ;;
1202
1203  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204Try \`$0 --help' for more information"
1205    ;;
1206
1207  *=*)
1208    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209    # Reject names that are not valid shell variable names.
1210    case $ac_envvar in #(
1211      '' | [0-9]* | *[!_$as_cr_alnum]* )
1212      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213    esac
1214    eval $ac_envvar=\$ac_optarg
1215    export $ac_envvar ;;
1216
1217  *)
1218    # FIXME: should be removed in autoconf 3.0.
1219    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1220    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1222    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223    ;;
1224
1225  esac
1226done
1227
1228if test -n "$ac_prev"; then
1229  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230  as_fn_error $? "missing argument to $ac_option"
1231fi
1232
1233if test -n "$ac_unrecognized_opts"; then
1234  case $enable_option_checking in
1235    no) ;;
1236    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238  esac
1239fi
1240
1241# Check all directory arguments for consistency.
1242for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243		datadir sysconfdir sharedstatedir localstatedir includedir \
1244		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245		libdir localedir mandir runstatedir
1246do
1247  eval ac_val=\$$ac_var
1248  # Remove trailing slashes.
1249  case $ac_val in
1250    */ )
1251      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252      eval $ac_var=\$ac_val;;
1253  esac
1254  # Be sure to have absolute directory names.
1255  case $ac_val in
1256    [\\/$]* | ?:[\\/]* )  continue;;
1257    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258  esac
1259  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260done
1261
1262# There might be people who depend on the old broken behavior: `$host'
1263# used to hold the argument of --host etc.
1264# FIXME: To remove some day.
1265build=$build_alias
1266host=$host_alias
1267target=$target_alias
1268
1269# FIXME: To remove some day.
1270if test "x$host_alias" != x; then
1271  if test "x$build_alias" = x; then
1272    cross_compiling=maybe
1273  elif test "x$build_alias" != "x$host_alias"; then
1274    cross_compiling=yes
1275  fi
1276fi
1277
1278ac_tool_prefix=
1279test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281test "$silent" = yes && exec 6>/dev/null
1282
1283
1284ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285ac_ls_di=`ls -di .` &&
1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287  as_fn_error $? "working directory cannot be determined"
1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289  as_fn_error $? "pwd does not report name of working directory"
1290
1291
1292# Find the source files, if location was not specified.
1293if test -z "$srcdir"; then
1294  ac_srcdir_defaulted=yes
1295  # Try the directory containing this script, then the parent directory.
1296  ac_confdir=`$as_dirname -- "$as_myself" ||
1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298	 X"$as_myself" : 'X\(//\)[^/]' \| \
1299	 X"$as_myself" : 'X\(//\)$' \| \
1300	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301printf "%s\n" X"$as_myself" |
1302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303	    s//\1/
1304	    q
1305	  }
1306	  /^X\(\/\/\)[^/].*/{
1307	    s//\1/
1308	    q
1309	  }
1310	  /^X\(\/\/\)$/{
1311	    s//\1/
1312	    q
1313	  }
1314	  /^X\(\/\).*/{
1315	    s//\1/
1316	    q
1317	  }
1318	  s/.*/./; q'`
1319  srcdir=$ac_confdir
1320  if test ! -r "$srcdir/$ac_unique_file"; then
1321    srcdir=..
1322  fi
1323else
1324  ac_srcdir_defaulted=no
1325fi
1326if test ! -r "$srcdir/$ac_unique_file"; then
1327  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329fi
1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331ac_abs_confdir=`(
1332	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333	pwd)`
1334# When building in place, set srcdir=.
1335if test "$ac_abs_confdir" = "$ac_pwd"; then
1336  srcdir=.
1337fi
1338# Remove unnecessary trailing slashes from srcdir.
1339# Double slashes in file names in object file debugging info
1340# mess up M-x gdb in Emacs.
1341case $srcdir in
1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343esac
1344for ac_var in $ac_precious_vars; do
1345  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346  eval ac_env_${ac_var}_value=\$${ac_var}
1347  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349done
1350
1351#
1352# Report the --help message.
1353#
1354if test "$ac_init_help" = "long"; then
1355  # Omit some internal or obsolete options to make the list less imposing.
1356  # This message is too long to be a string in the A/UX 3.1 sh.
1357  cat <<_ACEOF
1358\`configure' configures xhost 1.0.9 to adapt to many kinds of systems.
1359
1360Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363VAR=VALUE.  See below for descriptions of some of the useful variables.
1364
1365Defaults for the options are specified in brackets.
1366
1367Configuration:
1368  -h, --help              display this help and exit
1369      --help=short        display options specific to this package
1370      --help=recursive    display the short help of all the included packages
1371  -V, --version           display version information and exit
1372  -q, --quiet, --silent   do not print \`checking ...' messages
1373      --cache-file=FILE   cache test results in FILE [disabled]
1374  -C, --config-cache      alias for \`--cache-file=config.cache'
1375  -n, --no-create         do not create output files
1376      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1377
1378Installation directories:
1379  --prefix=PREFIX         install architecture-independent files in PREFIX
1380                          [$ac_default_prefix]
1381  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1382                          [PREFIX]
1383
1384By default, \`make install' will install all the files in
1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1386an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387for instance \`--prefix=\$HOME'.
1388
1389For better control, use the options below.
1390
1391Fine tuning of the installation directories:
1392  --bindir=DIR            user executables [EPREFIX/bin]
1393  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1394  --libexecdir=DIR        program executables [EPREFIX/libexec]
1395  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1396  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1397  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1398  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1399  --libdir=DIR            object code libraries [EPREFIX/lib]
1400  --includedir=DIR        C header files [PREFIX/include]
1401  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404  --infodir=DIR           info documentation [DATAROOTDIR/info]
1405  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406  --mandir=DIR            man documentation [DATAROOTDIR/man]
1407  --docdir=DIR            documentation root [DATAROOTDIR/doc/xhost]
1408  --htmldir=DIR           html documentation [DOCDIR]
1409  --dvidir=DIR            dvi documentation [DOCDIR]
1410  --pdfdir=DIR            pdf documentation [DOCDIR]
1411  --psdir=DIR             ps documentation [DOCDIR]
1412_ACEOF
1413
1414  cat <<\_ACEOF
1415
1416Program names:
1417  --program-prefix=PREFIX            prepend PREFIX to installed program names
1418  --program-suffix=SUFFIX            append SUFFIX to installed program names
1419  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
1421System types:
1422  --build=BUILD     configure for building on BUILD [guessed]
1423  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424_ACEOF
1425fi
1426
1427if test -n "$ac_init_help"; then
1428  case $ac_init_help in
1429     short | recursive ) echo "Configuration of xhost 1.0.9:";;
1430   esac
1431  cat <<\_ACEOF
1432
1433Optional Features:
1434  --disable-option-checking  ignore unrecognized --enable/--with options
1435  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437  --enable-silent-rules   less verbose build output (undo: "make V=1")
1438  --disable-silent-rules  verbose build output (undo: "make V=0")
1439  --enable-dependency-tracking
1440                          do not reject slow dependency extractors
1441  --disable-dependency-tracking
1442                          speeds up one-time build
1443  --disable-selective-werror
1444                          Turn off selective compiler errors. (default:
1445                          enabled)
1446  --enable-strict-compilation
1447                          Enable all warnings from compiler and make them
1448                          errors (default: disabled)
1449  --enable-unix-transport Enable UNIX domain socket transport
1450  --enable-tcp-transport  Enable TCP socket transport
1451  --enable-ipv6           Enable IPv6 support
1452  --enable-local-transport
1453                          Enable os-specific local transport
1454  --enable-secure-rpc     Enable Secure RPC
1455
1456Optional Packages:
1457  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1458  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1459  --with-localedir=<path> Path to install message files in (default:
1460                          datadir/locale)
1461
1462Some influential environment variables:
1463  CC          C compiler command
1464  CFLAGS      C compiler flags
1465  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466              nonstandard directory <lib dir>
1467  LIBS        libraries to pass to the linker, e.g. -l<library>
1468  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469              you have headers in a nonstandard directory <include dir>
1470  PKG_CONFIG  path to pkg-config utility
1471  PKG_CONFIG_PATH
1472              directories to add to pkg-config's search path
1473  PKG_CONFIG_LIBDIR
1474              path overriding pkg-config's built-in search path
1475  XHOST_CFLAGS
1476              C compiler flags for XHOST, overriding pkg-config
1477  XHOST_LIBS  linker flags for XHOST, overriding pkg-config
1478  XAU_CFLAGS  C compiler flags for XAU, overriding pkg-config
1479  XAU_LIBS    linker flags for XAU, overriding pkg-config
1480
1481Use these variables to override the choices made by `configure' or to help
1482it to find libraries and programs with nonstandard names/locations.
1483
1484Report bugs to <https://gitlab.freedesktop.org/xorg/app/xhost/-/issues>.
1485_ACEOF
1486ac_status=$?
1487fi
1488
1489if test "$ac_init_help" = "recursive"; then
1490  # If there are subdirs, report their specific --help.
1491  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492    test -d "$ac_dir" ||
1493      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494      continue
1495    ac_builddir=.
1496
1497case "$ac_dir" in
1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499*)
1500  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1501  # A ".." for each directory in $ac_dir_suffix.
1502  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1503  case $ac_top_builddir_sub in
1504  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506  esac ;;
1507esac
1508ac_abs_top_builddir=$ac_pwd
1509ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510# for backward compatibility:
1511ac_top_builddir=$ac_top_build_prefix
1512
1513case $srcdir in
1514  .)  # We are building in place.
1515    ac_srcdir=.
1516    ac_top_srcdir=$ac_top_builddir_sub
1517    ac_abs_top_srcdir=$ac_pwd ;;
1518  [\\/]* | ?:[\\/]* )  # Absolute name.
1519    ac_srcdir=$srcdir$ac_dir_suffix;
1520    ac_top_srcdir=$srcdir
1521    ac_abs_top_srcdir=$srcdir ;;
1522  *) # Relative name.
1523    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524    ac_top_srcdir=$ac_top_build_prefix$srcdir
1525    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526esac
1527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528
1529    cd "$ac_dir" || { ac_status=$?; continue; }
1530    # Check for configure.gnu first; this name is used for a wrapper for
1531    # Metaconfig's "Configure" on case-insensitive file systems.
1532    if test -f "$ac_srcdir/configure.gnu"; then
1533      echo &&
1534      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535    elif test -f "$ac_srcdir/configure"; then
1536      echo &&
1537      $SHELL "$ac_srcdir/configure" --help=recursive
1538    else
1539      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540    fi || ac_status=$?
1541    cd "$ac_pwd" || { ac_status=$?; break; }
1542  done
1543fi
1544
1545test -n "$ac_init_help" && exit $ac_status
1546if $ac_init_version; then
1547  cat <<\_ACEOF
1548xhost configure 1.0.9
1549generated by GNU Autoconf 2.71
1550
1551Copyright (C) 2021 Free Software Foundation, Inc.
1552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554_ACEOF
1555  exit
1556fi
1557
1558## ------------------------ ##
1559## Autoconf initialization. ##
1560## ------------------------ ##
1561
1562# ac_fn_c_try_compile LINENO
1563# --------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_compile ()
1566{
1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568  rm -f conftest.$ac_objext conftest.beam
1569  if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572  *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575printf "%s\n" "$ac_try_echo"; } >&5
1576  (eval "$ac_compile") 2>conftest.err
1577  ac_status=$?
1578  if test -s conftest.err; then
1579    grep -v '^ *+' conftest.err >conftest.er1
1580    cat conftest.er1 >&5
1581    mv -f conftest.er1 conftest.err
1582  fi
1583  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584  test $ac_status = 0; } && {
1585	 test -z "$ac_c_werror_flag" ||
1586	 test ! -s conftest.err
1587       } && test -s conftest.$ac_objext
1588then :
1589  ac_retval=0
1590else $as_nop
1591  printf "%s\n" "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594	ac_retval=1
1595fi
1596  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597  as_fn_set_status $ac_retval
1598
1599} # ac_fn_c_try_compile
1600
1601# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1602# -------------------------------------------------------
1603# Tests whether HEADER exists and can be compiled using the include files in
1604# INCLUDES, setting the cache variable VAR accordingly.
1605ac_fn_c_check_header_compile ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609printf %s "checking for $2... " >&6; }
1610if eval test \${$3+y}
1611then :
1612  printf %s "(cached) " >&6
1613else $as_nop
1614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615/* end confdefs.h.  */
1616$4
1617#include <$2>
1618_ACEOF
1619if ac_fn_c_try_compile "$LINENO"
1620then :
1621  eval "$3=yes"
1622else $as_nop
1623  eval "$3=no"
1624fi
1625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1626fi
1627eval ac_res=\$$3
1628	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629printf "%s\n" "$ac_res" >&6; }
1630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631
1632} # ac_fn_c_check_header_compile
1633
1634# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1635# ------------------------------------------------------------------
1636# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1637# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1638ac_fn_check_decl ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  as_decl_name=`echo $2|sed 's/ *(.*//'`
1642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1643printf %s "checking whether $as_decl_name is declared... " >&6; }
1644if eval test \${$3+y}
1645then :
1646  printf %s "(cached) " >&6
1647else $as_nop
1648  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1649  eval ac_save_FLAGS=\$$6
1650  as_fn_append $6 " $5"
1651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652/* end confdefs.h.  */
1653$4
1654int
1655main (void)
1656{
1657#ifndef $as_decl_name
1658#ifdef __cplusplus
1659  (void) $as_decl_use;
1660#else
1661  (void) $as_decl_name;
1662#endif
1663#endif
1664
1665  ;
1666  return 0;
1667}
1668_ACEOF
1669if ac_fn_c_try_compile "$LINENO"
1670then :
1671  eval "$3=yes"
1672else $as_nop
1673  eval "$3=no"
1674fi
1675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1676  eval $6=\$ac_save_FLAGS
1677
1678fi
1679eval ac_res=\$$3
1680	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681printf "%s\n" "$ac_res" >&6; }
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684} # ac_fn_check_decl
1685
1686# ac_fn_c_try_link LINENO
1687# -----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_link ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699printf "%s\n" "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && {
1709	 test -z "$ac_c_werror_flag" ||
1710	 test ! -s conftest.err
1711       } && test -s conftest$ac_exeext && {
1712	 test "$cross_compiling" = yes ||
1713	 test -x conftest$ac_exeext
1714       }
1715then :
1716  ac_retval=0
1717else $as_nop
1718  printf "%s\n" "$as_me: failed program was:" >&5
1719sed 's/^/| /' conftest.$ac_ext >&5
1720
1721	ac_retval=1
1722fi
1723  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725  # interfere with the next link command; also delete a directory that is
1726  # left behind by Apple's compiler.  We do this before executing the actions.
1727  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729  as_fn_set_status $ac_retval
1730
1731} # ac_fn_c_try_link
1732
1733# ac_fn_c_check_func LINENO FUNC VAR
1734# ----------------------------------
1735# Tests whether FUNC exists, setting the cache variable VAR accordingly
1736ac_fn_c_check_func ()
1737{
1738  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740printf %s "checking for $2... " >&6; }
1741if eval test \${$3+y}
1742then :
1743  printf %s "(cached) " >&6
1744else $as_nop
1745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h.  */
1747/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1749#define $2 innocuous_$2
1750
1751/* System header to define __stub macros and hopefully few prototypes,
1752   which can conflict with char $2 (); below.  */
1753
1754#include <limits.h>
1755#undef $2
1756
1757/* Override any GCC internal prototype to avoid an error.
1758   Use char because int might match the return type of a GCC
1759   builtin and then its argument prototype would still apply.  */
1760#ifdef __cplusplus
1761extern "C"
1762#endif
1763char $2 ();
1764/* The GNU C library defines this for functions which it implements
1765    to always fail with ENOSYS.  Some functions are actually named
1766    something starting with __ and the normal name is an alias.  */
1767#if defined __stub_$2 || defined __stub___$2
1768choke me
1769#endif
1770
1771int
1772main (void)
1773{
1774return $2 ();
1775  ;
1776  return 0;
1777}
1778_ACEOF
1779if ac_fn_c_try_link "$LINENO"
1780then :
1781  eval "$3=yes"
1782else $as_nop
1783  eval "$3=no"
1784fi
1785rm -f core conftest.err conftest.$ac_objext conftest.beam \
1786    conftest$ac_exeext conftest.$ac_ext
1787fi
1788eval ac_res=\$$3
1789	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790printf "%s\n" "$ac_res" >&6; }
1791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793} # ac_fn_c_check_func
1794
1795# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1796# ----------------------------------------------------
1797# Tries to find if the field MEMBER exists in type AGGR, after including
1798# INCLUDES, setting cache variable VAR accordingly.
1799ac_fn_c_check_member ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1803printf %s "checking for $2.$3... " >&6; }
1804if eval test \${$4+y}
1805then :
1806  printf %s "(cached) " >&6
1807else $as_nop
1808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h.  */
1810$5
1811int
1812main (void)
1813{
1814static $2 ac_aggr;
1815if (ac_aggr.$3)
1816return 0;
1817  ;
1818  return 0;
1819}
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"
1822then :
1823  eval "$4=yes"
1824else $as_nop
1825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h.  */
1827$5
1828int
1829main (void)
1830{
1831static $2 ac_aggr;
1832if (sizeof ac_aggr.$3)
1833return 0;
1834  ;
1835  return 0;
1836}
1837_ACEOF
1838if ac_fn_c_try_compile "$LINENO"
1839then :
1840  eval "$4=yes"
1841else $as_nop
1842  eval "$4=no"
1843fi
1844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1845fi
1846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1847fi
1848eval ac_res=\$$4
1849	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850printf "%s\n" "$ac_res" >&6; }
1851  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852
1853} # ac_fn_c_check_member
1854
1855# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1856# -------------------------------------------
1857# Tests whether TYPE exists after having included INCLUDES, setting cache
1858# variable VAR accordingly.
1859ac_fn_c_check_type ()
1860{
1861  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863printf %s "checking for $2... " >&6; }
1864if eval test \${$3+y}
1865then :
1866  printf %s "(cached) " >&6
1867else $as_nop
1868  eval "$3=no"
1869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870/* end confdefs.h.  */
1871$4
1872int
1873main (void)
1874{
1875if (sizeof ($2))
1876	 return 0;
1877  ;
1878  return 0;
1879}
1880_ACEOF
1881if ac_fn_c_try_compile "$LINENO"
1882then :
1883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h.  */
1885$4
1886int
1887main (void)
1888{
1889if (sizeof (($2)))
1890	    return 0;
1891  ;
1892  return 0;
1893}
1894_ACEOF
1895if ac_fn_c_try_compile "$LINENO"
1896then :
1897
1898else $as_nop
1899  eval "$3=yes"
1900fi
1901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1902fi
1903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907printf "%s\n" "$ac_res" >&6; }
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910} # ac_fn_c_check_type
1911ac_configure_args_raw=
1912for ac_arg
1913do
1914  case $ac_arg in
1915  *\'*)
1916    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1917  esac
1918  as_fn_append ac_configure_args_raw " '$ac_arg'"
1919done
1920
1921case $ac_configure_args_raw in
1922  *$as_nl*)
1923    ac_safe_unquote= ;;
1924  *)
1925    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1926    ac_unsafe_a="$ac_unsafe_z#~"
1927    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1928    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1929esac
1930
1931cat >config.log <<_ACEOF
1932This file contains any messages produced by compilers while
1933running configure, to aid debugging if configure makes a mistake.
1934
1935It was created by xhost $as_me 1.0.9, which was
1936generated by GNU Autoconf 2.71.  Invocation command line was
1937
1938  $ $0$ac_configure_args_raw
1939
1940_ACEOF
1941exec 5>>config.log
1942{
1943cat <<_ASUNAME
1944## --------- ##
1945## Platform. ##
1946## --------- ##
1947
1948hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1949uname -m = `(uname -m) 2>/dev/null || echo unknown`
1950uname -r = `(uname -r) 2>/dev/null || echo unknown`
1951uname -s = `(uname -s) 2>/dev/null || echo unknown`
1952uname -v = `(uname -v) 2>/dev/null || echo unknown`
1953
1954/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1955/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1956
1957/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1958/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1959/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1960/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1961/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1962/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1963/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1964
1965_ASUNAME
1966
1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968for as_dir in $PATH
1969do
1970  IFS=$as_save_IFS
1971  case $as_dir in #(((
1972    '') as_dir=./ ;;
1973    */) ;;
1974    *) as_dir=$as_dir/ ;;
1975  esac
1976    printf "%s\n" "PATH: $as_dir"
1977  done
1978IFS=$as_save_IFS
1979
1980} >&5
1981
1982cat >&5 <<_ACEOF
1983
1984
1985## ----------- ##
1986## Core tests. ##
1987## ----------- ##
1988
1989_ACEOF
1990
1991
1992# Keep a trace of the command line.
1993# Strip out --no-create and --no-recursion so they do not pile up.
1994# Strip out --silent because we don't want to record it for future runs.
1995# Also quote any args containing shell meta-characters.
1996# Make two passes to allow for proper duplicate-argument suppression.
1997ac_configure_args=
1998ac_configure_args0=
1999ac_configure_args1=
2000ac_must_keep_next=false
2001for ac_pass in 1 2
2002do
2003  for ac_arg
2004  do
2005    case $ac_arg in
2006    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2007    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2008    | -silent | --silent | --silen | --sile | --sil)
2009      continue ;;
2010    *\'*)
2011      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2012    esac
2013    case $ac_pass in
2014    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2015    2)
2016      as_fn_append ac_configure_args1 " '$ac_arg'"
2017      if test $ac_must_keep_next = true; then
2018	ac_must_keep_next=false # Got value, back to normal.
2019      else
2020	case $ac_arg in
2021	  *=* | --config-cache | -C | -disable-* | --disable-* \
2022	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2023	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2024	  | -with-* | --with-* | -without-* | --without-* | --x)
2025	    case "$ac_configure_args0 " in
2026	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2027	    esac
2028	    ;;
2029	  -* ) ac_must_keep_next=true ;;
2030	esac
2031      fi
2032      as_fn_append ac_configure_args " '$ac_arg'"
2033      ;;
2034    esac
2035  done
2036done
2037{ ac_configure_args0=; unset ac_configure_args0;}
2038{ ac_configure_args1=; unset ac_configure_args1;}
2039
2040# When interrupted or exit'd, cleanup temporary files, and complete
2041# config.log.  We remove comments because anyway the quotes in there
2042# would cause problems or look ugly.
2043# WARNING: Use '\'' to represent an apostrophe within the trap.
2044# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2045trap 'exit_status=$?
2046  # Sanitize IFS.
2047  IFS=" ""	$as_nl"
2048  # Save into config.log some information that might help in debugging.
2049  {
2050    echo
2051
2052    printf "%s\n" "## ---------------- ##
2053## Cache variables. ##
2054## ---------------- ##"
2055    echo
2056    # The following way of writing the cache mishandles newlines in values,
2057(
2058  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2059    eval ac_val=\$$ac_var
2060    case $ac_val in #(
2061    *${as_nl}*)
2062      case $ac_var in #(
2063      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2064printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065      esac
2066      case $ac_var in #(
2067      _ | IFS | as_nl) ;; #(
2068      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2069      *) { eval $ac_var=; unset $ac_var;} ;;
2070      esac ;;
2071    esac
2072  done
2073  (set) 2>&1 |
2074    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2075    *${as_nl}ac_space=\ *)
2076      sed -n \
2077	"s/'\''/'\''\\\\'\'''\''/g;
2078	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079      ;; #(
2080    *)
2081      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2082      ;;
2083    esac |
2084    sort
2085)
2086    echo
2087
2088    printf "%s\n" "## ----------------- ##
2089## Output variables. ##
2090## ----------------- ##"
2091    echo
2092    for ac_var in $ac_subst_vars
2093    do
2094      eval ac_val=\$$ac_var
2095      case $ac_val in
2096      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097      esac
2098      printf "%s\n" "$ac_var='\''$ac_val'\''"
2099    done | sort
2100    echo
2101
2102    if test -n "$ac_subst_files"; then
2103      printf "%s\n" "## ------------------- ##
2104## File substitutions. ##
2105## ------------------- ##"
2106      echo
2107      for ac_var in $ac_subst_files
2108      do
2109	eval ac_val=\$$ac_var
2110	case $ac_val in
2111	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112	esac
2113	printf "%s\n" "$ac_var='\''$ac_val'\''"
2114      done | sort
2115      echo
2116    fi
2117
2118    if test -s confdefs.h; then
2119      printf "%s\n" "## ----------- ##
2120## confdefs.h. ##
2121## ----------- ##"
2122      echo
2123      cat confdefs.h
2124      echo
2125    fi
2126    test "$ac_signal" != 0 &&
2127      printf "%s\n" "$as_me: caught signal $ac_signal"
2128    printf "%s\n" "$as_me: exit $exit_status"
2129  } >&5
2130  rm -f core *.core core.conftest.* &&
2131    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132    exit $exit_status
2133' 0
2134for ac_signal in 1 2 13 15; do
2135  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2136done
2137ac_signal=0
2138
2139# confdefs.h avoids OS command line length limits that DEFS can exceed.
2140rm -f -r conftest* confdefs.h
2141
2142printf "%s\n" "/* confdefs.h */" > confdefs.h
2143
2144# Predefined preprocessor variables.
2145
2146printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2147
2148printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2149
2150printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2151
2152printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2153
2154printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2155
2156printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2157
2158
2159# Let the site file select an alternate cache file if it wants to.
2160# Prefer an explicitly selected file to automatically selected ones.
2161if test -n "$CONFIG_SITE"; then
2162  ac_site_files="$CONFIG_SITE"
2163elif test "x$prefix" != xNONE; then
2164  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2165else
2166  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2167fi
2168
2169for ac_site_file in $ac_site_files
2170do
2171  case $ac_site_file in #(
2172  */*) :
2173     ;; #(
2174  *) :
2175    ac_site_file=./$ac_site_file ;;
2176esac
2177  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2178    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2180    sed 's/^/| /' "$ac_site_file" >&5
2181    . "$ac_site_file" \
2182      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2183printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2184as_fn_error $? "failed to load site script $ac_site_file
2185See \`config.log' for more details" "$LINENO" 5; }
2186  fi
2187done
2188
2189if test -r "$cache_file"; then
2190  # Some versions of bash will fail to source /dev/null (special files
2191  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2192  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2193    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2194printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2195    case $cache_file in
2196      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2197      *)                      . "./$cache_file";;
2198    esac
2199  fi
2200else
2201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2202printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2203  >$cache_file
2204fi
2205
2206as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2207# Test code for whether the C compiler supports C89 (global declarations)
2208ac_c_conftest_c89_globals='
2209/* Does the compiler advertise C89 conformance?
2210   Do not test the value of __STDC__, because some compilers set it to 0
2211   while being otherwise adequately conformant. */
2212#if !defined __STDC__
2213# error "Compiler does not advertise C89 conformance"
2214#endif
2215
2216#include <stddef.h>
2217#include <stdarg.h>
2218struct stat;
2219/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2220struct buf { int x; };
2221struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2222static char *e (p, i)
2223     char **p;
2224     int i;
2225{
2226  return p[i];
2227}
2228static char *f (char * (*g) (char **, int), char **p, ...)
2229{
2230  char *s;
2231  va_list v;
2232  va_start (v,p);
2233  s = g (p, va_arg (v,int));
2234  va_end (v);
2235  return s;
2236}
2237
2238/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2239   function prototypes and stuff, but not \xHH hex character constants.
2240   These do not provoke an error unfortunately, instead are silently treated
2241   as an "x".  The following induces an error, until -std is added to get
2242   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2243   array size at least.  It is necessary to write \x00 == 0 to get something
2244   that is true only with -std.  */
2245int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2246
2247/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2248   inside strings and character constants.  */
2249#define FOO(x) '\''x'\''
2250int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2251
2252int test (int i, double x);
2253struct s1 {int (*f) (int a);};
2254struct s2 {int (*f) (double a);};
2255int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2256               int, int);'
2257
2258# Test code for whether the C compiler supports C89 (body of main).
2259ac_c_conftest_c89_main='
2260ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2261'
2262
2263# Test code for whether the C compiler supports C99 (global declarations)
2264ac_c_conftest_c99_globals='
2265// Does the compiler advertise C99 conformance?
2266#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2267# error "Compiler does not advertise C99 conformance"
2268#endif
2269
2270#include <stdbool.h>
2271extern int puts (const char *);
2272extern int printf (const char *, ...);
2273extern int dprintf (int, const char *, ...);
2274extern void *malloc (size_t);
2275
2276// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2277// dprintf is used instead of fprintf to avoid needing to declare
2278// FILE and stderr.
2279#define debug(...) dprintf (2, __VA_ARGS__)
2280#define showlist(...) puts (#__VA_ARGS__)
2281#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2282static void
2283test_varargs_macros (void)
2284{
2285  int x = 1234;
2286  int y = 5678;
2287  debug ("Flag");
2288  debug ("X = %d\n", x);
2289  showlist (The first, second, and third items.);
2290  report (x>y, "x is %d but y is %d", x, y);
2291}
2292
2293// Check long long types.
2294#define BIG64 18446744073709551615ull
2295#define BIG32 4294967295ul
2296#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2297#if !BIG_OK
2298  #error "your preprocessor is broken"
2299#endif
2300#if BIG_OK
2301#else
2302  #error "your preprocessor is broken"
2303#endif
2304static long long int bignum = -9223372036854775807LL;
2305static unsigned long long int ubignum = BIG64;
2306
2307struct incomplete_array
2308{
2309  int datasize;
2310  double data[];
2311};
2312
2313struct named_init {
2314  int number;
2315  const wchar_t *name;
2316  double average;
2317};
2318
2319typedef const char *ccp;
2320
2321static inline int
2322test_restrict (ccp restrict text)
2323{
2324  // See if C++-style comments work.
2325  // Iterate through items via the restricted pointer.
2326  // Also check for declarations in for loops.
2327  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2328    continue;
2329  return 0;
2330}
2331
2332// Check varargs and va_copy.
2333static bool
2334test_varargs (const char *format, ...)
2335{
2336  va_list args;
2337  va_start (args, format);
2338  va_list args_copy;
2339  va_copy (args_copy, args);
2340
2341  const char *str = "";
2342  int number = 0;
2343  float fnumber = 0;
2344
2345  while (*format)
2346    {
2347      switch (*format++)
2348	{
2349	case '\''s'\'': // string
2350	  str = va_arg (args_copy, const char *);
2351	  break;
2352	case '\''d'\'': // int
2353	  number = va_arg (args_copy, int);
2354	  break;
2355	case '\''f'\'': // float
2356	  fnumber = va_arg (args_copy, double);
2357	  break;
2358	default:
2359	  break;
2360	}
2361    }
2362  va_end (args_copy);
2363  va_end (args);
2364
2365  return *str && number && fnumber;
2366}
2367'
2368
2369# Test code for whether the C compiler supports C99 (body of main).
2370ac_c_conftest_c99_main='
2371  // Check bool.
2372  _Bool success = false;
2373  success |= (argc != 0);
2374
2375  // Check restrict.
2376  if (test_restrict ("String literal") == 0)
2377    success = true;
2378  char *restrict newvar = "Another string";
2379
2380  // Check varargs.
2381  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2382  test_varargs_macros ();
2383
2384  // Check flexible array members.
2385  struct incomplete_array *ia =
2386    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2387  ia->datasize = 10;
2388  for (int i = 0; i < ia->datasize; ++i)
2389    ia->data[i] = i * 1.234;
2390
2391  // Check named initializers.
2392  struct named_init ni = {
2393    .number = 34,
2394    .name = L"Test wide string",
2395    .average = 543.34343,
2396  };
2397
2398  ni.number = 58;
2399
2400  int dynamic_array[ni.number];
2401  dynamic_array[0] = argv[0][0];
2402  dynamic_array[ni.number - 1] = 543;
2403
2404  // work around unused variable warnings
2405  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2406	 || dynamic_array[ni.number - 1] != 543);
2407'
2408
2409# Test code for whether the C compiler supports C11 (global declarations)
2410ac_c_conftest_c11_globals='
2411// Does the compiler advertise C11 conformance?
2412#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2413# error "Compiler does not advertise C11 conformance"
2414#endif
2415
2416// Check _Alignas.
2417char _Alignas (double) aligned_as_double;
2418char _Alignas (0) no_special_alignment;
2419extern char aligned_as_int;
2420char _Alignas (0) _Alignas (int) aligned_as_int;
2421
2422// Check _Alignof.
2423enum
2424{
2425  int_alignment = _Alignof (int),
2426  int_array_alignment = _Alignof (int[100]),
2427  char_alignment = _Alignof (char)
2428};
2429_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2430
2431// Check _Noreturn.
2432int _Noreturn does_not_return (void) { for (;;) continue; }
2433
2434// Check _Static_assert.
2435struct test_static_assert
2436{
2437  int x;
2438  _Static_assert (sizeof (int) <= sizeof (long int),
2439                  "_Static_assert does not work in struct");
2440  long int y;
2441};
2442
2443// Check UTF-8 literals.
2444#define u8 syntax error!
2445char const utf8_literal[] = u8"happens to be ASCII" "another string";
2446
2447// Check duplicate typedefs.
2448typedef long *long_ptr;
2449typedef long int *long_ptr;
2450typedef long_ptr long_ptr;
2451
2452// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2453struct anonymous
2454{
2455  union {
2456    struct { int i; int j; };
2457    struct { int k; long int l; } w;
2458  };
2459  int m;
2460} v1;
2461'
2462
2463# Test code for whether the C compiler supports C11 (body of main).
2464ac_c_conftest_c11_main='
2465  _Static_assert ((offsetof (struct anonymous, i)
2466		   == offsetof (struct anonymous, w.k)),
2467		  "Anonymous union alignment botch");
2468  v1.i = 2;
2469  v1.w.k = 5;
2470  ok |= v1.i != 5;
2471'
2472
2473# Test code for whether the C compiler supports C11 (complete).
2474ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2475${ac_c_conftest_c99_globals}
2476${ac_c_conftest_c11_globals}
2477
2478int
2479main (int argc, char **argv)
2480{
2481  int ok = 0;
2482  ${ac_c_conftest_c89_main}
2483  ${ac_c_conftest_c99_main}
2484  ${ac_c_conftest_c11_main}
2485  return ok;
2486}
2487"
2488
2489# Test code for whether the C compiler supports C99 (complete).
2490ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2491${ac_c_conftest_c99_globals}
2492
2493int
2494main (int argc, char **argv)
2495{
2496  int ok = 0;
2497  ${ac_c_conftest_c89_main}
2498  ${ac_c_conftest_c99_main}
2499  return ok;
2500}
2501"
2502
2503# Test code for whether the C compiler supports C89 (complete).
2504ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2505
2506int
2507main (int argc, char **argv)
2508{
2509  int ok = 0;
2510  ${ac_c_conftest_c89_main}
2511  return ok;
2512}
2513"
2514
2515as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2516as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2517as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2518as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2519as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2520as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2521as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2522as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2523as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2524as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2525
2526# Auxiliary files required by this configure script.
2527ac_aux_files="config.guess config.sub compile missing install-sh"
2528
2529# Locations in which to look for auxiliary files.
2530ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2531
2532# Search for a directory containing all of the required auxiliary files,
2533# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2534# If we don't find one directory that contains all the files we need,
2535# we report the set of missing files from the *first* directory in
2536# $ac_aux_dir_candidates and give up.
2537ac_missing_aux_files=""
2538ac_first_candidate=:
2539printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541as_found=false
2542for as_dir in $ac_aux_dir_candidates
2543do
2544  IFS=$as_save_IFS
2545  case $as_dir in #(((
2546    '') as_dir=./ ;;
2547    */) ;;
2548    *) as_dir=$as_dir/ ;;
2549  esac
2550  as_found=:
2551
2552  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2553  ac_aux_dir_found=yes
2554  ac_install_sh=
2555  for ac_aux in $ac_aux_files
2556  do
2557    # As a special case, if "install-sh" is required, that requirement
2558    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2559    # and $ac_install_sh is set appropriately for whichever one is found.
2560    if test x"$ac_aux" = x"install-sh"
2561    then
2562      if test -f "${as_dir}install-sh"; then
2563        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2564        ac_install_sh="${as_dir}install-sh -c"
2565      elif test -f "${as_dir}install.sh"; then
2566        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2567        ac_install_sh="${as_dir}install.sh -c"
2568      elif test -f "${as_dir}shtool"; then
2569        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2570        ac_install_sh="${as_dir}shtool install -c"
2571      else
2572        ac_aux_dir_found=no
2573        if $ac_first_candidate; then
2574          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2575        else
2576          break
2577        fi
2578      fi
2579    else
2580      if test -f "${as_dir}${ac_aux}"; then
2581        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2582      else
2583        ac_aux_dir_found=no
2584        if $ac_first_candidate; then
2585          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2586        else
2587          break
2588        fi
2589      fi
2590    fi
2591  done
2592  if test "$ac_aux_dir_found" = yes; then
2593    ac_aux_dir="$as_dir"
2594    break
2595  fi
2596  ac_first_candidate=false
2597
2598  as_found=false
2599done
2600IFS=$as_save_IFS
2601if $as_found
2602then :
2603
2604else $as_nop
2605  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2606fi
2607
2608
2609# These three variables are undocumented and unsupported,
2610# and are intended to be withdrawn in a future Autoconf release.
2611# They can cause serious problems if a builder's source tree is in a directory
2612# whose full name contains unusual characters.
2613if test -f "${ac_aux_dir}config.guess"; then
2614  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2615fi
2616if test -f "${ac_aux_dir}config.sub"; then
2617  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2618fi
2619if test -f "$ac_aux_dir/configure"; then
2620  ac_configure="$SHELL ${ac_aux_dir}configure"
2621fi
2622
2623# Check that the precious variables saved in the cache have kept the same
2624# value.
2625ac_cache_corrupted=false
2626for ac_var in $ac_precious_vars; do
2627  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2628  eval ac_new_set=\$ac_env_${ac_var}_set
2629  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2630  eval ac_new_val=\$ac_env_${ac_var}_value
2631  case $ac_old_set,$ac_new_set in
2632    set,)
2633      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2634printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2635      ac_cache_corrupted=: ;;
2636    ,set)
2637      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2638printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2639      ac_cache_corrupted=: ;;
2640    ,);;
2641    *)
2642      if test "x$ac_old_val" != "x$ac_new_val"; then
2643	# differences in whitespace do not lead to failure.
2644	ac_old_val_w=`echo x $ac_old_val`
2645	ac_new_val_w=`echo x $ac_new_val`
2646	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2647	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2648printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2649	  ac_cache_corrupted=:
2650	else
2651	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2652printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2653	  eval $ac_var=\$ac_old_val
2654	fi
2655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2656printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2657	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2658printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2659      fi;;
2660  esac
2661  # Pass precious variables to config.status.
2662  if test "$ac_new_set" = set; then
2663    case $ac_new_val in
2664    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2665    *) ac_arg=$ac_var=$ac_new_val ;;
2666    esac
2667    case " $ac_configure_args " in
2668      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2669      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2670    esac
2671  fi
2672done
2673if $ac_cache_corrupted; then
2674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2677printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2678  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2679	    and start over" "$LINENO" 5
2680fi
2681## -------------------- ##
2682## Main body of script. ##
2683## -------------------- ##
2684
2685ac_ext=c
2686ac_cpp='$CPP $CPPFLAGS'
2687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691
2692
2693ac_config_headers="$ac_config_headers config.h"
2694
2695
2696# Initialize Automake
2697am__api_version='1.16'
2698
2699
2700
2701  # Find a good install program.  We prefer a C program (faster),
2702# so one script is as good as another.  But avoid the broken or
2703# incompatible versions:
2704# SysV /etc/install, /usr/sbin/install
2705# SunOS /usr/etc/install
2706# IRIX /sbin/install
2707# AIX /bin/install
2708# AmigaOS /C/install, which installs bootblocks on floppy discs
2709# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2710# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2711# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2712# OS/2's system install, which has a completely different semantic
2713# ./install, which can be erroneously created by make from ./install.sh.
2714# Reject install programs that cannot install multiple files.
2715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2716printf %s "checking for a BSD-compatible install... " >&6; }
2717if test -z "$INSTALL"; then
2718if test ${ac_cv_path_install+y}
2719then :
2720  printf %s "(cached) " >&6
2721else $as_nop
2722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725  IFS=$as_save_IFS
2726  case $as_dir in #(((
2727    '') as_dir=./ ;;
2728    */) ;;
2729    *) as_dir=$as_dir/ ;;
2730  esac
2731    # Account for fact that we put trailing slashes in our PATH walk.
2732case $as_dir in #((
2733  ./ | /[cC]/* | \
2734  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2735  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2736  /usr/ucb/* ) ;;
2737  *)
2738    # OSF1 and SCO ODT 3.0 have their own names for install.
2739    # Don't use installbsd from OSF since it installs stuff as root
2740    # by default.
2741    for ac_prog in ginstall scoinst install; do
2742      for ac_exec_ext in '' $ac_executable_extensions; do
2743	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2744	  if test $ac_prog = install &&
2745	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2746	    # AIX install.  It has an incompatible calling convention.
2747	    :
2748	  elif test $ac_prog = install &&
2749	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2750	    # program-specific install script used by HP pwplus--don't use.
2751	    :
2752	  else
2753	    rm -rf conftest.one conftest.two conftest.dir
2754	    echo one > conftest.one
2755	    echo two > conftest.two
2756	    mkdir conftest.dir
2757	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2758	      test -s conftest.one && test -s conftest.two &&
2759	      test -s conftest.dir/conftest.one &&
2760	      test -s conftest.dir/conftest.two
2761	    then
2762	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2763	      break 3
2764	    fi
2765	  fi
2766	fi
2767      done
2768    done
2769    ;;
2770esac
2771
2772  done
2773IFS=$as_save_IFS
2774
2775rm -rf conftest.one conftest.two conftest.dir
2776
2777fi
2778  if test ${ac_cv_path_install+y}; then
2779    INSTALL=$ac_cv_path_install
2780  else
2781    # As a last resort, use the slow shell script.  Don't cache a
2782    # value for INSTALL within a source directory, because that will
2783    # break other packages using the cache if that directory is
2784    # removed, or if the value is a relative name.
2785    INSTALL=$ac_install_sh
2786  fi
2787fi
2788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2789printf "%s\n" "$INSTALL" >&6; }
2790
2791# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2792# It thinks the first close brace ends the variable substitution.
2793test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2794
2795test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2796
2797test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2798
2799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2800printf %s "checking whether build environment is sane... " >&6; }
2801# Reject unsafe characters in $srcdir or the absolute working directory
2802# name.  Accept space and tab only in the latter.
2803am_lf='
2804'
2805case `pwd` in
2806  *[\\\"\#\$\&\'\`$am_lf]*)
2807    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2808esac
2809case $srcdir in
2810  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2811    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2812esac
2813
2814# Do 'set' in a subshell so we don't clobber the current shell's
2815# arguments.  Must try -L first in case configure is actually a
2816# symlink; some systems play weird games with the mod time of symlinks
2817# (eg FreeBSD returns the mod time of the symlink's containing
2818# directory).
2819if (
2820   am_has_slept=no
2821   for am_try in 1 2; do
2822     echo "timestamp, slept: $am_has_slept" > conftest.file
2823     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2824     if test "$*" = "X"; then
2825	# -L didn't work.
2826	set X `ls -t "$srcdir/configure" conftest.file`
2827     fi
2828     if test "$*" != "X $srcdir/configure conftest.file" \
2829	&& test "$*" != "X conftest.file $srcdir/configure"; then
2830
2831	# If neither matched, then we have a broken ls.  This can happen
2832	# if, for instance, CONFIG_SHELL is bash and it inherits a
2833	# broken ls alias from the environment.  This has actually
2834	# happened.  Such a system could not be considered "sane".
2835	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2836  alias in your environment" "$LINENO" 5
2837     fi
2838     if test "$2" = conftest.file || test $am_try -eq 2; then
2839       break
2840     fi
2841     # Just in case.
2842     sleep 1
2843     am_has_slept=yes
2844   done
2845   test "$2" = conftest.file
2846   )
2847then
2848   # Ok.
2849   :
2850else
2851   as_fn_error $? "newly created file is older than distributed files!
2852Check your system clock" "$LINENO" 5
2853fi
2854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2855printf "%s\n" "yes" >&6; }
2856# If we didn't sleep, we still need to ensure time stamps of config.status and
2857# generated files are strictly newer.
2858am_sleep_pid=
2859if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2860  ( sleep 1 ) &
2861  am_sleep_pid=$!
2862fi
2863
2864rm -f conftest.file
2865
2866test "$program_prefix" != NONE &&
2867  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2868# Use a double $ so make ignores it.
2869test "$program_suffix" != NONE &&
2870  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2871# Double any \ or $.
2872# By default was `s,x,x', remove it if useless.
2873ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2874program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2875
2876
2877# Expand $ac_aux_dir to an absolute path.
2878am_aux_dir=`cd "$ac_aux_dir" && pwd`
2879
2880
2881  if test x"${MISSING+set}" != xset; then
2882  MISSING="\${SHELL} '$am_aux_dir/missing'"
2883fi
2884# Use eval to expand $SHELL
2885if eval "$MISSING --is-lightweight"; then
2886  am_missing_run="$MISSING "
2887else
2888  am_missing_run=
2889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2890printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2891fi
2892
2893if test x"${install_sh+set}" != xset; then
2894  case $am_aux_dir in
2895  *\ * | *\	*)
2896    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2897  *)
2898    install_sh="\${SHELL} $am_aux_dir/install-sh"
2899  esac
2900fi
2901
2902# Installed binaries are usually stripped using 'strip' when the user
2903# run "make install-strip".  However 'strip' might not be the right
2904# tool to use in cross-compilation environments, therefore Automake
2905# will honor the 'STRIP' environment variable to overrule this program.
2906if test "$cross_compiling" != no; then
2907  if test -n "$ac_tool_prefix"; then
2908  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2909set dummy ${ac_tool_prefix}strip; ac_word=$2
2910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911printf %s "checking for $ac_word... " >&6; }
2912if test ${ac_cv_prog_STRIP+y}
2913then :
2914  printf %s "(cached) " >&6
2915else $as_nop
2916  if test -n "$STRIP"; then
2917  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  case $as_dir in #(((
2924    '') as_dir=./ ;;
2925    */) ;;
2926    *) as_dir=$as_dir/ ;;
2927  esac
2928    for ac_exec_ext in '' $ac_executable_extensions; do
2929  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2930    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2931    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2932    break 2
2933  fi
2934done
2935  done
2936IFS=$as_save_IFS
2937
2938fi
2939fi
2940STRIP=$ac_cv_prog_STRIP
2941if test -n "$STRIP"; then
2942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2943printf "%s\n" "$STRIP" >&6; }
2944else
2945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946printf "%s\n" "no" >&6; }
2947fi
2948
2949
2950fi
2951if test -z "$ac_cv_prog_STRIP"; then
2952  ac_ct_STRIP=$STRIP
2953  # Extract the first word of "strip", so it can be a program name with args.
2954set dummy strip; ac_word=$2
2955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956printf %s "checking for $ac_word... " >&6; }
2957if test ${ac_cv_prog_ac_ct_STRIP+y}
2958then :
2959  printf %s "(cached) " >&6
2960else $as_nop
2961  if test -n "$ac_ct_STRIP"; then
2962  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2963else
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967  IFS=$as_save_IFS
2968  case $as_dir in #(((
2969    '') as_dir=./ ;;
2970    */) ;;
2971    *) as_dir=$as_dir/ ;;
2972  esac
2973    for ac_exec_ext in '' $ac_executable_extensions; do
2974  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2975    ac_cv_prog_ac_ct_STRIP="strip"
2976    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2977    break 2
2978  fi
2979done
2980  done
2981IFS=$as_save_IFS
2982
2983fi
2984fi
2985ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2986if test -n "$ac_ct_STRIP"; then
2987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2988printf "%s\n" "$ac_ct_STRIP" >&6; }
2989else
2990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991printf "%s\n" "no" >&6; }
2992fi
2993
2994  if test "x$ac_ct_STRIP" = x; then
2995    STRIP=":"
2996  else
2997    case $cross_compiling:$ac_tool_warned in
2998yes:)
2999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001ac_tool_warned=yes ;;
3002esac
3003    STRIP=$ac_ct_STRIP
3004  fi
3005else
3006  STRIP="$ac_cv_prog_STRIP"
3007fi
3008
3009fi
3010INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3011
3012
3013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3014printf %s "checking for a race-free mkdir -p... " >&6; }
3015if test -z "$MKDIR_P"; then
3016  if test ${ac_cv_path_mkdir+y}
3017then :
3018  printf %s "(cached) " >&6
3019else $as_nop
3020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3022do
3023  IFS=$as_save_IFS
3024  case $as_dir in #(((
3025    '') as_dir=./ ;;
3026    */) ;;
3027    *) as_dir=$as_dir/ ;;
3028  esac
3029    for ac_prog in mkdir gmkdir; do
3030	 for ac_exec_ext in '' $ac_executable_extensions; do
3031	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3032	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3033	     'mkdir ('*'coreutils) '* | \
3034	     'BusyBox '* | \
3035	     'mkdir (fileutils) '4.1*)
3036	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3037	       break 3;;
3038	   esac
3039	 done
3040       done
3041  done
3042IFS=$as_save_IFS
3043
3044fi
3045
3046  test -d ./--version && rmdir ./--version
3047  if test ${ac_cv_path_mkdir+y}; then
3048    MKDIR_P="$ac_cv_path_mkdir -p"
3049  else
3050    # As a last resort, use the slow shell script.  Don't cache a
3051    # value for MKDIR_P within a source directory, because that will
3052    # break other packages using the cache if that directory is
3053    # removed, or if the value is a relative name.
3054    MKDIR_P="$ac_install_sh -d"
3055  fi
3056fi
3057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3058printf "%s\n" "$MKDIR_P" >&6; }
3059
3060for ac_prog in gawk mawk nawk awk
3061do
3062  # Extract the first word of "$ac_prog", so it can be a program name with args.
3063set dummy $ac_prog; ac_word=$2
3064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065printf %s "checking for $ac_word... " >&6; }
3066if test ${ac_cv_prog_AWK+y}
3067then :
3068  printf %s "(cached) " >&6
3069else $as_nop
3070  if test -n "$AWK"; then
3071  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076  IFS=$as_save_IFS
3077  case $as_dir in #(((
3078    '') as_dir=./ ;;
3079    */) ;;
3080    *) as_dir=$as_dir/ ;;
3081  esac
3082    for ac_exec_ext in '' $ac_executable_extensions; do
3083  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3084    ac_cv_prog_AWK="$ac_prog"
3085    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3086    break 2
3087  fi
3088done
3089  done
3090IFS=$as_save_IFS
3091
3092fi
3093fi
3094AWK=$ac_cv_prog_AWK
3095if test -n "$AWK"; then
3096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3097printf "%s\n" "$AWK" >&6; }
3098else
3099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100printf "%s\n" "no" >&6; }
3101fi
3102
3103
3104  test -n "$AWK" && break
3105done
3106
3107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3108printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3109set x ${MAKE-make}
3110ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3111if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3112then :
3113  printf %s "(cached) " >&6
3114else $as_nop
3115  cat >conftest.make <<\_ACEOF
3116SHELL = /bin/sh
3117all:
3118	@echo '@@@%%%=$(MAKE)=@@@%%%'
3119_ACEOF
3120# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3121case `${MAKE-make} -f conftest.make 2>/dev/null` in
3122  *@@@%%%=?*=@@@%%%*)
3123    eval ac_cv_prog_make_${ac_make}_set=yes;;
3124  *)
3125    eval ac_cv_prog_make_${ac_make}_set=no;;
3126esac
3127rm -f conftest.make
3128fi
3129if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131printf "%s\n" "yes" >&6; }
3132  SET_MAKE=
3133else
3134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135printf "%s\n" "no" >&6; }
3136  SET_MAKE="MAKE=${MAKE-make}"
3137fi
3138
3139rm -rf .tst 2>/dev/null
3140mkdir .tst 2>/dev/null
3141if test -d .tst; then
3142  am__leading_dot=.
3143else
3144  am__leading_dot=_
3145fi
3146rmdir .tst 2>/dev/null
3147
3148# Check whether --enable-silent-rules was given.
3149if test ${enable_silent_rules+y}
3150then :
3151  enableval=$enable_silent_rules;
3152fi
3153
3154case $enable_silent_rules in # (((
3155  yes) AM_DEFAULT_VERBOSITY=0;;
3156   no) AM_DEFAULT_VERBOSITY=1;;
3157    *) AM_DEFAULT_VERBOSITY=1;;
3158esac
3159am_make=${MAKE-make}
3160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3161printf %s "checking whether $am_make supports nested variables... " >&6; }
3162if test ${am_cv_make_support_nested_variables+y}
3163then :
3164  printf %s "(cached) " >&6
3165else $as_nop
3166  if printf "%s\n" 'TRUE=$(BAR$(V))
3167BAR0=false
3168BAR1=true
3169V=1
3170am__doit:
3171	@$(TRUE)
3172.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3173  am_cv_make_support_nested_variables=yes
3174else
3175  am_cv_make_support_nested_variables=no
3176fi
3177fi
3178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3179printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3180if test $am_cv_make_support_nested_variables = yes; then
3181    AM_V='$(V)'
3182  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3183else
3184  AM_V=$AM_DEFAULT_VERBOSITY
3185  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3186fi
3187AM_BACKSLASH='\'
3188
3189if test "`cd $srcdir && pwd`" != "`pwd`"; then
3190  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3191  # is not polluted with repeated "-I."
3192  am__isrc=' -I$(srcdir)'
3193  # test to see if srcdir already configured
3194  if test -f $srcdir/config.status; then
3195    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3196  fi
3197fi
3198
3199# test whether we have cygpath
3200if test -z "$CYGPATH_W"; then
3201  if (cygpath --version) >/dev/null 2>/dev/null; then
3202    CYGPATH_W='cygpath -w'
3203  else
3204    CYGPATH_W=echo
3205  fi
3206fi
3207
3208
3209# Define the identity of the package.
3210 PACKAGE='xhost'
3211 VERSION='1.0.9'
3212
3213
3214printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3215
3216
3217printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3218
3219# Some tools Automake needs.
3220
3221ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3222
3223
3224AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3225
3226
3227AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3228
3229
3230AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3231
3232
3233MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3234
3235# For better backward compatibility.  To be removed once Automake 1.9.x
3236# dies out for good.  For more background, see:
3237# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3238# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3239mkdir_p='$(MKDIR_P)'
3240
3241# We need awk for the "check" target (and possibly the TAP driver).  The
3242# system "awk" is bad on some platforms.
3243# Always define AMTAR for backward compatibility.  Yes, it's still used
3244# in the wild :-(  We should find a proper way to deprecate it ...
3245AMTAR='$${TAR-tar}'
3246
3247
3248# We'll loop over all known methods to create a tar archive until one works.
3249_am_tools='gnutar  pax cpio none'
3250
3251am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3252
3253
3254
3255
3256
3257# Variables for tags utilities; see am/tags.am
3258if test -z "$CTAGS"; then
3259  CTAGS=ctags
3260fi
3261
3262if test -z "$ETAGS"; then
3263  ETAGS=etags
3264fi
3265
3266if test -z "$CSCOPE"; then
3267  CSCOPE=cscope
3268fi
3269
3270
3271
3272# POSIX will say in a future version that running "rm -f" with no argument
3273# is OK; and we want to be able to make that assumption in our Makefile
3274# recipes.  So use an aggressive probe to check that the usage we want is
3275# actually supported "in the wild" to an acceptable degree.
3276# See automake bug#10828.
3277# To make any issue more visible, cause the running configure to be aborted
3278# by default if the 'rm' program in use doesn't match our expectations; the
3279# user can still override this though.
3280if rm -f && rm -fr && rm -rf; then : OK; else
3281  cat >&2 <<'END'
3282Oops!
3283
3284Your 'rm' program seems unable to run without file operands specified
3285on the command line, even when the '-f' option is present.  This is contrary
3286to the behaviour of most rm programs out there, and not conforming with
3287the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3288
3289Please tell bug-automake@gnu.org about your system, including the value
3290of your $PATH and any error possibly output before this message.  This
3291can help us improve future automake versions.
3292
3293END
3294  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3295    echo 'Configuration will proceed anyway, since you have set the' >&2
3296    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3297    echo >&2
3298  else
3299    cat >&2 <<'END'
3300Aborting the configuration process, to ensure you take notice of the issue.
3301
3302You can download and install GNU coreutils to get an 'rm' implementation
3303that behaves properly: <https://www.gnu.org/software/coreutils/>.
3304
3305If you want to complete the configuration process using your problematic
3306'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3307to "yes", and re-run configure.
3308
3309END
3310    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3311  fi
3312fi
3313
3314
3315# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3316# Must be called before any macros that run the compiler (like
3317# XORG_DEFAULT_OPTIONS) to avoid autoconf errors.
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327DEPDIR="${am__leading_dot}deps"
3328
3329ac_config_commands="$ac_config_commands depfiles"
3330
3331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3332printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3333cat > confinc.mk << 'END'
3334am__doit:
3335	@echo this is the am__doit target >confinc.out
3336.PHONY: am__doit
3337END
3338am__include="#"
3339am__quote=
3340# BSD make does it like this.
3341echo '.include "confinc.mk" # ignored' > confmf.BSD
3342# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3343echo 'include confinc.mk # ignored' > confmf.GNU
3344_am_result=no
3345for s in GNU BSD; do
3346  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3347   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3348   ac_status=$?
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); }
3351  case $?:`cat confinc.out 2>/dev/null` in #(
3352  '0:this is the am__doit target') :
3353    case $s in #(
3354  BSD) :
3355    am__include='.include' am__quote='"' ;; #(
3356  *) :
3357    am__include='include' am__quote='' ;;
3358esac ;; #(
3359  *) :
3360     ;;
3361esac
3362  if test "$am__include" != "#"; then
3363    _am_result="yes ($s style)"
3364    break
3365  fi
3366done
3367rm -f confinc.* confmf.*
3368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3369printf "%s\n" "${_am_result}" >&6; }
3370
3371# Check whether --enable-dependency-tracking was given.
3372if test ${enable_dependency_tracking+y}
3373then :
3374  enableval=$enable_dependency_tracking;
3375fi
3376
3377if test "x$enable_dependency_tracking" != xno; then
3378  am_depcomp="$ac_aux_dir/depcomp"
3379  AMDEPBACKSLASH='\'
3380  am__nodep='_no'
3381fi
3382 if test "x$enable_dependency_tracking" != xno; then
3383  AMDEP_TRUE=
3384  AMDEP_FALSE='#'
3385else
3386  AMDEP_TRUE='#'
3387  AMDEP_FALSE=
3388fi
3389
3390
3391ac_ext=c
3392ac_cpp='$CPP $CPPFLAGS'
3393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396if test -n "$ac_tool_prefix"; then
3397  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3398set dummy ${ac_tool_prefix}gcc; ac_word=$2
3399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400printf %s "checking for $ac_word... " >&6; }
3401if test ${ac_cv_prog_CC+y}
3402then :
3403  printf %s "(cached) " >&6
3404else $as_nop
3405  if test -n "$CC"; then
3406  ac_cv_prog_CC="$CC" # Let the user override the test.
3407else
3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409for as_dir in $PATH
3410do
3411  IFS=$as_save_IFS
3412  case $as_dir in #(((
3413    '') as_dir=./ ;;
3414    */) ;;
3415    *) as_dir=$as_dir/ ;;
3416  esac
3417    for ac_exec_ext in '' $ac_executable_extensions; do
3418  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3419    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3420    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3421    break 2
3422  fi
3423done
3424  done
3425IFS=$as_save_IFS
3426
3427fi
3428fi
3429CC=$ac_cv_prog_CC
3430if test -n "$CC"; then
3431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432printf "%s\n" "$CC" >&6; }
3433else
3434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435printf "%s\n" "no" >&6; }
3436fi
3437
3438
3439fi
3440if test -z "$ac_cv_prog_CC"; then
3441  ac_ct_CC=$CC
3442  # Extract the first word of "gcc", so it can be a program name with args.
3443set dummy gcc; ac_word=$2
3444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445printf %s "checking for $ac_word... " >&6; }
3446if test ${ac_cv_prog_ac_ct_CC+y}
3447then :
3448  printf %s "(cached) " >&6
3449else $as_nop
3450  if test -n "$ac_ct_CC"; then
3451  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3452else
3453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454for as_dir in $PATH
3455do
3456  IFS=$as_save_IFS
3457  case $as_dir in #(((
3458    '') as_dir=./ ;;
3459    */) ;;
3460    *) as_dir=$as_dir/ ;;
3461  esac
3462    for ac_exec_ext in '' $ac_executable_extensions; do
3463  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3464    ac_cv_prog_ac_ct_CC="gcc"
3465    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3466    break 2
3467  fi
3468done
3469  done
3470IFS=$as_save_IFS
3471
3472fi
3473fi
3474ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475if test -n "$ac_ct_CC"; then
3476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3477printf "%s\n" "$ac_ct_CC" >&6; }
3478else
3479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480printf "%s\n" "no" >&6; }
3481fi
3482
3483  if test "x$ac_ct_CC" = x; then
3484    CC=""
3485  else
3486    case $cross_compiling:$ac_tool_warned in
3487yes:)
3488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3489printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3490ac_tool_warned=yes ;;
3491esac
3492    CC=$ac_ct_CC
3493  fi
3494else
3495  CC="$ac_cv_prog_CC"
3496fi
3497
3498if test -z "$CC"; then
3499          if test -n "$ac_tool_prefix"; then
3500    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3501set dummy ${ac_tool_prefix}cc; ac_word=$2
3502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503printf %s "checking for $ac_word... " >&6; }
3504if test ${ac_cv_prog_CC+y}
3505then :
3506  printf %s "(cached) " >&6
3507else $as_nop
3508  if test -n "$CC"; then
3509  ac_cv_prog_CC="$CC" # Let the user override the test.
3510else
3511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512for as_dir in $PATH
3513do
3514  IFS=$as_save_IFS
3515  case $as_dir in #(((
3516    '') as_dir=./ ;;
3517    */) ;;
3518    *) as_dir=$as_dir/ ;;
3519  esac
3520    for ac_exec_ext in '' $ac_executable_extensions; do
3521  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3522    ac_cv_prog_CC="${ac_tool_prefix}cc"
3523    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3524    break 2
3525  fi
3526done
3527  done
3528IFS=$as_save_IFS
3529
3530fi
3531fi
3532CC=$ac_cv_prog_CC
3533if test -n "$CC"; then
3534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3535printf "%s\n" "$CC" >&6; }
3536else
3537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538printf "%s\n" "no" >&6; }
3539fi
3540
3541
3542  fi
3543fi
3544if test -z "$CC"; then
3545  # Extract the first word of "cc", so it can be a program name with args.
3546set dummy cc; ac_word=$2
3547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548printf %s "checking for $ac_word... " >&6; }
3549if test ${ac_cv_prog_CC+y}
3550then :
3551  printf %s "(cached) " >&6
3552else $as_nop
3553  if test -n "$CC"; then
3554  ac_cv_prog_CC="$CC" # Let the user override the test.
3555else
3556  ac_prog_rejected=no
3557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558for as_dir in $PATH
3559do
3560  IFS=$as_save_IFS
3561  case $as_dir in #(((
3562    '') as_dir=./ ;;
3563    */) ;;
3564    *) as_dir=$as_dir/ ;;
3565  esac
3566    for ac_exec_ext in '' $ac_executable_extensions; do
3567  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3568    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3569       ac_prog_rejected=yes
3570       continue
3571     fi
3572    ac_cv_prog_CC="cc"
3573    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3574    break 2
3575  fi
3576done
3577  done
3578IFS=$as_save_IFS
3579
3580if test $ac_prog_rejected = yes; then
3581  # We found a bogon in the path, so make sure we never use it.
3582  set dummy $ac_cv_prog_CC
3583  shift
3584  if test $# != 0; then
3585    # We chose a different compiler from the bogus one.
3586    # However, it has the same basename, so the bogon will be chosen
3587    # first if we set CC to just the basename; use the full file name.
3588    shift
3589    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3590  fi
3591fi
3592fi
3593fi
3594CC=$ac_cv_prog_CC
3595if test -n "$CC"; then
3596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597printf "%s\n" "$CC" >&6; }
3598else
3599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600printf "%s\n" "no" >&6; }
3601fi
3602
3603
3604fi
3605if test -z "$CC"; then
3606  if test -n "$ac_tool_prefix"; then
3607  for ac_prog in cl.exe
3608  do
3609    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3610set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612printf %s "checking for $ac_word... " >&6; }
3613if test ${ac_cv_prog_CC+y}
3614then :
3615  printf %s "(cached) " >&6
3616else $as_nop
3617  if test -n "$CC"; then
3618  ac_cv_prog_CC="$CC" # Let the user override the test.
3619else
3620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621for as_dir in $PATH
3622do
3623  IFS=$as_save_IFS
3624  case $as_dir in #(((
3625    '') as_dir=./ ;;
3626    */) ;;
3627    *) as_dir=$as_dir/ ;;
3628  esac
3629    for ac_exec_ext in '' $ac_executable_extensions; do
3630  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3631    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3632    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3633    break 2
3634  fi
3635done
3636  done
3637IFS=$as_save_IFS
3638
3639fi
3640fi
3641CC=$ac_cv_prog_CC
3642if test -n "$CC"; then
3643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3644printf "%s\n" "$CC" >&6; }
3645else
3646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647printf "%s\n" "no" >&6; }
3648fi
3649
3650
3651    test -n "$CC" && break
3652  done
3653fi
3654if test -z "$CC"; then
3655  ac_ct_CC=$CC
3656  for ac_prog in cl.exe
3657do
3658  # Extract the first word of "$ac_prog", so it can be a program name with args.
3659set dummy $ac_prog; ac_word=$2
3660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661printf %s "checking for $ac_word... " >&6; }
3662if test ${ac_cv_prog_ac_ct_CC+y}
3663then :
3664  printf %s "(cached) " >&6
3665else $as_nop
3666  if test -n "$ac_ct_CC"; then
3667  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3668else
3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670for as_dir in $PATH
3671do
3672  IFS=$as_save_IFS
3673  case $as_dir in #(((
3674    '') as_dir=./ ;;
3675    */) ;;
3676    *) as_dir=$as_dir/ ;;
3677  esac
3678    for ac_exec_ext in '' $ac_executable_extensions; do
3679  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3680    ac_cv_prog_ac_ct_CC="$ac_prog"
3681    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3682    break 2
3683  fi
3684done
3685  done
3686IFS=$as_save_IFS
3687
3688fi
3689fi
3690ac_ct_CC=$ac_cv_prog_ac_ct_CC
3691if test -n "$ac_ct_CC"; then
3692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3693printf "%s\n" "$ac_ct_CC" >&6; }
3694else
3695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696printf "%s\n" "no" >&6; }
3697fi
3698
3699
3700  test -n "$ac_ct_CC" && break
3701done
3702
3703  if test "x$ac_ct_CC" = x; then
3704    CC=""
3705  else
3706    case $cross_compiling:$ac_tool_warned in
3707yes:)
3708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710ac_tool_warned=yes ;;
3711esac
3712    CC=$ac_ct_CC
3713  fi
3714fi
3715
3716fi
3717if test -z "$CC"; then
3718  if test -n "$ac_tool_prefix"; then
3719  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3720set dummy ${ac_tool_prefix}clang; ac_word=$2
3721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722printf %s "checking for $ac_word... " >&6; }
3723if test ${ac_cv_prog_CC+y}
3724then :
3725  printf %s "(cached) " >&6
3726else $as_nop
3727  if test -n "$CC"; then
3728  ac_cv_prog_CC="$CC" # Let the user override the test.
3729else
3730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731for as_dir in $PATH
3732do
3733  IFS=$as_save_IFS
3734  case $as_dir in #(((
3735    '') as_dir=./ ;;
3736    */) ;;
3737    *) as_dir=$as_dir/ ;;
3738  esac
3739    for ac_exec_ext in '' $ac_executable_extensions; do
3740  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3741    ac_cv_prog_CC="${ac_tool_prefix}clang"
3742    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3743    break 2
3744  fi
3745done
3746  done
3747IFS=$as_save_IFS
3748
3749fi
3750fi
3751CC=$ac_cv_prog_CC
3752if test -n "$CC"; then
3753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754printf "%s\n" "$CC" >&6; }
3755else
3756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757printf "%s\n" "no" >&6; }
3758fi
3759
3760
3761fi
3762if test -z "$ac_cv_prog_CC"; then
3763  ac_ct_CC=$CC
3764  # Extract the first word of "clang", so it can be a program name with args.
3765set dummy clang; ac_word=$2
3766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767printf %s "checking for $ac_word... " >&6; }
3768if test ${ac_cv_prog_ac_ct_CC+y}
3769then :
3770  printf %s "(cached) " >&6
3771else $as_nop
3772  if test -n "$ac_ct_CC"; then
3773  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3774else
3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776for as_dir in $PATH
3777do
3778  IFS=$as_save_IFS
3779  case $as_dir in #(((
3780    '') as_dir=./ ;;
3781    */) ;;
3782    *) as_dir=$as_dir/ ;;
3783  esac
3784    for ac_exec_ext in '' $ac_executable_extensions; do
3785  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3786    ac_cv_prog_ac_ct_CC="clang"
3787    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3788    break 2
3789  fi
3790done
3791  done
3792IFS=$as_save_IFS
3793
3794fi
3795fi
3796ac_ct_CC=$ac_cv_prog_ac_ct_CC
3797if test -n "$ac_ct_CC"; then
3798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3799printf "%s\n" "$ac_ct_CC" >&6; }
3800else
3801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802printf "%s\n" "no" >&6; }
3803fi
3804
3805  if test "x$ac_ct_CC" = x; then
3806    CC=""
3807  else
3808    case $cross_compiling:$ac_tool_warned in
3809yes:)
3810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3811printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3812ac_tool_warned=yes ;;
3813esac
3814    CC=$ac_ct_CC
3815  fi
3816else
3817  CC="$ac_cv_prog_CC"
3818fi
3819
3820fi
3821
3822
3823test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3825as_fn_error $? "no acceptable C compiler found in \$PATH
3826See \`config.log' for more details" "$LINENO" 5; }
3827
3828# Provide some information about the compiler.
3829printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3830set X $ac_compile
3831ac_compiler=$2
3832for ac_option in --version -v -V -qversion -version; do
3833  { { ac_try="$ac_compiler $ac_option >&5"
3834case "(($ac_try" in
3835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836  *) ac_try_echo=$ac_try;;
3837esac
3838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839printf "%s\n" "$ac_try_echo"; } >&5
3840  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3841  ac_status=$?
3842  if test -s conftest.err; then
3843    sed '10a\
3844... rest of stderr output deleted ...
3845         10q' conftest.err >conftest.er1
3846    cat conftest.er1 >&5
3847  fi
3848  rm -f conftest.er1 conftest.err
3849  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850  test $ac_status = 0; }
3851done
3852
3853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854/* end confdefs.h.  */
3855
3856int
3857main (void)
3858{
3859
3860  ;
3861  return 0;
3862}
3863_ACEOF
3864ac_clean_files_save=$ac_clean_files
3865ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3866# Try to create an executable without -o first, disregard a.out.
3867# It will help us diagnose broken compilers, and finding out an intuition
3868# of exeext.
3869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3870printf %s "checking whether the C compiler works... " >&6; }
3871ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3872
3873# The possible output files:
3874ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3875
3876ac_rmfiles=
3877for ac_file in $ac_files
3878do
3879  case $ac_file in
3880    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3881    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3882  esac
3883done
3884rm -f $ac_rmfiles
3885
3886if { { ac_try="$ac_link_default"
3887case "(($ac_try" in
3888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889  *) ac_try_echo=$ac_try;;
3890esac
3891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892printf "%s\n" "$ac_try_echo"; } >&5
3893  (eval "$ac_link_default") 2>&5
3894  ac_status=$?
3895  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896  test $ac_status = 0; }
3897then :
3898  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3899# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3900# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3901# so that the user can short-circuit this test for compilers unknown to
3902# Autoconf.
3903for ac_file in $ac_files ''
3904do
3905  test -f "$ac_file" || continue
3906  case $ac_file in
3907    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3908	;;
3909    [ab].out )
3910	# We found the default executable, but exeext='' is most
3911	# certainly right.
3912	break;;
3913    *.* )
3914	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3915	then :; else
3916	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3917	fi
3918	# We set ac_cv_exeext here because the later test for it is not
3919	# safe: cross compilers may not add the suffix if given an `-o'
3920	# argument, so we may need to know it at that point already.
3921	# Even if this section looks crufty: it has the advantage of
3922	# actually working.
3923	break;;
3924    * )
3925	break;;
3926  esac
3927done
3928test "$ac_cv_exeext" = no && ac_cv_exeext=
3929
3930else $as_nop
3931  ac_file=''
3932fi
3933if test -z "$ac_file"
3934then :
3935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936printf "%s\n" "no" >&6; }
3937printf "%s\n" "$as_me: failed program was:" >&5
3938sed 's/^/| /' conftest.$ac_ext >&5
3939
3940{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3942as_fn_error 77 "C compiler cannot create executables
3943See \`config.log' for more details" "$LINENO" 5; }
3944else $as_nop
3945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3946printf "%s\n" "yes" >&6; }
3947fi
3948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3949printf %s "checking for C compiler default output file name... " >&6; }
3950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3951printf "%s\n" "$ac_file" >&6; }
3952ac_exeext=$ac_cv_exeext
3953
3954rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3955ac_clean_files=$ac_clean_files_save
3956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3957printf %s "checking for suffix of executables... " >&6; }
3958if { { ac_try="$ac_link"
3959case "(($ac_try" in
3960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961  *) ac_try_echo=$ac_try;;
3962esac
3963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964printf "%s\n" "$ac_try_echo"; } >&5
3965  (eval "$ac_link") 2>&5
3966  ac_status=$?
3967  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968  test $ac_status = 0; }
3969then :
3970  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3971# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3972# work properly (i.e., refer to `conftest.exe'), while it won't with
3973# `rm'.
3974for ac_file in conftest.exe conftest conftest.*; do
3975  test -f "$ac_file" || continue
3976  case $ac_file in
3977    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3978    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3979	  break;;
3980    * ) break;;
3981  esac
3982done
3983else $as_nop
3984  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3985printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3986as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3987See \`config.log' for more details" "$LINENO" 5; }
3988fi
3989rm -f conftest conftest$ac_cv_exeext
3990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3991printf "%s\n" "$ac_cv_exeext" >&6; }
3992
3993rm -f conftest.$ac_ext
3994EXEEXT=$ac_cv_exeext
3995ac_exeext=$EXEEXT
3996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997/* end confdefs.h.  */
3998#include <stdio.h>
3999int
4000main (void)
4001{
4002FILE *f = fopen ("conftest.out", "w");
4003 return ferror (f) || fclose (f) != 0;
4004
4005  ;
4006  return 0;
4007}
4008_ACEOF
4009ac_clean_files="$ac_clean_files conftest.out"
4010# Check that the compiler produces executables we can run.  If not, either
4011# the compiler is broken, or we cross compile.
4012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4013printf %s "checking whether we are cross compiling... " >&6; }
4014if test "$cross_compiling" != yes; then
4015  { { ac_try="$ac_link"
4016case "(($ac_try" in
4017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018  *) ac_try_echo=$ac_try;;
4019esac
4020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021printf "%s\n" "$ac_try_echo"; } >&5
4022  (eval "$ac_link") 2>&5
4023  ac_status=$?
4024  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025  test $ac_status = 0; }
4026  if { ac_try='./conftest$ac_cv_exeext'
4027  { { case "(($ac_try" in
4028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029  *) ac_try_echo=$ac_try;;
4030esac
4031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032printf "%s\n" "$ac_try_echo"; } >&5
4033  (eval "$ac_try") 2>&5
4034  ac_status=$?
4035  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036  test $ac_status = 0; }; }; then
4037    cross_compiling=no
4038  else
4039    if test "$cross_compiling" = maybe; then
4040	cross_compiling=yes
4041    else
4042	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4044as_fn_error 77 "cannot run C compiled programs.
4045If you meant to cross compile, use \`--host'.
4046See \`config.log' for more details" "$LINENO" 5; }
4047    fi
4048  fi
4049fi
4050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4051printf "%s\n" "$cross_compiling" >&6; }
4052
4053rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4054ac_clean_files=$ac_clean_files_save
4055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4056printf %s "checking for suffix of object files... " >&6; }
4057if test ${ac_cv_objext+y}
4058then :
4059  printf %s "(cached) " >&6
4060else $as_nop
4061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h.  */
4063
4064int
4065main (void)
4066{
4067
4068  ;
4069  return 0;
4070}
4071_ACEOF
4072rm -f conftest.o conftest.obj
4073if { { ac_try="$ac_compile"
4074case "(($ac_try" in
4075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076  *) ac_try_echo=$ac_try;;
4077esac
4078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079printf "%s\n" "$ac_try_echo"; } >&5
4080  (eval "$ac_compile") 2>&5
4081  ac_status=$?
4082  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083  test $ac_status = 0; }
4084then :
4085  for ac_file in conftest.o conftest.obj conftest.*; do
4086  test -f "$ac_file" || continue;
4087  case $ac_file in
4088    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4089    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4090       break;;
4091  esac
4092done
4093else $as_nop
4094  printf "%s\n" "$as_me: failed program was:" >&5
4095sed 's/^/| /' conftest.$ac_ext >&5
4096
4097{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4099as_fn_error $? "cannot compute suffix of object files: cannot compile
4100See \`config.log' for more details" "$LINENO" 5; }
4101fi
4102rm -f conftest.$ac_cv_objext conftest.$ac_ext
4103fi
4104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4105printf "%s\n" "$ac_cv_objext" >&6; }
4106OBJEXT=$ac_cv_objext
4107ac_objext=$OBJEXT
4108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4109printf %s "checking whether the compiler supports GNU C... " >&6; }
4110if test ${ac_cv_c_compiler_gnu+y}
4111then :
4112  printf %s "(cached) " >&6
4113else $as_nop
4114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h.  */
4116
4117int
4118main (void)
4119{
4120#ifndef __GNUC__
4121       choke me
4122#endif
4123
4124  ;
4125  return 0;
4126}
4127_ACEOF
4128if ac_fn_c_try_compile "$LINENO"
4129then :
4130  ac_compiler_gnu=yes
4131else $as_nop
4132  ac_compiler_gnu=no
4133fi
4134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4135ac_cv_c_compiler_gnu=$ac_compiler_gnu
4136
4137fi
4138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4139printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4140ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141
4142if test $ac_compiler_gnu = yes; then
4143  GCC=yes
4144else
4145  GCC=
4146fi
4147ac_test_CFLAGS=${CFLAGS+y}
4148ac_save_CFLAGS=$CFLAGS
4149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4150printf %s "checking whether $CC accepts -g... " >&6; }
4151if test ${ac_cv_prog_cc_g+y}
4152then :
4153  printf %s "(cached) " >&6
4154else $as_nop
4155  ac_save_c_werror_flag=$ac_c_werror_flag
4156   ac_c_werror_flag=yes
4157   ac_cv_prog_cc_g=no
4158   CFLAGS="-g"
4159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h.  */
4161
4162int
4163main (void)
4164{
4165
4166  ;
4167  return 0;
4168}
4169_ACEOF
4170if ac_fn_c_try_compile "$LINENO"
4171then :
4172  ac_cv_prog_cc_g=yes
4173else $as_nop
4174  CFLAGS=""
4175      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h.  */
4177
4178int
4179main (void)
4180{
4181
4182  ;
4183  return 0;
4184}
4185_ACEOF
4186if ac_fn_c_try_compile "$LINENO"
4187then :
4188
4189else $as_nop
4190  ac_c_werror_flag=$ac_save_c_werror_flag
4191	 CFLAGS="-g"
4192	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193/* end confdefs.h.  */
4194
4195int
4196main (void)
4197{
4198
4199  ;
4200  return 0;
4201}
4202_ACEOF
4203if ac_fn_c_try_compile "$LINENO"
4204then :
4205  ac_cv_prog_cc_g=yes
4206fi
4207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4208fi
4209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4210fi
4211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4212   ac_c_werror_flag=$ac_save_c_werror_flag
4213fi
4214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4215printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4216if test $ac_test_CFLAGS; then
4217  CFLAGS=$ac_save_CFLAGS
4218elif test $ac_cv_prog_cc_g = yes; then
4219  if test "$GCC" = yes; then
4220    CFLAGS="-g -O2"
4221  else
4222    CFLAGS="-g"
4223  fi
4224else
4225  if test "$GCC" = yes; then
4226    CFLAGS="-O2"
4227  else
4228    CFLAGS=
4229  fi
4230fi
4231ac_prog_cc_stdc=no
4232if test x$ac_prog_cc_stdc = xno
4233then :
4234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4235printf %s "checking for $CC option to enable C11 features... " >&6; }
4236if test ${ac_cv_prog_cc_c11+y}
4237then :
4238  printf %s "(cached) " >&6
4239else $as_nop
4240  ac_cv_prog_cc_c11=no
4241ac_save_CC=$CC
4242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243/* end confdefs.h.  */
4244$ac_c_conftest_c11_program
4245_ACEOF
4246for ac_arg in '' -std=gnu11
4247do
4248  CC="$ac_save_CC $ac_arg"
4249  if ac_fn_c_try_compile "$LINENO"
4250then :
4251  ac_cv_prog_cc_c11=$ac_arg
4252fi
4253rm -f core conftest.err conftest.$ac_objext conftest.beam
4254  test "x$ac_cv_prog_cc_c11" != "xno" && break
4255done
4256rm -f conftest.$ac_ext
4257CC=$ac_save_CC
4258fi
4259
4260if test "x$ac_cv_prog_cc_c11" = xno
4261then :
4262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4263printf "%s\n" "unsupported" >&6; }
4264else $as_nop
4265  if test "x$ac_cv_prog_cc_c11" = x
4266then :
4267  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4268printf "%s\n" "none needed" >&6; }
4269else $as_nop
4270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4271printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4272     CC="$CC $ac_cv_prog_cc_c11"
4273fi
4274  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4275  ac_prog_cc_stdc=c11
4276fi
4277fi
4278if test x$ac_prog_cc_stdc = xno
4279then :
4280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4281printf %s "checking for $CC option to enable C99 features... " >&6; }
4282if test ${ac_cv_prog_cc_c99+y}
4283then :
4284  printf %s "(cached) " >&6
4285else $as_nop
4286  ac_cv_prog_cc_c99=no
4287ac_save_CC=$CC
4288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289/* end confdefs.h.  */
4290$ac_c_conftest_c99_program
4291_ACEOF
4292for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4293do
4294  CC="$ac_save_CC $ac_arg"
4295  if ac_fn_c_try_compile "$LINENO"
4296then :
4297  ac_cv_prog_cc_c99=$ac_arg
4298fi
4299rm -f core conftest.err conftest.$ac_objext conftest.beam
4300  test "x$ac_cv_prog_cc_c99" != "xno" && break
4301done
4302rm -f conftest.$ac_ext
4303CC=$ac_save_CC
4304fi
4305
4306if test "x$ac_cv_prog_cc_c99" = xno
4307then :
4308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4309printf "%s\n" "unsupported" >&6; }
4310else $as_nop
4311  if test "x$ac_cv_prog_cc_c99" = x
4312then :
4313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4314printf "%s\n" "none needed" >&6; }
4315else $as_nop
4316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4317printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4318     CC="$CC $ac_cv_prog_cc_c99"
4319fi
4320  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4321  ac_prog_cc_stdc=c99
4322fi
4323fi
4324if test x$ac_prog_cc_stdc = xno
4325then :
4326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4327printf %s "checking for $CC option to enable C89 features... " >&6; }
4328if test ${ac_cv_prog_cc_c89+y}
4329then :
4330  printf %s "(cached) " >&6
4331else $as_nop
4332  ac_cv_prog_cc_c89=no
4333ac_save_CC=$CC
4334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335/* end confdefs.h.  */
4336$ac_c_conftest_c89_program
4337_ACEOF
4338for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4339do
4340  CC="$ac_save_CC $ac_arg"
4341  if ac_fn_c_try_compile "$LINENO"
4342then :
4343  ac_cv_prog_cc_c89=$ac_arg
4344fi
4345rm -f core conftest.err conftest.$ac_objext conftest.beam
4346  test "x$ac_cv_prog_cc_c89" != "xno" && break
4347done
4348rm -f conftest.$ac_ext
4349CC=$ac_save_CC
4350fi
4351
4352if test "x$ac_cv_prog_cc_c89" = xno
4353then :
4354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4355printf "%s\n" "unsupported" >&6; }
4356else $as_nop
4357  if test "x$ac_cv_prog_cc_c89" = x
4358then :
4359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4360printf "%s\n" "none needed" >&6; }
4361else $as_nop
4362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4363printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4364     CC="$CC $ac_cv_prog_cc_c89"
4365fi
4366  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4367  ac_prog_cc_stdc=c89
4368fi
4369fi
4370
4371ac_ext=c
4372ac_cpp='$CPP $CPPFLAGS'
4373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376
4377
4378  ac_ext=c
4379ac_cpp='$CPP $CPPFLAGS'
4380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4384printf %s "checking whether $CC understands -c and -o together... " >&6; }
4385if test ${am_cv_prog_cc_c_o+y}
4386then :
4387  printf %s "(cached) " >&6
4388else $as_nop
4389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390/* end confdefs.h.  */
4391
4392int
4393main (void)
4394{
4395
4396  ;
4397  return 0;
4398}
4399_ACEOF
4400  # Make sure it works both with $CC and with simple cc.
4401  # Following AC_PROG_CC_C_O, we do the test twice because some
4402  # compilers refuse to overwrite an existing .o file with -o,
4403  # though they will create one.
4404  am_cv_prog_cc_c_o=yes
4405  for am_i in 1 2; do
4406    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4407   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); } \
4411         && test -f conftest2.$ac_objext; then
4412      : OK
4413    else
4414      am_cv_prog_cc_c_o=no
4415      break
4416    fi
4417  done
4418  rm -f core conftest*
4419  unset am_i
4420fi
4421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4422printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4423if test "$am_cv_prog_cc_c_o" != yes; then
4424   # Losing compiler, so override with the script.
4425   # FIXME: It is wrong to rewrite CC.
4426   # But if we don't then we get into trouble of one sort or another.
4427   # A longer-term fix would be to have automake use am__CC in this case,
4428   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4429   CC="$am_aux_dir/compile $CC"
4430fi
4431ac_ext=c
4432ac_cpp='$CPP $CPPFLAGS'
4433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436
4437
4438depcc="$CC"   am_compiler_list=
4439
4440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4441printf %s "checking dependency style of $depcc... " >&6; }
4442if test ${am_cv_CC_dependencies_compiler_type+y}
4443then :
4444  printf %s "(cached) " >&6
4445else $as_nop
4446  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4447  # We make a subdir and do the tests there.  Otherwise we can end up
4448  # making bogus files that we don't know about and never remove.  For
4449  # instance it was reported that on HP-UX the gcc test will end up
4450  # making a dummy file named 'D' -- because '-MD' means "put the output
4451  # in D".
4452  rm -rf conftest.dir
4453  mkdir conftest.dir
4454  # Copy depcomp to subdir because otherwise we won't find it if we're
4455  # using a relative directory.
4456  cp "$am_depcomp" conftest.dir
4457  cd conftest.dir
4458  # We will build objects and dependencies in a subdirectory because
4459  # it helps to detect inapplicable dependency modes.  For instance
4460  # both Tru64's cc and ICC support -MD to output dependencies as a
4461  # side effect of compilation, but ICC will put the dependencies in
4462  # the current directory while Tru64 will put them in the object
4463  # directory.
4464  mkdir sub
4465
4466  am_cv_CC_dependencies_compiler_type=none
4467  if test "$am_compiler_list" = ""; then
4468     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4469  fi
4470  am__universal=false
4471  case " $depcc " in #(
4472     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4473     esac
4474
4475  for depmode in $am_compiler_list; do
4476    # Setup a source with many dependencies, because some compilers
4477    # like to wrap large dependency lists on column 80 (with \), and
4478    # we should not choose a depcomp mode which is confused by this.
4479    #
4480    # We need to recreate these files for each test, as the compiler may
4481    # overwrite some of them when testing with obscure command lines.
4482    # This happens at least with the AIX C compiler.
4483    : > sub/conftest.c
4484    for i in 1 2 3 4 5 6; do
4485      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4486      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4487      # Solaris 10 /bin/sh.
4488      echo '/* dummy */' > sub/conftst$i.h
4489    done
4490    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4491
4492    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4493    # mode.  It turns out that the SunPro C++ compiler does not properly
4494    # handle '-M -o', and we need to detect this.  Also, some Intel
4495    # versions had trouble with output in subdirs.
4496    am__obj=sub/conftest.${OBJEXT-o}
4497    am__minus_obj="-o $am__obj"
4498    case $depmode in
4499    gcc)
4500      # This depmode causes a compiler race in universal mode.
4501      test "$am__universal" = false || continue
4502      ;;
4503    nosideeffect)
4504      # After this tag, mechanisms are not by side-effect, so they'll
4505      # only be used when explicitly requested.
4506      if test "x$enable_dependency_tracking" = xyes; then
4507	continue
4508      else
4509	break
4510      fi
4511      ;;
4512    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4513      # This compiler won't grok '-c -o', but also, the minuso test has
4514      # not run yet.  These depmodes are late enough in the game, and
4515      # so weak that their functioning should not be impacted.
4516      am__obj=conftest.${OBJEXT-o}
4517      am__minus_obj=
4518      ;;
4519    none) break ;;
4520    esac
4521    if depmode=$depmode \
4522       source=sub/conftest.c object=$am__obj \
4523       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4524       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4525         >/dev/null 2>conftest.err &&
4526       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4527       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4528       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4529       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4530      # icc doesn't choke on unknown options, it will just issue warnings
4531      # or remarks (even with -Werror).  So we grep stderr for any message
4532      # that says an option was ignored or not supported.
4533      # When given -MP, icc 7.0 and 7.1 complain thusly:
4534      #   icc: Command line warning: ignoring option '-M'; no argument required
4535      # The diagnosis changed in icc 8.0:
4536      #   icc: Command line remark: option '-MP' not supported
4537      if (grep 'ignoring option' conftest.err ||
4538          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4539        am_cv_CC_dependencies_compiler_type=$depmode
4540        break
4541      fi
4542    fi
4543  done
4544
4545  cd ..
4546  rm -rf conftest.dir
4547else
4548  am_cv_CC_dependencies_compiler_type=none
4549fi
4550
4551fi
4552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4553printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4554CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4555
4556 if
4557  test "x$enable_dependency_tracking" != xno \
4558  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4559  am__fastdepCC_TRUE=
4560  am__fastdepCC_FALSE='#'
4561else
4562  am__fastdepCC_TRUE='#'
4563  am__fastdepCC_FALSE=
4564fi
4565
4566
4567
4568ac_header= ac_cache=
4569for ac_item in $ac_header_c_list
4570do
4571  if test $ac_cache; then
4572    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4573    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4574      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4575    fi
4576    ac_header= ac_cache=
4577  elif test $ac_header; then
4578    ac_cache=$ac_item
4579  else
4580    ac_header=$ac_item
4581  fi
4582done
4583
4584
4585
4586
4587
4588
4589
4590
4591if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4592then :
4593
4594printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4595
4596fi
4597
4598
4599
4600
4601
4602
4603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4604printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4605if test ${ac_cv_safe_to_define___extensions__+y}
4606then :
4607  printf %s "(cached) " >&6
4608else $as_nop
4609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h.  */
4611
4612#         define __EXTENSIONS__ 1
4613          $ac_includes_default
4614int
4615main (void)
4616{
4617
4618  ;
4619  return 0;
4620}
4621_ACEOF
4622if ac_fn_c_try_compile "$LINENO"
4623then :
4624  ac_cv_safe_to_define___extensions__=yes
4625else $as_nop
4626  ac_cv_safe_to_define___extensions__=no
4627fi
4628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4629fi
4630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4631printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4632
4633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4634printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4635if test ${ac_cv_should_define__xopen_source+y}
4636then :
4637  printf %s "(cached) " >&6
4638else $as_nop
4639  ac_cv_should_define__xopen_source=no
4640    if test $ac_cv_header_wchar_h = yes
4641then :
4642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643/* end confdefs.h.  */
4644
4645          #include <wchar.h>
4646          mbstate_t x;
4647int
4648main (void)
4649{
4650
4651  ;
4652  return 0;
4653}
4654_ACEOF
4655if ac_fn_c_try_compile "$LINENO"
4656then :
4657
4658else $as_nop
4659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h.  */
4661
4662            #define _XOPEN_SOURCE 500
4663            #include <wchar.h>
4664            mbstate_t x;
4665int
4666main (void)
4667{
4668
4669  ;
4670  return 0;
4671}
4672_ACEOF
4673if ac_fn_c_try_compile "$LINENO"
4674then :
4675  ac_cv_should_define__xopen_source=yes
4676fi
4677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4678fi
4679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4680fi
4681fi
4682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4683printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4684
4685  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4686
4687  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4688
4689  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4690
4691  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4692
4693  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4694
4695  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4696
4697  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4698
4699  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4700
4701  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4702
4703  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4704
4705  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4706
4707  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4708
4709  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4710
4711  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4712
4713  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4714
4715  if test $ac_cv_header_minix_config_h = yes
4716then :
4717  MINIX=yes
4718    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4719
4720    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4721
4722    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4723
4724else $as_nop
4725  MINIX=
4726fi
4727  if test $ac_cv_safe_to_define___extensions__ = yes
4728then :
4729  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4730
4731fi
4732  if test $ac_cv_should_define__xopen_source = yes
4733then :
4734  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4735
4736fi
4737
4738
4739# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4753printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4754if test ${ac_cv_c_undeclared_builtin_options+y}
4755then :
4756  printf %s "(cached) " >&6
4757else $as_nop
4758  ac_save_CFLAGS=$CFLAGS
4759   ac_cv_c_undeclared_builtin_options='cannot detect'
4760   for ac_arg in '' -fno-builtin; do
4761     CFLAGS="$ac_save_CFLAGS $ac_arg"
4762     # This test program should *not* compile successfully.
4763     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h.  */
4765
4766int
4767main (void)
4768{
4769(void) strchr;
4770  ;
4771  return 0;
4772}
4773_ACEOF
4774if ac_fn_c_try_compile "$LINENO"
4775then :
4776
4777else $as_nop
4778  # This test program should compile successfully.
4779        # No library function is consistently available on
4780        # freestanding implementations, so test against a dummy
4781        # declaration.  Include always-available headers on the
4782        # off chance that they somehow elicit warnings.
4783        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784/* end confdefs.h.  */
4785#include <float.h>
4786#include <limits.h>
4787#include <stdarg.h>
4788#include <stddef.h>
4789extern void ac_decl (int, char *);
4790
4791int
4792main (void)
4793{
4794(void) ac_decl (0, (char *) 0);
4795  (void) ac_decl;
4796
4797  ;
4798  return 0;
4799}
4800_ACEOF
4801if ac_fn_c_try_compile "$LINENO"
4802then :
4803  if test x"$ac_arg" = x
4804then :
4805  ac_cv_c_undeclared_builtin_options='none needed'
4806else $as_nop
4807  ac_cv_c_undeclared_builtin_options=$ac_arg
4808fi
4809          break
4810fi
4811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4814    done
4815    CFLAGS=$ac_save_CFLAGS
4816
4817fi
4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4819printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4820  case $ac_cv_c_undeclared_builtin_options in #(
4821  'cannot detect') :
4822    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4823printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4824as_fn_error $? "cannot make $CC report undeclared builtins
4825See \`config.log' for more details" "$LINENO" 5; } ;; #(
4826  'none needed') :
4827    ac_c_undeclared_builtin_options='' ;; #(
4828  *) :
4829    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4830esac
4831
4832
4833
4834
4835
4836ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4837if test "x$ac_cv_have_decl___clang__" = xyes
4838then :
4839  CLANGCC="yes"
4840else $as_nop
4841  CLANGCC="no"
4842fi
4843ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4844if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4845then :
4846  INTELCC="yes"
4847else $as_nop
4848  INTELCC="no"
4849fi
4850ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4851if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4852then :
4853  SUNCC="yes"
4854else $as_nop
4855  SUNCC="no"
4856fi
4857
4858
4859
4860
4861
4862
4863
4864
4865if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4866	if test -n "$ac_tool_prefix"; then
4867  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4868set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870printf %s "checking for $ac_word... " >&6; }
4871if test ${ac_cv_path_PKG_CONFIG+y}
4872then :
4873  printf %s "(cached) " >&6
4874else $as_nop
4875  case $PKG_CONFIG in
4876  [\\/]* | ?:[\\/]*)
4877  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4878  ;;
4879  *)
4880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883  IFS=$as_save_IFS
4884  case $as_dir in #(((
4885    '') as_dir=./ ;;
4886    */) ;;
4887    *) as_dir=$as_dir/ ;;
4888  esac
4889    for ac_exec_ext in '' $ac_executable_extensions; do
4890  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4891    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4892    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4893    break 2
4894  fi
4895done
4896  done
4897IFS=$as_save_IFS
4898
4899  ;;
4900esac
4901fi
4902PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4903if test -n "$PKG_CONFIG"; then
4904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4905printf "%s\n" "$PKG_CONFIG" >&6; }
4906else
4907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908printf "%s\n" "no" >&6; }
4909fi
4910
4911
4912fi
4913if test -z "$ac_cv_path_PKG_CONFIG"; then
4914  ac_pt_PKG_CONFIG=$PKG_CONFIG
4915  # Extract the first word of "pkg-config", so it can be a program name with args.
4916set dummy pkg-config; ac_word=$2
4917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918printf %s "checking for $ac_word... " >&6; }
4919if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4920then :
4921  printf %s "(cached) " >&6
4922else $as_nop
4923  case $ac_pt_PKG_CONFIG in
4924  [\\/]* | ?:[\\/]*)
4925  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4926  ;;
4927  *)
4928  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929for as_dir in $PATH
4930do
4931  IFS=$as_save_IFS
4932  case $as_dir in #(((
4933    '') as_dir=./ ;;
4934    */) ;;
4935    *) as_dir=$as_dir/ ;;
4936  esac
4937    for ac_exec_ext in '' $ac_executable_extensions; do
4938  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4939    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4940    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4941    break 2
4942  fi
4943done
4944  done
4945IFS=$as_save_IFS
4946
4947  ;;
4948esac
4949fi
4950ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4951if test -n "$ac_pt_PKG_CONFIG"; then
4952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4953printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4954else
4955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956printf "%s\n" "no" >&6; }
4957fi
4958
4959  if test "x$ac_pt_PKG_CONFIG" = x; then
4960    PKG_CONFIG=""
4961  else
4962    case $cross_compiling:$ac_tool_warned in
4963yes:)
4964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4965printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4966ac_tool_warned=yes ;;
4967esac
4968    PKG_CONFIG=$ac_pt_PKG_CONFIG
4969  fi
4970else
4971  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4972fi
4973
4974fi
4975if test -n "$PKG_CONFIG"; then
4976	_pkg_min_version=0.9.0
4977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4978printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4979	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4981printf "%s\n" "yes" >&6; }
4982	else
4983		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984printf "%s\n" "no" >&6; }
4985		PKG_CONFIG=""
4986	fi
4987fi
4988
4989
4990  # Make sure we can run config.sub.
4991$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4992  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4993
4994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4995printf %s "checking build system type... " >&6; }
4996if test ${ac_cv_build+y}
4997then :
4998  printf %s "(cached) " >&6
4999else $as_nop
5000  ac_build_alias=$build_alias
5001test "x$ac_build_alias" = x &&
5002  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5003test "x$ac_build_alias" = x &&
5004  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5005ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5006  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5007
5008fi
5009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5010printf "%s\n" "$ac_cv_build" >&6; }
5011case $ac_cv_build in
5012*-*-*) ;;
5013*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5014esac
5015build=$ac_cv_build
5016ac_save_IFS=$IFS; IFS='-'
5017set x $ac_cv_build
5018shift
5019build_cpu=$1
5020build_vendor=$2
5021shift; shift
5022# Remember, the first character of IFS is used to create $*,
5023# except with old shells:
5024build_os=$*
5025IFS=$ac_save_IFS
5026case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5027
5028
5029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5030printf %s "checking host system type... " >&6; }
5031if test ${ac_cv_host+y}
5032then :
5033  printf %s "(cached) " >&6
5034else $as_nop
5035  if test "x$host_alias" = x; then
5036  ac_cv_host=$ac_cv_build
5037else
5038  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5039    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5040fi
5041
5042fi
5043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5044printf "%s\n" "$ac_cv_host" >&6; }
5045case $ac_cv_host in
5046*-*-*) ;;
5047*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5048esac
5049host=$ac_cv_host
5050ac_save_IFS=$IFS; IFS='-'
5051set x $ac_cv_host
5052shift
5053host_cpu=$1
5054host_vendor=$2
5055shift; shift
5056# Remember, the first character of IFS is used to create $*,
5057# except with old shells:
5058host_os=$*
5059IFS=$ac_save_IFS
5060case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5061
5062
5063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5064printf %s "checking for a sed that does not truncate output... " >&6; }
5065if test ${ac_cv_path_SED+y}
5066then :
5067  printf %s "(cached) " >&6
5068else $as_nop
5069            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5070     for ac_i in 1 2 3 4 5 6 7; do
5071       ac_script="$ac_script$as_nl$ac_script"
5072     done
5073     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5074     { ac_script=; unset ac_script;}
5075     if test -z "$SED"; then
5076  ac_path_SED_found=false
5077  # Loop through the user's path and test for each of PROGNAME-LIST
5078  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081  IFS=$as_save_IFS
5082  case $as_dir in #(((
5083    '') as_dir=./ ;;
5084    */) ;;
5085    *) as_dir=$as_dir/ ;;
5086  esac
5087    for ac_prog in sed gsed
5088   do
5089    for ac_exec_ext in '' $ac_executable_extensions; do
5090      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5091      as_fn_executable_p "$ac_path_SED" || continue
5092# Check for GNU ac_path_SED and select it if it is found.
5093  # Check for GNU $ac_path_SED
5094case `"$ac_path_SED" --version 2>&1` in
5095*GNU*)
5096  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5097*)
5098  ac_count=0
5099  printf %s 0123456789 >"conftest.in"
5100  while :
5101  do
5102    cat "conftest.in" "conftest.in" >"conftest.tmp"
5103    mv "conftest.tmp" "conftest.in"
5104    cp "conftest.in" "conftest.nl"
5105    printf "%s\n" '' >> "conftest.nl"
5106    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5107    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5108    as_fn_arith $ac_count + 1 && ac_count=$as_val
5109    if test $ac_count -gt ${ac_path_SED_max-0}; then
5110      # Best one so far, save it but keep looking for a better one
5111      ac_cv_path_SED="$ac_path_SED"
5112      ac_path_SED_max=$ac_count
5113    fi
5114    # 10*(2^10) chars as input seems more than enough
5115    test $ac_count -gt 10 && break
5116  done
5117  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5118esac
5119
5120      $ac_path_SED_found && break 3
5121    done
5122  done
5123  done
5124IFS=$as_save_IFS
5125  if test -z "$ac_cv_path_SED"; then
5126    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5127  fi
5128else
5129  ac_cv_path_SED=$SED
5130fi
5131
5132fi
5133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5134printf "%s\n" "$ac_cv_path_SED" >&6; }
5135 SED="$ac_cv_path_SED"
5136  rm -f conftest.sed
5137
5138
5139
5140
5141
5142
5143# Check whether --enable-selective-werror was given.
5144if test ${enable_selective_werror+y}
5145then :
5146  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5147else $as_nop
5148  SELECTIVE_WERROR=yes
5149fi
5150
5151
5152
5153
5154
5155# -v is too short to test reliably with XORG_TESTSET_CFLAG
5156if test "x$SUNCC" = "xyes"; then
5157    BASE_CFLAGS="-v"
5158else
5159    BASE_CFLAGS=""
5160fi
5161
5162# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176xorg_testset_save_CFLAGS="$CFLAGS"
5177
5178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5182if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5183then :
5184  printf %s "(cached) " >&6
5185else $as_nop
5186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h.  */
5188int i;
5189_ACEOF
5190if ac_fn_c_try_compile "$LINENO"
5191then :
5192  xorg_cv_cc_flag_unknown_warning_option=yes
5193else $as_nop
5194  xorg_cv_cc_flag_unknown_warning_option=no
5195fi
5196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5197fi
5198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5199printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5200	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5201	CFLAGS="$xorg_testset_save_CFLAGS"
5202fi
5203
5204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5205	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5206		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5207	fi
5208	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5209	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5210printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5211if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5212then :
5213  printf %s "(cached) " >&6
5214else $as_nop
5215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216/* end confdefs.h.  */
5217int i;
5218_ACEOF
5219if ac_fn_c_try_compile "$LINENO"
5220then :
5221  xorg_cv_cc_flag_unused_command_line_argument=yes
5222else $as_nop
5223  xorg_cv_cc_flag_unused_command_line_argument=no
5224fi
5225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5226fi
5227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5228printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5230	CFLAGS="$xorg_testset_save_CFLAGS"
5231fi
5232
5233found="no"
5234
5235	if test $found = "no" ; then
5236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238		fi
5239
5240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5242		fi
5243
5244		CFLAGS="$CFLAGS -Wall"
5245
5246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5247printf %s "checking if $CC supports -Wall... " >&6; }
5248		cacheid=xorg_cv_cc_flag__Wall
5249		if eval test \${$cacheid+y}
5250then :
5251  printf %s "(cached) " >&6
5252else $as_nop
5253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254/* end confdefs.h.  */
5255int i;
5256int
5257main (void)
5258{
5259
5260  ;
5261  return 0;
5262}
5263_ACEOF
5264if ac_fn_c_try_link "$LINENO"
5265then :
5266  eval $cacheid=yes
5267else $as_nop
5268  eval $cacheid=no
5269fi
5270rm -f core conftest.err conftest.$ac_objext conftest.beam \
5271    conftest$ac_exeext conftest.$ac_ext
5272fi
5273
5274
5275		CFLAGS="$xorg_testset_save_CFLAGS"
5276
5277		eval supported=\$$cacheid
5278		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5279printf "%s\n" "$supported" >&6; }
5280		if test "$supported" = "yes" ; then
5281			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5282			found="yes"
5283		fi
5284	fi
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300xorg_testset_save_CFLAGS="$CFLAGS"
5301
5302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5306if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5307then :
5308  printf %s "(cached) " >&6
5309else $as_nop
5310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311/* end confdefs.h.  */
5312int i;
5313_ACEOF
5314if ac_fn_c_try_compile "$LINENO"
5315then :
5316  xorg_cv_cc_flag_unknown_warning_option=yes
5317else $as_nop
5318  xorg_cv_cc_flag_unknown_warning_option=no
5319fi
5320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5321fi
5322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5324	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5325	CFLAGS="$xorg_testset_save_CFLAGS"
5326fi
5327
5328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5329	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5331	fi
5332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5335if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5336then :
5337  printf %s "(cached) " >&6
5338else $as_nop
5339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h.  */
5341int i;
5342_ACEOF
5343if ac_fn_c_try_compile "$LINENO"
5344then :
5345  xorg_cv_cc_flag_unused_command_line_argument=yes
5346else $as_nop
5347  xorg_cv_cc_flag_unused_command_line_argument=no
5348fi
5349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5350fi
5351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5353	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5354	CFLAGS="$xorg_testset_save_CFLAGS"
5355fi
5356
5357found="no"
5358
5359	if test $found = "no" ; then
5360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5362		fi
5363
5364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5366		fi
5367
5368		CFLAGS="$CFLAGS -Wpointer-arith"
5369
5370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5371printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5372		cacheid=xorg_cv_cc_flag__Wpointer_arith
5373		if eval test \${$cacheid+y}
5374then :
5375  printf %s "(cached) " >&6
5376else $as_nop
5377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h.  */
5379int i;
5380int
5381main (void)
5382{
5383
5384  ;
5385  return 0;
5386}
5387_ACEOF
5388if ac_fn_c_try_link "$LINENO"
5389then :
5390  eval $cacheid=yes
5391else $as_nop
5392  eval $cacheid=no
5393fi
5394rm -f core conftest.err conftest.$ac_objext conftest.beam \
5395    conftest$ac_exeext conftest.$ac_ext
5396fi
5397
5398
5399		CFLAGS="$xorg_testset_save_CFLAGS"
5400
5401		eval supported=\$$cacheid
5402		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5403printf "%s\n" "$supported" >&6; }
5404		if test "$supported" = "yes" ; then
5405			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5406			found="yes"
5407		fi
5408	fi
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424xorg_testset_save_CFLAGS="$CFLAGS"
5425
5426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5427	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5430if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
5441else $as_nop
5442  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5449	CFLAGS="$xorg_testset_save_CFLAGS"
5450fi
5451
5452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455	fi
5456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5459if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5460then :
5461  printf %s "(cached) " >&6
5462else $as_nop
5463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464/* end confdefs.h.  */
5465int i;
5466_ACEOF
5467if ac_fn_c_try_compile "$LINENO"
5468then :
5469  xorg_cv_cc_flag_unused_command_line_argument=yes
5470else $as_nop
5471  xorg_cv_cc_flag_unused_command_line_argument=no
5472fi
5473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5474fi
5475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5478	CFLAGS="$xorg_testset_save_CFLAGS"
5479fi
5480
5481found="no"
5482
5483	if test $found = "no" ; then
5484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5486		fi
5487
5488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5490		fi
5491
5492		CFLAGS="$CFLAGS -Wmissing-declarations"
5493
5494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5495printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5496		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5497		if eval test \${$cacheid+y}
5498then :
5499  printf %s "(cached) " >&6
5500else $as_nop
5501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502/* end confdefs.h.  */
5503int i;
5504int
5505main (void)
5506{
5507
5508  ;
5509  return 0;
5510}
5511_ACEOF
5512if ac_fn_c_try_link "$LINENO"
5513then :
5514  eval $cacheid=yes
5515else $as_nop
5516  eval $cacheid=no
5517fi
5518rm -f core conftest.err conftest.$ac_objext conftest.beam \
5519    conftest$ac_exeext conftest.$ac_ext
5520fi
5521
5522
5523		CFLAGS="$xorg_testset_save_CFLAGS"
5524
5525		eval supported=\$$cacheid
5526		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5527printf "%s\n" "$supported" >&6; }
5528		if test "$supported" = "yes" ; then
5529			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5530			found="yes"
5531		fi
5532	fi
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548xorg_testset_save_CFLAGS="$CFLAGS"
5549
5550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5553printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5554if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
5565else $as_nop
5566  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5573	CFLAGS="$xorg_testset_save_CFLAGS"
5574fi
5575
5576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5579	fi
5580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5583if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5584then :
5585  printf %s "(cached) " >&6
5586else $as_nop
5587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h.  */
5589int i;
5590_ACEOF
5591if ac_fn_c_try_compile "$LINENO"
5592then :
5593  xorg_cv_cc_flag_unused_command_line_argument=yes
5594else $as_nop
5595  xorg_cv_cc_flag_unused_command_line_argument=no
5596fi
5597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5598fi
5599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5602	CFLAGS="$xorg_testset_save_CFLAGS"
5603fi
5604
5605found="no"
5606
5607	if test $found = "no" ; then
5608		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5610		fi
5611
5612		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5614		fi
5615
5616		CFLAGS="$CFLAGS -Wformat=2"
5617
5618		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5619printf %s "checking if $CC supports -Wformat=2... " >&6; }
5620		cacheid=xorg_cv_cc_flag__Wformat_2
5621		if eval test \${$cacheid+y}
5622then :
5623  printf %s "(cached) " >&6
5624else $as_nop
5625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h.  */
5627int i;
5628int
5629main (void)
5630{
5631
5632  ;
5633  return 0;
5634}
5635_ACEOF
5636if ac_fn_c_try_link "$LINENO"
5637then :
5638  eval $cacheid=yes
5639else $as_nop
5640  eval $cacheid=no
5641fi
5642rm -f core conftest.err conftest.$ac_objext conftest.beam \
5643    conftest$ac_exeext conftest.$ac_ext
5644fi
5645
5646
5647		CFLAGS="$xorg_testset_save_CFLAGS"
5648
5649		eval supported=\$$cacheid
5650		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5651printf "%s\n" "$supported" >&6; }
5652		if test "$supported" = "yes" ; then
5653			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5654			found="yes"
5655		fi
5656	fi
5657
5658	if test $found = "no" ; then
5659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661		fi
5662
5663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5665		fi
5666
5667		CFLAGS="$CFLAGS -Wformat"
5668
5669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5670printf %s "checking if $CC supports -Wformat... " >&6; }
5671		cacheid=xorg_cv_cc_flag__Wformat
5672		if eval test \${$cacheid+y}
5673then :
5674  printf %s "(cached) " >&6
5675else $as_nop
5676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h.  */
5678int i;
5679int
5680main (void)
5681{
5682
5683  ;
5684  return 0;
5685}
5686_ACEOF
5687if ac_fn_c_try_link "$LINENO"
5688then :
5689  eval $cacheid=yes
5690else $as_nop
5691  eval $cacheid=no
5692fi
5693rm -f core conftest.err conftest.$ac_objext conftest.beam \
5694    conftest$ac_exeext conftest.$ac_ext
5695fi
5696
5697
5698		CFLAGS="$xorg_testset_save_CFLAGS"
5699
5700		eval supported=\$$cacheid
5701		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5702printf "%s\n" "$supported" >&6; }
5703		if test "$supported" = "yes" ; then
5704			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5705			found="yes"
5706		fi
5707	fi
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725xorg_testset_save_CFLAGS="$CFLAGS"
5726
5727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5730printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5731if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5732then :
5733  printf %s "(cached) " >&6
5734else $as_nop
5735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h.  */
5737int i;
5738_ACEOF
5739if ac_fn_c_try_compile "$LINENO"
5740then :
5741  xorg_cv_cc_flag_unknown_warning_option=yes
5742else $as_nop
5743  xorg_cv_cc_flag_unknown_warning_option=no
5744fi
5745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5746fi
5747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5748printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5749	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5750	CFLAGS="$xorg_testset_save_CFLAGS"
5751fi
5752
5753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5754	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5755		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756	fi
5757	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5758	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5759printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5760if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5761then :
5762  printf %s "(cached) " >&6
5763else $as_nop
5764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765/* end confdefs.h.  */
5766int i;
5767_ACEOF
5768if ac_fn_c_try_compile "$LINENO"
5769then :
5770  xorg_cv_cc_flag_unused_command_line_argument=yes
5771else $as_nop
5772  xorg_cv_cc_flag_unused_command_line_argument=no
5773fi
5774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5775fi
5776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5777printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5778	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5779	CFLAGS="$xorg_testset_save_CFLAGS"
5780fi
5781
5782found="no"
5783
5784	if test $found = "no" ; then
5785		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787		fi
5788
5789		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5791		fi
5792
5793		CFLAGS="$CFLAGS -Wstrict-prototypes"
5794
5795		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5796printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5797		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5798		if eval test \${$cacheid+y}
5799then :
5800  printf %s "(cached) " >&6
5801else $as_nop
5802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h.  */
5804int i;
5805int
5806main (void)
5807{
5808
5809  ;
5810  return 0;
5811}
5812_ACEOF
5813if ac_fn_c_try_link "$LINENO"
5814then :
5815  eval $cacheid=yes
5816else $as_nop
5817  eval $cacheid=no
5818fi
5819rm -f core conftest.err conftest.$ac_objext conftest.beam \
5820    conftest$ac_exeext conftest.$ac_ext
5821fi
5822
5823
5824		CFLAGS="$xorg_testset_save_CFLAGS"
5825
5826		eval supported=\$$cacheid
5827		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5828printf "%s\n" "$supported" >&6; }
5829		if test "$supported" = "yes" ; then
5830			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5831			found="yes"
5832		fi
5833	fi
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849xorg_testset_save_CFLAGS="$CFLAGS"
5850
5851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5852	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5854printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5855if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5856then :
5857  printf %s "(cached) " >&6
5858else $as_nop
5859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860/* end confdefs.h.  */
5861int i;
5862_ACEOF
5863if ac_fn_c_try_compile "$LINENO"
5864then :
5865  xorg_cv_cc_flag_unknown_warning_option=yes
5866else $as_nop
5867  xorg_cv_cc_flag_unknown_warning_option=no
5868fi
5869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5870fi
5871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5872printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5873	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5874	CFLAGS="$xorg_testset_save_CFLAGS"
5875fi
5876
5877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5878	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5879		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5880	fi
5881	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5882	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5883printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5884if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5885then :
5886  printf %s "(cached) " >&6
5887else $as_nop
5888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h.  */
5890int i;
5891_ACEOF
5892if ac_fn_c_try_compile "$LINENO"
5893then :
5894  xorg_cv_cc_flag_unused_command_line_argument=yes
5895else $as_nop
5896  xorg_cv_cc_flag_unused_command_line_argument=no
5897fi
5898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5899fi
5900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5901printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5902	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5903	CFLAGS="$xorg_testset_save_CFLAGS"
5904fi
5905
5906found="no"
5907
5908	if test $found = "no" ; then
5909		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5910			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911		fi
5912
5913		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5914			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5915		fi
5916
5917		CFLAGS="$CFLAGS -Wmissing-prototypes"
5918
5919		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5920printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5921		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5922		if eval test \${$cacheid+y}
5923then :
5924  printf %s "(cached) " >&6
5925else $as_nop
5926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927/* end confdefs.h.  */
5928int i;
5929int
5930main (void)
5931{
5932
5933  ;
5934  return 0;
5935}
5936_ACEOF
5937if ac_fn_c_try_link "$LINENO"
5938then :
5939  eval $cacheid=yes
5940else $as_nop
5941  eval $cacheid=no
5942fi
5943rm -f core conftest.err conftest.$ac_objext conftest.beam \
5944    conftest$ac_exeext conftest.$ac_ext
5945fi
5946
5947
5948		CFLAGS="$xorg_testset_save_CFLAGS"
5949
5950		eval supported=\$$cacheid
5951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5952printf "%s\n" "$supported" >&6; }
5953		if test "$supported" = "yes" ; then
5954			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5955			found="yes"
5956		fi
5957	fi
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973xorg_testset_save_CFLAGS="$CFLAGS"
5974
5975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5978printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5979if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5980then :
5981  printf %s "(cached) " >&6
5982else $as_nop
5983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984/* end confdefs.h.  */
5985int i;
5986_ACEOF
5987if ac_fn_c_try_compile "$LINENO"
5988then :
5989  xorg_cv_cc_flag_unknown_warning_option=yes
5990else $as_nop
5991  xorg_cv_cc_flag_unknown_warning_option=no
5992fi
5993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5994fi
5995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5996printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5997	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5998	CFLAGS="$xorg_testset_save_CFLAGS"
5999fi
6000
6001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6002	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6004	fi
6005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6006	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6007printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6008if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6009then :
6010  printf %s "(cached) " >&6
6011else $as_nop
6012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h.  */
6014int i;
6015_ACEOF
6016if ac_fn_c_try_compile "$LINENO"
6017then :
6018  xorg_cv_cc_flag_unused_command_line_argument=yes
6019else $as_nop
6020  xorg_cv_cc_flag_unused_command_line_argument=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6023fi
6024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6025printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6027	CFLAGS="$xorg_testset_save_CFLAGS"
6028fi
6029
6030found="no"
6031
6032	if test $found = "no" ; then
6033		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6035		fi
6036
6037		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6039		fi
6040
6041		CFLAGS="$CFLAGS -Wnested-externs"
6042
6043		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6044printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6045		cacheid=xorg_cv_cc_flag__Wnested_externs
6046		if eval test \${$cacheid+y}
6047then :
6048  printf %s "(cached) " >&6
6049else $as_nop
6050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h.  */
6052int i;
6053int
6054main (void)
6055{
6056
6057  ;
6058  return 0;
6059}
6060_ACEOF
6061if ac_fn_c_try_link "$LINENO"
6062then :
6063  eval $cacheid=yes
6064else $as_nop
6065  eval $cacheid=no
6066fi
6067rm -f core conftest.err conftest.$ac_objext conftest.beam \
6068    conftest$ac_exeext conftest.$ac_ext
6069fi
6070
6071
6072		CFLAGS="$xorg_testset_save_CFLAGS"
6073
6074		eval supported=\$$cacheid
6075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6076printf "%s\n" "$supported" >&6; }
6077		if test "$supported" = "yes" ; then
6078			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6079			found="yes"
6080		fi
6081	fi
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097xorg_testset_save_CFLAGS="$CFLAGS"
6098
6099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6100	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6102printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6103if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6104then :
6105  printf %s "(cached) " >&6
6106else $as_nop
6107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109int i;
6110_ACEOF
6111if ac_fn_c_try_compile "$LINENO"
6112then :
6113  xorg_cv_cc_flag_unknown_warning_option=yes
6114else $as_nop
6115  xorg_cv_cc_flag_unknown_warning_option=no
6116fi
6117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6118fi
6119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6120printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6121	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6122	CFLAGS="$xorg_testset_save_CFLAGS"
6123fi
6124
6125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6126	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6127		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6128	fi
6129	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6130	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6131printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6132if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6133then :
6134  printf %s "(cached) " >&6
6135else $as_nop
6136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137/* end confdefs.h.  */
6138int i;
6139_ACEOF
6140if ac_fn_c_try_compile "$LINENO"
6141then :
6142  xorg_cv_cc_flag_unused_command_line_argument=yes
6143else $as_nop
6144  xorg_cv_cc_flag_unused_command_line_argument=no
6145fi
6146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6147fi
6148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6149printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6150	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6151	CFLAGS="$xorg_testset_save_CFLAGS"
6152fi
6153
6154found="no"
6155
6156	if test $found = "no" ; then
6157		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6158			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159		fi
6160
6161		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6162			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6163		fi
6164
6165		CFLAGS="$CFLAGS -Wbad-function-cast"
6166
6167		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6168printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6169		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6170		if eval test \${$cacheid+y}
6171then :
6172  printf %s "(cached) " >&6
6173else $as_nop
6174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h.  */
6176int i;
6177int
6178main (void)
6179{
6180
6181  ;
6182  return 0;
6183}
6184_ACEOF
6185if ac_fn_c_try_link "$LINENO"
6186then :
6187  eval $cacheid=yes
6188else $as_nop
6189  eval $cacheid=no
6190fi
6191rm -f core conftest.err conftest.$ac_objext conftest.beam \
6192    conftest$ac_exeext conftest.$ac_ext
6193fi
6194
6195
6196		CFLAGS="$xorg_testset_save_CFLAGS"
6197
6198		eval supported=\$$cacheid
6199		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6200printf "%s\n" "$supported" >&6; }
6201		if test "$supported" = "yes" ; then
6202			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6203			found="yes"
6204		fi
6205	fi
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221xorg_testset_save_CFLAGS="$CFLAGS"
6222
6223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6224	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6226printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6227if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6228then :
6229  printf %s "(cached) " >&6
6230else $as_nop
6231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232/* end confdefs.h.  */
6233int i;
6234_ACEOF
6235if ac_fn_c_try_compile "$LINENO"
6236then :
6237  xorg_cv_cc_flag_unknown_warning_option=yes
6238else $as_nop
6239  xorg_cv_cc_flag_unknown_warning_option=no
6240fi
6241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6242fi
6243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6244printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6245	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6246	CFLAGS="$xorg_testset_save_CFLAGS"
6247fi
6248
6249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6250	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6251		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6252	fi
6253	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6254	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6255printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6256if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6257then :
6258  printf %s "(cached) " >&6
6259else $as_nop
6260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261/* end confdefs.h.  */
6262int i;
6263_ACEOF
6264if ac_fn_c_try_compile "$LINENO"
6265then :
6266  xorg_cv_cc_flag_unused_command_line_argument=yes
6267else $as_nop
6268  xorg_cv_cc_flag_unused_command_line_argument=no
6269fi
6270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6271fi
6272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6273printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6274	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6275	CFLAGS="$xorg_testset_save_CFLAGS"
6276fi
6277
6278found="no"
6279
6280	if test $found = "no" ; then
6281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6283		fi
6284
6285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6287		fi
6288
6289		CFLAGS="$CFLAGS -Wold-style-definition"
6290
6291		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6292printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6293		cacheid=xorg_cv_cc_flag__Wold_style_definition
6294		if eval test \${$cacheid+y}
6295then :
6296  printf %s "(cached) " >&6
6297else $as_nop
6298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299/* end confdefs.h.  */
6300int i;
6301int
6302main (void)
6303{
6304
6305  ;
6306  return 0;
6307}
6308_ACEOF
6309if ac_fn_c_try_link "$LINENO"
6310then :
6311  eval $cacheid=yes
6312else $as_nop
6313  eval $cacheid=no
6314fi
6315rm -f core conftest.err conftest.$ac_objext conftest.beam \
6316    conftest$ac_exeext conftest.$ac_ext
6317fi
6318
6319
6320		CFLAGS="$xorg_testset_save_CFLAGS"
6321
6322		eval supported=\$$cacheid
6323		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6324printf "%s\n" "$supported" >&6; }
6325		if test "$supported" = "yes" ; then
6326			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6327			found="yes"
6328		fi
6329	fi
6330
6331	if test $found = "no" ; then
6332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334		fi
6335
6336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6338		fi
6339
6340		CFLAGS="$CFLAGS -fd"
6341
6342		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6343printf %s "checking if $CC supports -fd... " >&6; }
6344		cacheid=xorg_cv_cc_flag__fd
6345		if eval test \${$cacheid+y}
6346then :
6347  printf %s "(cached) " >&6
6348else $as_nop
6349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h.  */
6351int i;
6352int
6353main (void)
6354{
6355
6356  ;
6357  return 0;
6358}
6359_ACEOF
6360if ac_fn_c_try_link "$LINENO"
6361then :
6362  eval $cacheid=yes
6363else $as_nop
6364  eval $cacheid=no
6365fi
6366rm -f core conftest.err conftest.$ac_objext conftest.beam \
6367    conftest$ac_exeext conftest.$ac_ext
6368fi
6369
6370
6371		CFLAGS="$xorg_testset_save_CFLAGS"
6372
6373		eval supported=\$$cacheid
6374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6375printf "%s\n" "$supported" >&6; }
6376		if test "$supported" = "yes" ; then
6377			BASE_CFLAGS="$BASE_CFLAGS -fd"
6378			found="yes"
6379		fi
6380	fi
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396xorg_testset_save_CFLAGS="$CFLAGS"
6397
6398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6401printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6402if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6403then :
6404  printf %s "(cached) " >&6
6405else $as_nop
6406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407/* end confdefs.h.  */
6408int i;
6409_ACEOF
6410if ac_fn_c_try_compile "$LINENO"
6411then :
6412  xorg_cv_cc_flag_unknown_warning_option=yes
6413else $as_nop
6414  xorg_cv_cc_flag_unknown_warning_option=no
6415fi
6416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6417fi
6418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6419printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6421	CFLAGS="$xorg_testset_save_CFLAGS"
6422fi
6423
6424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427	fi
6428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6429	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6430printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6431if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6432then :
6433  printf %s "(cached) " >&6
6434else $as_nop
6435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436/* end confdefs.h.  */
6437int i;
6438_ACEOF
6439if ac_fn_c_try_compile "$LINENO"
6440then :
6441  xorg_cv_cc_flag_unused_command_line_argument=yes
6442else $as_nop
6443  xorg_cv_cc_flag_unused_command_line_argument=no
6444fi
6445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6446fi
6447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6448printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6450	CFLAGS="$xorg_testset_save_CFLAGS"
6451fi
6452
6453found="no"
6454
6455	if test $found = "no" ; then
6456		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6458		fi
6459
6460		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6462		fi
6463
6464		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6465
6466		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6467printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6468		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6469		if eval test \${$cacheid+y}
6470then :
6471  printf %s "(cached) " >&6
6472else $as_nop
6473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474/* end confdefs.h.  */
6475int i;
6476int
6477main (void)
6478{
6479
6480  ;
6481  return 0;
6482}
6483_ACEOF
6484if ac_fn_c_try_link "$LINENO"
6485then :
6486  eval $cacheid=yes
6487else $as_nop
6488  eval $cacheid=no
6489fi
6490rm -f core conftest.err conftest.$ac_objext conftest.beam \
6491    conftest$ac_exeext conftest.$ac_ext
6492fi
6493
6494
6495		CFLAGS="$xorg_testset_save_CFLAGS"
6496
6497		eval supported=\$$cacheid
6498		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6499printf "%s\n" "$supported" >&6; }
6500		if test "$supported" = "yes" ; then
6501			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6502			found="yes"
6503		fi
6504	fi
6505
6506
6507
6508
6509
6510# This chunk adds additional warnings that could catch undesired effects.
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524xorg_testset_save_CFLAGS="$CFLAGS"
6525
6526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6529printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6530if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6531then :
6532  printf %s "(cached) " >&6
6533else $as_nop
6534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h.  */
6536int i;
6537_ACEOF
6538if ac_fn_c_try_compile "$LINENO"
6539then :
6540  xorg_cv_cc_flag_unknown_warning_option=yes
6541else $as_nop
6542  xorg_cv_cc_flag_unknown_warning_option=no
6543fi
6544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6545fi
6546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6547printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6548	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6549	CFLAGS="$xorg_testset_save_CFLAGS"
6550fi
6551
6552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6553	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6554		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6555	fi
6556	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6557	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6558printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6559if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6560then :
6561  printf %s "(cached) " >&6
6562else $as_nop
6563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h.  */
6565int i;
6566_ACEOF
6567if ac_fn_c_try_compile "$LINENO"
6568then :
6569  xorg_cv_cc_flag_unused_command_line_argument=yes
6570else $as_nop
6571  xorg_cv_cc_flag_unused_command_line_argument=no
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6574fi
6575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6576printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6577	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6578	CFLAGS="$xorg_testset_save_CFLAGS"
6579fi
6580
6581found="no"
6582
6583	if test $found = "no" ; then
6584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586		fi
6587
6588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6590		fi
6591
6592		CFLAGS="$CFLAGS -Wunused"
6593
6594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6595printf %s "checking if $CC supports -Wunused... " >&6; }
6596		cacheid=xorg_cv_cc_flag__Wunused
6597		if eval test \${$cacheid+y}
6598then :
6599  printf %s "(cached) " >&6
6600else $as_nop
6601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h.  */
6603int i;
6604int
6605main (void)
6606{
6607
6608  ;
6609  return 0;
6610}
6611_ACEOF
6612if ac_fn_c_try_link "$LINENO"
6613then :
6614  eval $cacheid=yes
6615else $as_nop
6616  eval $cacheid=no
6617fi
6618rm -f core conftest.err conftest.$ac_objext conftest.beam \
6619    conftest$ac_exeext conftest.$ac_ext
6620fi
6621
6622
6623		CFLAGS="$xorg_testset_save_CFLAGS"
6624
6625		eval supported=\$$cacheid
6626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6627printf "%s\n" "$supported" >&6; }
6628		if test "$supported" = "yes" ; then
6629			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6630			found="yes"
6631		fi
6632	fi
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648xorg_testset_save_CFLAGS="$CFLAGS"
6649
6650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6652	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6653printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6654if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6655then :
6656  printf %s "(cached) " >&6
6657else $as_nop
6658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h.  */
6660int i;
6661_ACEOF
6662if ac_fn_c_try_compile "$LINENO"
6663then :
6664  xorg_cv_cc_flag_unknown_warning_option=yes
6665else $as_nop
6666  xorg_cv_cc_flag_unknown_warning_option=no
6667fi
6668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6669fi
6670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6671printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6672	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6673	CFLAGS="$xorg_testset_save_CFLAGS"
6674fi
6675
6676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6677	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6678		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679	fi
6680	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6681	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6682printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6683if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6684then :
6685  printf %s "(cached) " >&6
6686else $as_nop
6687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688/* end confdefs.h.  */
6689int i;
6690_ACEOF
6691if ac_fn_c_try_compile "$LINENO"
6692then :
6693  xorg_cv_cc_flag_unused_command_line_argument=yes
6694else $as_nop
6695  xorg_cv_cc_flag_unused_command_line_argument=no
6696fi
6697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6698fi
6699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6700printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6701	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6702	CFLAGS="$xorg_testset_save_CFLAGS"
6703fi
6704
6705found="no"
6706
6707	if test $found = "no" ; then
6708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710		fi
6711
6712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6714		fi
6715
6716		CFLAGS="$CFLAGS -Wuninitialized"
6717
6718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6719printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6720		cacheid=xorg_cv_cc_flag__Wuninitialized
6721		if eval test \${$cacheid+y}
6722then :
6723  printf %s "(cached) " >&6
6724else $as_nop
6725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726/* end confdefs.h.  */
6727int i;
6728int
6729main (void)
6730{
6731
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736if ac_fn_c_try_link "$LINENO"
6737then :
6738  eval $cacheid=yes
6739else $as_nop
6740  eval $cacheid=no
6741fi
6742rm -f core conftest.err conftest.$ac_objext conftest.beam \
6743    conftest$ac_exeext conftest.$ac_ext
6744fi
6745
6746
6747		CFLAGS="$xorg_testset_save_CFLAGS"
6748
6749		eval supported=\$$cacheid
6750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6751printf "%s\n" "$supported" >&6; }
6752		if test "$supported" = "yes" ; then
6753			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6754			found="yes"
6755		fi
6756	fi
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772xorg_testset_save_CFLAGS="$CFLAGS"
6773
6774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6778if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6779then :
6780  printf %s "(cached) " >&6
6781else $as_nop
6782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783/* end confdefs.h.  */
6784int i;
6785_ACEOF
6786if ac_fn_c_try_compile "$LINENO"
6787then :
6788  xorg_cv_cc_flag_unknown_warning_option=yes
6789else $as_nop
6790  xorg_cv_cc_flag_unknown_warning_option=no
6791fi
6792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6793fi
6794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6796	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6797	CFLAGS="$xorg_testset_save_CFLAGS"
6798fi
6799
6800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6801	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6802		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6803	fi
6804	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6805	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6807if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6808then :
6809  printf %s "(cached) " >&6
6810else $as_nop
6811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812/* end confdefs.h.  */
6813int i;
6814_ACEOF
6815if ac_fn_c_try_compile "$LINENO"
6816then :
6817  xorg_cv_cc_flag_unused_command_line_argument=yes
6818else $as_nop
6819  xorg_cv_cc_flag_unused_command_line_argument=no
6820fi
6821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6822fi
6823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6825	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6826	CFLAGS="$xorg_testset_save_CFLAGS"
6827fi
6828
6829found="no"
6830
6831	if test $found = "no" ; then
6832		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834		fi
6835
6836		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6838		fi
6839
6840		CFLAGS="$CFLAGS -Wshadow"
6841
6842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6843printf %s "checking if $CC supports -Wshadow... " >&6; }
6844		cacheid=xorg_cv_cc_flag__Wshadow
6845		if eval test \${$cacheid+y}
6846then :
6847  printf %s "(cached) " >&6
6848else $as_nop
6849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850/* end confdefs.h.  */
6851int i;
6852int
6853main (void)
6854{
6855
6856  ;
6857  return 0;
6858}
6859_ACEOF
6860if ac_fn_c_try_link "$LINENO"
6861then :
6862  eval $cacheid=yes
6863else $as_nop
6864  eval $cacheid=no
6865fi
6866rm -f core conftest.err conftest.$ac_objext conftest.beam \
6867    conftest$ac_exeext conftest.$ac_ext
6868fi
6869
6870
6871		CFLAGS="$xorg_testset_save_CFLAGS"
6872
6873		eval supported=\$$cacheid
6874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6875printf "%s\n" "$supported" >&6; }
6876		if test "$supported" = "yes" ; then
6877			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6878			found="yes"
6879		fi
6880	fi
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896xorg_testset_save_CFLAGS="$CFLAGS"
6897
6898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6899	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6902if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6903then :
6904  printf %s "(cached) " >&6
6905else $as_nop
6906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907/* end confdefs.h.  */
6908int i;
6909_ACEOF
6910if ac_fn_c_try_compile "$LINENO"
6911then :
6912  xorg_cv_cc_flag_unknown_warning_option=yes
6913else $as_nop
6914  xorg_cv_cc_flag_unknown_warning_option=no
6915fi
6916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6917fi
6918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6920	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6921	CFLAGS="$xorg_testset_save_CFLAGS"
6922fi
6923
6924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6925	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6926		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6927	fi
6928	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6929	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6931if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6932then :
6933  printf %s "(cached) " >&6
6934else $as_nop
6935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h.  */
6937int i;
6938_ACEOF
6939if ac_fn_c_try_compile "$LINENO"
6940then :
6941  xorg_cv_cc_flag_unused_command_line_argument=yes
6942else $as_nop
6943  xorg_cv_cc_flag_unused_command_line_argument=no
6944fi
6945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6946fi
6947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6950	CFLAGS="$xorg_testset_save_CFLAGS"
6951fi
6952
6953found="no"
6954
6955	if test $found = "no" ; then
6956		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6958		fi
6959
6960		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6962		fi
6963
6964		CFLAGS="$CFLAGS -Wmissing-noreturn"
6965
6966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6967printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6968		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6969		if eval test \${$cacheid+y}
6970then :
6971  printf %s "(cached) " >&6
6972else $as_nop
6973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975int i;
6976int
6977main (void)
6978{
6979
6980  ;
6981  return 0;
6982}
6983_ACEOF
6984if ac_fn_c_try_link "$LINENO"
6985then :
6986  eval $cacheid=yes
6987else $as_nop
6988  eval $cacheid=no
6989fi
6990rm -f core conftest.err conftest.$ac_objext conftest.beam \
6991    conftest$ac_exeext conftest.$ac_ext
6992fi
6993
6994
6995		CFLAGS="$xorg_testset_save_CFLAGS"
6996
6997		eval supported=\$$cacheid
6998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6999printf "%s\n" "$supported" >&6; }
7000		if test "$supported" = "yes" ; then
7001			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7002			found="yes"
7003		fi
7004	fi
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020xorg_testset_save_CFLAGS="$CFLAGS"
7021
7022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7026if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7027then :
7028  printf %s "(cached) " >&6
7029else $as_nop
7030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031/* end confdefs.h.  */
7032int i;
7033_ACEOF
7034if ac_fn_c_try_compile "$LINENO"
7035then :
7036  xorg_cv_cc_flag_unknown_warning_option=yes
7037else $as_nop
7038  xorg_cv_cc_flag_unknown_warning_option=no
7039fi
7040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7041fi
7042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7045	CFLAGS="$xorg_testset_save_CFLAGS"
7046fi
7047
7048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7051	fi
7052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7053	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7055if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7056then :
7057  printf %s "(cached) " >&6
7058else $as_nop
7059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060/* end confdefs.h.  */
7061int i;
7062_ACEOF
7063if ac_fn_c_try_compile "$LINENO"
7064then :
7065  xorg_cv_cc_flag_unused_command_line_argument=yes
7066else $as_nop
7067  xorg_cv_cc_flag_unused_command_line_argument=no
7068fi
7069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7070fi
7071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7074	CFLAGS="$xorg_testset_save_CFLAGS"
7075fi
7076
7077found="no"
7078
7079	if test $found = "no" ; then
7080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082		fi
7083
7084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7086		fi
7087
7088		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7089
7090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7091printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7092		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7093		if eval test \${$cacheid+y}
7094then :
7095  printf %s "(cached) " >&6
7096else $as_nop
7097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098/* end confdefs.h.  */
7099int i;
7100int
7101main (void)
7102{
7103
7104  ;
7105  return 0;
7106}
7107_ACEOF
7108if ac_fn_c_try_link "$LINENO"
7109then :
7110  eval $cacheid=yes
7111else $as_nop
7112  eval $cacheid=no
7113fi
7114rm -f core conftest.err conftest.$ac_objext conftest.beam \
7115    conftest$ac_exeext conftest.$ac_ext
7116fi
7117
7118
7119		CFLAGS="$xorg_testset_save_CFLAGS"
7120
7121		eval supported=\$$cacheid
7122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7123printf "%s\n" "$supported" >&6; }
7124		if test "$supported" = "yes" ; then
7125			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7126			found="yes"
7127		fi
7128	fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144xorg_testset_save_CFLAGS="$CFLAGS"
7145
7146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7149printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7150if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7151then :
7152  printf %s "(cached) " >&6
7153else $as_nop
7154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155/* end confdefs.h.  */
7156int i;
7157_ACEOF
7158if ac_fn_c_try_compile "$LINENO"
7159then :
7160  xorg_cv_cc_flag_unknown_warning_option=yes
7161else $as_nop
7162  xorg_cv_cc_flag_unknown_warning_option=no
7163fi
7164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7165fi
7166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7169	CFLAGS="$xorg_testset_save_CFLAGS"
7170fi
7171
7172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7175	fi
7176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7177	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7179if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7180then :
7181  printf %s "(cached) " >&6
7182else $as_nop
7183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184/* end confdefs.h.  */
7185int i;
7186_ACEOF
7187if ac_fn_c_try_compile "$LINENO"
7188then :
7189  xorg_cv_cc_flag_unused_command_line_argument=yes
7190else $as_nop
7191  xorg_cv_cc_flag_unused_command_line_argument=no
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7194fi
7195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7198	CFLAGS="$xorg_testset_save_CFLAGS"
7199fi
7200
7201found="no"
7202
7203	if test $found = "no" ; then
7204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7206		fi
7207
7208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7210		fi
7211
7212		CFLAGS="$CFLAGS -Wredundant-decls"
7213
7214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7215printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7216		cacheid=xorg_cv_cc_flag__Wredundant_decls
7217		if eval test \${$cacheid+y}
7218then :
7219  printf %s "(cached) " >&6
7220else $as_nop
7221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222/* end confdefs.h.  */
7223int i;
7224int
7225main (void)
7226{
7227
7228  ;
7229  return 0;
7230}
7231_ACEOF
7232if ac_fn_c_try_link "$LINENO"
7233then :
7234  eval $cacheid=yes
7235else $as_nop
7236  eval $cacheid=no
7237fi
7238rm -f core conftest.err conftest.$ac_objext conftest.beam \
7239    conftest$ac_exeext conftest.$ac_ext
7240fi
7241
7242
7243		CFLAGS="$xorg_testset_save_CFLAGS"
7244
7245		eval supported=\$$cacheid
7246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7247printf "%s\n" "$supported" >&6; }
7248		if test "$supported" = "yes" ; then
7249			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7250			found="yes"
7251		fi
7252	fi
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268xorg_testset_save_CFLAGS="$CFLAGS"
7269
7270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7271	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7273printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7274if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7275then :
7276  printf %s "(cached) " >&6
7277else $as_nop
7278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h.  */
7280int i;
7281_ACEOF
7282if ac_fn_c_try_compile "$LINENO"
7283then :
7284  xorg_cv_cc_flag_unknown_warning_option=yes
7285else $as_nop
7286  xorg_cv_cc_flag_unknown_warning_option=no
7287fi
7288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7289fi
7290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7291printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7293	CFLAGS="$xorg_testset_save_CFLAGS"
7294fi
7295
7296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7299	fi
7300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7301	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7302printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7303if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7304then :
7305  printf %s "(cached) " >&6
7306else $as_nop
7307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309int i;
7310_ACEOF
7311if ac_fn_c_try_compile "$LINENO"
7312then :
7313  xorg_cv_cc_flag_unused_command_line_argument=yes
7314else $as_nop
7315  xorg_cv_cc_flag_unused_command_line_argument=no
7316fi
7317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7318fi
7319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7320printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7321	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7322	CFLAGS="$xorg_testset_save_CFLAGS"
7323fi
7324
7325found="no"
7326
7327	if test $found = "no" ; then
7328		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7330		fi
7331
7332		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7334		fi
7335
7336		CFLAGS="$CFLAGS -Wlogical-op"
7337
7338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7339printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7340		cacheid=xorg_cv_cc_flag__Wlogical_op
7341		if eval test \${$cacheid+y}
7342then :
7343  printf %s "(cached) " >&6
7344else $as_nop
7345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h.  */
7347int i;
7348int
7349main (void)
7350{
7351
7352  ;
7353  return 0;
7354}
7355_ACEOF
7356if ac_fn_c_try_link "$LINENO"
7357then :
7358  eval $cacheid=yes
7359else $as_nop
7360  eval $cacheid=no
7361fi
7362rm -f core conftest.err conftest.$ac_objext conftest.beam \
7363    conftest$ac_exeext conftest.$ac_ext
7364fi
7365
7366
7367		CFLAGS="$xorg_testset_save_CFLAGS"
7368
7369		eval supported=\$$cacheid
7370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7371printf "%s\n" "$supported" >&6; }
7372		if test "$supported" = "yes" ; then
7373			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7374			found="yes"
7375		fi
7376	fi
7377
7378
7379
7380# These are currently disabled because they are noisy.  They will be enabled
7381# in the future once the codebase is sufficiently modernized to silence
7382# them.  For now, I don't want them to drown out the other warnings.
7383# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7384# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7385# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7386
7387# Turn some warnings into errors, so we don't accidentally get successful builds
7388# when there are problems that should be fixed.
7389
7390if test "x$SELECTIVE_WERROR" = "xyes" ; then
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404xorg_testset_save_CFLAGS="$CFLAGS"
7405
7406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7408	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7409printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7410if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7411then :
7412  printf %s "(cached) " >&6
7413else $as_nop
7414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415/* end confdefs.h.  */
7416int i;
7417_ACEOF
7418if ac_fn_c_try_compile "$LINENO"
7419then :
7420  xorg_cv_cc_flag_unknown_warning_option=yes
7421else $as_nop
7422  xorg_cv_cc_flag_unknown_warning_option=no
7423fi
7424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7425fi
7426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7427printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7429	CFLAGS="$xorg_testset_save_CFLAGS"
7430fi
7431
7432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7435	fi
7436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7437	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7438printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7439if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7440then :
7441  printf %s "(cached) " >&6
7442else $as_nop
7443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h.  */
7445int i;
7446_ACEOF
7447if ac_fn_c_try_compile "$LINENO"
7448then :
7449  xorg_cv_cc_flag_unused_command_line_argument=yes
7450else $as_nop
7451  xorg_cv_cc_flag_unused_command_line_argument=no
7452fi
7453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7454fi
7455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7458	CFLAGS="$xorg_testset_save_CFLAGS"
7459fi
7460
7461found="no"
7462
7463	if test $found = "no" ; then
7464		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466		fi
7467
7468		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7470		fi
7471
7472		CFLAGS="$CFLAGS -Werror=implicit"
7473
7474		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7475printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7476		cacheid=xorg_cv_cc_flag__Werror_implicit
7477		if eval test \${$cacheid+y}
7478then :
7479  printf %s "(cached) " >&6
7480else $as_nop
7481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482/* end confdefs.h.  */
7483int i;
7484int
7485main (void)
7486{
7487
7488  ;
7489  return 0;
7490}
7491_ACEOF
7492if ac_fn_c_try_link "$LINENO"
7493then :
7494  eval $cacheid=yes
7495else $as_nop
7496  eval $cacheid=no
7497fi
7498rm -f core conftest.err conftest.$ac_objext conftest.beam \
7499    conftest$ac_exeext conftest.$ac_ext
7500fi
7501
7502
7503		CFLAGS="$xorg_testset_save_CFLAGS"
7504
7505		eval supported=\$$cacheid
7506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7507printf "%s\n" "$supported" >&6; }
7508		if test "$supported" = "yes" ; then
7509			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7510			found="yes"
7511		fi
7512	fi
7513
7514	if test $found = "no" ; then
7515		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7517		fi
7518
7519		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7521		fi
7522
7523		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7524
7525		{ 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
7526printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7527		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7528		if eval test \${$cacheid+y}
7529then :
7530  printf %s "(cached) " >&6
7531else $as_nop
7532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h.  */
7534int i;
7535int
7536main (void)
7537{
7538
7539  ;
7540  return 0;
7541}
7542_ACEOF
7543if ac_fn_c_try_link "$LINENO"
7544then :
7545  eval $cacheid=yes
7546else $as_nop
7547  eval $cacheid=no
7548fi
7549rm -f core conftest.err conftest.$ac_objext conftest.beam \
7550    conftest$ac_exeext conftest.$ac_ext
7551fi
7552
7553
7554		CFLAGS="$xorg_testset_save_CFLAGS"
7555
7556		eval supported=\$$cacheid
7557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7558printf "%s\n" "$supported" >&6; }
7559		if test "$supported" = "yes" ; then
7560			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7561			found="yes"
7562		fi
7563	fi
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579xorg_testset_save_CFLAGS="$CFLAGS"
7580
7581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7585if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7586then :
7587  printf %s "(cached) " >&6
7588else $as_nop
7589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590/* end confdefs.h.  */
7591int i;
7592_ACEOF
7593if ac_fn_c_try_compile "$LINENO"
7594then :
7595  xorg_cv_cc_flag_unknown_warning_option=yes
7596else $as_nop
7597  xorg_cv_cc_flag_unknown_warning_option=no
7598fi
7599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7600fi
7601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7604	CFLAGS="$xorg_testset_save_CFLAGS"
7605fi
7606
7607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7610	fi
7611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7614if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7615then :
7616  printf %s "(cached) " >&6
7617else $as_nop
7618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h.  */
7620int i;
7621_ACEOF
7622if ac_fn_c_try_compile "$LINENO"
7623then :
7624  xorg_cv_cc_flag_unused_command_line_argument=yes
7625else $as_nop
7626  xorg_cv_cc_flag_unused_command_line_argument=no
7627fi
7628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7629fi
7630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7631printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7633	CFLAGS="$xorg_testset_save_CFLAGS"
7634fi
7635
7636found="no"
7637
7638	if test $found = "no" ; then
7639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7641		fi
7642
7643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7645		fi
7646
7647		CFLAGS="$CFLAGS -Werror=nonnull"
7648
7649		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7650printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7651		cacheid=xorg_cv_cc_flag__Werror_nonnull
7652		if eval test \${$cacheid+y}
7653then :
7654  printf %s "(cached) " >&6
7655else $as_nop
7656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657/* end confdefs.h.  */
7658int i;
7659int
7660main (void)
7661{
7662
7663  ;
7664  return 0;
7665}
7666_ACEOF
7667if ac_fn_c_try_link "$LINENO"
7668then :
7669  eval $cacheid=yes
7670else $as_nop
7671  eval $cacheid=no
7672fi
7673rm -f core conftest.err conftest.$ac_objext conftest.beam \
7674    conftest$ac_exeext conftest.$ac_ext
7675fi
7676
7677
7678		CFLAGS="$xorg_testset_save_CFLAGS"
7679
7680		eval supported=\$$cacheid
7681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7682printf "%s\n" "$supported" >&6; }
7683		if test "$supported" = "yes" ; then
7684			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7685			found="yes"
7686		fi
7687	fi
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703xorg_testset_save_CFLAGS="$CFLAGS"
7704
7705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7706	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7708printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7709if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7710then :
7711  printf %s "(cached) " >&6
7712else $as_nop
7713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714/* end confdefs.h.  */
7715int i;
7716_ACEOF
7717if ac_fn_c_try_compile "$LINENO"
7718then :
7719  xorg_cv_cc_flag_unknown_warning_option=yes
7720else $as_nop
7721  xorg_cv_cc_flag_unknown_warning_option=no
7722fi
7723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7724fi
7725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7726printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7727	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7728	CFLAGS="$xorg_testset_save_CFLAGS"
7729fi
7730
7731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7732	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7733		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7734	fi
7735	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7736	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7737printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7738if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7739then :
7740  printf %s "(cached) " >&6
7741else $as_nop
7742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743/* end confdefs.h.  */
7744int i;
7745_ACEOF
7746if ac_fn_c_try_compile "$LINENO"
7747then :
7748  xorg_cv_cc_flag_unused_command_line_argument=yes
7749else $as_nop
7750  xorg_cv_cc_flag_unused_command_line_argument=no
7751fi
7752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7753fi
7754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7755printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7756	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7757	CFLAGS="$xorg_testset_save_CFLAGS"
7758fi
7759
7760found="no"
7761
7762	if test $found = "no" ; then
7763		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7764			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7765		fi
7766
7767		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7768			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769		fi
7770
7771		CFLAGS="$CFLAGS -Werror=init-self"
7772
7773		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7774printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7775		cacheid=xorg_cv_cc_flag__Werror_init_self
7776		if eval test \${$cacheid+y}
7777then :
7778  printf %s "(cached) " >&6
7779else $as_nop
7780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h.  */
7782int i;
7783int
7784main (void)
7785{
7786
7787  ;
7788  return 0;
7789}
7790_ACEOF
7791if ac_fn_c_try_link "$LINENO"
7792then :
7793  eval $cacheid=yes
7794else $as_nop
7795  eval $cacheid=no
7796fi
7797rm -f core conftest.err conftest.$ac_objext conftest.beam \
7798    conftest$ac_exeext conftest.$ac_ext
7799fi
7800
7801
7802		CFLAGS="$xorg_testset_save_CFLAGS"
7803
7804		eval supported=\$$cacheid
7805		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7806printf "%s\n" "$supported" >&6; }
7807		if test "$supported" = "yes" ; then
7808			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7809			found="yes"
7810		fi
7811	fi
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827xorg_testset_save_CFLAGS="$CFLAGS"
7828
7829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7832printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7833if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7834then :
7835  printf %s "(cached) " >&6
7836else $as_nop
7837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838/* end confdefs.h.  */
7839int i;
7840_ACEOF
7841if ac_fn_c_try_compile "$LINENO"
7842then :
7843  xorg_cv_cc_flag_unknown_warning_option=yes
7844else $as_nop
7845  xorg_cv_cc_flag_unknown_warning_option=no
7846fi
7847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7848fi
7849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7850printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7852	CFLAGS="$xorg_testset_save_CFLAGS"
7853fi
7854
7855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7858	fi
7859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7860	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7861printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7862if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7863then :
7864  printf %s "(cached) " >&6
7865else $as_nop
7866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h.  */
7868int i;
7869_ACEOF
7870if ac_fn_c_try_compile "$LINENO"
7871then :
7872  xorg_cv_cc_flag_unused_command_line_argument=yes
7873else $as_nop
7874  xorg_cv_cc_flag_unused_command_line_argument=no
7875fi
7876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7877fi
7878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7879printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7880	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7881	CFLAGS="$xorg_testset_save_CFLAGS"
7882fi
7883
7884found="no"
7885
7886	if test $found = "no" ; then
7887		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889		fi
7890
7891		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7893		fi
7894
7895		CFLAGS="$CFLAGS -Werror=main"
7896
7897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7898printf %s "checking if $CC supports -Werror=main... " >&6; }
7899		cacheid=xorg_cv_cc_flag__Werror_main
7900		if eval test \${$cacheid+y}
7901then :
7902  printf %s "(cached) " >&6
7903else $as_nop
7904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h.  */
7906int i;
7907int
7908main (void)
7909{
7910
7911  ;
7912  return 0;
7913}
7914_ACEOF
7915if ac_fn_c_try_link "$LINENO"
7916then :
7917  eval $cacheid=yes
7918else $as_nop
7919  eval $cacheid=no
7920fi
7921rm -f core conftest.err conftest.$ac_objext conftest.beam \
7922    conftest$ac_exeext conftest.$ac_ext
7923fi
7924
7925
7926		CFLAGS="$xorg_testset_save_CFLAGS"
7927
7928		eval supported=\$$cacheid
7929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7930printf "%s\n" "$supported" >&6; }
7931		if test "$supported" = "yes" ; then
7932			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7933			found="yes"
7934		fi
7935	fi
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951xorg_testset_save_CFLAGS="$CFLAGS"
7952
7953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7957if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7958then :
7959  printf %s "(cached) " >&6
7960else $as_nop
7961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962/* end confdefs.h.  */
7963int i;
7964_ACEOF
7965if ac_fn_c_try_compile "$LINENO"
7966then :
7967  xorg_cv_cc_flag_unknown_warning_option=yes
7968else $as_nop
7969  xorg_cv_cc_flag_unknown_warning_option=no
7970fi
7971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7972fi
7973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7974printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7975	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7976	CFLAGS="$xorg_testset_save_CFLAGS"
7977fi
7978
7979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7980	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7981		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7982	fi
7983	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7984	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7985printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7986if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7987then :
7988  printf %s "(cached) " >&6
7989else $as_nop
7990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991/* end confdefs.h.  */
7992int i;
7993_ACEOF
7994if ac_fn_c_try_compile "$LINENO"
7995then :
7996  xorg_cv_cc_flag_unused_command_line_argument=yes
7997else $as_nop
7998  xorg_cv_cc_flag_unused_command_line_argument=no
7999fi
8000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8001fi
8002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8003printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8004	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8005	CFLAGS="$xorg_testset_save_CFLAGS"
8006fi
8007
8008found="no"
8009
8010	if test $found = "no" ; then
8011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8013		fi
8014
8015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8017		fi
8018
8019		CFLAGS="$CFLAGS -Werror=missing-braces"
8020
8021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8022printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8023		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8024		if eval test \${$cacheid+y}
8025then :
8026  printf %s "(cached) " >&6
8027else $as_nop
8028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h.  */
8030int i;
8031int
8032main (void)
8033{
8034
8035  ;
8036  return 0;
8037}
8038_ACEOF
8039if ac_fn_c_try_link "$LINENO"
8040then :
8041  eval $cacheid=yes
8042else $as_nop
8043  eval $cacheid=no
8044fi
8045rm -f core conftest.err conftest.$ac_objext conftest.beam \
8046    conftest$ac_exeext conftest.$ac_ext
8047fi
8048
8049
8050		CFLAGS="$xorg_testset_save_CFLAGS"
8051
8052		eval supported=\$$cacheid
8053		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8054printf "%s\n" "$supported" >&6; }
8055		if test "$supported" = "yes" ; then
8056			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8057			found="yes"
8058		fi
8059	fi
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075xorg_testset_save_CFLAGS="$CFLAGS"
8076
8077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8078	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8081if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8082then :
8083  printf %s "(cached) " >&6
8084else $as_nop
8085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086/* end confdefs.h.  */
8087int i;
8088_ACEOF
8089if ac_fn_c_try_compile "$LINENO"
8090then :
8091  xorg_cv_cc_flag_unknown_warning_option=yes
8092else $as_nop
8093  xorg_cv_cc_flag_unknown_warning_option=no
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8096fi
8097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8100	CFLAGS="$xorg_testset_save_CFLAGS"
8101fi
8102
8103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8106	fi
8107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8110if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8111then :
8112  printf %s "(cached) " >&6
8113else $as_nop
8114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116int i;
8117_ACEOF
8118if ac_fn_c_try_compile "$LINENO"
8119then :
8120  xorg_cv_cc_flag_unused_command_line_argument=yes
8121else $as_nop
8122  xorg_cv_cc_flag_unused_command_line_argument=no
8123fi
8124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8125fi
8126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8127printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8128	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8129	CFLAGS="$xorg_testset_save_CFLAGS"
8130fi
8131
8132found="no"
8133
8134	if test $found = "no" ; then
8135		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8136			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8137		fi
8138
8139		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8140			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8141		fi
8142
8143		CFLAGS="$CFLAGS -Werror=sequence-point"
8144
8145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8146printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8147		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8148		if eval test \${$cacheid+y}
8149then :
8150  printf %s "(cached) " >&6
8151else $as_nop
8152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153/* end confdefs.h.  */
8154int i;
8155int
8156main (void)
8157{
8158
8159  ;
8160  return 0;
8161}
8162_ACEOF
8163if ac_fn_c_try_link "$LINENO"
8164then :
8165  eval $cacheid=yes
8166else $as_nop
8167  eval $cacheid=no
8168fi
8169rm -f core conftest.err conftest.$ac_objext conftest.beam \
8170    conftest$ac_exeext conftest.$ac_ext
8171fi
8172
8173
8174		CFLAGS="$xorg_testset_save_CFLAGS"
8175
8176		eval supported=\$$cacheid
8177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8178printf "%s\n" "$supported" >&6; }
8179		if test "$supported" = "yes" ; then
8180			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8181			found="yes"
8182		fi
8183	fi
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199xorg_testset_save_CFLAGS="$CFLAGS"
8200
8201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8204printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8205if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8206then :
8207  printf %s "(cached) " >&6
8208else $as_nop
8209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210/* end confdefs.h.  */
8211int i;
8212_ACEOF
8213if ac_fn_c_try_compile "$LINENO"
8214then :
8215  xorg_cv_cc_flag_unknown_warning_option=yes
8216else $as_nop
8217  xorg_cv_cc_flag_unknown_warning_option=no
8218fi
8219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8220fi
8221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8222printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8224	CFLAGS="$xorg_testset_save_CFLAGS"
8225fi
8226
8227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8230	fi
8231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8232	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8233printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8234if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8235then :
8236  printf %s "(cached) " >&6
8237else $as_nop
8238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239/* end confdefs.h.  */
8240int i;
8241_ACEOF
8242if ac_fn_c_try_compile "$LINENO"
8243then :
8244  xorg_cv_cc_flag_unused_command_line_argument=yes
8245else $as_nop
8246  xorg_cv_cc_flag_unused_command_line_argument=no
8247fi
8248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8249fi
8250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8251printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8253	CFLAGS="$xorg_testset_save_CFLAGS"
8254fi
8255
8256found="no"
8257
8258	if test $found = "no" ; then
8259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8261		fi
8262
8263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8265		fi
8266
8267		CFLAGS="$CFLAGS -Werror=return-type"
8268
8269		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8270printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8271		cacheid=xorg_cv_cc_flag__Werror_return_type
8272		if eval test \${$cacheid+y}
8273then :
8274  printf %s "(cached) " >&6
8275else $as_nop
8276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h.  */
8278int i;
8279int
8280main (void)
8281{
8282
8283  ;
8284  return 0;
8285}
8286_ACEOF
8287if ac_fn_c_try_link "$LINENO"
8288then :
8289  eval $cacheid=yes
8290else $as_nop
8291  eval $cacheid=no
8292fi
8293rm -f core conftest.err conftest.$ac_objext conftest.beam \
8294    conftest$ac_exeext conftest.$ac_ext
8295fi
8296
8297
8298		CFLAGS="$xorg_testset_save_CFLAGS"
8299
8300		eval supported=\$$cacheid
8301		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8302printf "%s\n" "$supported" >&6; }
8303		if test "$supported" = "yes" ; then
8304			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8305			found="yes"
8306		fi
8307	fi
8308
8309	if test $found = "no" ; then
8310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8312		fi
8313
8314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8316		fi
8317
8318		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8319
8320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8321printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8322		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8323		if eval test \${$cacheid+y}
8324then :
8325  printf %s "(cached) " >&6
8326else $as_nop
8327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328/* end confdefs.h.  */
8329int i;
8330int
8331main (void)
8332{
8333
8334  ;
8335  return 0;
8336}
8337_ACEOF
8338if ac_fn_c_try_link "$LINENO"
8339then :
8340  eval $cacheid=yes
8341else $as_nop
8342  eval $cacheid=no
8343fi
8344rm -f core conftest.err conftest.$ac_objext conftest.beam \
8345    conftest$ac_exeext conftest.$ac_ext
8346fi
8347
8348
8349		CFLAGS="$xorg_testset_save_CFLAGS"
8350
8351		eval supported=\$$cacheid
8352		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8353printf "%s\n" "$supported" >&6; }
8354		if test "$supported" = "yes" ; then
8355			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8356			found="yes"
8357		fi
8358	fi
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374xorg_testset_save_CFLAGS="$CFLAGS"
8375
8376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8377	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8379printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8380if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8381then :
8382  printf %s "(cached) " >&6
8383else $as_nop
8384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385/* end confdefs.h.  */
8386int i;
8387_ACEOF
8388if ac_fn_c_try_compile "$LINENO"
8389then :
8390  xorg_cv_cc_flag_unknown_warning_option=yes
8391else $as_nop
8392  xorg_cv_cc_flag_unknown_warning_option=no
8393fi
8394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8395fi
8396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8397printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8398	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8399	CFLAGS="$xorg_testset_save_CFLAGS"
8400fi
8401
8402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8403	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8404		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405	fi
8406	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8407	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8408printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8409if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8410then :
8411  printf %s "(cached) " >&6
8412else $as_nop
8413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h.  */
8415int i;
8416_ACEOF
8417if ac_fn_c_try_compile "$LINENO"
8418then :
8419  xorg_cv_cc_flag_unused_command_line_argument=yes
8420else $as_nop
8421  xorg_cv_cc_flag_unused_command_line_argument=no
8422fi
8423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8424fi
8425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8426printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8428	CFLAGS="$xorg_testset_save_CFLAGS"
8429fi
8430
8431found="no"
8432
8433	if test $found = "no" ; then
8434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436		fi
8437
8438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8440		fi
8441
8442		CFLAGS="$CFLAGS -Werror=trigraphs"
8443
8444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8445printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8446		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8447		if eval test \${$cacheid+y}
8448then :
8449  printf %s "(cached) " >&6
8450else $as_nop
8451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h.  */
8453int i;
8454int
8455main (void)
8456{
8457
8458  ;
8459  return 0;
8460}
8461_ACEOF
8462if ac_fn_c_try_link "$LINENO"
8463then :
8464  eval $cacheid=yes
8465else $as_nop
8466  eval $cacheid=no
8467fi
8468rm -f core conftest.err conftest.$ac_objext conftest.beam \
8469    conftest$ac_exeext conftest.$ac_ext
8470fi
8471
8472
8473		CFLAGS="$xorg_testset_save_CFLAGS"
8474
8475		eval supported=\$$cacheid
8476		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8477printf "%s\n" "$supported" >&6; }
8478		if test "$supported" = "yes" ; then
8479			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8480			found="yes"
8481		fi
8482	fi
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498xorg_testset_save_CFLAGS="$CFLAGS"
8499
8500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8503printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8504if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8505then :
8506  printf %s "(cached) " >&6
8507else $as_nop
8508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h.  */
8510int i;
8511_ACEOF
8512if ac_fn_c_try_compile "$LINENO"
8513then :
8514  xorg_cv_cc_flag_unknown_warning_option=yes
8515else $as_nop
8516  xorg_cv_cc_flag_unknown_warning_option=no
8517fi
8518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8519fi
8520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8523	CFLAGS="$xorg_testset_save_CFLAGS"
8524fi
8525
8526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8529	fi
8530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8533if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8534then :
8535  printf %s "(cached) " >&6
8536else $as_nop
8537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538/* end confdefs.h.  */
8539int i;
8540_ACEOF
8541if ac_fn_c_try_compile "$LINENO"
8542then :
8543  xorg_cv_cc_flag_unused_command_line_argument=yes
8544else $as_nop
8545  xorg_cv_cc_flag_unused_command_line_argument=no
8546fi
8547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8548fi
8549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8550printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8552	CFLAGS="$xorg_testset_save_CFLAGS"
8553fi
8554
8555found="no"
8556
8557	if test $found = "no" ; then
8558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8560		fi
8561
8562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8564		fi
8565
8566		CFLAGS="$CFLAGS -Werror=array-bounds"
8567
8568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8569printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8570		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8571		if eval test \${$cacheid+y}
8572then :
8573  printf %s "(cached) " >&6
8574else $as_nop
8575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576/* end confdefs.h.  */
8577int i;
8578int
8579main (void)
8580{
8581
8582  ;
8583  return 0;
8584}
8585_ACEOF
8586if ac_fn_c_try_link "$LINENO"
8587then :
8588  eval $cacheid=yes
8589else $as_nop
8590  eval $cacheid=no
8591fi
8592rm -f core conftest.err conftest.$ac_objext conftest.beam \
8593    conftest$ac_exeext conftest.$ac_ext
8594fi
8595
8596
8597		CFLAGS="$xorg_testset_save_CFLAGS"
8598
8599		eval supported=\$$cacheid
8600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8601printf "%s\n" "$supported" >&6; }
8602		if test "$supported" = "yes" ; then
8603			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8604			found="yes"
8605		fi
8606	fi
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622xorg_testset_save_CFLAGS="$CFLAGS"
8623
8624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8625	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8627printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8628if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8629then :
8630  printf %s "(cached) " >&6
8631else $as_nop
8632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h.  */
8634int i;
8635_ACEOF
8636if ac_fn_c_try_compile "$LINENO"
8637then :
8638  xorg_cv_cc_flag_unknown_warning_option=yes
8639else $as_nop
8640  xorg_cv_cc_flag_unknown_warning_option=no
8641fi
8642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8643fi
8644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8645printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8647	CFLAGS="$xorg_testset_save_CFLAGS"
8648fi
8649
8650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8653	fi
8654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8656printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8657if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8658then :
8659  printf %s "(cached) " >&6
8660else $as_nop
8661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662/* end confdefs.h.  */
8663int i;
8664_ACEOF
8665if ac_fn_c_try_compile "$LINENO"
8666then :
8667  xorg_cv_cc_flag_unused_command_line_argument=yes
8668else $as_nop
8669  xorg_cv_cc_flag_unused_command_line_argument=no
8670fi
8671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8672fi
8673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8675	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8676	CFLAGS="$xorg_testset_save_CFLAGS"
8677fi
8678
8679found="no"
8680
8681	if test $found = "no" ; then
8682		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8684		fi
8685
8686		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8688		fi
8689
8690		CFLAGS="$CFLAGS -Werror=write-strings"
8691
8692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8693printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8694		cacheid=xorg_cv_cc_flag__Werror_write_strings
8695		if eval test \${$cacheid+y}
8696then :
8697  printf %s "(cached) " >&6
8698else $as_nop
8699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700/* end confdefs.h.  */
8701int i;
8702int
8703main (void)
8704{
8705
8706  ;
8707  return 0;
8708}
8709_ACEOF
8710if ac_fn_c_try_link "$LINENO"
8711then :
8712  eval $cacheid=yes
8713else $as_nop
8714  eval $cacheid=no
8715fi
8716rm -f core conftest.err conftest.$ac_objext conftest.beam \
8717    conftest$ac_exeext conftest.$ac_ext
8718fi
8719
8720
8721		CFLAGS="$xorg_testset_save_CFLAGS"
8722
8723		eval supported=\$$cacheid
8724		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8725printf "%s\n" "$supported" >&6; }
8726		if test "$supported" = "yes" ; then
8727			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8728			found="yes"
8729		fi
8730	fi
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746xorg_testset_save_CFLAGS="$CFLAGS"
8747
8748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8749	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8751printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8752if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8753then :
8754  printf %s "(cached) " >&6
8755else $as_nop
8756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757/* end confdefs.h.  */
8758int i;
8759_ACEOF
8760if ac_fn_c_try_compile "$LINENO"
8761then :
8762  xorg_cv_cc_flag_unknown_warning_option=yes
8763else $as_nop
8764  xorg_cv_cc_flag_unknown_warning_option=no
8765fi
8766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8767fi
8768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8769printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8770	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8771	CFLAGS="$xorg_testset_save_CFLAGS"
8772fi
8773
8774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8775	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8776		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777	fi
8778	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8780printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8781if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8782then :
8783  printf %s "(cached) " >&6
8784else $as_nop
8785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786/* end confdefs.h.  */
8787int i;
8788_ACEOF
8789if ac_fn_c_try_compile "$LINENO"
8790then :
8791  xorg_cv_cc_flag_unused_command_line_argument=yes
8792else $as_nop
8793  xorg_cv_cc_flag_unused_command_line_argument=no
8794fi
8795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8796fi
8797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8800	CFLAGS="$xorg_testset_save_CFLAGS"
8801fi
8802
8803found="no"
8804
8805	if test $found = "no" ; then
8806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808		fi
8809
8810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8812		fi
8813
8814		CFLAGS="$CFLAGS -Werror=address"
8815
8816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8817printf %s "checking if $CC supports -Werror=address... " >&6; }
8818		cacheid=xorg_cv_cc_flag__Werror_address
8819		if eval test \${$cacheid+y}
8820then :
8821  printf %s "(cached) " >&6
8822else $as_nop
8823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824/* end confdefs.h.  */
8825int i;
8826int
8827main (void)
8828{
8829
8830  ;
8831  return 0;
8832}
8833_ACEOF
8834if ac_fn_c_try_link "$LINENO"
8835then :
8836  eval $cacheid=yes
8837else $as_nop
8838  eval $cacheid=no
8839fi
8840rm -f core conftest.err conftest.$ac_objext conftest.beam \
8841    conftest$ac_exeext conftest.$ac_ext
8842fi
8843
8844
8845		CFLAGS="$xorg_testset_save_CFLAGS"
8846
8847		eval supported=\$$cacheid
8848		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8849printf "%s\n" "$supported" >&6; }
8850		if test "$supported" = "yes" ; then
8851			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8852			found="yes"
8853		fi
8854	fi
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870xorg_testset_save_CFLAGS="$CFLAGS"
8871
8872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8873	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8875printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8876if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8877then :
8878  printf %s "(cached) " >&6
8879else $as_nop
8880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881/* end confdefs.h.  */
8882int i;
8883_ACEOF
8884if ac_fn_c_try_compile "$LINENO"
8885then :
8886  xorg_cv_cc_flag_unknown_warning_option=yes
8887else $as_nop
8888  xorg_cv_cc_flag_unknown_warning_option=no
8889fi
8890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8891fi
8892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8893printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8895	CFLAGS="$xorg_testset_save_CFLAGS"
8896fi
8897
8898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901	fi
8902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8904printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8905if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8906then :
8907  printf %s "(cached) " >&6
8908else $as_nop
8909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910/* end confdefs.h.  */
8911int i;
8912_ACEOF
8913if ac_fn_c_try_compile "$LINENO"
8914then :
8915  xorg_cv_cc_flag_unused_command_line_argument=yes
8916else $as_nop
8917  xorg_cv_cc_flag_unused_command_line_argument=no
8918fi
8919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8920fi
8921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8922printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8923	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8924	CFLAGS="$xorg_testset_save_CFLAGS"
8925fi
8926
8927found="no"
8928
8929	if test $found = "no" ; then
8930		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8931			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8932		fi
8933
8934		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8935			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8936		fi
8937
8938		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8939
8940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8941printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8942		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8943		if eval test \${$cacheid+y}
8944then :
8945  printf %s "(cached) " >&6
8946else $as_nop
8947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948/* end confdefs.h.  */
8949int i;
8950int
8951main (void)
8952{
8953
8954  ;
8955  return 0;
8956}
8957_ACEOF
8958if ac_fn_c_try_link "$LINENO"
8959then :
8960  eval $cacheid=yes
8961else $as_nop
8962  eval $cacheid=no
8963fi
8964rm -f core conftest.err conftest.$ac_objext conftest.beam \
8965    conftest$ac_exeext conftest.$ac_ext
8966fi
8967
8968
8969		CFLAGS="$xorg_testset_save_CFLAGS"
8970
8971		eval supported=\$$cacheid
8972		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8973printf "%s\n" "$supported" >&6; }
8974		if test "$supported" = "yes" ; then
8975			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8976			found="yes"
8977		fi
8978	fi
8979
8980	if test $found = "no" ; then
8981		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8982			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8983		fi
8984
8985		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8986			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8987		fi
8988
8989		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8990
8991		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8992printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8993		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8994		if eval test \${$cacheid+y}
8995then :
8996  printf %s "(cached) " >&6
8997else $as_nop
8998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h.  */
9000int i;
9001int
9002main (void)
9003{
9004
9005  ;
9006  return 0;
9007}
9008_ACEOF
9009if ac_fn_c_try_link "$LINENO"
9010then :
9011  eval $cacheid=yes
9012else $as_nop
9013  eval $cacheid=no
9014fi
9015rm -f core conftest.err conftest.$ac_objext conftest.beam \
9016    conftest$ac_exeext conftest.$ac_ext
9017fi
9018
9019
9020		CFLAGS="$xorg_testset_save_CFLAGS"
9021
9022		eval supported=\$$cacheid
9023		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9024printf "%s\n" "$supported" >&6; }
9025		if test "$supported" = "yes" ; then
9026			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9027			found="yes"
9028		fi
9029	fi
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045xorg_testset_save_CFLAGS="$CFLAGS"
9046
9047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9048	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9049	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9050printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9051if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9052then :
9053  printf %s "(cached) " >&6
9054else $as_nop
9055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056/* end confdefs.h.  */
9057int i;
9058_ACEOF
9059if ac_fn_c_try_compile "$LINENO"
9060then :
9061  xorg_cv_cc_flag_unknown_warning_option=yes
9062else $as_nop
9063  xorg_cv_cc_flag_unknown_warning_option=no
9064fi
9065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9066fi
9067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9068printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9069	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9070	CFLAGS="$xorg_testset_save_CFLAGS"
9071fi
9072
9073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9074	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9075		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076	fi
9077	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9078	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9079printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9080if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9081then :
9082  printf %s "(cached) " >&6
9083else $as_nop
9084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085/* end confdefs.h.  */
9086int i;
9087_ACEOF
9088if ac_fn_c_try_compile "$LINENO"
9089then :
9090  xorg_cv_cc_flag_unused_command_line_argument=yes
9091else $as_nop
9092  xorg_cv_cc_flag_unused_command_line_argument=no
9093fi
9094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9095fi
9096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9097printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9098	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9099	CFLAGS="$xorg_testset_save_CFLAGS"
9100fi
9101
9102found="no"
9103
9104	if test $found = "no" ; then
9105		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9106			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9107		fi
9108
9109		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9110			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9111		fi
9112
9113		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9114
9115		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9116printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9117		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9118		if eval test \${$cacheid+y}
9119then :
9120  printf %s "(cached) " >&6
9121else $as_nop
9122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123/* end confdefs.h.  */
9124int i;
9125int
9126main (void)
9127{
9128
9129  ;
9130  return 0;
9131}
9132_ACEOF
9133if ac_fn_c_try_link "$LINENO"
9134then :
9135  eval $cacheid=yes
9136else $as_nop
9137  eval $cacheid=no
9138fi
9139rm -f core conftest.err conftest.$ac_objext conftest.beam \
9140    conftest$ac_exeext conftest.$ac_ext
9141fi
9142
9143
9144		CFLAGS="$xorg_testset_save_CFLAGS"
9145
9146		eval supported=\$$cacheid
9147		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9148printf "%s\n" "$supported" >&6; }
9149		if test "$supported" = "yes" ; then
9150			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9151			found="yes"
9152		fi
9153	fi
9154
9155 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9156else
9157{ 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
9158printf "%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;}
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172xorg_testset_save_CFLAGS="$CFLAGS"
9173
9174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9178if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9179then :
9180  printf %s "(cached) " >&6
9181else $as_nop
9182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183/* end confdefs.h.  */
9184int i;
9185_ACEOF
9186if ac_fn_c_try_compile "$LINENO"
9187then :
9188  xorg_cv_cc_flag_unknown_warning_option=yes
9189else $as_nop
9190  xorg_cv_cc_flag_unknown_warning_option=no
9191fi
9192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9193fi
9194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9197	CFLAGS="$xorg_testset_save_CFLAGS"
9198fi
9199
9200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9203	fi
9204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9207if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9208then :
9209  printf %s "(cached) " >&6
9210else $as_nop
9211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212/* end confdefs.h.  */
9213int i;
9214_ACEOF
9215if ac_fn_c_try_compile "$LINENO"
9216then :
9217  xorg_cv_cc_flag_unused_command_line_argument=yes
9218else $as_nop
9219  xorg_cv_cc_flag_unused_command_line_argument=no
9220fi
9221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9222fi
9223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9226	CFLAGS="$xorg_testset_save_CFLAGS"
9227fi
9228
9229found="no"
9230
9231	if test $found = "no" ; then
9232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234		fi
9235
9236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238		fi
9239
9240		CFLAGS="$CFLAGS -Wimplicit"
9241
9242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9243printf %s "checking if $CC supports -Wimplicit... " >&6; }
9244		cacheid=xorg_cv_cc_flag__Wimplicit
9245		if eval test \${$cacheid+y}
9246then :
9247  printf %s "(cached) " >&6
9248else $as_nop
9249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251int i;
9252int
9253main (void)
9254{
9255
9256  ;
9257  return 0;
9258}
9259_ACEOF
9260if ac_fn_c_try_link "$LINENO"
9261then :
9262  eval $cacheid=yes
9263else $as_nop
9264  eval $cacheid=no
9265fi
9266rm -f core conftest.err conftest.$ac_objext conftest.beam \
9267    conftest$ac_exeext conftest.$ac_ext
9268fi
9269
9270
9271		CFLAGS="$xorg_testset_save_CFLAGS"
9272
9273		eval supported=\$$cacheid
9274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9275printf "%s\n" "$supported" >&6; }
9276		if test "$supported" = "yes" ; then
9277			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9278			found="yes"
9279		fi
9280	fi
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296xorg_testset_save_CFLAGS="$CFLAGS"
9297
9298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9302if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9303then :
9304  printf %s "(cached) " >&6
9305else $as_nop
9306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307/* end confdefs.h.  */
9308int i;
9309_ACEOF
9310if ac_fn_c_try_compile "$LINENO"
9311then :
9312  xorg_cv_cc_flag_unknown_warning_option=yes
9313else $as_nop
9314  xorg_cv_cc_flag_unknown_warning_option=no
9315fi
9316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9317fi
9318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9321	CFLAGS="$xorg_testset_save_CFLAGS"
9322fi
9323
9324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327	fi
9328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9331if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9332then :
9333  printf %s "(cached) " >&6
9334else $as_nop
9335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336/* end confdefs.h.  */
9337int i;
9338_ACEOF
9339if ac_fn_c_try_compile "$LINENO"
9340then :
9341  xorg_cv_cc_flag_unused_command_line_argument=yes
9342else $as_nop
9343  xorg_cv_cc_flag_unused_command_line_argument=no
9344fi
9345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9346fi
9347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9350	CFLAGS="$xorg_testset_save_CFLAGS"
9351fi
9352
9353found="no"
9354
9355	if test $found = "no" ; then
9356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9358		fi
9359
9360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9362		fi
9363
9364		CFLAGS="$CFLAGS -Wnonnull"
9365
9366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9367printf %s "checking if $CC supports -Wnonnull... " >&6; }
9368		cacheid=xorg_cv_cc_flag__Wnonnull
9369		if eval test \${$cacheid+y}
9370then :
9371  printf %s "(cached) " >&6
9372else $as_nop
9373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374/* end confdefs.h.  */
9375int i;
9376int
9377main (void)
9378{
9379
9380  ;
9381  return 0;
9382}
9383_ACEOF
9384if ac_fn_c_try_link "$LINENO"
9385then :
9386  eval $cacheid=yes
9387else $as_nop
9388  eval $cacheid=no
9389fi
9390rm -f core conftest.err conftest.$ac_objext conftest.beam \
9391    conftest$ac_exeext conftest.$ac_ext
9392fi
9393
9394
9395		CFLAGS="$xorg_testset_save_CFLAGS"
9396
9397		eval supported=\$$cacheid
9398		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9399printf "%s\n" "$supported" >&6; }
9400		if test "$supported" = "yes" ; then
9401			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9402			found="yes"
9403		fi
9404	fi
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420xorg_testset_save_CFLAGS="$CFLAGS"
9421
9422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9423	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9426if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9427then :
9428  printf %s "(cached) " >&6
9429else $as_nop
9430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431/* end confdefs.h.  */
9432int i;
9433_ACEOF
9434if ac_fn_c_try_compile "$LINENO"
9435then :
9436  xorg_cv_cc_flag_unknown_warning_option=yes
9437else $as_nop
9438  xorg_cv_cc_flag_unknown_warning_option=no
9439fi
9440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9441fi
9442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9444	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9445	CFLAGS="$xorg_testset_save_CFLAGS"
9446fi
9447
9448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9449	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9451	fi
9452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9455if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9456then :
9457  printf %s "(cached) " >&6
9458else $as_nop
9459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460/* end confdefs.h.  */
9461int i;
9462_ACEOF
9463if ac_fn_c_try_compile "$LINENO"
9464then :
9465  xorg_cv_cc_flag_unused_command_line_argument=yes
9466else $as_nop
9467  xorg_cv_cc_flag_unused_command_line_argument=no
9468fi
9469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9470fi
9471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9474	CFLAGS="$xorg_testset_save_CFLAGS"
9475fi
9476
9477found="no"
9478
9479	if test $found = "no" ; then
9480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9482		fi
9483
9484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9486		fi
9487
9488		CFLAGS="$CFLAGS -Winit-self"
9489
9490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9491printf %s "checking if $CC supports -Winit-self... " >&6; }
9492		cacheid=xorg_cv_cc_flag__Winit_self
9493		if eval test \${$cacheid+y}
9494then :
9495  printf %s "(cached) " >&6
9496else $as_nop
9497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h.  */
9499int i;
9500int
9501main (void)
9502{
9503
9504  ;
9505  return 0;
9506}
9507_ACEOF
9508if ac_fn_c_try_link "$LINENO"
9509then :
9510  eval $cacheid=yes
9511else $as_nop
9512  eval $cacheid=no
9513fi
9514rm -f core conftest.err conftest.$ac_objext conftest.beam \
9515    conftest$ac_exeext conftest.$ac_ext
9516fi
9517
9518
9519		CFLAGS="$xorg_testset_save_CFLAGS"
9520
9521		eval supported=\$$cacheid
9522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9523printf "%s\n" "$supported" >&6; }
9524		if test "$supported" = "yes" ; then
9525			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9526			found="yes"
9527		fi
9528	fi
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544xorg_testset_save_CFLAGS="$CFLAGS"
9545
9546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9547	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9549printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9550if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9551then :
9552  printf %s "(cached) " >&6
9553else $as_nop
9554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555/* end confdefs.h.  */
9556int i;
9557_ACEOF
9558if ac_fn_c_try_compile "$LINENO"
9559then :
9560  xorg_cv_cc_flag_unknown_warning_option=yes
9561else $as_nop
9562  xorg_cv_cc_flag_unknown_warning_option=no
9563fi
9564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9565fi
9566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9567printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9569	CFLAGS="$xorg_testset_save_CFLAGS"
9570fi
9571
9572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9575	fi
9576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9578printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9579if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9580then :
9581  printf %s "(cached) " >&6
9582else $as_nop
9583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584/* end confdefs.h.  */
9585int i;
9586_ACEOF
9587if ac_fn_c_try_compile "$LINENO"
9588then :
9589  xorg_cv_cc_flag_unused_command_line_argument=yes
9590else $as_nop
9591  xorg_cv_cc_flag_unused_command_line_argument=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9594fi
9595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9598	CFLAGS="$xorg_testset_save_CFLAGS"
9599fi
9600
9601found="no"
9602
9603	if test $found = "no" ; then
9604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606		fi
9607
9608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610		fi
9611
9612		CFLAGS="$CFLAGS -Wmain"
9613
9614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9615printf %s "checking if $CC supports -Wmain... " >&6; }
9616		cacheid=xorg_cv_cc_flag__Wmain
9617		if eval test \${$cacheid+y}
9618then :
9619  printf %s "(cached) " >&6
9620else $as_nop
9621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h.  */
9623int i;
9624int
9625main (void)
9626{
9627
9628  ;
9629  return 0;
9630}
9631_ACEOF
9632if ac_fn_c_try_link "$LINENO"
9633then :
9634  eval $cacheid=yes
9635else $as_nop
9636  eval $cacheid=no
9637fi
9638rm -f core conftest.err conftest.$ac_objext conftest.beam \
9639    conftest$ac_exeext conftest.$ac_ext
9640fi
9641
9642
9643		CFLAGS="$xorg_testset_save_CFLAGS"
9644
9645		eval supported=\$$cacheid
9646		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9647printf "%s\n" "$supported" >&6; }
9648		if test "$supported" = "yes" ; then
9649			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9650			found="yes"
9651		fi
9652	fi
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668xorg_testset_save_CFLAGS="$CFLAGS"
9669
9670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9674if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9675then :
9676  printf %s "(cached) " >&6
9677else $as_nop
9678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679/* end confdefs.h.  */
9680int i;
9681_ACEOF
9682if ac_fn_c_try_compile "$LINENO"
9683then :
9684  xorg_cv_cc_flag_unknown_warning_option=yes
9685else $as_nop
9686  xorg_cv_cc_flag_unknown_warning_option=no
9687fi
9688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9689fi
9690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9693	CFLAGS="$xorg_testset_save_CFLAGS"
9694fi
9695
9696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9699	fi
9700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9703if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9704then :
9705  printf %s "(cached) " >&6
9706else $as_nop
9707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h.  */
9709int i;
9710_ACEOF
9711if ac_fn_c_try_compile "$LINENO"
9712then :
9713  xorg_cv_cc_flag_unused_command_line_argument=yes
9714else $as_nop
9715  xorg_cv_cc_flag_unused_command_line_argument=no
9716fi
9717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9718fi
9719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9722	CFLAGS="$xorg_testset_save_CFLAGS"
9723fi
9724
9725found="no"
9726
9727	if test $found = "no" ; then
9728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730		fi
9731
9732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9734		fi
9735
9736		CFLAGS="$CFLAGS -Wmissing-braces"
9737
9738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9739printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9740		cacheid=xorg_cv_cc_flag__Wmissing_braces
9741		if eval test \${$cacheid+y}
9742then :
9743  printf %s "(cached) " >&6
9744else $as_nop
9745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746/* end confdefs.h.  */
9747int i;
9748int
9749main (void)
9750{
9751
9752  ;
9753  return 0;
9754}
9755_ACEOF
9756if ac_fn_c_try_link "$LINENO"
9757then :
9758  eval $cacheid=yes
9759else $as_nop
9760  eval $cacheid=no
9761fi
9762rm -f core conftest.err conftest.$ac_objext conftest.beam \
9763    conftest$ac_exeext conftest.$ac_ext
9764fi
9765
9766
9767		CFLAGS="$xorg_testset_save_CFLAGS"
9768
9769		eval supported=\$$cacheid
9770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9771printf "%s\n" "$supported" >&6; }
9772		if test "$supported" = "yes" ; then
9773			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9774			found="yes"
9775		fi
9776	fi
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792xorg_testset_save_CFLAGS="$CFLAGS"
9793
9794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9795	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9797printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9798if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9799then :
9800  printf %s "(cached) " >&6
9801else $as_nop
9802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h.  */
9804int i;
9805_ACEOF
9806if ac_fn_c_try_compile "$LINENO"
9807then :
9808  xorg_cv_cc_flag_unknown_warning_option=yes
9809else $as_nop
9810  xorg_cv_cc_flag_unknown_warning_option=no
9811fi
9812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9813fi
9814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9816	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9817	CFLAGS="$xorg_testset_save_CFLAGS"
9818fi
9819
9820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9821	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9822		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9823	fi
9824	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9827if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9828then :
9829  printf %s "(cached) " >&6
9830else $as_nop
9831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833int i;
9834_ACEOF
9835if ac_fn_c_try_compile "$LINENO"
9836then :
9837  xorg_cv_cc_flag_unused_command_line_argument=yes
9838else $as_nop
9839  xorg_cv_cc_flag_unused_command_line_argument=no
9840fi
9841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9842fi
9843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9844printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9846	CFLAGS="$xorg_testset_save_CFLAGS"
9847fi
9848
9849found="no"
9850
9851	if test $found = "no" ; then
9852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854		fi
9855
9856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9858		fi
9859
9860		CFLAGS="$CFLAGS -Wsequence-point"
9861
9862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9863printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9864		cacheid=xorg_cv_cc_flag__Wsequence_point
9865		if eval test \${$cacheid+y}
9866then :
9867  printf %s "(cached) " >&6
9868else $as_nop
9869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870/* end confdefs.h.  */
9871int i;
9872int
9873main (void)
9874{
9875
9876  ;
9877  return 0;
9878}
9879_ACEOF
9880if ac_fn_c_try_link "$LINENO"
9881then :
9882  eval $cacheid=yes
9883else $as_nop
9884  eval $cacheid=no
9885fi
9886rm -f core conftest.err conftest.$ac_objext conftest.beam \
9887    conftest$ac_exeext conftest.$ac_ext
9888fi
9889
9890
9891		CFLAGS="$xorg_testset_save_CFLAGS"
9892
9893		eval supported=\$$cacheid
9894		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9895printf "%s\n" "$supported" >&6; }
9896		if test "$supported" = "yes" ; then
9897			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9898			found="yes"
9899		fi
9900	fi
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916xorg_testset_save_CFLAGS="$CFLAGS"
9917
9918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9919	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9922if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9923then :
9924  printf %s "(cached) " >&6
9925else $as_nop
9926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h.  */
9928int i;
9929_ACEOF
9930if ac_fn_c_try_compile "$LINENO"
9931then :
9932  xorg_cv_cc_flag_unknown_warning_option=yes
9933else $as_nop
9934  xorg_cv_cc_flag_unknown_warning_option=no
9935fi
9936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9937fi
9938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9939printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9940	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9941	CFLAGS="$xorg_testset_save_CFLAGS"
9942fi
9943
9944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9945	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9946		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9947	fi
9948	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9949	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9950printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9951if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9952then :
9953  printf %s "(cached) " >&6
9954else $as_nop
9955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956/* end confdefs.h.  */
9957int i;
9958_ACEOF
9959if ac_fn_c_try_compile "$LINENO"
9960then :
9961  xorg_cv_cc_flag_unused_command_line_argument=yes
9962else $as_nop
9963  xorg_cv_cc_flag_unused_command_line_argument=no
9964fi
9965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9966fi
9967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9968printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9969	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9970	CFLAGS="$xorg_testset_save_CFLAGS"
9971fi
9972
9973found="no"
9974
9975	if test $found = "no" ; then
9976		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9977			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978		fi
9979
9980		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9981			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9982		fi
9983
9984		CFLAGS="$CFLAGS -Wreturn-type"
9985
9986		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9987printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9988		cacheid=xorg_cv_cc_flag__Wreturn_type
9989		if eval test \${$cacheid+y}
9990then :
9991  printf %s "(cached) " >&6
9992else $as_nop
9993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h.  */
9995int i;
9996int
9997main (void)
9998{
9999
10000  ;
10001  return 0;
10002}
10003_ACEOF
10004if ac_fn_c_try_link "$LINENO"
10005then :
10006  eval $cacheid=yes
10007else $as_nop
10008  eval $cacheid=no
10009fi
10010rm -f core conftest.err conftest.$ac_objext conftest.beam \
10011    conftest$ac_exeext conftest.$ac_ext
10012fi
10013
10014
10015		CFLAGS="$xorg_testset_save_CFLAGS"
10016
10017		eval supported=\$$cacheid
10018		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10019printf "%s\n" "$supported" >&6; }
10020		if test "$supported" = "yes" ; then
10021			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10022			found="yes"
10023		fi
10024	fi
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040xorg_testset_save_CFLAGS="$CFLAGS"
10041
10042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10043	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10044	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10045printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10046if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10047then :
10048  printf %s "(cached) " >&6
10049else $as_nop
10050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051/* end confdefs.h.  */
10052int i;
10053_ACEOF
10054if ac_fn_c_try_compile "$LINENO"
10055then :
10056  xorg_cv_cc_flag_unknown_warning_option=yes
10057else $as_nop
10058  xorg_cv_cc_flag_unknown_warning_option=no
10059fi
10060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10061fi
10062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10063printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10064	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10065	CFLAGS="$xorg_testset_save_CFLAGS"
10066fi
10067
10068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10069	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10070		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10071	fi
10072	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10073	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10074printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10075if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10076then :
10077  printf %s "(cached) " >&6
10078else $as_nop
10079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080/* end confdefs.h.  */
10081int i;
10082_ACEOF
10083if ac_fn_c_try_compile "$LINENO"
10084then :
10085  xorg_cv_cc_flag_unused_command_line_argument=yes
10086else $as_nop
10087  xorg_cv_cc_flag_unused_command_line_argument=no
10088fi
10089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10090fi
10091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10092printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10093	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10094	CFLAGS="$xorg_testset_save_CFLAGS"
10095fi
10096
10097found="no"
10098
10099	if test $found = "no" ; then
10100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10102		fi
10103
10104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10106		fi
10107
10108		CFLAGS="$CFLAGS -Wtrigraphs"
10109
10110		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10111printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10112		cacheid=xorg_cv_cc_flag__Wtrigraphs
10113		if eval test \${$cacheid+y}
10114then :
10115  printf %s "(cached) " >&6
10116else $as_nop
10117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h.  */
10119int i;
10120int
10121main (void)
10122{
10123
10124  ;
10125  return 0;
10126}
10127_ACEOF
10128if ac_fn_c_try_link "$LINENO"
10129then :
10130  eval $cacheid=yes
10131else $as_nop
10132  eval $cacheid=no
10133fi
10134rm -f core conftest.err conftest.$ac_objext conftest.beam \
10135    conftest$ac_exeext conftest.$ac_ext
10136fi
10137
10138
10139		CFLAGS="$xorg_testset_save_CFLAGS"
10140
10141		eval supported=\$$cacheid
10142		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10143printf "%s\n" "$supported" >&6; }
10144		if test "$supported" = "yes" ; then
10145			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10146			found="yes"
10147		fi
10148	fi
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164xorg_testset_save_CFLAGS="$CFLAGS"
10165
10166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10167	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10169printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10170if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10171then :
10172  printf %s "(cached) " >&6
10173else $as_nop
10174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175/* end confdefs.h.  */
10176int i;
10177_ACEOF
10178if ac_fn_c_try_compile "$LINENO"
10179then :
10180  xorg_cv_cc_flag_unknown_warning_option=yes
10181else $as_nop
10182  xorg_cv_cc_flag_unknown_warning_option=no
10183fi
10184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10185fi
10186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10188	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10189	CFLAGS="$xorg_testset_save_CFLAGS"
10190fi
10191
10192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10193	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10195	fi
10196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10199if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10200then :
10201  printf %s "(cached) " >&6
10202else $as_nop
10203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204/* end confdefs.h.  */
10205int i;
10206_ACEOF
10207if ac_fn_c_try_compile "$LINENO"
10208then :
10209  xorg_cv_cc_flag_unused_command_line_argument=yes
10210else $as_nop
10211  xorg_cv_cc_flag_unused_command_line_argument=no
10212fi
10213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10214fi
10215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10216printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10218	CFLAGS="$xorg_testset_save_CFLAGS"
10219fi
10220
10221found="no"
10222
10223	if test $found = "no" ; then
10224		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226		fi
10227
10228		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10230		fi
10231
10232		CFLAGS="$CFLAGS -Warray-bounds"
10233
10234		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10235printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10236		cacheid=xorg_cv_cc_flag__Warray_bounds
10237		if eval test \${$cacheid+y}
10238then :
10239  printf %s "(cached) " >&6
10240else $as_nop
10241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h.  */
10243int i;
10244int
10245main (void)
10246{
10247
10248  ;
10249  return 0;
10250}
10251_ACEOF
10252if ac_fn_c_try_link "$LINENO"
10253then :
10254  eval $cacheid=yes
10255else $as_nop
10256  eval $cacheid=no
10257fi
10258rm -f core conftest.err conftest.$ac_objext conftest.beam \
10259    conftest$ac_exeext conftest.$ac_ext
10260fi
10261
10262
10263		CFLAGS="$xorg_testset_save_CFLAGS"
10264
10265		eval supported=\$$cacheid
10266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10267printf "%s\n" "$supported" >&6; }
10268		if test "$supported" = "yes" ; then
10269			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10270			found="yes"
10271		fi
10272	fi
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288xorg_testset_save_CFLAGS="$CFLAGS"
10289
10290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10292	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10293printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10294if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10295then :
10296  printf %s "(cached) " >&6
10297else $as_nop
10298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299/* end confdefs.h.  */
10300int i;
10301_ACEOF
10302if ac_fn_c_try_compile "$LINENO"
10303then :
10304  xorg_cv_cc_flag_unknown_warning_option=yes
10305else $as_nop
10306  xorg_cv_cc_flag_unknown_warning_option=no
10307fi
10308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10309fi
10310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10311printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10313	CFLAGS="$xorg_testset_save_CFLAGS"
10314fi
10315
10316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10319	fi
10320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10321	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10322printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10323if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10324then :
10325  printf %s "(cached) " >&6
10326else $as_nop
10327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328/* end confdefs.h.  */
10329int i;
10330_ACEOF
10331if ac_fn_c_try_compile "$LINENO"
10332then :
10333  xorg_cv_cc_flag_unused_command_line_argument=yes
10334else $as_nop
10335  xorg_cv_cc_flag_unused_command_line_argument=no
10336fi
10337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10338fi
10339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10340printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10342	CFLAGS="$xorg_testset_save_CFLAGS"
10343fi
10344
10345found="no"
10346
10347	if test $found = "no" ; then
10348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10350		fi
10351
10352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10354		fi
10355
10356		CFLAGS="$CFLAGS -Wwrite-strings"
10357
10358		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10359printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10360		cacheid=xorg_cv_cc_flag__Wwrite_strings
10361		if eval test \${$cacheid+y}
10362then :
10363  printf %s "(cached) " >&6
10364else $as_nop
10365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366/* end confdefs.h.  */
10367int i;
10368int
10369main (void)
10370{
10371
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376if ac_fn_c_try_link "$LINENO"
10377then :
10378  eval $cacheid=yes
10379else $as_nop
10380  eval $cacheid=no
10381fi
10382rm -f core conftest.err conftest.$ac_objext conftest.beam \
10383    conftest$ac_exeext conftest.$ac_ext
10384fi
10385
10386
10387		CFLAGS="$xorg_testset_save_CFLAGS"
10388
10389		eval supported=\$$cacheid
10390		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10391printf "%s\n" "$supported" >&6; }
10392		if test "$supported" = "yes" ; then
10393			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10394			found="yes"
10395		fi
10396	fi
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412xorg_testset_save_CFLAGS="$CFLAGS"
10413
10414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10417printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10418if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10419then :
10420  printf %s "(cached) " >&6
10421else $as_nop
10422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423/* end confdefs.h.  */
10424int i;
10425_ACEOF
10426if ac_fn_c_try_compile "$LINENO"
10427then :
10428  xorg_cv_cc_flag_unknown_warning_option=yes
10429else $as_nop
10430  xorg_cv_cc_flag_unknown_warning_option=no
10431fi
10432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10433fi
10434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10435printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10437	CFLAGS="$xorg_testset_save_CFLAGS"
10438fi
10439
10440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10443	fi
10444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10446printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10447if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10448then :
10449  printf %s "(cached) " >&6
10450else $as_nop
10451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452/* end confdefs.h.  */
10453int i;
10454_ACEOF
10455if ac_fn_c_try_compile "$LINENO"
10456then :
10457  xorg_cv_cc_flag_unused_command_line_argument=yes
10458else $as_nop
10459  xorg_cv_cc_flag_unused_command_line_argument=no
10460fi
10461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10462fi
10463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10464printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10465	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10466	CFLAGS="$xorg_testset_save_CFLAGS"
10467fi
10468
10469found="no"
10470
10471	if test $found = "no" ; then
10472		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10473			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10474		fi
10475
10476		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10477			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10478		fi
10479
10480		CFLAGS="$CFLAGS -Waddress"
10481
10482		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10483printf %s "checking if $CC supports -Waddress... " >&6; }
10484		cacheid=xorg_cv_cc_flag__Waddress
10485		if eval test \${$cacheid+y}
10486then :
10487  printf %s "(cached) " >&6
10488else $as_nop
10489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490/* end confdefs.h.  */
10491int i;
10492int
10493main (void)
10494{
10495
10496  ;
10497  return 0;
10498}
10499_ACEOF
10500if ac_fn_c_try_link "$LINENO"
10501then :
10502  eval $cacheid=yes
10503else $as_nop
10504  eval $cacheid=no
10505fi
10506rm -f core conftest.err conftest.$ac_objext conftest.beam \
10507    conftest$ac_exeext conftest.$ac_ext
10508fi
10509
10510
10511		CFLAGS="$xorg_testset_save_CFLAGS"
10512
10513		eval supported=\$$cacheid
10514		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10515printf "%s\n" "$supported" >&6; }
10516		if test "$supported" = "yes" ; then
10517			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10518			found="yes"
10519		fi
10520	fi
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536xorg_testset_save_CFLAGS="$CFLAGS"
10537
10538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10540	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10541printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10542if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10543then :
10544  printf %s "(cached) " >&6
10545else $as_nop
10546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547/* end confdefs.h.  */
10548int i;
10549_ACEOF
10550if ac_fn_c_try_compile "$LINENO"
10551then :
10552  xorg_cv_cc_flag_unknown_warning_option=yes
10553else $as_nop
10554  xorg_cv_cc_flag_unknown_warning_option=no
10555fi
10556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10557fi
10558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10559printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10560	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10561	CFLAGS="$xorg_testset_save_CFLAGS"
10562fi
10563
10564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10565	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10566		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10567	fi
10568	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10570printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10571if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10572then :
10573  printf %s "(cached) " >&6
10574else $as_nop
10575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576/* end confdefs.h.  */
10577int i;
10578_ACEOF
10579if ac_fn_c_try_compile "$LINENO"
10580then :
10581  xorg_cv_cc_flag_unused_command_line_argument=yes
10582else $as_nop
10583  xorg_cv_cc_flag_unused_command_line_argument=no
10584fi
10585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10586fi
10587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10588printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10589	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10590	CFLAGS="$xorg_testset_save_CFLAGS"
10591fi
10592
10593found="no"
10594
10595	if test $found = "no" ; then
10596		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10597			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10598		fi
10599
10600		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10601			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10602		fi
10603
10604		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10605
10606		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10607printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10608		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10609		if eval test \${$cacheid+y}
10610then :
10611  printf %s "(cached) " >&6
10612else $as_nop
10613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614/* end confdefs.h.  */
10615int i;
10616int
10617main (void)
10618{
10619
10620  ;
10621  return 0;
10622}
10623_ACEOF
10624if ac_fn_c_try_link "$LINENO"
10625then :
10626  eval $cacheid=yes
10627else $as_nop
10628  eval $cacheid=no
10629fi
10630rm -f core conftest.err conftest.$ac_objext conftest.beam \
10631    conftest$ac_exeext conftest.$ac_ext
10632fi
10633
10634
10635		CFLAGS="$xorg_testset_save_CFLAGS"
10636
10637		eval supported=\$$cacheid
10638		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10639printf "%s\n" "$supported" >&6; }
10640		if test "$supported" = "yes" ; then
10641			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10642			found="yes"
10643		fi
10644	fi
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660xorg_testset_save_CFLAGS="$CFLAGS"
10661
10662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10663	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10664	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10666if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10667then :
10668  printf %s "(cached) " >&6
10669else $as_nop
10670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671/* end confdefs.h.  */
10672int i;
10673_ACEOF
10674if ac_fn_c_try_compile "$LINENO"
10675then :
10676  xorg_cv_cc_flag_unknown_warning_option=yes
10677else $as_nop
10678  xorg_cv_cc_flag_unknown_warning_option=no
10679fi
10680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10681fi
10682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10683printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10684	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10685	CFLAGS="$xorg_testset_save_CFLAGS"
10686fi
10687
10688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10689	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10690		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10691	fi
10692	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10693	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10694printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10695if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10696then :
10697  printf %s "(cached) " >&6
10698else $as_nop
10699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700/* end confdefs.h.  */
10701int i;
10702_ACEOF
10703if ac_fn_c_try_compile "$LINENO"
10704then :
10705  xorg_cv_cc_flag_unused_command_line_argument=yes
10706else $as_nop
10707  xorg_cv_cc_flag_unused_command_line_argument=no
10708fi
10709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10710fi
10711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10714	CFLAGS="$xorg_testset_save_CFLAGS"
10715fi
10716
10717found="no"
10718
10719	if test $found = "no" ; then
10720		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10722		fi
10723
10724		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10726		fi
10727
10728		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10729
10730		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10731printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10732		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10733		if eval test \${$cacheid+y}
10734then :
10735  printf %s "(cached) " >&6
10736else $as_nop
10737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738/* end confdefs.h.  */
10739int i;
10740int
10741main (void)
10742{
10743
10744  ;
10745  return 0;
10746}
10747_ACEOF
10748if ac_fn_c_try_link "$LINENO"
10749then :
10750  eval $cacheid=yes
10751else $as_nop
10752  eval $cacheid=no
10753fi
10754rm -f core conftest.err conftest.$ac_objext conftest.beam \
10755    conftest$ac_exeext conftest.$ac_ext
10756fi
10757
10758
10759		CFLAGS="$xorg_testset_save_CFLAGS"
10760
10761		eval supported=\$$cacheid
10762		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10763printf "%s\n" "$supported" >&6; }
10764		if test "$supported" = "yes" ; then
10765			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10766			found="yes"
10767		fi
10768	fi
10769
10770
10771fi
10772
10773
10774
10775
10776
10777
10778
10779		CWARNFLAGS="$BASE_CFLAGS"
10780		if  test "x$GCC" = xyes ; then
10781		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10782		fi
10783
10784
10785
10786
10787
10788
10789
10790
10791# Check whether --enable-strict-compilation was given.
10792if test ${enable_strict_compilation+y}
10793then :
10794  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10795else $as_nop
10796  STRICT_COMPILE=no
10797fi
10798
10799
10800
10801
10802
10803
10804STRICT_CFLAGS=""
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818xorg_testset_save_CFLAGS="$CFLAGS"
10819
10820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10821	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10822	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10823printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10824if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10825then :
10826  printf %s "(cached) " >&6
10827else $as_nop
10828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829/* end confdefs.h.  */
10830int i;
10831_ACEOF
10832if ac_fn_c_try_compile "$LINENO"
10833then :
10834  xorg_cv_cc_flag_unknown_warning_option=yes
10835else $as_nop
10836  xorg_cv_cc_flag_unknown_warning_option=no
10837fi
10838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10839fi
10840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10841printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10842	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10843	CFLAGS="$xorg_testset_save_CFLAGS"
10844fi
10845
10846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10847	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10848		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10849	fi
10850	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10852printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10853if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10854then :
10855  printf %s "(cached) " >&6
10856else $as_nop
10857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858/* end confdefs.h.  */
10859int i;
10860_ACEOF
10861if ac_fn_c_try_compile "$LINENO"
10862then :
10863  xorg_cv_cc_flag_unused_command_line_argument=yes
10864else $as_nop
10865  xorg_cv_cc_flag_unused_command_line_argument=no
10866fi
10867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10868fi
10869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10870printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10872	CFLAGS="$xorg_testset_save_CFLAGS"
10873fi
10874
10875found="no"
10876
10877	if test $found = "no" ; then
10878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10880		fi
10881
10882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10884		fi
10885
10886		CFLAGS="$CFLAGS -pedantic"
10887
10888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10889printf %s "checking if $CC supports -pedantic... " >&6; }
10890		cacheid=xorg_cv_cc_flag__pedantic
10891		if eval test \${$cacheid+y}
10892then :
10893  printf %s "(cached) " >&6
10894else $as_nop
10895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896/* end confdefs.h.  */
10897int i;
10898int
10899main (void)
10900{
10901
10902  ;
10903  return 0;
10904}
10905_ACEOF
10906if ac_fn_c_try_link "$LINENO"
10907then :
10908  eval $cacheid=yes
10909else $as_nop
10910  eval $cacheid=no
10911fi
10912rm -f core conftest.err conftest.$ac_objext conftest.beam \
10913    conftest$ac_exeext conftest.$ac_ext
10914fi
10915
10916
10917		CFLAGS="$xorg_testset_save_CFLAGS"
10918
10919		eval supported=\$$cacheid
10920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10921printf "%s\n" "$supported" >&6; }
10922		if test "$supported" = "yes" ; then
10923			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10924			found="yes"
10925		fi
10926	fi
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942xorg_testset_save_CFLAGS="$CFLAGS"
10943
10944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10946	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10948if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10949then :
10950  printf %s "(cached) " >&6
10951else $as_nop
10952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953/* end confdefs.h.  */
10954int i;
10955_ACEOF
10956if ac_fn_c_try_compile "$LINENO"
10957then :
10958  xorg_cv_cc_flag_unknown_warning_option=yes
10959else $as_nop
10960  xorg_cv_cc_flag_unknown_warning_option=no
10961fi
10962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10963fi
10964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10965printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10967	CFLAGS="$xorg_testset_save_CFLAGS"
10968fi
10969
10970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10973	fi
10974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10975	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10976printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10977if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10978then :
10979  printf %s "(cached) " >&6
10980else $as_nop
10981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982/* end confdefs.h.  */
10983int i;
10984_ACEOF
10985if ac_fn_c_try_compile "$LINENO"
10986then :
10987  xorg_cv_cc_flag_unused_command_line_argument=yes
10988else $as_nop
10989  xorg_cv_cc_flag_unused_command_line_argument=no
10990fi
10991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10992fi
10993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10994printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10995	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10996	CFLAGS="$xorg_testset_save_CFLAGS"
10997fi
10998
10999found="no"
11000
11001	if test $found = "no" ; then
11002		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11003			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11004		fi
11005
11006		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11007			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11008		fi
11009
11010		CFLAGS="$CFLAGS -Werror"
11011
11012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11013printf %s "checking if $CC supports -Werror... " >&6; }
11014		cacheid=xorg_cv_cc_flag__Werror
11015		if eval test \${$cacheid+y}
11016then :
11017  printf %s "(cached) " >&6
11018else $as_nop
11019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020/* end confdefs.h.  */
11021int i;
11022int
11023main (void)
11024{
11025
11026  ;
11027  return 0;
11028}
11029_ACEOF
11030if ac_fn_c_try_link "$LINENO"
11031then :
11032  eval $cacheid=yes
11033else $as_nop
11034  eval $cacheid=no
11035fi
11036rm -f core conftest.err conftest.$ac_objext conftest.beam \
11037    conftest$ac_exeext conftest.$ac_ext
11038fi
11039
11040
11041		CFLAGS="$xorg_testset_save_CFLAGS"
11042
11043		eval supported=\$$cacheid
11044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11045printf "%s\n" "$supported" >&6; }
11046		if test "$supported" = "yes" ; then
11047			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11048			found="yes"
11049		fi
11050	fi
11051
11052	if test $found = "no" ; then
11053		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11054			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11055		fi
11056
11057		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11058			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11059		fi
11060
11061		CFLAGS="$CFLAGS -errwarn"
11062
11063		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11064printf %s "checking if $CC supports -errwarn... " >&6; }
11065		cacheid=xorg_cv_cc_flag__errwarn
11066		if eval test \${$cacheid+y}
11067then :
11068  printf %s "(cached) " >&6
11069else $as_nop
11070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071/* end confdefs.h.  */
11072int i;
11073int
11074main (void)
11075{
11076
11077  ;
11078  return 0;
11079}
11080_ACEOF
11081if ac_fn_c_try_link "$LINENO"
11082then :
11083  eval $cacheid=yes
11084else $as_nop
11085  eval $cacheid=no
11086fi
11087rm -f core conftest.err conftest.$ac_objext conftest.beam \
11088    conftest$ac_exeext conftest.$ac_ext
11089fi
11090
11091
11092		CFLAGS="$xorg_testset_save_CFLAGS"
11093
11094		eval supported=\$$cacheid
11095		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11096printf "%s\n" "$supported" >&6; }
11097		if test "$supported" = "yes" ; then
11098			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11099			found="yes"
11100		fi
11101	fi
11102
11103
11104
11105# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11106# activate it with -Werror, so we add it here explicitly.
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120xorg_testset_save_CFLAGS="$CFLAGS"
11121
11122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11124	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11125printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11126if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11127then :
11128  printf %s "(cached) " >&6
11129else $as_nop
11130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131/* end confdefs.h.  */
11132int i;
11133_ACEOF
11134if ac_fn_c_try_compile "$LINENO"
11135then :
11136  xorg_cv_cc_flag_unknown_warning_option=yes
11137else $as_nop
11138  xorg_cv_cc_flag_unknown_warning_option=no
11139fi
11140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11141fi
11142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11143printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11144	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11145	CFLAGS="$xorg_testset_save_CFLAGS"
11146fi
11147
11148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11149	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11150		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11151	fi
11152	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11153	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11154printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11155if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11156then :
11157  printf %s "(cached) " >&6
11158else $as_nop
11159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160/* end confdefs.h.  */
11161int i;
11162_ACEOF
11163if ac_fn_c_try_compile "$LINENO"
11164then :
11165  xorg_cv_cc_flag_unused_command_line_argument=yes
11166else $as_nop
11167  xorg_cv_cc_flag_unused_command_line_argument=no
11168fi
11169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11170fi
11171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11172printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11173	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11174	CFLAGS="$xorg_testset_save_CFLAGS"
11175fi
11176
11177found="no"
11178
11179	if test $found = "no" ; then
11180		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11182		fi
11183
11184		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11186		fi
11187
11188		CFLAGS="$CFLAGS -Werror=attributes"
11189
11190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11191printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11192		cacheid=xorg_cv_cc_flag__Werror_attributes
11193		if eval test \${$cacheid+y}
11194then :
11195  printf %s "(cached) " >&6
11196else $as_nop
11197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198/* end confdefs.h.  */
11199int i;
11200int
11201main (void)
11202{
11203
11204  ;
11205  return 0;
11206}
11207_ACEOF
11208if ac_fn_c_try_link "$LINENO"
11209then :
11210  eval $cacheid=yes
11211else $as_nop
11212  eval $cacheid=no
11213fi
11214rm -f core conftest.err conftest.$ac_objext conftest.beam \
11215    conftest$ac_exeext conftest.$ac_ext
11216fi
11217
11218
11219		CFLAGS="$xorg_testset_save_CFLAGS"
11220
11221		eval supported=\$$cacheid
11222		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11223printf "%s\n" "$supported" >&6; }
11224		if test "$supported" = "yes" ; then
11225			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11226			found="yes"
11227		fi
11228	fi
11229
11230
11231
11232if test "x$STRICT_COMPILE" = "xyes"; then
11233    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11234    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11235fi
11236
11237
11238
11239
11240
11241
11242cat >>confdefs.h <<_ACEOF
11243#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11244_ACEOF
11245
11246	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11247	if test "x$PVM" = "x"; then
11248		PVM="0"
11249	fi
11250
11251printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11252
11253	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11254	if test "x$PVP" = "x"; then
11255		PVP="0"
11256	fi
11257
11258printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11259
11260
11261
11262CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11263mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11264|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11265touch \$(top_srcdir)/ChangeLog; \
11266echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11267
11268
11269
11270
11271macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11272INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11273mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11274|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11275touch \$(top_srcdir)/INSTALL; \
11276echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11277
11278
11279
11280
11281
11282
11283case $host_os in
11284    solaris*)
11285        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11286        # check for a man page file found in later versions that use
11287        # traditional section numbers instead
11288        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11289printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11290if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11291then :
11292  printf %s "(cached) " >&6
11293else $as_nop
11294  test "$cross_compiling" = yes &&
11295  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11296if test -r "/usr/share/man/man7/attributes.7"; then
11297  ac_cv_file__usr_share_man_man7_attributes_7=yes
11298else
11299  ac_cv_file__usr_share_man_man7_attributes_7=no
11300fi
11301fi
11302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11303printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11304if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11305then :
11306  SYSV_MAN_SECTIONS=false
11307else $as_nop
11308  SYSV_MAN_SECTIONS=true
11309fi
11310
11311        ;;
11312    *) SYSV_MAN_SECTIONS=false ;;
11313esac
11314
11315if test x$APP_MAN_SUFFIX = x    ; then
11316    APP_MAN_SUFFIX=1
11317fi
11318if test x$APP_MAN_DIR = x    ; then
11319    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11320fi
11321
11322if test x$LIB_MAN_SUFFIX = x    ; then
11323    LIB_MAN_SUFFIX=3
11324fi
11325if test x$LIB_MAN_DIR = x    ; then
11326    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11327fi
11328
11329if test x$FILE_MAN_SUFFIX = x    ; then
11330    case $SYSV_MAN_SECTIONS in
11331	true)				FILE_MAN_SUFFIX=4  ;;
11332	*)				FILE_MAN_SUFFIX=5  ;;
11333    esac
11334fi
11335if test x$FILE_MAN_DIR = x    ; then
11336    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11337fi
11338
11339if test x$MISC_MAN_SUFFIX = x    ; then
11340    case $SYSV_MAN_SECTIONS in
11341	true)				MISC_MAN_SUFFIX=5  ;;
11342	*)				MISC_MAN_SUFFIX=7  ;;
11343    esac
11344fi
11345if test x$MISC_MAN_DIR = x    ; then
11346    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11347fi
11348
11349if test x$DRIVER_MAN_SUFFIX = x    ; then
11350    case $SYSV_MAN_SECTIONS in
11351	true)				DRIVER_MAN_SUFFIX=7  ;;
11352	*)				DRIVER_MAN_SUFFIX=4  ;;
11353    esac
11354fi
11355if test x$DRIVER_MAN_DIR = x    ; then
11356    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11357fi
11358
11359if test x$ADMIN_MAN_SUFFIX = x    ; then
11360    case $SYSV_MAN_SECTIONS in
11361	true)				ADMIN_MAN_SUFFIX=1m ;;
11362	*)				ADMIN_MAN_SUFFIX=8  ;;
11363    esac
11364fi
11365if test x$ADMIN_MAN_DIR = x    ; then
11366    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11367fi
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383XORG_MAN_PAGE="X Version 11"
11384
11385MAN_SUBSTS="\
11386	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11387	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11388	-e 's|__xservername__|Xorg|g' \
11389	-e 's|__xconfigfile__|xorg.conf|g' \
11390	-e 's|__projectroot__|\$(prefix)|g' \
11391	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11392	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11393	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11394	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11395	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11396	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11397	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11398
11399
11400
11401# Check whether --enable-silent-rules was given.
11402if test ${enable_silent_rules+y}
11403then :
11404  enableval=$enable_silent_rules;
11405fi
11406
11407case $enable_silent_rules in # (((
11408  yes) AM_DEFAULT_VERBOSITY=0;;
11409   no) AM_DEFAULT_VERBOSITY=1;;
11410    *) AM_DEFAULT_VERBOSITY=0;;
11411esac
11412am_make=${MAKE-make}
11413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11414printf %s "checking whether $am_make supports nested variables... " >&6; }
11415if test ${am_cv_make_support_nested_variables+y}
11416then :
11417  printf %s "(cached) " >&6
11418else $as_nop
11419  if printf "%s\n" 'TRUE=$(BAR$(V))
11420BAR0=false
11421BAR1=true
11422V=1
11423am__doit:
11424	@$(TRUE)
11425.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11426  am_cv_make_support_nested_variables=yes
11427else
11428  am_cv_make_support_nested_variables=no
11429fi
11430fi
11431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11432printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11433if test $am_cv_make_support_nested_variables = yes; then
11434    AM_V='$(V)'
11435  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11436else
11437  AM_V=$AM_DEFAULT_VERBOSITY
11438  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11439fi
11440AM_BACKSLASH='\'
11441
11442
11443
11444# Checks for pkg-config packages
11445# - Both CFLAGS & LIBS needed:
11446
11447pkg_failed=no
11448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XHOST" >&5
11449printf %s "checking for XHOST... " >&6; }
11450
11451if test -n "$XHOST_CFLAGS"; then
11452    pkg_cv_XHOST_CFLAGS="$XHOST_CFLAGS"
11453 elif test -n "$PKG_CONFIG"; then
11454    if test -n "$PKG_CONFIG" && \
11455    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 x11 xmuu\""; } >&5
11456  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 x11 xmuu") 2>&5
11457  ac_status=$?
11458  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11459  test $ac_status = 0; }; then
11460  pkg_cv_XHOST_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 x11 xmuu" 2>/dev/null`
11461		      test "x$?" != "x0" && pkg_failed=yes
11462else
11463  pkg_failed=yes
11464fi
11465 else
11466    pkg_failed=untried
11467fi
11468if test -n "$XHOST_LIBS"; then
11469    pkg_cv_XHOST_LIBS="$XHOST_LIBS"
11470 elif test -n "$PKG_CONFIG"; then
11471    if test -n "$PKG_CONFIG" && \
11472    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 x11 xmuu\""; } >&5
11473  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 x11 xmuu") 2>&5
11474  ac_status=$?
11475  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11476  test $ac_status = 0; }; then
11477  pkg_cv_XHOST_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 x11 xmuu" 2>/dev/null`
11478		      test "x$?" != "x0" && pkg_failed=yes
11479else
11480  pkg_failed=yes
11481fi
11482 else
11483    pkg_failed=untried
11484fi
11485
11486
11487
11488if test $pkg_failed = yes; then
11489   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490printf "%s\n" "no" >&6; }
11491
11492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11493        _pkg_short_errors_supported=yes
11494else
11495        _pkg_short_errors_supported=no
11496fi
11497        if test $_pkg_short_errors_supported = yes; then
11498	        XHOST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.22 x11 xmuu" 2>&1`
11499        else
11500	        XHOST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.22 x11 xmuu" 2>&1`
11501        fi
11502	# Put the nasty error message in config.log where it belongs
11503	echo "$XHOST_PKG_ERRORS" >&5
11504
11505	as_fn_error $? "Package requirements (xproto >= 7.0.22 x11 xmuu) were not met:
11506
11507$XHOST_PKG_ERRORS
11508
11509Consider adjusting the PKG_CONFIG_PATH environment variable if you
11510installed software in a non-standard prefix.
11511
11512Alternatively, you may set the environment variables XHOST_CFLAGS
11513and XHOST_LIBS to avoid the need to call pkg-config.
11514See the pkg-config man page for more details." "$LINENO" 5
11515elif test $pkg_failed = untried; then
11516     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517printf "%s\n" "no" >&6; }
11518	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11519printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11520as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11521is in your PATH or set the PKG_CONFIG environment variable to the full
11522path to pkg-config.
11523
11524Alternatively, you may set the environment variables XHOST_CFLAGS
11525and XHOST_LIBS to avoid the need to call pkg-config.
11526See the pkg-config man page for more details.
11527
11528To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11529See \`config.log' for more details" "$LINENO" 5; }
11530else
11531	XHOST_CFLAGS=$pkg_cv_XHOST_CFLAGS
11532	XHOST_LIBS=$pkg_cv_XHOST_LIBS
11533        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11534printf "%s\n" "yes" >&6; }
11535
11536fi
11537# - Only CFLAGS needed, not libs:
11538
11539pkg_failed=no
11540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5
11541printf %s "checking for XAU... " >&6; }
11542
11543if test -n "$XAU_CFLAGS"; then
11544    pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
11545 elif test -n "$PKG_CONFIG"; then
11546    if test -n "$PKG_CONFIG" && \
11547    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
11548  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
11549  ac_status=$?
11550  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11551  test $ac_status = 0; }; then
11552  pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null`
11553		      test "x$?" != "x0" && pkg_failed=yes
11554else
11555  pkg_failed=yes
11556fi
11557 else
11558    pkg_failed=untried
11559fi
11560if test -n "$XAU_LIBS"; then
11561    pkg_cv_XAU_LIBS="$XAU_LIBS"
11562 elif test -n "$PKG_CONFIG"; then
11563    if test -n "$PKG_CONFIG" && \
11564    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
11565  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
11566  ac_status=$?
11567  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11568  test $ac_status = 0; }; then
11569  pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null`
11570		      test "x$?" != "x0" && pkg_failed=yes
11571else
11572  pkg_failed=yes
11573fi
11574 else
11575    pkg_failed=untried
11576fi
11577
11578
11579
11580if test $pkg_failed = yes; then
11581   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582printf "%s\n" "no" >&6; }
11583
11584if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11585        _pkg_short_errors_supported=yes
11586else
11587        _pkg_short_errors_supported=no
11588fi
11589        if test $_pkg_short_errors_supported = yes; then
11590	        XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xau" 2>&1`
11591        else
11592	        XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xau" 2>&1`
11593        fi
11594	# Put the nasty error message in config.log where it belongs
11595	echo "$XAU_PKG_ERRORS" >&5
11596
11597	as_fn_error $? "Package requirements (xau) were not met:
11598
11599$XAU_PKG_ERRORS
11600
11601Consider adjusting the PKG_CONFIG_PATH environment variable if you
11602installed software in a non-standard prefix.
11603
11604Alternatively, you may set the environment variables XAU_CFLAGS
11605and XAU_LIBS to avoid the need to call pkg-config.
11606See the pkg-config man page for more details." "$LINENO" 5
11607elif test $pkg_failed = untried; then
11608     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609printf "%s\n" "no" >&6; }
11610	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11611printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11612as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11613is in your PATH or set the PKG_CONFIG environment variable to the full
11614path to pkg-config.
11615
11616Alternatively, you may set the environment variables XAU_CFLAGS
11617and XAU_LIBS to avoid the need to call pkg-config.
11618See the pkg-config man page for more details.
11619
11620To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11621See \`config.log' for more details" "$LINENO" 5; }
11622else
11623	XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
11624	XAU_LIBS=$pkg_cv_XAU_LIBS
11625        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11626printf "%s\n" "yes" >&6; }
11627
11628fi
11629
11630# Transport selection macro from xtrans.m4
11631
11632
11633 case $host_os in
11634	mingw*)	unixdef="no"   ;;
11635	*)	unixdef="yes"  ;;
11636 esac
11637 # Check whether --enable-unix-transport was given.
11638if test ${enable_unix_transport+y}
11639then :
11640  enableval=$enable_unix_transport; UNIXCONN=$enableval
11641else $as_nop
11642  UNIXCONN=$unixdef
11643fi
11644
11645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11646printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
11647 if test "$UNIXCONN" = "yes"; then
11648
11649printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
11650
11651 fi
11652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11653printf "%s\n" "$UNIXCONN" >&6; }
11654 # Check whether --enable-tcp-transport was given.
11655if test ${enable_tcp_transport+y}
11656then :
11657  enableval=$enable_tcp_transport; TCPCONN=$enableval
11658else $as_nop
11659  TCPCONN=yes
11660fi
11661
11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11663printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
11664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11665printf "%s\n" "$TCPCONN" >&6; }
11666 if test "$TCPCONN" = "yes"; then
11667
11668printf "%s\n" "#define TCPCONN 1" >>confdefs.h
11669
11670
11671 # SVR4 hides these in libraries other than libc
11672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11673printf %s "checking for library containing socket... " >&6; }
11674if test ${ac_cv_search_socket+y}
11675then :
11676  printf %s "(cached) " >&6
11677else $as_nop
11678  ac_func_search_save_LIBS=$LIBS
11679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680/* end confdefs.h.  */
11681
11682/* Override any GCC internal prototype to avoid an error.
11683   Use char because int might match the return type of a GCC
11684   builtin and then its argument prototype would still apply.  */
11685char socket ();
11686int
11687main (void)
11688{
11689return socket ();
11690  ;
11691  return 0;
11692}
11693_ACEOF
11694for ac_lib in '' socket
11695do
11696  if test -z "$ac_lib"; then
11697    ac_res="none required"
11698  else
11699    ac_res=-l$ac_lib
11700    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11701  fi
11702  if ac_fn_c_try_link "$LINENO"
11703then :
11704  ac_cv_search_socket=$ac_res
11705fi
11706rm -f core conftest.err conftest.$ac_objext conftest.beam \
11707    conftest$ac_exeext
11708  if test ${ac_cv_search_socket+y}
11709then :
11710  break
11711fi
11712done
11713if test ${ac_cv_search_socket+y}
11714then :
11715
11716else $as_nop
11717  ac_cv_search_socket=no
11718fi
11719rm conftest.$ac_ext
11720LIBS=$ac_func_search_save_LIBS
11721fi
11722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11723printf "%s\n" "$ac_cv_search_socket" >&6; }
11724ac_res=$ac_cv_search_socket
11725if test "$ac_res" != no
11726then :
11727  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11728
11729fi
11730
11731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11732printf %s "checking for library containing gethostbyname... " >&6; }
11733if test ${ac_cv_search_gethostbyname+y}
11734then :
11735  printf %s "(cached) " >&6
11736else $as_nop
11737  ac_func_search_save_LIBS=$LIBS
11738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739/* end confdefs.h.  */
11740
11741/* Override any GCC internal prototype to avoid an error.
11742   Use char because int might match the return type of a GCC
11743   builtin and then its argument prototype would still apply.  */
11744char gethostbyname ();
11745int
11746main (void)
11747{
11748return gethostbyname ();
11749  ;
11750  return 0;
11751}
11752_ACEOF
11753for ac_lib in '' nsl
11754do
11755  if test -z "$ac_lib"; then
11756    ac_res="none required"
11757  else
11758    ac_res=-l$ac_lib
11759    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11760  fi
11761  if ac_fn_c_try_link "$LINENO"
11762then :
11763  ac_cv_search_gethostbyname=$ac_res
11764fi
11765rm -f core conftest.err conftest.$ac_objext conftest.beam \
11766    conftest$ac_exeext
11767  if test ${ac_cv_search_gethostbyname+y}
11768then :
11769  break
11770fi
11771done
11772if test ${ac_cv_search_gethostbyname+y}
11773then :
11774
11775else $as_nop
11776  ac_cv_search_gethostbyname=no
11777fi
11778rm conftest.$ac_ext
11779LIBS=$ac_func_search_save_LIBS
11780fi
11781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
11782printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
11783ac_res=$ac_cv_search_gethostbyname
11784if test "$ac_res" != no
11785then :
11786  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11787
11788fi
11789
11790 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
11791   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11792printf %s "checking for main in -lws2_32... " >&6; }
11793if test ${ac_cv_lib_ws2_32_main+y}
11794then :
11795  printf %s "(cached) " >&6
11796else $as_nop
11797  ac_check_lib_save_LIBS=$LIBS
11798LIBS="-lws2_32  $LIBS"
11799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h.  */
11801
11802
11803int
11804main (void)
11805{
11806return main ();
11807  ;
11808  return 0;
11809}
11810_ACEOF
11811if ac_fn_c_try_link "$LINENO"
11812then :
11813  ac_cv_lib_ws2_32_main=yes
11814else $as_nop
11815  ac_cv_lib_ws2_32_main=no
11816fi
11817rm -f core conftest.err conftest.$ac_objext conftest.beam \
11818    conftest$ac_exeext conftest.$ac_ext
11819LIBS=$ac_check_lib_save_LIBS
11820fi
11821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11822printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
11823if test "x$ac_cv_lib_ws2_32_main" = xyes
11824then :
11825  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
11826
11827  LIBS="-lws2_32 $LIBS"
11828
11829fi
11830
11831 fi
11832
11833 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
11834 # Check whether --enable-ipv6 was given.
11835if test ${enable_ipv6+y}
11836then :
11837  enableval=$enable_ipv6; IPV6CONN=$enableval
11838else $as_nop
11839  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11840if test "x$ac_cv_func_getaddrinfo" = xyes
11841then :
11842  IPV6CONN=yes
11843else $as_nop
11844  IPV6CONN=no
11845fi
11846
11847fi
11848
11849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11850printf %s "checking if IPv6 support should be built... " >&6; }
11851 if test "$IPV6CONN" = "yes"; then
11852
11853printf "%s\n" "#define IPv6 1" >>confdefs.h
11854
11855 fi
11856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11857printf "%s\n" "$IPV6CONN" >&6; }
11858
11859 # 4.3BSD-Reno added a new member to struct sockaddr_in
11860 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11861#include <sys/types.h>
11862#include <sys/socket.h>
11863#include <netinet/in.h>
11864
11865"
11866if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
11867then :
11868
11869printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
11870
11871fi
11872
11873
11874 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11875 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11876$ac_includes_default
11877#include <sys/socket.h>
11878"
11879if test "x$ac_cv_type_socklen_t" = xyes
11880then :
11881
11882printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11883
11884
11885fi
11886
11887
11888 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
11889 # _XOPEN_SOURCE to get it (such as on Solaris)
11890 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11891$ac_includes_default
11892#include <sys/socket.h>
11893
11894"
11895if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
11896then :
11897
11898fi
11899
11900 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
11901 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11902     unset ac_cv_member_struct_msghdr_msg_control
11903     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
11904printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
11905     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11906#define _XOPEN_SOURCE 600
11907$ac_includes_default
11908#include <sys/socket.h>
11909
11910"
11911if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
11912then :
11913
11914printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
11915
11916
11917fi
11918
11919 fi
11920 # If that didn't work, fall back to XPG5/UNIX98 with C89
11921 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11922     unset ac_cv_member_struct_msghdr_msg_control
11923     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
11924printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
11925     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11926#define _XOPEN_SOURCE 500
11927$ac_includes_default
11928#include <sys/socket.h>
11929
11930"
11931if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
11932then :
11933
11934printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
11935
11936
11937fi
11938
11939 fi
11940
11941
11942
11943 fi
11944 case $host_os in
11945	solaris*)		localdef="yes" ;;
11946	*)			localdef="no"  ;;
11947 esac
11948 # Check whether --enable-local-transport was given.
11949if test ${enable_local_transport+y}
11950then :
11951  enableval=$enable_local_transport; LOCALCONN=$enableval
11952else $as_nop
11953  LOCALCONN=$localdef
11954fi
11955
11956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11957printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
11958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11959printf "%s\n" "$LOCALCONN" >&6; }
11960 if test "$LOCALCONN" = "yes"; then
11961
11962printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
11963
11964 fi
11965
11966 # Other functions Xtrans may need
11967 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11968if test "x$ac_cv_func_strcasecmp" = xyes
11969then :
11970  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
11971
11972fi
11973ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11974if test "x$ac_cv_func_strlcpy" = xyes
11975then :
11976  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
11977
11978fi
11979
11980
11981
11982
11983# Secure RPC detection macro from xtrans.m4
11984
11985 # Check whether --enable-secure-rpc was given.
11986if test ${enable_secure_rpc+y}
11987then :
11988  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
11989else $as_nop
11990  SECURE_RPC="try"
11991fi
11992
11993
11994 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
11995	FOUND_SECURE_RPC="no"
11996
11997  for ac_func in authdes_seccreate authdes_create
11998do :
11999  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
12000ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12001if eval test \"x\$"$as_ac_var"\" = x"yes"
12002then :
12003  cat >>confdefs.h <<_ACEOF
12004#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
12005_ACEOF
12006 FOUND_SECURE_RPC="yes"
12007fi
12008
12009done
12010	if test "x$FOUND_SECURE_RPC" = "xno" ; then
12011		if test "x$SECURE_RPC" = "xyes" ; then
12012	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
12013		fi
12014		SECURE_RPC="no"
12015	else
12016				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
12017printf %s "checking for library containing getsecretkey... " >&6; }
12018if test ${ac_cv_search_getsecretkey+y}
12019then :
12020  printf %s "(cached) " >&6
12021else $as_nop
12022  ac_func_search_save_LIBS=$LIBS
12023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024/* end confdefs.h.  */
12025
12026/* Override any GCC internal prototype to avoid an error.
12027   Use char because int might match the return type of a GCC
12028   builtin and then its argument prototype would still apply.  */
12029char getsecretkey ();
12030int
12031main (void)
12032{
12033return getsecretkey ();
12034  ;
12035  return 0;
12036}
12037_ACEOF
12038for ac_lib in '' rpcsvc
12039do
12040  if test -z "$ac_lib"; then
12041    ac_res="none required"
12042  else
12043    ac_res=-l$ac_lib
12044    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12045  fi
12046  if ac_fn_c_try_link "$LINENO"
12047then :
12048  ac_cv_search_getsecretkey=$ac_res
12049fi
12050rm -f core conftest.err conftest.$ac_objext conftest.beam \
12051    conftest$ac_exeext
12052  if test ${ac_cv_search_getsecretkey+y}
12053then :
12054  break
12055fi
12056done
12057if test ${ac_cv_search_getsecretkey+y}
12058then :
12059
12060else $as_nop
12061  ac_cv_search_getsecretkey=no
12062fi
12063rm conftest.$ac_ext
12064LIBS=$ac_func_search_save_LIBS
12065fi
12066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
12067printf "%s\n" "$ac_cv_search_getsecretkey" >&6; }
12068ac_res=$ac_cv_search_getsecretkey
12069if test "$ac_res" != no
12070then :
12071  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12072
12073fi
12074
12075		SECURE_RPC="yes"
12076	fi
12077 fi
12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
12079printf %s "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
12080 if test "x$SECURE_RPC" = "xyes" ; then
12081
12082printf "%s\n" "#define SECURE_RPC 1" >>confdefs.h
12083
12084 fi
12085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
12086printf "%s\n" "$SECURE_RPC" >&6; }
12087
12088
12089# Link with winsock if mingw target
12090case $host_os in
12091 *mingw*)
12092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12093printf %s "checking for main in -lws2_32... " >&6; }
12094if test ${ac_cv_lib_ws2_32_main+y}
12095then :
12096  printf %s "(cached) " >&6
12097else $as_nop
12098  ac_check_lib_save_LIBS=$LIBS
12099LIBS="-lws2_32  $LIBS"
12100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101/* end confdefs.h.  */
12102
12103
12104int
12105main (void)
12106{
12107return main ();
12108  ;
12109  return 0;
12110}
12111_ACEOF
12112if ac_fn_c_try_link "$LINENO"
12113then :
12114  ac_cv_lib_ws2_32_main=yes
12115else $as_nop
12116  ac_cv_lib_ws2_32_main=no
12117fi
12118rm -f core conftest.err conftest.$ac_objext conftest.beam \
12119    conftest$ac_exeext conftest.$ac_ext
12120LIBS=$ac_check_lib_save_LIBS
12121fi
12122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12123printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
12124if test "x$ac_cv_lib_ws2_32_main" = xyes
12125then :
12126  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
12127
12128  LIBS="-lws2_32 $LIBS"
12129
12130fi
12131
12132  ;;
12133 *)
12134  ;;
12135esac
12136
12137# Checks for library functions.
12138ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
12139if test "x$ac_cv_func_inet_aton" = xyes
12140then :
12141  printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
12142
12143fi
12144
12145
12146# Internationalization & localization support
12147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
12148printf %s "checking for library containing gettext... " >&6; }
12149if test ${ac_cv_search_gettext+y}
12150then :
12151  printf %s "(cached) " >&6
12152else $as_nop
12153  ac_func_search_save_LIBS=$LIBS
12154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155/* end confdefs.h.  */
12156
12157/* Override any GCC internal prototype to avoid an error.
12158   Use char because int might match the return type of a GCC
12159   builtin and then its argument prototype would still apply.  */
12160char gettext ();
12161int
12162main (void)
12163{
12164return gettext ();
12165  ;
12166  return 0;
12167}
12168_ACEOF
12169for ac_lib in '' intl
12170do
12171  if test -z "$ac_lib"; then
12172    ac_res="none required"
12173  else
12174    ac_res=-l$ac_lib
12175    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12176  fi
12177  if ac_fn_c_try_link "$LINENO"
12178then :
12179  ac_cv_search_gettext=$ac_res
12180fi
12181rm -f core conftest.err conftest.$ac_objext conftest.beam \
12182    conftest$ac_exeext
12183  if test ${ac_cv_search_gettext+y}
12184then :
12185  break
12186fi
12187done
12188if test ${ac_cv_search_gettext+y}
12189then :
12190
12191else $as_nop
12192  ac_cv_search_gettext=no
12193fi
12194rm conftest.$ac_ext
12195LIBS=$ac_func_search_save_LIBS
12196fi
12197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
12198printf "%s\n" "$ac_cv_search_gettext" >&6; }
12199ac_res=$ac_cv_search_gettext
12200if test "$ac_res" != no
12201then :
12202  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12203  USE_GETTEXT="yes"
12204else $as_nop
12205  USE_GETTEXT="no"
12206fi
12207
12208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
12209printf %s "checking where to install localized messages... " >&6; }
12210
12211# Check whether --with-localedir was given.
12212if test ${with_localedir+y}
12213then :
12214  withval=$with_localedir; LOCALEDIR=${withval}
12215else $as_nop
12216  LOCALEDIR=${datadir}/locale
12217fi
12218
12219if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
12220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
12221printf "%s\n" "nowhere" >&6; }
12222	USE_GETTEXT="no"
12223else
12224
12225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
12226printf "%s\n" "$LOCALEDIR" >&6; }
12227fi
12228
12229if test "x$USE_GETTEXT" = "xyes" ; then
12230
12231printf "%s\n" "#define USE_GETTEXT 1" >>confdefs.h
12232
12233fi
12234 if test "x$USE_GETTEXT" = "xyes"; then
12235  USE_GETTEXT_TRUE=
12236  USE_GETTEXT_FALSE='#'
12237else
12238  USE_GETTEXT_TRUE='#'
12239  USE_GETTEXT_FALSE=
12240fi
12241
12242
12243
12244ac_config_files="$ac_config_files Makefile man/Makefile"
12245
12246cat >confcache <<\_ACEOF
12247# This file is a shell script that caches the results of configure
12248# tests run on this system so they can be shared between configure
12249# scripts and configure runs, see configure's option --config-cache.
12250# It is not useful on other systems.  If it contains results you don't
12251# want to keep, you may remove or edit it.
12252#
12253# config.status only pays attention to the cache file if you give it
12254# the --recheck option to rerun configure.
12255#
12256# `ac_cv_env_foo' variables (set or unset) will be overridden when
12257# loading this file, other *unset* `ac_cv_foo' will be assigned the
12258# following values.
12259
12260_ACEOF
12261
12262# The following way of writing the cache mishandles newlines in values,
12263# but we know of no workaround that is simple, portable, and efficient.
12264# So, we kill variables containing newlines.
12265# Ultrix sh set writes to stderr and can't be redirected directly,
12266# and sets the high bit in the cache file unless we assign to the vars.
12267(
12268  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12269    eval ac_val=\$$ac_var
12270    case $ac_val in #(
12271    *${as_nl}*)
12272      case $ac_var in #(
12273      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12274printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12275      esac
12276      case $ac_var in #(
12277      _ | IFS | as_nl) ;; #(
12278      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12279      *) { eval $ac_var=; unset $ac_var;} ;;
12280      esac ;;
12281    esac
12282  done
12283
12284  (set) 2>&1 |
12285    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12286    *${as_nl}ac_space=\ *)
12287      # `set' does not quote correctly, so add quotes: double-quote
12288      # substitution turns \\\\ into \\, and sed turns \\ into \.
12289      sed -n \
12290	"s/'/'\\\\''/g;
12291	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12292      ;; #(
12293    *)
12294      # `set' quotes correctly as required by POSIX, so do not add quotes.
12295      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12296      ;;
12297    esac |
12298    sort
12299) |
12300  sed '
12301     /^ac_cv_env_/b end
12302     t clear
12303     :clear
12304     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12305     t end
12306     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12307     :end' >>confcache
12308if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12309  if test -w "$cache_file"; then
12310    if test "x$cache_file" != "x/dev/null"; then
12311      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12312printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12313      if test ! -f "$cache_file" || test -h "$cache_file"; then
12314	cat confcache >"$cache_file"
12315      else
12316        case $cache_file in #(
12317        */* | ?:*)
12318	  mv -f confcache "$cache_file"$$ &&
12319	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12320        *)
12321	  mv -f confcache "$cache_file" ;;
12322	esac
12323      fi
12324    fi
12325  else
12326    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12327printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12328  fi
12329fi
12330rm -f confcache
12331
12332test "x$prefix" = xNONE && prefix=$ac_default_prefix
12333# Let make expand exec_prefix.
12334test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12335
12336DEFS=-DHAVE_CONFIG_H
12337
12338ac_libobjs=
12339ac_ltlibobjs=
12340U=
12341for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12342  # 1. Remove the extension, and $U if already installed.
12343  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12344  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12345  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12346  #    will be set to the directory where LIBOBJS objects are built.
12347  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12348  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12349done
12350LIBOBJS=$ac_libobjs
12351
12352LTLIBOBJS=$ac_ltlibobjs
12353
12354
12355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12356printf %s "checking that generated files are newer than configure... " >&6; }
12357   if test -n "$am_sleep_pid"; then
12358     # Hide warnings about reused PIDs.
12359     wait $am_sleep_pid 2>/dev/null
12360   fi
12361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12362printf "%s\n" "done" >&6; }
12363 if test -n "$EXEEXT"; then
12364  am__EXEEXT_TRUE=
12365  am__EXEEXT_FALSE='#'
12366else
12367  am__EXEEXT_TRUE='#'
12368  am__EXEEXT_FALSE=
12369fi
12370
12371if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12372  as_fn_error $? "conditional \"AMDEP\" was never defined.
12373Usually this means the macro was only invoked conditionally." "$LINENO" 5
12374fi
12375if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12376  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12377Usually this means the macro was only invoked conditionally." "$LINENO" 5
12378fi
12379if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
12380  as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
12381Usually this means the macro was only invoked conditionally." "$LINENO" 5
12382fi
12383
12384: "${CONFIG_STATUS=./config.status}"
12385ac_write_fail=0
12386ac_clean_files_save=$ac_clean_files
12387ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12389printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12390as_write_fail=0
12391cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12392#! $SHELL
12393# Generated by $as_me.
12394# Run this file to recreate the current configuration.
12395# Compiler output produced by configure, useful for debugging
12396# configure, is in config.log if it exists.
12397
12398debug=false
12399ac_cs_recheck=false
12400ac_cs_silent=false
12401
12402SHELL=\${CONFIG_SHELL-$SHELL}
12403export SHELL
12404_ASEOF
12405cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12406## -------------------- ##
12407## M4sh Initialization. ##
12408## -------------------- ##
12409
12410# Be more Bourne compatible
12411DUALCASE=1; export DUALCASE # for MKS sh
12412as_nop=:
12413if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12414then :
12415  emulate sh
12416  NULLCMD=:
12417  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12418  # is contrary to our usage.  Disable this feature.
12419  alias -g '${1+"$@"}'='"$@"'
12420  setopt NO_GLOB_SUBST
12421else $as_nop
12422  case `(set -o) 2>/dev/null` in #(
12423  *posix*) :
12424    set -o posix ;; #(
12425  *) :
12426     ;;
12427esac
12428fi
12429
12430
12431
12432# Reset variables that may have inherited troublesome values from
12433# the environment.
12434
12435# IFS needs to be set, to space, tab, and newline, in precisely that order.
12436# (If _AS_PATH_WALK were called with IFS unset, it would have the
12437# side effect of setting IFS to empty, thus disabling word splitting.)
12438# Quoting is to prevent editors from complaining about space-tab.
12439as_nl='
12440'
12441export as_nl
12442IFS=" ""	$as_nl"
12443
12444PS1='$ '
12445PS2='> '
12446PS4='+ '
12447
12448# Ensure predictable behavior from utilities with locale-dependent output.
12449LC_ALL=C
12450export LC_ALL
12451LANGUAGE=C
12452export LANGUAGE
12453
12454# We cannot yet rely on "unset" to work, but we need these variables
12455# to be unset--not just set to an empty or harmless value--now, to
12456# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12457# also avoids known problems related to "unset" and subshell syntax
12458# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12459for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12460do eval test \${$as_var+y} \
12461  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12462done
12463
12464# Ensure that fds 0, 1, and 2 are open.
12465if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12466if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12467if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12468
12469# The user is always right.
12470if ${PATH_SEPARATOR+false} :; then
12471  PATH_SEPARATOR=:
12472  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12473    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12474      PATH_SEPARATOR=';'
12475  }
12476fi
12477
12478
12479# Find who we are.  Look in the path if we contain no directory separator.
12480as_myself=
12481case $0 in #((
12482  *[\\/]* ) as_myself=$0 ;;
12483  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484for as_dir in $PATH
12485do
12486  IFS=$as_save_IFS
12487  case $as_dir in #(((
12488    '') as_dir=./ ;;
12489    */) ;;
12490    *) as_dir=$as_dir/ ;;
12491  esac
12492    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12493  done
12494IFS=$as_save_IFS
12495
12496     ;;
12497esac
12498# We did not find ourselves, most probably we were run as `sh COMMAND'
12499# in which case we are not to be found in the path.
12500if test "x$as_myself" = x; then
12501  as_myself=$0
12502fi
12503if test ! -f "$as_myself"; then
12504  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12505  exit 1
12506fi
12507
12508
12509
12510# as_fn_error STATUS ERROR [LINENO LOG_FD]
12511# ----------------------------------------
12512# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12513# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12514# script with STATUS, using 1 if that was 0.
12515as_fn_error ()
12516{
12517  as_status=$1; test $as_status -eq 0 && as_status=1
12518  if test "$4"; then
12519    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12520    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12521  fi
12522  printf "%s\n" "$as_me: error: $2" >&2
12523  as_fn_exit $as_status
12524} # as_fn_error
12525
12526
12527
12528# as_fn_set_status STATUS
12529# -----------------------
12530# Set $? to STATUS, without forking.
12531as_fn_set_status ()
12532{
12533  return $1
12534} # as_fn_set_status
12535
12536# as_fn_exit STATUS
12537# -----------------
12538# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12539as_fn_exit ()
12540{
12541  set +e
12542  as_fn_set_status $1
12543  exit $1
12544} # as_fn_exit
12545
12546# as_fn_unset VAR
12547# ---------------
12548# Portably unset VAR.
12549as_fn_unset ()
12550{
12551  { eval $1=; unset $1;}
12552}
12553as_unset=as_fn_unset
12554
12555# as_fn_append VAR VALUE
12556# ----------------------
12557# Append the text in VALUE to the end of the definition contained in VAR. Take
12558# advantage of any shell optimizations that allow amortized linear growth over
12559# repeated appends, instead of the typical quadratic growth present in naive
12560# implementations.
12561if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12562then :
12563  eval 'as_fn_append ()
12564  {
12565    eval $1+=\$2
12566  }'
12567else $as_nop
12568  as_fn_append ()
12569  {
12570    eval $1=\$$1\$2
12571  }
12572fi # as_fn_append
12573
12574# as_fn_arith ARG...
12575# ------------------
12576# Perform arithmetic evaluation on the ARGs, and store the result in the
12577# global $as_val. Take advantage of shells that can avoid forks. The arguments
12578# must be portable across $(()) and expr.
12579if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12580then :
12581  eval 'as_fn_arith ()
12582  {
12583    as_val=$(( $* ))
12584  }'
12585else $as_nop
12586  as_fn_arith ()
12587  {
12588    as_val=`expr "$@" || test $? -eq 1`
12589  }
12590fi # as_fn_arith
12591
12592
12593if expr a : '\(a\)' >/dev/null 2>&1 &&
12594   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12595  as_expr=expr
12596else
12597  as_expr=false
12598fi
12599
12600if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12601  as_basename=basename
12602else
12603  as_basename=false
12604fi
12605
12606if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12607  as_dirname=dirname
12608else
12609  as_dirname=false
12610fi
12611
12612as_me=`$as_basename -- "$0" ||
12613$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12614	 X"$0" : 'X\(//\)$' \| \
12615	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12616printf "%s\n" X/"$0" |
12617    sed '/^.*\/\([^/][^/]*\)\/*$/{
12618	    s//\1/
12619	    q
12620	  }
12621	  /^X\/\(\/\/\)$/{
12622	    s//\1/
12623	    q
12624	  }
12625	  /^X\/\(\/\).*/{
12626	    s//\1/
12627	    q
12628	  }
12629	  s/.*/./; q'`
12630
12631# Avoid depending upon Character Ranges.
12632as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12633as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12634as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12635as_cr_digits='0123456789'
12636as_cr_alnum=$as_cr_Letters$as_cr_digits
12637
12638
12639# Determine whether it's possible to make 'echo' print without a newline.
12640# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12641# for compatibility with existing Makefiles.
12642ECHO_C= ECHO_N= ECHO_T=
12643case `echo -n x` in #(((((
12644-n*)
12645  case `echo 'xy\c'` in
12646  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12647  xy)  ECHO_C='\c';;
12648  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12649       ECHO_T='	';;
12650  esac;;
12651*)
12652  ECHO_N='-n';;
12653esac
12654
12655# For backward compatibility with old third-party macros, we provide
12656# the shell variables $as_echo and $as_echo_n.  New code should use
12657# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12658as_echo='printf %s\n'
12659as_echo_n='printf %s'
12660
12661rm -f conf$$ conf$$.exe conf$$.file
12662if test -d conf$$.dir; then
12663  rm -f conf$$.dir/conf$$.file
12664else
12665  rm -f conf$$.dir
12666  mkdir conf$$.dir 2>/dev/null
12667fi
12668if (echo >conf$$.file) 2>/dev/null; then
12669  if ln -s conf$$.file conf$$ 2>/dev/null; then
12670    as_ln_s='ln -s'
12671    # ... but there are two gotchas:
12672    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12673    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12674    # In both cases, we have to default to `cp -pR'.
12675    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12676      as_ln_s='cp -pR'
12677  elif ln conf$$.file conf$$ 2>/dev/null; then
12678    as_ln_s=ln
12679  else
12680    as_ln_s='cp -pR'
12681  fi
12682else
12683  as_ln_s='cp -pR'
12684fi
12685rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12686rmdir conf$$.dir 2>/dev/null
12687
12688
12689# as_fn_mkdir_p
12690# -------------
12691# Create "$as_dir" as a directory, including parents if necessary.
12692as_fn_mkdir_p ()
12693{
12694
12695  case $as_dir in #(
12696  -*) as_dir=./$as_dir;;
12697  esac
12698  test -d "$as_dir" || eval $as_mkdir_p || {
12699    as_dirs=
12700    while :; do
12701      case $as_dir in #(
12702      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12703      *) as_qdir=$as_dir;;
12704      esac
12705      as_dirs="'$as_qdir' $as_dirs"
12706      as_dir=`$as_dirname -- "$as_dir" ||
12707$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12708	 X"$as_dir" : 'X\(//\)[^/]' \| \
12709	 X"$as_dir" : 'X\(//\)$' \| \
12710	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12711printf "%s\n" X"$as_dir" |
12712    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12713	    s//\1/
12714	    q
12715	  }
12716	  /^X\(\/\/\)[^/].*/{
12717	    s//\1/
12718	    q
12719	  }
12720	  /^X\(\/\/\)$/{
12721	    s//\1/
12722	    q
12723	  }
12724	  /^X\(\/\).*/{
12725	    s//\1/
12726	    q
12727	  }
12728	  s/.*/./; q'`
12729      test -d "$as_dir" && break
12730    done
12731    test -z "$as_dirs" || eval "mkdir $as_dirs"
12732  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12733
12734
12735} # as_fn_mkdir_p
12736if mkdir -p . 2>/dev/null; then
12737  as_mkdir_p='mkdir -p "$as_dir"'
12738else
12739  test -d ./-p && rmdir ./-p
12740  as_mkdir_p=false
12741fi
12742
12743
12744# as_fn_executable_p FILE
12745# -----------------------
12746# Test if FILE is an executable regular file.
12747as_fn_executable_p ()
12748{
12749  test -f "$1" && test -x "$1"
12750} # as_fn_executable_p
12751as_test_x='test -x'
12752as_executable_p=as_fn_executable_p
12753
12754# Sed expression to map a string onto a valid CPP name.
12755as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12756
12757# Sed expression to map a string onto a valid variable name.
12758as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12759
12760
12761exec 6>&1
12762## ----------------------------------- ##
12763## Main body of $CONFIG_STATUS script. ##
12764## ----------------------------------- ##
12765_ASEOF
12766test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12767
12768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12769# Save the log message, to keep $0 and so on meaningful, and to
12770# report actual input values of CONFIG_FILES etc. instead of their
12771# values after options handling.
12772ac_log="
12773This file was extended by xhost $as_me 1.0.9, which was
12774generated by GNU Autoconf 2.71.  Invocation command line was
12775
12776  CONFIG_FILES    = $CONFIG_FILES
12777  CONFIG_HEADERS  = $CONFIG_HEADERS
12778  CONFIG_LINKS    = $CONFIG_LINKS
12779  CONFIG_COMMANDS = $CONFIG_COMMANDS
12780  $ $0 $@
12781
12782on `(hostname || uname -n) 2>/dev/null | sed 1q`
12783"
12784
12785_ACEOF
12786
12787case $ac_config_files in *"
12788"*) set x $ac_config_files; shift; ac_config_files=$*;;
12789esac
12790
12791case $ac_config_headers in *"
12792"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12793esac
12794
12795
12796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12797# Files that config.status was made for.
12798config_files="$ac_config_files"
12799config_headers="$ac_config_headers"
12800config_commands="$ac_config_commands"
12801
12802_ACEOF
12803
12804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12805ac_cs_usage="\
12806\`$as_me' instantiates files and other configuration actions
12807from templates according to the current configuration.  Unless the files
12808and actions are specified as TAGs, all are instantiated by default.
12809
12810Usage: $0 [OPTION]... [TAG]...
12811
12812  -h, --help       print this help, then exit
12813  -V, --version    print version number and configuration settings, then exit
12814      --config     print configuration, then exit
12815  -q, --quiet, --silent
12816                   do not print progress messages
12817  -d, --debug      don't remove temporary files
12818      --recheck    update $as_me by reconfiguring in the same conditions
12819      --file=FILE[:TEMPLATE]
12820                   instantiate the configuration file FILE
12821      --header=FILE[:TEMPLATE]
12822                   instantiate the configuration header FILE
12823
12824Configuration files:
12825$config_files
12826
12827Configuration headers:
12828$config_headers
12829
12830Configuration commands:
12831$config_commands
12832
12833Report bugs to <https://gitlab.freedesktop.org/xorg/app/xhost/-/issues>."
12834
12835_ACEOF
12836ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12837ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12839ac_cs_config='$ac_cs_config_escaped'
12840ac_cs_version="\\
12841xhost config.status 1.0.9
12842configured by $0, generated by GNU Autoconf 2.71,
12843  with options \\"\$ac_cs_config\\"
12844
12845Copyright (C) 2021 Free Software Foundation, Inc.
12846This config.status script is free software; the Free Software Foundation
12847gives unlimited permission to copy, distribute and modify it."
12848
12849ac_pwd='$ac_pwd'
12850srcdir='$srcdir'
12851INSTALL='$INSTALL'
12852MKDIR_P='$MKDIR_P'
12853AWK='$AWK'
12854test -n "\$AWK" || AWK=awk
12855_ACEOF
12856
12857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12858# The default lists apply if the user does not specify any file.
12859ac_need_defaults=:
12860while test $# != 0
12861do
12862  case $1 in
12863  --*=?*)
12864    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12865    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12866    ac_shift=:
12867    ;;
12868  --*=)
12869    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12870    ac_optarg=
12871    ac_shift=:
12872    ;;
12873  *)
12874    ac_option=$1
12875    ac_optarg=$2
12876    ac_shift=shift
12877    ;;
12878  esac
12879
12880  case $ac_option in
12881  # Handling of the options.
12882  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12883    ac_cs_recheck=: ;;
12884  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12885    printf "%s\n" "$ac_cs_version"; exit ;;
12886  --config | --confi | --conf | --con | --co | --c )
12887    printf "%s\n" "$ac_cs_config"; exit ;;
12888  --debug | --debu | --deb | --de | --d | -d )
12889    debug=: ;;
12890  --file | --fil | --fi | --f )
12891    $ac_shift
12892    case $ac_optarg in
12893    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12894    '') as_fn_error $? "missing file argument" ;;
12895    esac
12896    as_fn_append CONFIG_FILES " '$ac_optarg'"
12897    ac_need_defaults=false;;
12898  --header | --heade | --head | --hea )
12899    $ac_shift
12900    case $ac_optarg in
12901    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12902    esac
12903    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12904    ac_need_defaults=false;;
12905  --he | --h)
12906    # Conflict between --help and --header
12907    as_fn_error $? "ambiguous option: \`$1'
12908Try \`$0 --help' for more information.";;
12909  --help | --hel | -h )
12910    printf "%s\n" "$ac_cs_usage"; exit ;;
12911  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12912  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12913    ac_cs_silent=: ;;
12914
12915  # This is an error.
12916  -*) as_fn_error $? "unrecognized option: \`$1'
12917Try \`$0 --help' for more information." ;;
12918
12919  *) as_fn_append ac_config_targets " $1"
12920     ac_need_defaults=false ;;
12921
12922  esac
12923  shift
12924done
12925
12926ac_configure_extra_args=
12927
12928if $ac_cs_silent; then
12929  exec 6>/dev/null
12930  ac_configure_extra_args="$ac_configure_extra_args --silent"
12931fi
12932
12933_ACEOF
12934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12935if \$ac_cs_recheck; then
12936  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12937  shift
12938  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12939  CONFIG_SHELL='$SHELL'
12940  export CONFIG_SHELL
12941  exec "\$@"
12942fi
12943
12944_ACEOF
12945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12946exec 5>>config.log
12947{
12948  echo
12949  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12950## Running $as_me. ##
12951_ASBOX
12952  printf "%s\n" "$ac_log"
12953} >&5
12954
12955_ACEOF
12956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12957#
12958# INIT-COMMANDS
12959#
12960AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12961
12962_ACEOF
12963
12964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12965
12966# Handling of arguments.
12967for ac_config_target in $ac_config_targets
12968do
12969  case $ac_config_target in
12970    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12971    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12972    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12973    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12974
12975  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12976  esac
12977done
12978
12979
12980# If the user did not use the arguments to specify the items to instantiate,
12981# then the envvar interface is used.  Set only those that are not.
12982# We use the long form for the default assignment because of an extremely
12983# bizarre bug on SunOS 4.1.3.
12984if $ac_need_defaults; then
12985  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12986  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12987  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12988fi
12989
12990# Have a temporary directory for convenience.  Make it in the build tree
12991# simply because there is no reason against having it here, and in addition,
12992# creating and moving files from /tmp can sometimes cause problems.
12993# Hook for its removal unless debugging.
12994# Note that there is a small window in which the directory will not be cleaned:
12995# after its creation but before its name has been assigned to `$tmp'.
12996$debug ||
12997{
12998  tmp= ac_tmp=
12999  trap 'exit_status=$?
13000  : "${ac_tmp:=$tmp}"
13001  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13002' 0
13003  trap 'as_fn_exit 1' 1 2 13 15
13004}
13005# Create a (secure) tmp directory for tmp files.
13006
13007{
13008  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13009  test -d "$tmp"
13010}  ||
13011{
13012  tmp=./conf$$-$RANDOM
13013  (umask 077 && mkdir "$tmp")
13014} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13015ac_tmp=$tmp
13016
13017# Set up the scripts for CONFIG_FILES section.
13018# No need to generate them if there are no CONFIG_FILES.
13019# This happens for instance with `./config.status config.h'.
13020if test -n "$CONFIG_FILES"; then
13021
13022
13023ac_cr=`echo X | tr X '\015'`
13024# On cygwin, bash can eat \r inside `` if the user requested igncr.
13025# But we know of no other shell where ac_cr would be empty at this
13026# point, so we can use a bashism as a fallback.
13027if test "x$ac_cr" = x; then
13028  eval ac_cr=\$\'\\r\'
13029fi
13030ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13031if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13032  ac_cs_awk_cr='\\r'
13033else
13034  ac_cs_awk_cr=$ac_cr
13035fi
13036
13037echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13038_ACEOF
13039
13040
13041{
13042  echo "cat >conf$$subs.awk <<_ACEOF" &&
13043  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13044  echo "_ACEOF"
13045} >conf$$subs.sh ||
13046  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13047ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13048ac_delim='%!_!# '
13049for ac_last_try in false false false false false :; do
13050  . ./conf$$subs.sh ||
13051    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13052
13053  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13054  if test $ac_delim_n = $ac_delim_num; then
13055    break
13056  elif $ac_last_try; then
13057    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13058  else
13059    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13060  fi
13061done
13062rm -f conf$$subs.sh
13063
13064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13065cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13066_ACEOF
13067sed -n '
13068h
13069s/^/S["/; s/!.*/"]=/
13070p
13071g
13072s/^[^!]*!//
13073:repl
13074t repl
13075s/'"$ac_delim"'$//
13076t delim
13077:nl
13078h
13079s/\(.\{148\}\)..*/\1/
13080t more1
13081s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13082p
13083n
13084b repl
13085:more1
13086s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13087p
13088g
13089s/.\{148\}//
13090t nl
13091:delim
13092h
13093s/\(.\{148\}\)..*/\1/
13094t more2
13095s/["\\]/\\&/g; s/^/"/; s/$/"/
13096p
13097b
13098:more2
13099s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13100p
13101g
13102s/.\{148\}//
13103t delim
13104' <conf$$subs.awk | sed '
13105/^[^""]/{
13106  N
13107  s/\n//
13108}
13109' >>$CONFIG_STATUS || ac_write_fail=1
13110rm -f conf$$subs.awk
13111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13112_ACAWK
13113cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13114  for (key in S) S_is_set[key] = 1
13115  FS = ""
13116
13117}
13118{
13119  line = $ 0
13120  nfields = split(line, field, "@")
13121  substed = 0
13122  len = length(field[1])
13123  for (i = 2; i < nfields; i++) {
13124    key = field[i]
13125    keylen = length(key)
13126    if (S_is_set[key]) {
13127      value = S[key]
13128      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13129      len += length(value) + length(field[++i])
13130      substed = 1
13131    } else
13132      len += 1 + keylen
13133  }
13134
13135  print line
13136}
13137
13138_ACAWK
13139_ACEOF
13140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13141if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13142  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13143else
13144  cat
13145fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13146  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13147_ACEOF
13148
13149# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13150# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13151# trailing colons and then remove the whole line if VPATH becomes empty
13152# (actually we leave an empty line to preserve line numbers).
13153if test "x$srcdir" = x.; then
13154  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13155h
13156s///
13157s/^/:/
13158s/[	 ]*$/:/
13159s/:\$(srcdir):/:/g
13160s/:\${srcdir}:/:/g
13161s/:@srcdir@:/:/g
13162s/^:*//
13163s/:*$//
13164x
13165s/\(=[	 ]*\).*/\1/
13166G
13167s/\n//
13168s/^[^=]*=[	 ]*$//
13169}'
13170fi
13171
13172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13173fi # test -n "$CONFIG_FILES"
13174
13175# Set up the scripts for CONFIG_HEADERS section.
13176# No need to generate them if there are no CONFIG_HEADERS.
13177# This happens for instance with `./config.status Makefile'.
13178if test -n "$CONFIG_HEADERS"; then
13179cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13180BEGIN {
13181_ACEOF
13182
13183# Transform confdefs.h into an awk script `defines.awk', embedded as
13184# here-document in config.status, that substitutes the proper values into
13185# config.h.in to produce config.h.
13186
13187# Create a delimiter string that does not exist in confdefs.h, to ease
13188# handling of long lines.
13189ac_delim='%!_!# '
13190for ac_last_try in false false :; do
13191  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13192  if test -z "$ac_tt"; then
13193    break
13194  elif $ac_last_try; then
13195    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13196  else
13197    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13198  fi
13199done
13200
13201# For the awk script, D is an array of macro values keyed by name,
13202# likewise P contains macro parameters if any.  Preserve backslash
13203# newline sequences.
13204
13205ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13206sed -n '
13207s/.\{148\}/&'"$ac_delim"'/g
13208t rset
13209:rset
13210s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13211t def
13212d
13213:def
13214s/\\$//
13215t bsnl
13216s/["\\]/\\&/g
13217s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13218D["\1"]=" \3"/p
13219s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13220d
13221:bsnl
13222s/["\\]/\\&/g
13223s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13224D["\1"]=" \3\\\\\\n"\\/p
13225t cont
13226s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13227t cont
13228d
13229:cont
13230n
13231s/.\{148\}/&'"$ac_delim"'/g
13232t clear
13233:clear
13234s/\\$//
13235t bsnlc
13236s/["\\]/\\&/g; s/^/"/; s/$/"/p
13237d
13238:bsnlc
13239s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13240b cont
13241' <confdefs.h | sed '
13242s/'"$ac_delim"'/"\\\
13243"/g' >>$CONFIG_STATUS || ac_write_fail=1
13244
13245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13246  for (key in D) D_is_set[key] = 1
13247  FS = ""
13248}
13249/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13250  line = \$ 0
13251  split(line, arg, " ")
13252  if (arg[1] == "#") {
13253    defundef = arg[2]
13254    mac1 = arg[3]
13255  } else {
13256    defundef = substr(arg[1], 2)
13257    mac1 = arg[2]
13258  }
13259  split(mac1, mac2, "(") #)
13260  macro = mac2[1]
13261  prefix = substr(line, 1, index(line, defundef) - 1)
13262  if (D_is_set[macro]) {
13263    # Preserve the white space surrounding the "#".
13264    print prefix "define", macro P[macro] D[macro]
13265    next
13266  } else {
13267    # Replace #undef with comments.  This is necessary, for example,
13268    # in the case of _POSIX_SOURCE, which is predefined and required
13269    # on some systems where configure will not decide to define it.
13270    if (defundef == "undef") {
13271      print "/*", prefix defundef, macro, "*/"
13272      next
13273    }
13274  }
13275}
13276{ print }
13277_ACAWK
13278_ACEOF
13279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13280  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13281fi # test -n "$CONFIG_HEADERS"
13282
13283
13284eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13285shift
13286for ac_tag
13287do
13288  case $ac_tag in
13289  :[FHLC]) ac_mode=$ac_tag; continue;;
13290  esac
13291  case $ac_mode$ac_tag in
13292  :[FHL]*:*);;
13293  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13294  :[FH]-) ac_tag=-:-;;
13295  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13296  esac
13297  ac_save_IFS=$IFS
13298  IFS=:
13299  set x $ac_tag
13300  IFS=$ac_save_IFS
13301  shift
13302  ac_file=$1
13303  shift
13304
13305  case $ac_mode in
13306  :L) ac_source=$1;;
13307  :[FH])
13308    ac_file_inputs=
13309    for ac_f
13310    do
13311      case $ac_f in
13312      -) ac_f="$ac_tmp/stdin";;
13313      *) # Look for the file first in the build tree, then in the source tree
13314	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13315	 # because $ac_f cannot contain `:'.
13316	 test -f "$ac_f" ||
13317	   case $ac_f in
13318	   [\\/$]*) false;;
13319	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13320	   esac ||
13321	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13322      esac
13323      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13324      as_fn_append ac_file_inputs " '$ac_f'"
13325    done
13326
13327    # Let's still pretend it is `configure' which instantiates (i.e., don't
13328    # use $as_me), people would be surprised to read:
13329    #    /* config.h.  Generated by config.status.  */
13330    configure_input='Generated from '`
13331	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13332	`' by configure.'
13333    if test x"$ac_file" != x-; then
13334      configure_input="$ac_file.  $configure_input"
13335      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13336printf "%s\n" "$as_me: creating $ac_file" >&6;}
13337    fi
13338    # Neutralize special characters interpreted by sed in replacement strings.
13339    case $configure_input in #(
13340    *\&* | *\|* | *\\* )
13341       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13342       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13343    *) ac_sed_conf_input=$configure_input;;
13344    esac
13345
13346    case $ac_tag in
13347    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13348      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13349    esac
13350    ;;
13351  esac
13352
13353  ac_dir=`$as_dirname -- "$ac_file" ||
13354$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13355	 X"$ac_file" : 'X\(//\)[^/]' \| \
13356	 X"$ac_file" : 'X\(//\)$' \| \
13357	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13358printf "%s\n" X"$ac_file" |
13359    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13360	    s//\1/
13361	    q
13362	  }
13363	  /^X\(\/\/\)[^/].*/{
13364	    s//\1/
13365	    q
13366	  }
13367	  /^X\(\/\/\)$/{
13368	    s//\1/
13369	    q
13370	  }
13371	  /^X\(\/\).*/{
13372	    s//\1/
13373	    q
13374	  }
13375	  s/.*/./; q'`
13376  as_dir="$ac_dir"; as_fn_mkdir_p
13377  ac_builddir=.
13378
13379case "$ac_dir" in
13380.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13381*)
13382  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13383  # A ".." for each directory in $ac_dir_suffix.
13384  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13385  case $ac_top_builddir_sub in
13386  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13387  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13388  esac ;;
13389esac
13390ac_abs_top_builddir=$ac_pwd
13391ac_abs_builddir=$ac_pwd$ac_dir_suffix
13392# for backward compatibility:
13393ac_top_builddir=$ac_top_build_prefix
13394
13395case $srcdir in
13396  .)  # We are building in place.
13397    ac_srcdir=.
13398    ac_top_srcdir=$ac_top_builddir_sub
13399    ac_abs_top_srcdir=$ac_pwd ;;
13400  [\\/]* | ?:[\\/]* )  # Absolute name.
13401    ac_srcdir=$srcdir$ac_dir_suffix;
13402    ac_top_srcdir=$srcdir
13403    ac_abs_top_srcdir=$srcdir ;;
13404  *) # Relative name.
13405    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13406    ac_top_srcdir=$ac_top_build_prefix$srcdir
13407    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13408esac
13409ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13410
13411
13412  case $ac_mode in
13413  :F)
13414  #
13415  # CONFIG_FILE
13416  #
13417
13418  case $INSTALL in
13419  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13420  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13421  esac
13422  ac_MKDIR_P=$MKDIR_P
13423  case $MKDIR_P in
13424  [\\/$]* | ?:[\\/]* ) ;;
13425  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13426  esac
13427_ACEOF
13428
13429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13430# If the template does not know about datarootdir, expand it.
13431# FIXME: This hack should be removed a few years after 2.60.
13432ac_datarootdir_hack=; ac_datarootdir_seen=
13433ac_sed_dataroot='
13434/datarootdir/ {
13435  p
13436  q
13437}
13438/@datadir@/p
13439/@docdir@/p
13440/@infodir@/p
13441/@localedir@/p
13442/@mandir@/p'
13443case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13444*datarootdir*) ac_datarootdir_seen=yes;;
13445*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13447printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13448_ACEOF
13449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13450  ac_datarootdir_hack='
13451  s&@datadir@&$datadir&g
13452  s&@docdir@&$docdir&g
13453  s&@infodir@&$infodir&g
13454  s&@localedir@&$localedir&g
13455  s&@mandir@&$mandir&g
13456  s&\\\${datarootdir}&$datarootdir&g' ;;
13457esac
13458_ACEOF
13459
13460# Neutralize VPATH when `$srcdir' = `.'.
13461# Shell code in configure.ac might set extrasub.
13462# FIXME: do we really want to maintain this feature?
13463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13464ac_sed_extra="$ac_vpsub
13465$extrasub
13466_ACEOF
13467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13468:t
13469/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13470s|@configure_input@|$ac_sed_conf_input|;t t
13471s&@top_builddir@&$ac_top_builddir_sub&;t t
13472s&@top_build_prefix@&$ac_top_build_prefix&;t t
13473s&@srcdir@&$ac_srcdir&;t t
13474s&@abs_srcdir@&$ac_abs_srcdir&;t t
13475s&@top_srcdir@&$ac_top_srcdir&;t t
13476s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13477s&@builddir@&$ac_builddir&;t t
13478s&@abs_builddir@&$ac_abs_builddir&;t t
13479s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13480s&@INSTALL@&$ac_INSTALL&;t t
13481s&@MKDIR_P@&$ac_MKDIR_P&;t t
13482$ac_datarootdir_hack
13483"
13484eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13485  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13486
13487test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13488  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13489  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13490      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13492which seems to be undefined.  Please make sure it is defined" >&5
13493printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13494which seems to be undefined.  Please make sure it is defined" >&2;}
13495
13496  rm -f "$ac_tmp/stdin"
13497  case $ac_file in
13498  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13499  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13500  esac \
13501  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13502 ;;
13503  :H)
13504  #
13505  # CONFIG_HEADER
13506  #
13507  if test x"$ac_file" != x-; then
13508    {
13509      printf "%s\n" "/* $configure_input  */" >&1 \
13510      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13511    } >"$ac_tmp/config.h" \
13512      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13513    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13514      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13515printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13516    else
13517      rm -f "$ac_file"
13518      mv "$ac_tmp/config.h" "$ac_file" \
13519	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13520    fi
13521  else
13522    printf "%s\n" "/* $configure_input  */" >&1 \
13523      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13524      || as_fn_error $? "could not create -" "$LINENO" 5
13525  fi
13526# Compute "$ac_file"'s index in $config_headers.
13527_am_arg="$ac_file"
13528_am_stamp_count=1
13529for _am_header in $config_headers :; do
13530  case $_am_header in
13531    $_am_arg | $_am_arg:* )
13532      break ;;
13533    * )
13534      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13535  esac
13536done
13537echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13538$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13539	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13540	 X"$_am_arg" : 'X\(//\)$' \| \
13541	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13542printf "%s\n" X"$_am_arg" |
13543    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13544	    s//\1/
13545	    q
13546	  }
13547	  /^X\(\/\/\)[^/].*/{
13548	    s//\1/
13549	    q
13550	  }
13551	  /^X\(\/\/\)$/{
13552	    s//\1/
13553	    q
13554	  }
13555	  /^X\(\/\).*/{
13556	    s//\1/
13557	    q
13558	  }
13559	  s/.*/./; q'`/stamp-h$_am_stamp_count
13560 ;;
13561
13562  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13563printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13564 ;;
13565  esac
13566
13567
13568  case $ac_file$ac_mode in
13569    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13570  # Older Autoconf quotes --file arguments for eval, but not when files
13571  # are listed without --file.  Let's play safe and only enable the eval
13572  # if we detect the quoting.
13573  # TODO: see whether this extra hack can be removed once we start
13574  # requiring Autoconf 2.70 or later.
13575  case $CONFIG_FILES in #(
13576  *\'*) :
13577    eval set x "$CONFIG_FILES" ;; #(
13578  *) :
13579    set x $CONFIG_FILES ;; #(
13580  *) :
13581     ;;
13582esac
13583  shift
13584  # Used to flag and report bootstrapping failures.
13585  am_rc=0
13586  for am_mf
13587  do
13588    # Strip MF so we end up with the name of the file.
13589    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13590    # Check whether this is an Automake generated Makefile which includes
13591    # dependency-tracking related rules and includes.
13592    # Grep'ing the whole file directly is not great: AIX grep has a line
13593    # limit of 2048, but all sed's we know have understand at least 4000.
13594    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13595      || continue
13596    am_dirpart=`$as_dirname -- "$am_mf" ||
13597$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13598	 X"$am_mf" : 'X\(//\)[^/]' \| \
13599	 X"$am_mf" : 'X\(//\)$' \| \
13600	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13601printf "%s\n" X"$am_mf" |
13602    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13603	    s//\1/
13604	    q
13605	  }
13606	  /^X\(\/\/\)[^/].*/{
13607	    s//\1/
13608	    q
13609	  }
13610	  /^X\(\/\/\)$/{
13611	    s//\1/
13612	    q
13613	  }
13614	  /^X\(\/\).*/{
13615	    s//\1/
13616	    q
13617	  }
13618	  s/.*/./; q'`
13619    am_filepart=`$as_basename -- "$am_mf" ||
13620$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13621	 X"$am_mf" : 'X\(//\)$' \| \
13622	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13623printf "%s\n" X/"$am_mf" |
13624    sed '/^.*\/\([^/][^/]*\)\/*$/{
13625	    s//\1/
13626	    q
13627	  }
13628	  /^X\/\(\/\/\)$/{
13629	    s//\1/
13630	    q
13631	  }
13632	  /^X\/\(\/\).*/{
13633	    s//\1/
13634	    q
13635	  }
13636	  s/.*/./; q'`
13637    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13638      && sed -e '/# am--include-marker/d' "$am_filepart" \
13639        | $MAKE -f - am--depfiles" >&5
13640   (cd "$am_dirpart" \
13641      && sed -e '/# am--include-marker/d' "$am_filepart" \
13642        | $MAKE -f - am--depfiles) >&5 2>&5
13643   ac_status=$?
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); } || am_rc=$?
13646  done
13647  if test $am_rc -ne 0; then
13648    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13649printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13650as_fn_error $? "Something went wrong bootstrapping makefile fragments
13651    for automatic dependency tracking.  If GNU make was not used, consider
13652    re-running the configure script with MAKE=\"gmake\" (or whatever is
13653    necessary).  You can also try re-running configure with the
13654    '--disable-dependency-tracking' option to at least be able to build
13655    the package (albeit without support for automatic dependency tracking).
13656See \`config.log' for more details" "$LINENO" 5; }
13657  fi
13658  { am_dirpart=; unset am_dirpart;}
13659  { am_filepart=; unset am_filepart;}
13660  { am_mf=; unset am_mf;}
13661  { am_rc=; unset am_rc;}
13662  rm -f conftest-deps.mk
13663}
13664 ;;
13665
13666  esac
13667done # for ac_tag
13668
13669
13670as_fn_exit 0
13671_ACEOF
13672ac_clean_files=$ac_clean_files_save
13673
13674test $ac_write_fail = 0 ||
13675  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13676
13677
13678# configure is writing to config.log, and then calls config.status.
13679# config.status does its own redirection, appending to config.log.
13680# Unfortunately, on DOS this fails, as config.log is still kept open
13681# by configure, so config.status won't be able to write to it; its
13682# output is simply discarded.  So we exec the FD to /dev/null,
13683# effectively closing config.log, so it can be properly (re)opened and
13684# appended to by config.status.  When coming back to configure, we
13685# need to make the FD available again.
13686if test "$no_create" != yes; then
13687  ac_cs_success=:
13688  ac_config_status_args=
13689  test "$silent" = yes &&
13690    ac_config_status_args="$ac_config_status_args --quiet"
13691  exec 5>/dev/null
13692  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13693  exec 5>>config.log
13694  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13695  # would make configure fail if this is the last instruction.
13696  $ac_cs_success || as_fn_exit 1
13697fi
13698if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13700printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13701fi
13702
13703
13704