configure revision 765b7306
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xauth 1.1.2.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/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/xauth/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='xauth'
614PACKAGE_TARNAME='xauth'
615PACKAGE_VERSION='1.1.2'
616PACKAGE_STRING='xauth 1.1.2'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xauth/issues'
618PACKAGE_URL=''
619
620# Factoring default headers for most tests.
621ac_includes_default="\
622#include <stddef.h>
623#ifdef HAVE_STDIO_H
624# include <stdio.h>
625#endif
626#ifdef HAVE_STDLIB_H
627# include <stdlib.h>
628#endif
629#ifdef HAVE_STRING_H
630# include <string.h>
631#endif
632#ifdef HAVE_INTTYPES_H
633# include <inttypes.h>
634#endif
635#ifdef HAVE_STDINT_H
636# include <stdint.h>
637#endif
638#ifdef HAVE_STRINGS_H
639# include <strings.h>
640#endif
641#ifdef HAVE_SYS_TYPES_H
642# include <sys/types.h>
643#endif
644#ifdef HAVE_SYS_STAT_H
645# include <sys/stat.h>
646#endif
647#ifdef HAVE_UNISTD_H
648# include <unistd.h>
649#endif"
650
651ac_header_c_list=
652ac_subst_vars='am__EXEEXT_FALSE
653am__EXEEXT_TRUE
654LTLIBOBJS
655LIBOBJS
656LINT_FALSE
657LINT_TRUE
658LINT_FLAGS
659LINT
660XAUTH_LIBS
661XAUTH_CFLAGS
662MAN_SUBSTS
663XORG_MAN_PAGE
664ADMIN_MAN_DIR
665DRIVER_MAN_DIR
666MISC_MAN_DIR
667FILE_MAN_DIR
668LIB_MAN_DIR
669APP_MAN_DIR
670ADMIN_MAN_SUFFIX
671DRIVER_MAN_SUFFIX
672MISC_MAN_SUFFIX
673FILE_MAN_SUFFIX
674LIB_MAN_SUFFIX
675APP_MAN_SUFFIX
676SED
677host_os
678host_vendor
679host_cpu
680host
681build_os
682build_vendor
683build_cpu
684build
685INSTALL_CMD
686PKG_CONFIG_LIBDIR
687PKG_CONFIG_PATH
688PKG_CONFIG
689CHANGELOG_CMD
690STRICT_CFLAGS
691CWARNFLAGS
692BASE_CFLAGS
693am__fastdepCC_FALSE
694am__fastdepCC_TRUE
695CCDEPMODE
696am__nodep
697AMDEPBACKSLASH
698AMDEP_FALSE
699AMDEP_TRUE
700am__include
701DEPDIR
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709AM_BACKSLASH
710AM_DEFAULT_VERBOSITY
711AM_DEFAULT_V
712AM_V
713CSCOPE
714ETAGS
715CTAGS
716am__untar
717am__tar
718AMTAR
719am__leading_dot
720SET_MAKE
721AWK
722mkdir_p
723MKDIR_P
724INSTALL_STRIP_PROGRAM
725STRIP
726install_sh
727MAKEINFO
728AUTOHEADER
729AUTOMAKE
730AUTOCONF
731ACLOCAL
732VERSION
733PACKAGE
734CYGPATH_W
735am__isrc
736INSTALL_DATA
737INSTALL_SCRIPT
738INSTALL_PROGRAM
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758runstatedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL
778am__quote'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_silent_rules
783enable_dependency_tracking
784enable_selective_werror
785enable_strict_compilation
786enable_unix_transport
787enable_tcp_transport
788enable_ipv6
789enable_local_transport
790with_lint
791'
792      ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
800PKG_CONFIG
801PKG_CONFIG_PATH
802PKG_CONFIG_LIBDIR
803XAUTH_CFLAGS
804XAUTH_LIBS
805LINT
806LINT_FLAGS'
807
808
809# Initialize some variables set by options.
810ac_init_help=
811ac_init_version=false
812ac_unrecognized_opts=
813ac_unrecognized_sep=
814# The variables have the same names as the options, with
815# dashes changed to underlines.
816cache_file=/dev/null
817exec_prefix=NONE
818no_create=
819no_recursion=
820prefix=NONE
821program_prefix=NONE
822program_suffix=NONE
823program_transform_name=s,x,x,
824silent=
825site=
826srcdir=
827verbose=
828x_includes=NONE
829x_libraries=NONE
830
831# Installation directory options.
832# These are left unexpanded so users can "make install exec_prefix=/foo"
833# and all the variables that are supposed to be based on exec_prefix
834# by default will actually change.
835# Use braces instead of parens because sh, perl, etc. also accept them.
836# (The list follows the same order as the GNU Coding Standards.)
837bindir='${exec_prefix}/bin'
838sbindir='${exec_prefix}/sbin'
839libexecdir='${exec_prefix}/libexec'
840datarootdir='${prefix}/share'
841datadir='${datarootdir}'
842sysconfdir='${prefix}/etc'
843sharedstatedir='${prefix}/com'
844localstatedir='${prefix}/var'
845runstatedir='${localstatedir}/run'
846includedir='${prefix}/include'
847oldincludedir='/usr/include'
848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849infodir='${datarootdir}/info'
850htmldir='${docdir}'
851dvidir='${docdir}'
852pdfdir='${docdir}'
853psdir='${docdir}'
854libdir='${exec_prefix}/lib'
855localedir='${datarootdir}/locale'
856mandir='${datarootdir}/man'
857
858ac_prev=
859ac_dashdash=
860for ac_option
861do
862  # If the previous option needs an argument, assign it.
863  if test -n "$ac_prev"; then
864    eval $ac_prev=\$ac_option
865    ac_prev=
866    continue
867  fi
868
869  case $ac_option in
870  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871  *=)   ac_optarg= ;;
872  *)    ac_optarg=yes ;;
873  esac
874
875  case $ac_dashdash$ac_option in
876  --)
877    ac_dashdash=yes ;;
878
879  -bindir | --bindir | --bindi | --bind | --bin | --bi)
880    ac_prev=bindir ;;
881  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882    bindir=$ac_optarg ;;
883
884  -build | --build | --buil | --bui | --bu)
885    ac_prev=build_alias ;;
886  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887    build_alias=$ac_optarg ;;
888
889  -cache-file | --cache-file | --cache-fil | --cache-fi \
890  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891    ac_prev=cache_file ;;
892  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894    cache_file=$ac_optarg ;;
895
896  --config-cache | -C)
897    cache_file=config.cache ;;
898
899  -datadir | --datadir | --datadi | --datad)
900    ac_prev=datadir ;;
901  -datadir=* | --datadir=* | --datadi=* | --datad=*)
902    datadir=$ac_optarg ;;
903
904  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905  | --dataroo | --dataro | --datar)
906    ac_prev=datarootdir ;;
907  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909    datarootdir=$ac_optarg ;;
910
911  -disable-* | --disable-*)
912    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913    # Reject names that are not valid shell variable names.
914    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915      as_fn_error $? "invalid feature name: \`$ac_useropt'"
916    ac_useropt_orig=$ac_useropt
917    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
918    case $ac_user_opts in
919      *"
920"enable_$ac_useropt"
921"*) ;;
922      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923	 ac_unrecognized_sep=', ';;
924    esac
925    eval enable_$ac_useropt=no ;;
926
927  -docdir | --docdir | --docdi | --doc | --do)
928    ac_prev=docdir ;;
929  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930    docdir=$ac_optarg ;;
931
932  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933    ac_prev=dvidir ;;
934  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935    dvidir=$ac_optarg ;;
936
937  -enable-* | --enable-*)
938    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939    # Reject names that are not valid shell variable names.
940    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941      as_fn_error $? "invalid feature name: \`$ac_useropt'"
942    ac_useropt_orig=$ac_useropt
943    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
944    case $ac_user_opts in
945      *"
946"enable_$ac_useropt"
947"*) ;;
948      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949	 ac_unrecognized_sep=', ';;
950    esac
951    eval enable_$ac_useropt=\$ac_optarg ;;
952
953  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955  | --exec | --exe | --ex)
956    ac_prev=exec_prefix ;;
957  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959  | --exec=* | --exe=* | --ex=*)
960    exec_prefix=$ac_optarg ;;
961
962  -gas | --gas | --ga | --g)
963    # Obsolete; use --with-gas.
964    with_gas=yes ;;
965
966  -help | --help | --hel | --he | -h)
967    ac_init_help=long ;;
968  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969    ac_init_help=recursive ;;
970  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971    ac_init_help=short ;;
972
973  -host | --host | --hos | --ho)
974    ac_prev=host_alias ;;
975  -host=* | --host=* | --hos=* | --ho=*)
976    host_alias=$ac_optarg ;;
977
978  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979    ac_prev=htmldir ;;
980  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981  | --ht=*)
982    htmldir=$ac_optarg ;;
983
984  -includedir | --includedir | --includedi | --included | --include \
985  | --includ | --inclu | --incl | --inc)
986    ac_prev=includedir ;;
987  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988  | --includ=* | --inclu=* | --incl=* | --inc=*)
989    includedir=$ac_optarg ;;
990
991  -infodir | --infodir | --infodi | --infod | --info | --inf)
992    ac_prev=infodir ;;
993  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994    infodir=$ac_optarg ;;
995
996  -libdir | --libdir | --libdi | --libd)
997    ac_prev=libdir ;;
998  -libdir=* | --libdir=* | --libdi=* | --libd=*)
999    libdir=$ac_optarg ;;
1000
1001  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002  | --libexe | --libex | --libe)
1003    ac_prev=libexecdir ;;
1004  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005  | --libexe=* | --libex=* | --libe=*)
1006    libexecdir=$ac_optarg ;;
1007
1008  -localedir | --localedir | --localedi | --localed | --locale)
1009    ac_prev=localedir ;;
1010  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011    localedir=$ac_optarg ;;
1012
1013  -localstatedir | --localstatedir | --localstatedi | --localstated \
1014  | --localstate | --localstat | --localsta | --localst | --locals)
1015    ac_prev=localstatedir ;;
1016  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018    localstatedir=$ac_optarg ;;
1019
1020  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021    ac_prev=mandir ;;
1022  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023    mandir=$ac_optarg ;;
1024
1025  -nfp | --nfp | --nf)
1026    # Obsolete; use --without-fp.
1027    with_fp=no ;;
1028
1029  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030  | --no-cr | --no-c | -n)
1031    no_create=yes ;;
1032
1033  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035    no_recursion=yes ;;
1036
1037  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039  | --oldin | --oldi | --old | --ol | --o)
1040    ac_prev=oldincludedir ;;
1041  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044    oldincludedir=$ac_optarg ;;
1045
1046  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047    ac_prev=prefix ;;
1048  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049    prefix=$ac_optarg ;;
1050
1051  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052  | --program-pre | --program-pr | --program-p)
1053    ac_prev=program_prefix ;;
1054  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056    program_prefix=$ac_optarg ;;
1057
1058  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059  | --program-suf | --program-su | --program-s)
1060    ac_prev=program_suffix ;;
1061  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063    program_suffix=$ac_optarg ;;
1064
1065  -program-transform-name | --program-transform-name \
1066  | --program-transform-nam | --program-transform-na \
1067  | --program-transform-n | --program-transform- \
1068  | --program-transform | --program-transfor \
1069  | --program-transfo | --program-transf \
1070  | --program-trans | --program-tran \
1071  | --progr-tra | --program-tr | --program-t)
1072    ac_prev=program_transform_name ;;
1073  -program-transform-name=* | --program-transform-name=* \
1074  | --program-transform-nam=* | --program-transform-na=* \
1075  | --program-transform-n=* | --program-transform-=* \
1076  | --program-transform=* | --program-transfor=* \
1077  | --program-transfo=* | --program-transf=* \
1078  | --program-trans=* | --program-tran=* \
1079  | --progr-tra=* | --program-tr=* | --program-t=*)
1080    program_transform_name=$ac_optarg ;;
1081
1082  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083    ac_prev=pdfdir ;;
1084  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085    pdfdir=$ac_optarg ;;
1086
1087  -psdir | --psdir | --psdi | --psd | --ps)
1088    ac_prev=psdir ;;
1089  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090    psdir=$ac_optarg ;;
1091
1092  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093  | -silent | --silent | --silen | --sile | --sil)
1094    silent=yes ;;
1095
1096  -runstatedir | --runstatedir | --runstatedi | --runstated \
1097  | --runstate | --runstat | --runsta | --runst | --runs \
1098  | --run | --ru | --r)
1099    ac_prev=runstatedir ;;
1100  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1101  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1102  | --run=* | --ru=* | --r=*)
1103    runstatedir=$ac_optarg ;;
1104
1105  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106    ac_prev=sbindir ;;
1107  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108  | --sbi=* | --sb=*)
1109    sbindir=$ac_optarg ;;
1110
1111  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113  | --sharedst | --shareds | --shared | --share | --shar \
1114  | --sha | --sh)
1115    ac_prev=sharedstatedir ;;
1116  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119  | --sha=* | --sh=*)
1120    sharedstatedir=$ac_optarg ;;
1121
1122  -site | --site | --sit)
1123    ac_prev=site ;;
1124  -site=* | --site=* | --sit=*)
1125    site=$ac_optarg ;;
1126
1127  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128    ac_prev=srcdir ;;
1129  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130    srcdir=$ac_optarg ;;
1131
1132  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133  | --syscon | --sysco | --sysc | --sys | --sy)
1134    ac_prev=sysconfdir ;;
1135  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137    sysconfdir=$ac_optarg ;;
1138
1139  -target | --target | --targe | --targ | --tar | --ta | --t)
1140    ac_prev=target_alias ;;
1141  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142    target_alias=$ac_optarg ;;
1143
1144  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145    verbose=yes ;;
1146
1147  -version | --version | --versio | --versi | --vers | -V)
1148    ac_init_version=: ;;
1149
1150  -with-* | --with-*)
1151    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152    # Reject names that are not valid shell variable names.
1153    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154      as_fn_error $? "invalid package name: \`$ac_useropt'"
1155    ac_useropt_orig=$ac_useropt
1156    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1157    case $ac_user_opts in
1158      *"
1159"with_$ac_useropt"
1160"*) ;;
1161      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162	 ac_unrecognized_sep=', ';;
1163    esac
1164    eval with_$ac_useropt=\$ac_optarg ;;
1165
1166  -without-* | --without-*)
1167    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168    # Reject names that are not valid shell variable names.
1169    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170      as_fn_error $? "invalid package name: \`$ac_useropt'"
1171    ac_useropt_orig=$ac_useropt
1172    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1173    case $ac_user_opts in
1174      *"
1175"with_$ac_useropt"
1176"*) ;;
1177      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178	 ac_unrecognized_sep=', ';;
1179    esac
1180    eval with_$ac_useropt=no ;;
1181
1182  --x)
1183    # Obsolete; use --with-x.
1184    with_x=yes ;;
1185
1186  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187  | --x-incl | --x-inc | --x-in | --x-i)
1188    ac_prev=x_includes ;;
1189  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191    x_includes=$ac_optarg ;;
1192
1193  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195    ac_prev=x_libraries ;;
1196  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198    x_libraries=$ac_optarg ;;
1199
1200  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201Try \`$0 --help' for more information"
1202    ;;
1203
1204  *=*)
1205    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206    # Reject names that are not valid shell variable names.
1207    case $ac_envvar in #(
1208      '' | [0-9]* | *[!_$as_cr_alnum]* )
1209      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210    esac
1211    eval $ac_envvar=\$ac_optarg
1212    export $ac_envvar ;;
1213
1214  *)
1215    # FIXME: should be removed in autoconf 3.0.
1216    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1217    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1219    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220    ;;
1221
1222  esac
1223done
1224
1225if test -n "$ac_prev"; then
1226  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227  as_fn_error $? "missing argument to $ac_option"
1228fi
1229
1230if test -n "$ac_unrecognized_opts"; then
1231  case $enable_option_checking in
1232    no) ;;
1233    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235  esac
1236fi
1237
1238# Check all directory arguments for consistency.
1239for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240		datadir sysconfdir sharedstatedir localstatedir includedir \
1241		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242		libdir localedir mandir runstatedir
1243do
1244  eval ac_val=\$$ac_var
1245  # Remove trailing slashes.
1246  case $ac_val in
1247    */ )
1248      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249      eval $ac_var=\$ac_val;;
1250  esac
1251  # Be sure to have absolute directory names.
1252  case $ac_val in
1253    [\\/$]* | ?:[\\/]* )  continue;;
1254    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255  esac
1256  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257done
1258
1259# There might be people who depend on the old broken behavior: `$host'
1260# used to hold the argument of --host etc.
1261# FIXME: To remove some day.
1262build=$build_alias
1263host=$host_alias
1264target=$target_alias
1265
1266# FIXME: To remove some day.
1267if test "x$host_alias" != x; then
1268  if test "x$build_alias" = x; then
1269    cross_compiling=maybe
1270  elif test "x$build_alias" != "x$host_alias"; then
1271    cross_compiling=yes
1272  fi
1273fi
1274
1275ac_tool_prefix=
1276test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278test "$silent" = yes && exec 6>/dev/null
1279
1280
1281ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282ac_ls_di=`ls -di .` &&
1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284  as_fn_error $? "working directory cannot be determined"
1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286  as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289# Find the source files, if location was not specified.
1290if test -z "$srcdir"; then
1291  ac_srcdir_defaulted=yes
1292  # Try the directory containing this script, then the parent directory.
1293  ac_confdir=`$as_dirname -- "$as_myself" ||
1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295	 X"$as_myself" : 'X\(//\)[^/]' \| \
1296	 X"$as_myself" : 'X\(//\)$' \| \
1297	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298printf "%s\n" X"$as_myself" |
1299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\/\)[^/].*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)$/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\).*/{
1312	    s//\1/
1313	    q
1314	  }
1315	  s/.*/./; q'`
1316  srcdir=$ac_confdir
1317  if test ! -r "$srcdir/$ac_unique_file"; then
1318    srcdir=..
1319  fi
1320else
1321  ac_srcdir_defaulted=no
1322fi
1323if test ! -r "$srcdir/$ac_unique_file"; then
1324  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326fi
1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328ac_abs_confdir=`(
1329	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330	pwd)`
1331# When building in place, set srcdir=.
1332if test "$ac_abs_confdir" = "$ac_pwd"; then
1333  srcdir=.
1334fi
1335# Remove unnecessary trailing slashes from srcdir.
1336# Double slashes in file names in object file debugging info
1337# mess up M-x gdb in Emacs.
1338case $srcdir in
1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340esac
1341for ac_var in $ac_precious_vars; do
1342  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343  eval ac_env_${ac_var}_value=\$${ac_var}
1344  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346done
1347
1348#
1349# Report the --help message.
1350#
1351if test "$ac_init_help" = "long"; then
1352  # Omit some internal or obsolete options to make the list less imposing.
1353  # This message is too long to be a string in the A/UX 3.1 sh.
1354  cat <<_ACEOF
1355\`configure' configures xauth 1.1.2 to adapt to many kinds of systems.
1356
1357Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360VAR=VALUE.  See below for descriptions of some of the useful variables.
1361
1362Defaults for the options are specified in brackets.
1363
1364Configuration:
1365  -h, --help              display this help and exit
1366      --help=short        display options specific to this package
1367      --help=recursive    display the short help of all the included packages
1368  -V, --version           display version information and exit
1369  -q, --quiet, --silent   do not print \`checking ...' messages
1370      --cache-file=FILE   cache test results in FILE [disabled]
1371  -C, --config-cache      alias for \`--cache-file=config.cache'
1372  -n, --no-create         do not create output files
1373      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1374
1375Installation directories:
1376  --prefix=PREFIX         install architecture-independent files in PREFIX
1377                          [$ac_default_prefix]
1378  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379                          [PREFIX]
1380
1381By default, \`make install' will install all the files in
1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1383an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384for instance \`--prefix=\$HOME'.
1385
1386For better control, use the options below.
1387
1388Fine tuning of the installation directories:
1389  --bindir=DIR            user executables [EPREFIX/bin]
1390  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1391  --libexecdir=DIR        program executables [EPREFIX/libexec]
1392  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1393  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1394  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1395  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1396  --libdir=DIR            object code libraries [EPREFIX/lib]
1397  --includedir=DIR        C header files [PREFIX/include]
1398  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401  --infodir=DIR           info documentation [DATAROOTDIR/info]
1402  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403  --mandir=DIR            man documentation [DATAROOTDIR/man]
1404  --docdir=DIR            documentation root [DATAROOTDIR/doc/xauth]
1405  --htmldir=DIR           html documentation [DOCDIR]
1406  --dvidir=DIR            dvi documentation [DOCDIR]
1407  --pdfdir=DIR            pdf documentation [DOCDIR]
1408  --psdir=DIR             ps documentation [DOCDIR]
1409_ACEOF
1410
1411  cat <<\_ACEOF
1412
1413Program names:
1414  --program-prefix=PREFIX            prepend PREFIX to installed program names
1415  --program-suffix=SUFFIX            append SUFFIX to installed program names
1416  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418System types:
1419  --build=BUILD     configure for building on BUILD [guessed]
1420  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421_ACEOF
1422fi
1423
1424if test -n "$ac_init_help"; then
1425  case $ac_init_help in
1426     short | recursive ) echo "Configuration of xauth 1.1.2:";;
1427   esac
1428  cat <<\_ACEOF
1429
1430Optional Features:
1431  --disable-option-checking  ignore unrecognized --enable/--with options
1432  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434  --enable-silent-rules   less verbose build output (undo: "make V=1")
1435  --disable-silent-rules  verbose build output (undo: "make V=0")
1436  --enable-dependency-tracking
1437                          do not reject slow dependency extractors
1438  --disable-dependency-tracking
1439                          speeds up one-time build
1440  --disable-selective-werror
1441                          Turn off selective compiler errors. (default:
1442                          enabled)
1443  --enable-strict-compilation
1444                          Enable all warnings from compiler and make them
1445                          errors (default: disabled)
1446  --enable-unix-transport Enable UNIX domain socket transport
1447  --enable-tcp-transport  Enable TCP socket transport
1448  --enable-ipv6           Enable IPv6 support
1449  --enable-local-transport
1450                          Enable os-specific local transport
1451
1452Optional Packages:
1453  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1454  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1455  --with-lint             Use a lint-style source code checker (default:
1456                          disabled)
1457
1458Some influential environment variables:
1459  CC          C compiler command
1460  CFLAGS      C compiler flags
1461  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462              nonstandard directory <lib dir>
1463  LIBS        libraries to pass to the linker, e.g. -l<library>
1464  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465              you have headers in a nonstandard directory <include dir>
1466  PKG_CONFIG  path to pkg-config utility
1467  PKG_CONFIG_PATH
1468              directories to add to pkg-config's search path
1469  PKG_CONFIG_LIBDIR
1470              path overriding pkg-config's built-in search path
1471  XAUTH_CFLAGS
1472              C compiler flags for XAUTH, overriding pkg-config
1473  XAUTH_LIBS  linker flags for XAUTH, overriding pkg-config
1474  LINT        Path to a lint-style command
1475  LINT_FLAGS  Flags for the lint-style command
1476
1477Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
1480Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>.
1481_ACEOF
1482ac_status=$?
1483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486  # If there are subdirs, report their specific --help.
1487  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488    test -d "$ac_dir" ||
1489      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490      continue
1491    ac_builddir=.
1492
1493case "$ac_dir" in
1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495*)
1496  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1497  # A ".." for each directory in $ac_dir_suffix.
1498  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499  case $ac_top_builddir_sub in
1500  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502  esac ;;
1503esac
1504ac_abs_top_builddir=$ac_pwd
1505ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506# for backward compatibility:
1507ac_top_builddir=$ac_top_build_prefix
1508
1509case $srcdir in
1510  .)  # We are building in place.
1511    ac_srcdir=.
1512    ac_top_srcdir=$ac_top_builddir_sub
1513    ac_abs_top_srcdir=$ac_pwd ;;
1514  [\\/]* | ?:[\\/]* )  # Absolute name.
1515    ac_srcdir=$srcdir$ac_dir_suffix;
1516    ac_top_srcdir=$srcdir
1517    ac_abs_top_srcdir=$srcdir ;;
1518  *) # Relative name.
1519    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520    ac_top_srcdir=$ac_top_build_prefix$srcdir
1521    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522esac
1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525    cd "$ac_dir" || { ac_status=$?; continue; }
1526    # Check for configure.gnu first; this name is used for a wrapper for
1527    # Metaconfig's "Configure" on case-insensitive file systems.
1528    if test -f "$ac_srcdir/configure.gnu"; then
1529      echo &&
1530      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531    elif test -f "$ac_srcdir/configure"; then
1532      echo &&
1533      $SHELL "$ac_srcdir/configure" --help=recursive
1534    else
1535      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536    fi || ac_status=$?
1537    cd "$ac_pwd" || { ac_status=$?; break; }
1538  done
1539fi
1540
1541test -n "$ac_init_help" && exit $ac_status
1542if $ac_init_version; then
1543  cat <<\_ACEOF
1544xauth configure 1.1.2
1545generated by GNU Autoconf 2.71
1546
1547Copyright (C) 2021 Free Software Foundation, Inc.
1548This configure script is free software; the Free Software Foundation
1549gives unlimited permission to copy, distribute and modify it.
1550_ACEOF
1551  exit
1552fi
1553
1554## ------------------------ ##
1555## Autoconf initialization. ##
1556## ------------------------ ##
1557
1558# ac_fn_c_try_compile LINENO
1559# --------------------------
1560# Try to compile conftest.$ac_ext, and return whether this succeeded.
1561ac_fn_c_try_compile ()
1562{
1563  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564  rm -f conftest.$ac_objext conftest.beam
1565  if { { ac_try="$ac_compile"
1566case "(($ac_try" in
1567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568  *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571printf "%s\n" "$ac_try_echo"; } >&5
1572  (eval "$ac_compile") 2>conftest.err
1573  ac_status=$?
1574  if test -s conftest.err; then
1575    grep -v '^ *+' conftest.err >conftest.er1
1576    cat conftest.er1 >&5
1577    mv -f conftest.er1 conftest.err
1578  fi
1579  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580  test $ac_status = 0; } && {
1581	 test -z "$ac_c_werror_flag" ||
1582	 test ! -s conftest.err
1583       } && test -s conftest.$ac_objext
1584then :
1585  ac_retval=0
1586else $as_nop
1587  printf "%s\n" "$as_me: failed program was:" >&5
1588sed 's/^/| /' conftest.$ac_ext >&5
1589
1590	ac_retval=1
1591fi
1592  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593  as_fn_set_status $ac_retval
1594
1595} # ac_fn_c_try_compile
1596
1597# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1598# -------------------------------------------------------
1599# Tests whether HEADER exists and can be compiled using the include files in
1600# INCLUDES, setting the cache variable VAR accordingly.
1601ac_fn_c_check_header_compile ()
1602{
1603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605printf %s "checking for $2... " >&6; }
1606if eval test \${$3+y}
1607then :
1608  printf %s "(cached) " >&6
1609else $as_nop
1610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611/* end confdefs.h.  */
1612$4
1613#include <$2>
1614_ACEOF
1615if ac_fn_c_try_compile "$LINENO"
1616then :
1617  eval "$3=yes"
1618else $as_nop
1619  eval "$3=no"
1620fi
1621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1622fi
1623eval ac_res=\$$3
1624	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625printf "%s\n" "$ac_res" >&6; }
1626  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
1628} # ac_fn_c_check_header_compile
1629
1630# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1631# ------------------------------------------------------------------
1632# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1633# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1634ac_fn_check_decl ()
1635{
1636  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637  as_decl_name=`echo $2|sed 's/ *(.*//'`
1638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1639printf %s "checking whether $as_decl_name is declared... " >&6; }
1640if eval test \${$3+y}
1641then :
1642  printf %s "(cached) " >&6
1643else $as_nop
1644  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1645  eval ac_save_FLAGS=\$$6
1646  as_fn_append $6 " $5"
1647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648/* end confdefs.h.  */
1649$4
1650int
1651main (void)
1652{
1653#ifndef $as_decl_name
1654#ifdef __cplusplus
1655  (void) $as_decl_use;
1656#else
1657  (void) $as_decl_name;
1658#endif
1659#endif
1660
1661  ;
1662  return 0;
1663}
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"
1666then :
1667  eval "$3=yes"
1668else $as_nop
1669  eval "$3=no"
1670fi
1671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1672  eval $6=\$ac_save_FLAGS
1673
1674fi
1675eval ac_res=\$$3
1676	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677printf "%s\n" "$ac_res" >&6; }
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680} # ac_fn_check_decl
1681
1682# ac_fn_c_try_link LINENO
1683# -----------------------
1684# Try to link conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_link ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1689  if { { ac_try="$ac_link"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695printf "%s\n" "$ac_try_echo"; } >&5
1696  (eval "$ac_link") 2>conftest.err
1697  ac_status=$?
1698  if test -s conftest.err; then
1699    grep -v '^ *+' conftest.err >conftest.er1
1700    cat conftest.er1 >&5
1701    mv -f conftest.er1 conftest.err
1702  fi
1703  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } && {
1705	 test -z "$ac_c_werror_flag" ||
1706	 test ! -s conftest.err
1707       } && test -s conftest$ac_exeext && {
1708	 test "$cross_compiling" = yes ||
1709	 test -x conftest$ac_exeext
1710       }
1711then :
1712  ac_retval=0
1713else $as_nop
1714  printf "%s\n" "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717	ac_retval=1
1718fi
1719  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721  # interfere with the next link command; also delete a directory that is
1722  # left behind by Apple's compiler.  We do this before executing the actions.
1723  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725  as_fn_set_status $ac_retval
1726
1727} # ac_fn_c_try_link
1728
1729# ac_fn_c_check_func LINENO FUNC VAR
1730# ----------------------------------
1731# Tests whether FUNC exists, setting the cache variable VAR accordingly
1732ac_fn_c_check_func ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736printf %s "checking for $2... " >&6; }
1737if eval test \${$3+y}
1738then :
1739  printf %s "(cached) " >&6
1740else $as_nop
1741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h.  */
1743/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1745#define $2 innocuous_$2
1746
1747/* System header to define __stub macros and hopefully few prototypes,
1748   which can conflict with char $2 (); below.  */
1749
1750#include <limits.h>
1751#undef $2
1752
1753/* Override any GCC internal prototype to avoid an error.
1754   Use char because int might match the return type of a GCC
1755   builtin and then its argument prototype would still apply.  */
1756#ifdef __cplusplus
1757extern "C"
1758#endif
1759char $2 ();
1760/* The GNU C library defines this for functions which it implements
1761    to always fail with ENOSYS.  Some functions are actually named
1762    something starting with __ and the normal name is an alias.  */
1763#if defined __stub_$2 || defined __stub___$2
1764choke me
1765#endif
1766
1767int
1768main (void)
1769{
1770return $2 ();
1771  ;
1772  return 0;
1773}
1774_ACEOF
1775if ac_fn_c_try_link "$LINENO"
1776then :
1777  eval "$3=yes"
1778else $as_nop
1779  eval "$3=no"
1780fi
1781rm -f core conftest.err conftest.$ac_objext conftest.beam \
1782    conftest$ac_exeext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786printf "%s\n" "$ac_res" >&6; }
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_func
1790
1791# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1792# ----------------------------------------------------
1793# Tries to find if the field MEMBER exists in type AGGR, after including
1794# INCLUDES, setting cache variable VAR accordingly.
1795ac_fn_c_check_member ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1799printf %s "checking for $2.$3... " >&6; }
1800if eval test \${$4+y}
1801then :
1802  printf %s "(cached) " >&6
1803else $as_nop
1804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h.  */
1806$5
1807int
1808main (void)
1809{
1810static $2 ac_aggr;
1811if (ac_aggr.$3)
1812return 0;
1813  ;
1814  return 0;
1815}
1816_ACEOF
1817if ac_fn_c_try_compile "$LINENO"
1818then :
1819  eval "$4=yes"
1820else $as_nop
1821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h.  */
1823$5
1824int
1825main (void)
1826{
1827static $2 ac_aggr;
1828if (sizeof ac_aggr.$3)
1829return 0;
1830  ;
1831  return 0;
1832}
1833_ACEOF
1834if ac_fn_c_try_compile "$LINENO"
1835then :
1836  eval "$4=yes"
1837else $as_nop
1838  eval "$4=no"
1839fi
1840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1843fi
1844eval ac_res=\$$4
1845	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846printf "%s\n" "$ac_res" >&6; }
1847  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849} # ac_fn_c_check_member
1850
1851# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1852# -------------------------------------------
1853# Tests whether TYPE exists after having included INCLUDES, setting cache
1854# variable VAR accordingly.
1855ac_fn_c_check_type ()
1856{
1857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859printf %s "checking for $2... " >&6; }
1860if eval test \${$3+y}
1861then :
1862  printf %s "(cached) " >&6
1863else $as_nop
1864  eval "$3=no"
1865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h.  */
1867$4
1868int
1869main (void)
1870{
1871if (sizeof ($2))
1872	 return 0;
1873  ;
1874  return 0;
1875}
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"
1878then :
1879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h.  */
1881$4
1882int
1883main (void)
1884{
1885if (sizeof (($2)))
1886	    return 0;
1887  ;
1888  return 0;
1889}
1890_ACEOF
1891if ac_fn_c_try_compile "$LINENO"
1892then :
1893
1894else $as_nop
1895  eval "$3=yes"
1896fi
1897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1898fi
1899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1900fi
1901eval ac_res=\$$3
1902	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903printf "%s\n" "$ac_res" >&6; }
1904  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906} # ac_fn_c_check_type
1907ac_configure_args_raw=
1908for ac_arg
1909do
1910  case $ac_arg in
1911  *\'*)
1912    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1913  esac
1914  as_fn_append ac_configure_args_raw " '$ac_arg'"
1915done
1916
1917case $ac_configure_args_raw in
1918  *$as_nl*)
1919    ac_safe_unquote= ;;
1920  *)
1921    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1922    ac_unsafe_a="$ac_unsafe_z#~"
1923    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1924    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1925esac
1926
1927cat >config.log <<_ACEOF
1928This file contains any messages produced by compilers while
1929running configure, to aid debugging if configure makes a mistake.
1930
1931It was created by xauth $as_me 1.1.2, which was
1932generated by GNU Autoconf 2.71.  Invocation command line was
1933
1934  $ $0$ac_configure_args_raw
1935
1936_ACEOF
1937exec 5>>config.log
1938{
1939cat <<_ASUNAME
1940## --------- ##
1941## Platform. ##
1942## --------- ##
1943
1944hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1945uname -m = `(uname -m) 2>/dev/null || echo unknown`
1946uname -r = `(uname -r) 2>/dev/null || echo unknown`
1947uname -s = `(uname -s) 2>/dev/null || echo unknown`
1948uname -v = `(uname -v) 2>/dev/null || echo unknown`
1949
1950/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1951/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1952
1953/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1954/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1955/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1956/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1957/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1958/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1959/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1960
1961_ASUNAME
1962
1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964for as_dir in $PATH
1965do
1966  IFS=$as_save_IFS
1967  case $as_dir in #(((
1968    '') as_dir=./ ;;
1969    */) ;;
1970    *) as_dir=$as_dir/ ;;
1971  esac
1972    printf "%s\n" "PATH: $as_dir"
1973  done
1974IFS=$as_save_IFS
1975
1976} >&5
1977
1978cat >&5 <<_ACEOF
1979
1980
1981## ----------- ##
1982## Core tests. ##
1983## ----------- ##
1984
1985_ACEOF
1986
1987
1988# Keep a trace of the command line.
1989# Strip out --no-create and --no-recursion so they do not pile up.
1990# Strip out --silent because we don't want to record it for future runs.
1991# Also quote any args containing shell meta-characters.
1992# Make two passes to allow for proper duplicate-argument suppression.
1993ac_configure_args=
1994ac_configure_args0=
1995ac_configure_args1=
1996ac_must_keep_next=false
1997for ac_pass in 1 2
1998do
1999  for ac_arg
2000  do
2001    case $ac_arg in
2002    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2003    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2004    | -silent | --silent | --silen | --sile | --sil)
2005      continue ;;
2006    *\'*)
2007      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2008    esac
2009    case $ac_pass in
2010    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2011    2)
2012      as_fn_append ac_configure_args1 " '$ac_arg'"
2013      if test $ac_must_keep_next = true; then
2014	ac_must_keep_next=false # Got value, back to normal.
2015      else
2016	case $ac_arg in
2017	  *=* | --config-cache | -C | -disable-* | --disable-* \
2018	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2019	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2020	  | -with-* | --with-* | -without-* | --without-* | --x)
2021	    case "$ac_configure_args0 " in
2022	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2023	    esac
2024	    ;;
2025	  -* ) ac_must_keep_next=true ;;
2026	esac
2027      fi
2028      as_fn_append ac_configure_args " '$ac_arg'"
2029      ;;
2030    esac
2031  done
2032done
2033{ ac_configure_args0=; unset ac_configure_args0;}
2034{ ac_configure_args1=; unset ac_configure_args1;}
2035
2036# When interrupted or exit'd, cleanup temporary files, and complete
2037# config.log.  We remove comments because anyway the quotes in there
2038# would cause problems or look ugly.
2039# WARNING: Use '\'' to represent an apostrophe within the trap.
2040# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2041trap 'exit_status=$?
2042  # Sanitize IFS.
2043  IFS=" ""	$as_nl"
2044  # Save into config.log some information that might help in debugging.
2045  {
2046    echo
2047
2048    printf "%s\n" "## ---------------- ##
2049## Cache variables. ##
2050## ---------------- ##"
2051    echo
2052    # The following way of writing the cache mishandles newlines in values,
2053(
2054  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2055    eval ac_val=\$$ac_var
2056    case $ac_val in #(
2057    *${as_nl}*)
2058      case $ac_var in #(
2059      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2060printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2061      esac
2062      case $ac_var in #(
2063      _ | IFS | as_nl) ;; #(
2064      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2065      *) { eval $ac_var=; unset $ac_var;} ;;
2066      esac ;;
2067    esac
2068  done
2069  (set) 2>&1 |
2070    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2071    *${as_nl}ac_space=\ *)
2072      sed -n \
2073	"s/'\''/'\''\\\\'\'''\''/g;
2074	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2075      ;; #(
2076    *)
2077      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2078      ;;
2079    esac |
2080    sort
2081)
2082    echo
2083
2084    printf "%s\n" "## ----------------- ##
2085## Output variables. ##
2086## ----------------- ##"
2087    echo
2088    for ac_var in $ac_subst_vars
2089    do
2090      eval ac_val=\$$ac_var
2091      case $ac_val in
2092      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093      esac
2094      printf "%s\n" "$ac_var='\''$ac_val'\''"
2095    done | sort
2096    echo
2097
2098    if test -n "$ac_subst_files"; then
2099      printf "%s\n" "## ------------------- ##
2100## File substitutions. ##
2101## ------------------- ##"
2102      echo
2103      for ac_var in $ac_subst_files
2104      do
2105	eval ac_val=\$$ac_var
2106	case $ac_val in
2107	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108	esac
2109	printf "%s\n" "$ac_var='\''$ac_val'\''"
2110      done | sort
2111      echo
2112    fi
2113
2114    if test -s confdefs.h; then
2115      printf "%s\n" "## ----------- ##
2116## confdefs.h. ##
2117## ----------- ##"
2118      echo
2119      cat confdefs.h
2120      echo
2121    fi
2122    test "$ac_signal" != 0 &&
2123      printf "%s\n" "$as_me: caught signal $ac_signal"
2124    printf "%s\n" "$as_me: exit $exit_status"
2125  } >&5
2126  rm -f core *.core core.conftest.* &&
2127    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2128    exit $exit_status
2129' 0
2130for ac_signal in 1 2 13 15; do
2131  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2132done
2133ac_signal=0
2134
2135# confdefs.h avoids OS command line length limits that DEFS can exceed.
2136rm -f -r conftest* confdefs.h
2137
2138printf "%s\n" "/* confdefs.h */" > confdefs.h
2139
2140# Predefined preprocessor variables.
2141
2142printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2143
2144printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2145
2146printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2147
2148printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2149
2150printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2151
2152printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2153
2154
2155# Let the site file select an alternate cache file if it wants to.
2156# Prefer an explicitly selected file to automatically selected ones.
2157if test -n "$CONFIG_SITE"; then
2158  ac_site_files="$CONFIG_SITE"
2159elif test "x$prefix" != xNONE; then
2160  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2161else
2162  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2163fi
2164
2165for ac_site_file in $ac_site_files
2166do
2167  case $ac_site_file in #(
2168  */*) :
2169     ;; #(
2170  *) :
2171    ac_site_file=./$ac_site_file ;;
2172esac
2173  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2174    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2175printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2176    sed 's/^/| /' "$ac_site_file" >&5
2177    . "$ac_site_file" \
2178      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2179printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2180as_fn_error $? "failed to load site script $ac_site_file
2181See \`config.log' for more details" "$LINENO" 5; }
2182  fi
2183done
2184
2185if test -r "$cache_file"; then
2186  # Some versions of bash will fail to source /dev/null (special files
2187  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2188  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2189    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2190printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2191    case $cache_file in
2192      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193      *)                      . "./$cache_file";;
2194    esac
2195  fi
2196else
2197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2198printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2199  >$cache_file
2200fi
2201
2202as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2203# Test code for whether the C compiler supports C89 (global declarations)
2204ac_c_conftest_c89_globals='
2205/* Does the compiler advertise C89 conformance?
2206   Do not test the value of __STDC__, because some compilers set it to 0
2207   while being otherwise adequately conformant. */
2208#if !defined __STDC__
2209# error "Compiler does not advertise C89 conformance"
2210#endif
2211
2212#include <stddef.h>
2213#include <stdarg.h>
2214struct stat;
2215/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2216struct buf { int x; };
2217struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2218static char *e (p, i)
2219     char **p;
2220     int i;
2221{
2222  return p[i];
2223}
2224static char *f (char * (*g) (char **, int), char **p, ...)
2225{
2226  char *s;
2227  va_list v;
2228  va_start (v,p);
2229  s = g (p, va_arg (v,int));
2230  va_end (v);
2231  return s;
2232}
2233
2234/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2235   function prototypes and stuff, but not \xHH hex character constants.
2236   These do not provoke an error unfortunately, instead are silently treated
2237   as an "x".  The following induces an error, until -std is added to get
2238   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2239   array size at least.  It is necessary to write \x00 == 0 to get something
2240   that is true only with -std.  */
2241int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2242
2243/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2244   inside strings and character constants.  */
2245#define FOO(x) '\''x'\''
2246int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2247
2248int test (int i, double x);
2249struct s1 {int (*f) (int a);};
2250struct s2 {int (*f) (double a);};
2251int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2252               int, int);'
2253
2254# Test code for whether the C compiler supports C89 (body of main).
2255ac_c_conftest_c89_main='
2256ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2257'
2258
2259# Test code for whether the C compiler supports C99 (global declarations)
2260ac_c_conftest_c99_globals='
2261// Does the compiler advertise C99 conformance?
2262#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2263# error "Compiler does not advertise C99 conformance"
2264#endif
2265
2266#include <stdbool.h>
2267extern int puts (const char *);
2268extern int printf (const char *, ...);
2269extern int dprintf (int, const char *, ...);
2270extern void *malloc (size_t);
2271
2272// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2273// dprintf is used instead of fprintf to avoid needing to declare
2274// FILE and stderr.
2275#define debug(...) dprintf (2, __VA_ARGS__)
2276#define showlist(...) puts (#__VA_ARGS__)
2277#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2278static void
2279test_varargs_macros (void)
2280{
2281  int x = 1234;
2282  int y = 5678;
2283  debug ("Flag");
2284  debug ("X = %d\n", x);
2285  showlist (The first, second, and third items.);
2286  report (x>y, "x is %d but y is %d", x, y);
2287}
2288
2289// Check long long types.
2290#define BIG64 18446744073709551615ull
2291#define BIG32 4294967295ul
2292#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2293#if !BIG_OK
2294  #error "your preprocessor is broken"
2295#endif
2296#if BIG_OK
2297#else
2298  #error "your preprocessor is broken"
2299#endif
2300static long long int bignum = -9223372036854775807LL;
2301static unsigned long long int ubignum = BIG64;
2302
2303struct incomplete_array
2304{
2305  int datasize;
2306  double data[];
2307};
2308
2309struct named_init {
2310  int number;
2311  const wchar_t *name;
2312  double average;
2313};
2314
2315typedef const char *ccp;
2316
2317static inline int
2318test_restrict (ccp restrict text)
2319{
2320  // See if C++-style comments work.
2321  // Iterate through items via the restricted pointer.
2322  // Also check for declarations in for loops.
2323  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2324    continue;
2325  return 0;
2326}
2327
2328// Check varargs and va_copy.
2329static bool
2330test_varargs (const char *format, ...)
2331{
2332  va_list args;
2333  va_start (args, format);
2334  va_list args_copy;
2335  va_copy (args_copy, args);
2336
2337  const char *str = "";
2338  int number = 0;
2339  float fnumber = 0;
2340
2341  while (*format)
2342    {
2343      switch (*format++)
2344	{
2345	case '\''s'\'': // string
2346	  str = va_arg (args_copy, const char *);
2347	  break;
2348	case '\''d'\'': // int
2349	  number = va_arg (args_copy, int);
2350	  break;
2351	case '\''f'\'': // float
2352	  fnumber = va_arg (args_copy, double);
2353	  break;
2354	default:
2355	  break;
2356	}
2357    }
2358  va_end (args_copy);
2359  va_end (args);
2360
2361  return *str && number && fnumber;
2362}
2363'
2364
2365# Test code for whether the C compiler supports C99 (body of main).
2366ac_c_conftest_c99_main='
2367  // Check bool.
2368  _Bool success = false;
2369  success |= (argc != 0);
2370
2371  // Check restrict.
2372  if (test_restrict ("String literal") == 0)
2373    success = true;
2374  char *restrict newvar = "Another string";
2375
2376  // Check varargs.
2377  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2378  test_varargs_macros ();
2379
2380  // Check flexible array members.
2381  struct incomplete_array *ia =
2382    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2383  ia->datasize = 10;
2384  for (int i = 0; i < ia->datasize; ++i)
2385    ia->data[i] = i * 1.234;
2386
2387  // Check named initializers.
2388  struct named_init ni = {
2389    .number = 34,
2390    .name = L"Test wide string",
2391    .average = 543.34343,
2392  };
2393
2394  ni.number = 58;
2395
2396  int dynamic_array[ni.number];
2397  dynamic_array[0] = argv[0][0];
2398  dynamic_array[ni.number - 1] = 543;
2399
2400  // work around unused variable warnings
2401  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2402	 || dynamic_array[ni.number - 1] != 543);
2403'
2404
2405# Test code for whether the C compiler supports C11 (global declarations)
2406ac_c_conftest_c11_globals='
2407// Does the compiler advertise C11 conformance?
2408#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2409# error "Compiler does not advertise C11 conformance"
2410#endif
2411
2412// Check _Alignas.
2413char _Alignas (double) aligned_as_double;
2414char _Alignas (0) no_special_alignment;
2415extern char aligned_as_int;
2416char _Alignas (0) _Alignas (int) aligned_as_int;
2417
2418// Check _Alignof.
2419enum
2420{
2421  int_alignment = _Alignof (int),
2422  int_array_alignment = _Alignof (int[100]),
2423  char_alignment = _Alignof (char)
2424};
2425_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2426
2427// Check _Noreturn.
2428int _Noreturn does_not_return (void) { for (;;) continue; }
2429
2430// Check _Static_assert.
2431struct test_static_assert
2432{
2433  int x;
2434  _Static_assert (sizeof (int) <= sizeof (long int),
2435                  "_Static_assert does not work in struct");
2436  long int y;
2437};
2438
2439// Check UTF-8 literals.
2440#define u8 syntax error!
2441char const utf8_literal[] = u8"happens to be ASCII" "another string";
2442
2443// Check duplicate typedefs.
2444typedef long *long_ptr;
2445typedef long int *long_ptr;
2446typedef long_ptr long_ptr;
2447
2448// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2449struct anonymous
2450{
2451  union {
2452    struct { int i; int j; };
2453    struct { int k; long int l; } w;
2454  };
2455  int m;
2456} v1;
2457'
2458
2459# Test code for whether the C compiler supports C11 (body of main).
2460ac_c_conftest_c11_main='
2461  _Static_assert ((offsetof (struct anonymous, i)
2462		   == offsetof (struct anonymous, w.k)),
2463		  "Anonymous union alignment botch");
2464  v1.i = 2;
2465  v1.w.k = 5;
2466  ok |= v1.i != 5;
2467'
2468
2469# Test code for whether the C compiler supports C11 (complete).
2470ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2471${ac_c_conftest_c99_globals}
2472${ac_c_conftest_c11_globals}
2473
2474int
2475main (int argc, char **argv)
2476{
2477  int ok = 0;
2478  ${ac_c_conftest_c89_main}
2479  ${ac_c_conftest_c99_main}
2480  ${ac_c_conftest_c11_main}
2481  return ok;
2482}
2483"
2484
2485# Test code for whether the C compiler supports C99 (complete).
2486ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2487${ac_c_conftest_c99_globals}
2488
2489int
2490main (int argc, char **argv)
2491{
2492  int ok = 0;
2493  ${ac_c_conftest_c89_main}
2494  ${ac_c_conftest_c99_main}
2495  return ok;
2496}
2497"
2498
2499# Test code for whether the C compiler supports C89 (complete).
2500ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2501
2502int
2503main (int argc, char **argv)
2504{
2505  int ok = 0;
2506  ${ac_c_conftest_c89_main}
2507  return ok;
2508}
2509"
2510
2511as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2512as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2513as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2514as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2515as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2516as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2517as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2518as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2519as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2520as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2521
2522# Auxiliary files required by this configure script.
2523ac_aux_files="config.guess config.sub compile missing install-sh"
2524
2525# Locations in which to look for auxiliary files.
2526ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2527
2528# Search for a directory containing all of the required auxiliary files,
2529# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2530# If we don't find one directory that contains all the files we need,
2531# we report the set of missing files from the *first* directory in
2532# $ac_aux_dir_candidates and give up.
2533ac_missing_aux_files=""
2534ac_first_candidate=:
2535printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537as_found=false
2538for as_dir in $ac_aux_dir_candidates
2539do
2540  IFS=$as_save_IFS
2541  case $as_dir in #(((
2542    '') as_dir=./ ;;
2543    */) ;;
2544    *) as_dir=$as_dir/ ;;
2545  esac
2546  as_found=:
2547
2548  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2549  ac_aux_dir_found=yes
2550  ac_install_sh=
2551  for ac_aux in $ac_aux_files
2552  do
2553    # As a special case, if "install-sh" is required, that requirement
2554    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2555    # and $ac_install_sh is set appropriately for whichever one is found.
2556    if test x"$ac_aux" = x"install-sh"
2557    then
2558      if test -f "${as_dir}install-sh"; then
2559        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2560        ac_install_sh="${as_dir}install-sh -c"
2561      elif test -f "${as_dir}install.sh"; then
2562        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2563        ac_install_sh="${as_dir}install.sh -c"
2564      elif test -f "${as_dir}shtool"; then
2565        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2566        ac_install_sh="${as_dir}shtool install -c"
2567      else
2568        ac_aux_dir_found=no
2569        if $ac_first_candidate; then
2570          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2571        else
2572          break
2573        fi
2574      fi
2575    else
2576      if test -f "${as_dir}${ac_aux}"; then
2577        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2578      else
2579        ac_aux_dir_found=no
2580        if $ac_first_candidate; then
2581          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2582        else
2583          break
2584        fi
2585      fi
2586    fi
2587  done
2588  if test "$ac_aux_dir_found" = yes; then
2589    ac_aux_dir="$as_dir"
2590    break
2591  fi
2592  ac_first_candidate=false
2593
2594  as_found=false
2595done
2596IFS=$as_save_IFS
2597if $as_found
2598then :
2599
2600else $as_nop
2601  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2602fi
2603
2604
2605# These three variables are undocumented and unsupported,
2606# and are intended to be withdrawn in a future Autoconf release.
2607# They can cause serious problems if a builder's source tree is in a directory
2608# whose full name contains unusual characters.
2609if test -f "${ac_aux_dir}config.guess"; then
2610  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2611fi
2612if test -f "${ac_aux_dir}config.sub"; then
2613  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2614fi
2615if test -f "$ac_aux_dir/configure"; then
2616  ac_configure="$SHELL ${ac_aux_dir}configure"
2617fi
2618
2619# Check that the precious variables saved in the cache have kept the same
2620# value.
2621ac_cache_corrupted=false
2622for ac_var in $ac_precious_vars; do
2623  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2624  eval ac_new_set=\$ac_env_${ac_var}_set
2625  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2626  eval ac_new_val=\$ac_env_${ac_var}_value
2627  case $ac_old_set,$ac_new_set in
2628    set,)
2629      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2630printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2631      ac_cache_corrupted=: ;;
2632    ,set)
2633      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2634printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2635      ac_cache_corrupted=: ;;
2636    ,);;
2637    *)
2638      if test "x$ac_old_val" != "x$ac_new_val"; then
2639	# differences in whitespace do not lead to failure.
2640	ac_old_val_w=`echo x $ac_old_val`
2641	ac_new_val_w=`echo x $ac_new_val`
2642	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2643	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2644printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2645	  ac_cache_corrupted=:
2646	else
2647	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2648printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2649	  eval $ac_var=\$ac_old_val
2650	fi
2651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2652printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2653	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2654printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2655      fi;;
2656  esac
2657  # Pass precious variables to config.status.
2658  if test "$ac_new_set" = set; then
2659    case $ac_new_val in
2660    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2661    *) ac_arg=$ac_var=$ac_new_val ;;
2662    esac
2663    case " $ac_configure_args " in
2664      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2665      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2666    esac
2667  fi
2668done
2669if $ac_cache_corrupted; then
2670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2673printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2674  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2675	    and start over" "$LINENO" 5
2676fi
2677## -------------------- ##
2678## Main body of script. ##
2679## -------------------- ##
2680
2681ac_ext=c
2682ac_cpp='$CPP $CPPFLAGS'
2683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2685ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686
2687
2688am__api_version='1.16'
2689
2690
2691
2692  # Find a good install program.  We prefer a C program (faster),
2693# so one script is as good as another.  But avoid the broken or
2694# incompatible versions:
2695# SysV /etc/install, /usr/sbin/install
2696# SunOS /usr/etc/install
2697# IRIX /sbin/install
2698# AIX /bin/install
2699# AmigaOS /C/install, which installs bootblocks on floppy discs
2700# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2701# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2702# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2703# OS/2's system install, which has a completely different semantic
2704# ./install, which can be erroneously created by make from ./install.sh.
2705# Reject install programs that cannot install multiple files.
2706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2707printf %s "checking for a BSD-compatible install... " >&6; }
2708if test -z "$INSTALL"; then
2709if test ${ac_cv_path_install+y}
2710then :
2711  printf %s "(cached) " >&6
2712else $as_nop
2713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716  IFS=$as_save_IFS
2717  case $as_dir in #(((
2718    '') as_dir=./ ;;
2719    */) ;;
2720    *) as_dir=$as_dir/ ;;
2721  esac
2722    # Account for fact that we put trailing slashes in our PATH walk.
2723case $as_dir in #((
2724  ./ | /[cC]/* | \
2725  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2726  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2727  /usr/ucb/* ) ;;
2728  *)
2729    # OSF1 and SCO ODT 3.0 have their own names for install.
2730    # Don't use installbsd from OSF since it installs stuff as root
2731    # by default.
2732    for ac_prog in ginstall scoinst install; do
2733      for ac_exec_ext in '' $ac_executable_extensions; do
2734	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2735	  if test $ac_prog = install &&
2736	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737	    # AIX install.  It has an incompatible calling convention.
2738	    :
2739	  elif test $ac_prog = install &&
2740	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2741	    # program-specific install script used by HP pwplus--don't use.
2742	    :
2743	  else
2744	    rm -rf conftest.one conftest.two conftest.dir
2745	    echo one > conftest.one
2746	    echo two > conftest.two
2747	    mkdir conftest.dir
2748	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2749	      test -s conftest.one && test -s conftest.two &&
2750	      test -s conftest.dir/conftest.one &&
2751	      test -s conftest.dir/conftest.two
2752	    then
2753	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2754	      break 3
2755	    fi
2756	  fi
2757	fi
2758      done
2759    done
2760    ;;
2761esac
2762
2763  done
2764IFS=$as_save_IFS
2765
2766rm -rf conftest.one conftest.two conftest.dir
2767
2768fi
2769  if test ${ac_cv_path_install+y}; then
2770    INSTALL=$ac_cv_path_install
2771  else
2772    # As a last resort, use the slow shell script.  Don't cache a
2773    # value for INSTALL within a source directory, because that will
2774    # break other packages using the cache if that directory is
2775    # removed, or if the value is a relative name.
2776    INSTALL=$ac_install_sh
2777  fi
2778fi
2779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2780printf "%s\n" "$INSTALL" >&6; }
2781
2782# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2783# It thinks the first close brace ends the variable substitution.
2784test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2785
2786test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2787
2788test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2789
2790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2791printf %s "checking whether build environment is sane... " >&6; }
2792# Reject unsafe characters in $srcdir or the absolute working directory
2793# name.  Accept space and tab only in the latter.
2794am_lf='
2795'
2796case `pwd` in
2797  *[\\\"\#\$\&\'\`$am_lf]*)
2798    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2799esac
2800case $srcdir in
2801  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2802    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2803esac
2804
2805# Do 'set' in a subshell so we don't clobber the current shell's
2806# arguments.  Must try -L first in case configure is actually a
2807# symlink; some systems play weird games with the mod time of symlinks
2808# (eg FreeBSD returns the mod time of the symlink's containing
2809# directory).
2810if (
2811   am_has_slept=no
2812   for am_try in 1 2; do
2813     echo "timestamp, slept: $am_has_slept" > conftest.file
2814     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2815     if test "$*" = "X"; then
2816	# -L didn't work.
2817	set X `ls -t "$srcdir/configure" conftest.file`
2818     fi
2819     if test "$*" != "X $srcdir/configure conftest.file" \
2820	&& test "$*" != "X conftest.file $srcdir/configure"; then
2821
2822	# If neither matched, then we have a broken ls.  This can happen
2823	# if, for instance, CONFIG_SHELL is bash and it inherits a
2824	# broken ls alias from the environment.  This has actually
2825	# happened.  Such a system could not be considered "sane".
2826	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2827  alias in your environment" "$LINENO" 5
2828     fi
2829     if test "$2" = conftest.file || test $am_try -eq 2; then
2830       break
2831     fi
2832     # Just in case.
2833     sleep 1
2834     am_has_slept=yes
2835   done
2836   test "$2" = conftest.file
2837   )
2838then
2839   # Ok.
2840   :
2841else
2842   as_fn_error $? "newly created file is older than distributed files!
2843Check your system clock" "$LINENO" 5
2844fi
2845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2846printf "%s\n" "yes" >&6; }
2847# If we didn't sleep, we still need to ensure time stamps of config.status and
2848# generated files are strictly newer.
2849am_sleep_pid=
2850if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2851  ( sleep 1 ) &
2852  am_sleep_pid=$!
2853fi
2854
2855rm -f conftest.file
2856
2857test "$program_prefix" != NONE &&
2858  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2859# Use a double $ so make ignores it.
2860test "$program_suffix" != NONE &&
2861  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2862# Double any \ or $.
2863# By default was `s,x,x', remove it if useless.
2864ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2865program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2866
2867
2868# Expand $ac_aux_dir to an absolute path.
2869am_aux_dir=`cd "$ac_aux_dir" && pwd`
2870
2871
2872  if test x"${MISSING+set}" != xset; then
2873  MISSING="\${SHELL} '$am_aux_dir/missing'"
2874fi
2875# Use eval to expand $SHELL
2876if eval "$MISSING --is-lightweight"; then
2877  am_missing_run="$MISSING "
2878else
2879  am_missing_run=
2880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2881printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2882fi
2883
2884if test x"${install_sh+set}" != xset; then
2885  case $am_aux_dir in
2886  *\ * | *\	*)
2887    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2888  *)
2889    install_sh="\${SHELL} $am_aux_dir/install-sh"
2890  esac
2891fi
2892
2893# Installed binaries are usually stripped using 'strip' when the user
2894# run "make install-strip".  However 'strip' might not be the right
2895# tool to use in cross-compilation environments, therefore Automake
2896# will honor the 'STRIP' environment variable to overrule this program.
2897if test "$cross_compiling" != no; then
2898  if test -n "$ac_tool_prefix"; then
2899  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2900set dummy ${ac_tool_prefix}strip; ac_word=$2
2901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902printf %s "checking for $ac_word... " >&6; }
2903if test ${ac_cv_prog_STRIP+y}
2904then :
2905  printf %s "(cached) " >&6
2906else $as_nop
2907  if test -n "$STRIP"; then
2908  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2909else
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913  IFS=$as_save_IFS
2914  case $as_dir in #(((
2915    '') as_dir=./ ;;
2916    */) ;;
2917    *) as_dir=$as_dir/ ;;
2918  esac
2919    for ac_exec_ext in '' $ac_executable_extensions; do
2920  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2921    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2922    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2923    break 2
2924  fi
2925done
2926  done
2927IFS=$as_save_IFS
2928
2929fi
2930fi
2931STRIP=$ac_cv_prog_STRIP
2932if test -n "$STRIP"; then
2933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2934printf "%s\n" "$STRIP" >&6; }
2935else
2936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937printf "%s\n" "no" >&6; }
2938fi
2939
2940
2941fi
2942if test -z "$ac_cv_prog_STRIP"; then
2943  ac_ct_STRIP=$STRIP
2944  # Extract the first word of "strip", so it can be a program name with args.
2945set dummy strip; ac_word=$2
2946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947printf %s "checking for $ac_word... " >&6; }
2948if test ${ac_cv_prog_ac_ct_STRIP+y}
2949then :
2950  printf %s "(cached) " >&6
2951else $as_nop
2952  if test -n "$ac_ct_STRIP"; then
2953  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958  IFS=$as_save_IFS
2959  case $as_dir in #(((
2960    '') as_dir=./ ;;
2961    */) ;;
2962    *) as_dir=$as_dir/ ;;
2963  esac
2964    for ac_exec_ext in '' $ac_executable_extensions; do
2965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2966    ac_cv_prog_ac_ct_STRIP="strip"
2967    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2968    break 2
2969  fi
2970done
2971  done
2972IFS=$as_save_IFS
2973
2974fi
2975fi
2976ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2977if test -n "$ac_ct_STRIP"; then
2978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2979printf "%s\n" "$ac_ct_STRIP" >&6; }
2980else
2981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982printf "%s\n" "no" >&6; }
2983fi
2984
2985  if test "x$ac_ct_STRIP" = x; then
2986    STRIP=":"
2987  else
2988    case $cross_compiling:$ac_tool_warned in
2989yes:)
2990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992ac_tool_warned=yes ;;
2993esac
2994    STRIP=$ac_ct_STRIP
2995  fi
2996else
2997  STRIP="$ac_cv_prog_STRIP"
2998fi
2999
3000fi
3001INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3002
3003
3004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3005printf %s "checking for a race-free mkdir -p... " >&6; }
3006if test -z "$MKDIR_P"; then
3007  if test ${ac_cv_path_mkdir+y}
3008then :
3009  printf %s "(cached) " >&6
3010else $as_nop
3011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3013do
3014  IFS=$as_save_IFS
3015  case $as_dir in #(((
3016    '') as_dir=./ ;;
3017    */) ;;
3018    *) as_dir=$as_dir/ ;;
3019  esac
3020    for ac_prog in mkdir gmkdir; do
3021	 for ac_exec_ext in '' $ac_executable_extensions; do
3022	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3023	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3024	     'mkdir ('*'coreutils) '* | \
3025	     'BusyBox '* | \
3026	     'mkdir (fileutils) '4.1*)
3027	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3028	       break 3;;
3029	   esac
3030	 done
3031       done
3032  done
3033IFS=$as_save_IFS
3034
3035fi
3036
3037  test -d ./--version && rmdir ./--version
3038  if test ${ac_cv_path_mkdir+y}; then
3039    MKDIR_P="$ac_cv_path_mkdir -p"
3040  else
3041    # As a last resort, use the slow shell script.  Don't cache a
3042    # value for MKDIR_P within a source directory, because that will
3043    # break other packages using the cache if that directory is
3044    # removed, or if the value is a relative name.
3045    MKDIR_P="$ac_install_sh -d"
3046  fi
3047fi
3048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3049printf "%s\n" "$MKDIR_P" >&6; }
3050
3051for ac_prog in gawk mawk nawk awk
3052do
3053  # Extract the first word of "$ac_prog", so it can be a program name with args.
3054set dummy $ac_prog; ac_word=$2
3055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056printf %s "checking for $ac_word... " >&6; }
3057if test ${ac_cv_prog_AWK+y}
3058then :
3059  printf %s "(cached) " >&6
3060else $as_nop
3061  if test -n "$AWK"; then
3062  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  case $as_dir in #(((
3069    '') as_dir=./ ;;
3070    */) ;;
3071    *) as_dir=$as_dir/ ;;
3072  esac
3073    for ac_exec_ext in '' $ac_executable_extensions; do
3074  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3075    ac_cv_prog_AWK="$ac_prog"
3076    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3077    break 2
3078  fi
3079done
3080  done
3081IFS=$as_save_IFS
3082
3083fi
3084fi
3085AWK=$ac_cv_prog_AWK
3086if test -n "$AWK"; then
3087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3088printf "%s\n" "$AWK" >&6; }
3089else
3090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091printf "%s\n" "no" >&6; }
3092fi
3093
3094
3095  test -n "$AWK" && break
3096done
3097
3098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3099printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3100set x ${MAKE-make}
3101ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3102if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3103then :
3104  printf %s "(cached) " >&6
3105else $as_nop
3106  cat >conftest.make <<\_ACEOF
3107SHELL = /bin/sh
3108all:
3109	@echo '@@@%%%=$(MAKE)=@@@%%%'
3110_ACEOF
3111# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3112case `${MAKE-make} -f conftest.make 2>/dev/null` in
3113  *@@@%%%=?*=@@@%%%*)
3114    eval ac_cv_prog_make_${ac_make}_set=yes;;
3115  *)
3116    eval ac_cv_prog_make_${ac_make}_set=no;;
3117esac
3118rm -f conftest.make
3119fi
3120if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122printf "%s\n" "yes" >&6; }
3123  SET_MAKE=
3124else
3125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126printf "%s\n" "no" >&6; }
3127  SET_MAKE="MAKE=${MAKE-make}"
3128fi
3129
3130rm -rf .tst 2>/dev/null
3131mkdir .tst 2>/dev/null
3132if test -d .tst; then
3133  am__leading_dot=.
3134else
3135  am__leading_dot=_
3136fi
3137rmdir .tst 2>/dev/null
3138
3139# Check whether --enable-silent-rules was given.
3140if test ${enable_silent_rules+y}
3141then :
3142  enableval=$enable_silent_rules;
3143fi
3144
3145case $enable_silent_rules in # (((
3146  yes) AM_DEFAULT_VERBOSITY=0;;
3147   no) AM_DEFAULT_VERBOSITY=1;;
3148    *) AM_DEFAULT_VERBOSITY=1;;
3149esac
3150am_make=${MAKE-make}
3151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3152printf %s "checking whether $am_make supports nested variables... " >&6; }
3153if test ${am_cv_make_support_nested_variables+y}
3154then :
3155  printf %s "(cached) " >&6
3156else $as_nop
3157  if printf "%s\n" 'TRUE=$(BAR$(V))
3158BAR0=false
3159BAR1=true
3160V=1
3161am__doit:
3162	@$(TRUE)
3163.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3164  am_cv_make_support_nested_variables=yes
3165else
3166  am_cv_make_support_nested_variables=no
3167fi
3168fi
3169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3170printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3171if test $am_cv_make_support_nested_variables = yes; then
3172    AM_V='$(V)'
3173  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3174else
3175  AM_V=$AM_DEFAULT_VERBOSITY
3176  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3177fi
3178AM_BACKSLASH='\'
3179
3180if test "`cd $srcdir && pwd`" != "`pwd`"; then
3181  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3182  # is not polluted with repeated "-I."
3183  am__isrc=' -I$(srcdir)'
3184  # test to see if srcdir already configured
3185  if test -f $srcdir/config.status; then
3186    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3187  fi
3188fi
3189
3190# test whether we have cygpath
3191if test -z "$CYGPATH_W"; then
3192  if (cygpath --version) >/dev/null 2>/dev/null; then
3193    CYGPATH_W='cygpath -w'
3194  else
3195    CYGPATH_W=echo
3196  fi
3197fi
3198
3199
3200# Define the identity of the package.
3201 PACKAGE='xauth'
3202 VERSION='1.1.2'
3203
3204
3205printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3206
3207
3208printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3209
3210# Some tools Automake needs.
3211
3212ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3213
3214
3215AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3216
3217
3218AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3219
3220
3221AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3222
3223
3224MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3225
3226# For better backward compatibility.  To be removed once Automake 1.9.x
3227# dies out for good.  For more background, see:
3228# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3229# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3230mkdir_p='$(MKDIR_P)'
3231
3232# We need awk for the "check" target (and possibly the TAP driver).  The
3233# system "awk" is bad on some platforms.
3234# Always define AMTAR for backward compatibility.  Yes, it's still used
3235# in the wild :-(  We should find a proper way to deprecate it ...
3236AMTAR='$${TAR-tar}'
3237
3238
3239# We'll loop over all known methods to create a tar archive until one works.
3240_am_tools='gnutar  pax cpio none'
3241
3242am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3243
3244
3245
3246
3247
3248# Variables for tags utilities; see am/tags.am
3249if test -z "$CTAGS"; then
3250  CTAGS=ctags
3251fi
3252
3253if test -z "$ETAGS"; then
3254  ETAGS=etags
3255fi
3256
3257if test -z "$CSCOPE"; then
3258  CSCOPE=cscope
3259fi
3260
3261
3262
3263# POSIX will say in a future version that running "rm -f" with no argument
3264# is OK; and we want to be able to make that assumption in our Makefile
3265# recipes.  So use an aggressive probe to check that the usage we want is
3266# actually supported "in the wild" to an acceptable degree.
3267# See automake bug#10828.
3268# To make any issue more visible, cause the running configure to be aborted
3269# by default if the 'rm' program in use doesn't match our expectations; the
3270# user can still override this though.
3271if rm -f && rm -fr && rm -rf; then : OK; else
3272  cat >&2 <<'END'
3273Oops!
3274
3275Your 'rm' program seems unable to run without file operands specified
3276on the command line, even when the '-f' option is present.  This is contrary
3277to the behaviour of most rm programs out there, and not conforming with
3278the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3279
3280Please tell bug-automake@gnu.org about your system, including the value
3281of your $PATH and any error possibly output before this message.  This
3282can help us improve future automake versions.
3283
3284END
3285  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3286    echo 'Configuration will proceed anyway, since you have set the' >&2
3287    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3288    echo >&2
3289  else
3290    cat >&2 <<'END'
3291Aborting the configuration process, to ensure you take notice of the issue.
3292
3293You can download and install GNU coreutils to get an 'rm' implementation
3294that behaves properly: <https://www.gnu.org/software/coreutils/>.
3295
3296If you want to complete the configuration process using your problematic
3297'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3298to "yes", and re-run configure.
3299
3300END
3301    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3302  fi
3303fi
3304
3305
3306ac_config_headers="$ac_config_headers config.h"
3307
3308
3309# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3310# Must be called before any macros that run the compiler (like
3311# AC_PROG_LIBTOOL) to avoid autoconf errors.
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321DEPDIR="${am__leading_dot}deps"
3322
3323ac_config_commands="$ac_config_commands depfiles"
3324
3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3326printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3327cat > confinc.mk << 'END'
3328am__doit:
3329	@echo this is the am__doit target >confinc.out
3330.PHONY: am__doit
3331END
3332am__include="#"
3333am__quote=
3334# BSD make does it like this.
3335echo '.include "confinc.mk" # ignored' > confmf.BSD
3336# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3337echo 'include confinc.mk # ignored' > confmf.GNU
3338_am_result=no
3339for s in GNU BSD; do
3340  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3341   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }
3345  case $?:`cat confinc.out 2>/dev/null` in #(
3346  '0:this is the am__doit target') :
3347    case $s in #(
3348  BSD) :
3349    am__include='.include' am__quote='"' ;; #(
3350  *) :
3351    am__include='include' am__quote='' ;;
3352esac ;; #(
3353  *) :
3354     ;;
3355esac
3356  if test "$am__include" != "#"; then
3357    _am_result="yes ($s style)"
3358    break
3359  fi
3360done
3361rm -f confinc.* confmf.*
3362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3363printf "%s\n" "${_am_result}" >&6; }
3364
3365# Check whether --enable-dependency-tracking was given.
3366if test ${enable_dependency_tracking+y}
3367then :
3368  enableval=$enable_dependency_tracking;
3369fi
3370
3371if test "x$enable_dependency_tracking" != xno; then
3372  am_depcomp="$ac_aux_dir/depcomp"
3373  AMDEPBACKSLASH='\'
3374  am__nodep='_no'
3375fi
3376 if test "x$enable_dependency_tracking" != xno; then
3377  AMDEP_TRUE=
3378  AMDEP_FALSE='#'
3379else
3380  AMDEP_TRUE='#'
3381  AMDEP_FALSE=
3382fi
3383
3384
3385ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390if test -n "$ac_tool_prefix"; then
3391  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3392set dummy ${ac_tool_prefix}gcc; ac_word=$2
3393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394printf %s "checking for $ac_word... " >&6; }
3395if test ${ac_cv_prog_CC+y}
3396then :
3397  printf %s "(cached) " >&6
3398else $as_nop
3399  if test -n "$CC"; then
3400  ac_cv_prog_CC="$CC" # Let the user override the test.
3401else
3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403for as_dir in $PATH
3404do
3405  IFS=$as_save_IFS
3406  case $as_dir in #(((
3407    '') as_dir=./ ;;
3408    */) ;;
3409    *) as_dir=$as_dir/ ;;
3410  esac
3411    for ac_exec_ext in '' $ac_executable_extensions; do
3412  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3413    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3414    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3415    break 2
3416  fi
3417done
3418  done
3419IFS=$as_save_IFS
3420
3421fi
3422fi
3423CC=$ac_cv_prog_CC
3424if test -n "$CC"; then
3425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426printf "%s\n" "$CC" >&6; }
3427else
3428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429printf "%s\n" "no" >&6; }
3430fi
3431
3432
3433fi
3434if test -z "$ac_cv_prog_CC"; then
3435  ac_ct_CC=$CC
3436  # Extract the first word of "gcc", so it can be a program name with args.
3437set dummy gcc; ac_word=$2
3438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439printf %s "checking for $ac_word... " >&6; }
3440if test ${ac_cv_prog_ac_ct_CC+y}
3441then :
3442  printf %s "(cached) " >&6
3443else $as_nop
3444  if test -n "$ac_ct_CC"; then
3445  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3446else
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450  IFS=$as_save_IFS
3451  case $as_dir in #(((
3452    '') as_dir=./ ;;
3453    */) ;;
3454    *) as_dir=$as_dir/ ;;
3455  esac
3456    for ac_exec_ext in '' $ac_executable_extensions; do
3457  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3458    ac_cv_prog_ac_ct_CC="gcc"
3459    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3460    break 2
3461  fi
3462done
3463  done
3464IFS=$as_save_IFS
3465
3466fi
3467fi
3468ac_ct_CC=$ac_cv_prog_ac_ct_CC
3469if test -n "$ac_ct_CC"; then
3470  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3471printf "%s\n" "$ac_ct_CC" >&6; }
3472else
3473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474printf "%s\n" "no" >&6; }
3475fi
3476
3477  if test "x$ac_ct_CC" = x; then
3478    CC=""
3479  else
3480    case $cross_compiling:$ac_tool_warned in
3481yes:)
3482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3483printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3484ac_tool_warned=yes ;;
3485esac
3486    CC=$ac_ct_CC
3487  fi
3488else
3489  CC="$ac_cv_prog_CC"
3490fi
3491
3492if test -z "$CC"; then
3493          if test -n "$ac_tool_prefix"; then
3494    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3495set dummy ${ac_tool_prefix}cc; ac_word=$2
3496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497printf %s "checking for $ac_word... " >&6; }
3498if test ${ac_cv_prog_CC+y}
3499then :
3500  printf %s "(cached) " >&6
3501else $as_nop
3502  if test -n "$CC"; then
3503  ac_cv_prog_CC="$CC" # Let the user override the test.
3504else
3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH
3507do
3508  IFS=$as_save_IFS
3509  case $as_dir in #(((
3510    '') as_dir=./ ;;
3511    */) ;;
3512    *) as_dir=$as_dir/ ;;
3513  esac
3514    for ac_exec_ext in '' $ac_executable_extensions; do
3515  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3516    ac_cv_prog_CC="${ac_tool_prefix}cc"
3517    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3518    break 2
3519  fi
3520done
3521  done
3522IFS=$as_save_IFS
3523
3524fi
3525fi
3526CC=$ac_cv_prog_CC
3527if test -n "$CC"; then
3528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529printf "%s\n" "$CC" >&6; }
3530else
3531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532printf "%s\n" "no" >&6; }
3533fi
3534
3535
3536  fi
3537fi
3538if test -z "$CC"; then
3539  # Extract the first word of "cc", so it can be a program name with args.
3540set dummy cc; ac_word=$2
3541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542printf %s "checking for $ac_word... " >&6; }
3543if test ${ac_cv_prog_CC+y}
3544then :
3545  printf %s "(cached) " >&6
3546else $as_nop
3547  if test -n "$CC"; then
3548  ac_cv_prog_CC="$CC" # Let the user override the test.
3549else
3550  ac_prog_rejected=no
3551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552for as_dir in $PATH
3553do
3554  IFS=$as_save_IFS
3555  case $as_dir in #(((
3556    '') as_dir=./ ;;
3557    */) ;;
3558    *) as_dir=$as_dir/ ;;
3559  esac
3560    for ac_exec_ext in '' $ac_executable_extensions; do
3561  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3562    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3563       ac_prog_rejected=yes
3564       continue
3565     fi
3566    ac_cv_prog_CC="cc"
3567    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3568    break 2
3569  fi
3570done
3571  done
3572IFS=$as_save_IFS
3573
3574if test $ac_prog_rejected = yes; then
3575  # We found a bogon in the path, so make sure we never use it.
3576  set dummy $ac_cv_prog_CC
3577  shift
3578  if test $# != 0; then
3579    # We chose a different compiler from the bogus one.
3580    # However, it has the same basename, so the bogon will be chosen
3581    # first if we set CC to just the basename; use the full file name.
3582    shift
3583    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3584  fi
3585fi
3586fi
3587fi
3588CC=$ac_cv_prog_CC
3589if test -n "$CC"; then
3590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591printf "%s\n" "$CC" >&6; }
3592else
3593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594printf "%s\n" "no" >&6; }
3595fi
3596
3597
3598fi
3599if test -z "$CC"; then
3600  if test -n "$ac_tool_prefix"; then
3601  for ac_prog in cl.exe
3602  do
3603    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3604set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606printf %s "checking for $ac_word... " >&6; }
3607if test ${ac_cv_prog_CC+y}
3608then :
3609  printf %s "(cached) " >&6
3610else $as_nop
3611  if test -n "$CC"; then
3612  ac_cv_prog_CC="$CC" # Let the user override the test.
3613else
3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH
3616do
3617  IFS=$as_save_IFS
3618  case $as_dir in #(((
3619    '') as_dir=./ ;;
3620    */) ;;
3621    *) as_dir=$as_dir/ ;;
3622  esac
3623    for ac_exec_ext in '' $ac_executable_extensions; do
3624  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3625    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3626    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3627    break 2
3628  fi
3629done
3630  done
3631IFS=$as_save_IFS
3632
3633fi
3634fi
3635CC=$ac_cv_prog_CC
3636if test -n "$CC"; then
3637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638printf "%s\n" "$CC" >&6; }
3639else
3640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641printf "%s\n" "no" >&6; }
3642fi
3643
3644
3645    test -n "$CC" && break
3646  done
3647fi
3648if test -z "$CC"; then
3649  ac_ct_CC=$CC
3650  for ac_prog in cl.exe
3651do
3652  # Extract the first word of "$ac_prog", so it can be a program name with args.
3653set dummy $ac_prog; ac_word=$2
3654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655printf %s "checking for $ac_word... " >&6; }
3656if test ${ac_cv_prog_ac_ct_CC+y}
3657then :
3658  printf %s "(cached) " >&6
3659else $as_nop
3660  if test -n "$ac_ct_CC"; then
3661  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3662else
3663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664for as_dir in $PATH
3665do
3666  IFS=$as_save_IFS
3667  case $as_dir in #(((
3668    '') as_dir=./ ;;
3669    */) ;;
3670    *) as_dir=$as_dir/ ;;
3671  esac
3672    for ac_exec_ext in '' $ac_executable_extensions; do
3673  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3674    ac_cv_prog_ac_ct_CC="$ac_prog"
3675    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3676    break 2
3677  fi
3678done
3679  done
3680IFS=$as_save_IFS
3681
3682fi
3683fi
3684ac_ct_CC=$ac_cv_prog_ac_ct_CC
3685if test -n "$ac_ct_CC"; then
3686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3687printf "%s\n" "$ac_ct_CC" >&6; }
3688else
3689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690printf "%s\n" "no" >&6; }
3691fi
3692
3693
3694  test -n "$ac_ct_CC" && break
3695done
3696
3697  if test "x$ac_ct_CC" = x; then
3698    CC=""
3699  else
3700    case $cross_compiling:$ac_tool_warned in
3701yes:)
3702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3703printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3704ac_tool_warned=yes ;;
3705esac
3706    CC=$ac_ct_CC
3707  fi
3708fi
3709
3710fi
3711if test -z "$CC"; then
3712  if test -n "$ac_tool_prefix"; then
3713  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3714set dummy ${ac_tool_prefix}clang; ac_word=$2
3715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716printf %s "checking for $ac_word... " >&6; }
3717if test ${ac_cv_prog_CC+y}
3718then :
3719  printf %s "(cached) " >&6
3720else $as_nop
3721  if test -n "$CC"; then
3722  ac_cv_prog_CC="$CC" # Let the user override the test.
3723else
3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH
3726do
3727  IFS=$as_save_IFS
3728  case $as_dir in #(((
3729    '') as_dir=./ ;;
3730    */) ;;
3731    *) as_dir=$as_dir/ ;;
3732  esac
3733    for ac_exec_ext in '' $ac_executable_extensions; do
3734  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3735    ac_cv_prog_CC="${ac_tool_prefix}clang"
3736    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3737    break 2
3738  fi
3739done
3740  done
3741IFS=$as_save_IFS
3742
3743fi
3744fi
3745CC=$ac_cv_prog_CC
3746if test -n "$CC"; then
3747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3748printf "%s\n" "$CC" >&6; }
3749else
3750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751printf "%s\n" "no" >&6; }
3752fi
3753
3754
3755fi
3756if test -z "$ac_cv_prog_CC"; then
3757  ac_ct_CC=$CC
3758  # Extract the first word of "clang", so it can be a program name with args.
3759set dummy clang; ac_word=$2
3760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761printf %s "checking for $ac_word... " >&6; }
3762if test ${ac_cv_prog_ac_ct_CC+y}
3763then :
3764  printf %s "(cached) " >&6
3765else $as_nop
3766  if test -n "$ac_ct_CC"; then
3767  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772  IFS=$as_save_IFS
3773  case $as_dir in #(((
3774    '') as_dir=./ ;;
3775    */) ;;
3776    *) as_dir=$as_dir/ ;;
3777  esac
3778    for ac_exec_ext in '' $ac_executable_extensions; do
3779  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3780    ac_cv_prog_ac_ct_CC="clang"
3781    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3782    break 2
3783  fi
3784done
3785  done
3786IFS=$as_save_IFS
3787
3788fi
3789fi
3790ac_ct_CC=$ac_cv_prog_ac_ct_CC
3791if test -n "$ac_ct_CC"; then
3792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3793printf "%s\n" "$ac_ct_CC" >&6; }
3794else
3795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796printf "%s\n" "no" >&6; }
3797fi
3798
3799  if test "x$ac_ct_CC" = x; then
3800    CC=""
3801  else
3802    case $cross_compiling:$ac_tool_warned in
3803yes:)
3804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3805printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3806ac_tool_warned=yes ;;
3807esac
3808    CC=$ac_ct_CC
3809  fi
3810else
3811  CC="$ac_cv_prog_CC"
3812fi
3813
3814fi
3815
3816
3817test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3819as_fn_error $? "no acceptable C compiler found in \$PATH
3820See \`config.log' for more details" "$LINENO" 5; }
3821
3822# Provide some information about the compiler.
3823printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3824set X $ac_compile
3825ac_compiler=$2
3826for ac_option in --version -v -V -qversion -version; do
3827  { { ac_try="$ac_compiler $ac_option >&5"
3828case "(($ac_try" in
3829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830  *) ac_try_echo=$ac_try;;
3831esac
3832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833printf "%s\n" "$ac_try_echo"; } >&5
3834  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3835  ac_status=$?
3836  if test -s conftest.err; then
3837    sed '10a\
3838... rest of stderr output deleted ...
3839         10q' conftest.err >conftest.er1
3840    cat conftest.er1 >&5
3841  fi
3842  rm -f conftest.er1 conftest.err
3843  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844  test $ac_status = 0; }
3845done
3846
3847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h.  */
3849
3850int
3851main (void)
3852{
3853
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858ac_clean_files_save=$ac_clean_files
3859ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3860# Try to create an executable without -o first, disregard a.out.
3861# It will help us diagnose broken compilers, and finding out an intuition
3862# of exeext.
3863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3864printf %s "checking whether the C compiler works... " >&6; }
3865ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3866
3867# The possible output files:
3868ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3869
3870ac_rmfiles=
3871for ac_file in $ac_files
3872do
3873  case $ac_file in
3874    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3875    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3876  esac
3877done
3878rm -f $ac_rmfiles
3879
3880if { { ac_try="$ac_link_default"
3881case "(($ac_try" in
3882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883  *) ac_try_echo=$ac_try;;
3884esac
3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886printf "%s\n" "$ac_try_echo"; } >&5
3887  (eval "$ac_link_default") 2>&5
3888  ac_status=$?
3889  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890  test $ac_status = 0; }
3891then :
3892  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3893# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3894# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3895# so that the user can short-circuit this test for compilers unknown to
3896# Autoconf.
3897for ac_file in $ac_files ''
3898do
3899  test -f "$ac_file" || continue
3900  case $ac_file in
3901    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3902	;;
3903    [ab].out )
3904	# We found the default executable, but exeext='' is most
3905	# certainly right.
3906	break;;
3907    *.* )
3908	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3909	then :; else
3910	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3911	fi
3912	# We set ac_cv_exeext here because the later test for it is not
3913	# safe: cross compilers may not add the suffix if given an `-o'
3914	# argument, so we may need to know it at that point already.
3915	# Even if this section looks crufty: it has the advantage of
3916	# actually working.
3917	break;;
3918    * )
3919	break;;
3920  esac
3921done
3922test "$ac_cv_exeext" = no && ac_cv_exeext=
3923
3924else $as_nop
3925  ac_file=''
3926fi
3927if test -z "$ac_file"
3928then :
3929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930printf "%s\n" "no" >&6; }
3931printf "%s\n" "$as_me: failed program was:" >&5
3932sed 's/^/| /' conftest.$ac_ext >&5
3933
3934{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3936as_fn_error 77 "C compiler cannot create executables
3937See \`config.log' for more details" "$LINENO" 5; }
3938else $as_nop
3939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940printf "%s\n" "yes" >&6; }
3941fi
3942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3943printf %s "checking for C compiler default output file name... " >&6; }
3944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3945printf "%s\n" "$ac_file" >&6; }
3946ac_exeext=$ac_cv_exeext
3947
3948rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3949ac_clean_files=$ac_clean_files_save
3950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951printf %s "checking for suffix of executables... " >&6; }
3952if { { ac_try="$ac_link"
3953case "(($ac_try" in
3954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955  *) ac_try_echo=$ac_try;;
3956esac
3957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958printf "%s\n" "$ac_try_echo"; } >&5
3959  (eval "$ac_link") 2>&5
3960  ac_status=$?
3961  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962  test $ac_status = 0; }
3963then :
3964  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3966# work properly (i.e., refer to `conftest.exe'), while it won't with
3967# `rm'.
3968for ac_file in conftest.exe conftest conftest.*; do
3969  test -f "$ac_file" || continue
3970  case $ac_file in
3971    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973	  break;;
3974    * ) break;;
3975  esac
3976done
3977else $as_nop
3978  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3980as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3981See \`config.log' for more details" "$LINENO" 5; }
3982fi
3983rm -f conftest conftest$ac_cv_exeext
3984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985printf "%s\n" "$ac_cv_exeext" >&6; }
3986
3987rm -f conftest.$ac_ext
3988EXEEXT=$ac_cv_exeext
3989ac_exeext=$EXEEXT
3990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991/* end confdefs.h.  */
3992#include <stdio.h>
3993int
3994main (void)
3995{
3996FILE *f = fopen ("conftest.out", "w");
3997 return ferror (f) || fclose (f) != 0;
3998
3999  ;
4000  return 0;
4001}
4002_ACEOF
4003ac_clean_files="$ac_clean_files conftest.out"
4004# Check that the compiler produces executables we can run.  If not, either
4005# the compiler is broken, or we cross compile.
4006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4007printf %s "checking whether we are cross compiling... " >&6; }
4008if test "$cross_compiling" != yes; then
4009  { { ac_try="$ac_link"
4010case "(($ac_try" in
4011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012  *) ac_try_echo=$ac_try;;
4013esac
4014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015printf "%s\n" "$ac_try_echo"; } >&5
4016  (eval "$ac_link") 2>&5
4017  ac_status=$?
4018  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019  test $ac_status = 0; }
4020  if { ac_try='./conftest$ac_cv_exeext'
4021  { { case "(($ac_try" in
4022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023  *) ac_try_echo=$ac_try;;
4024esac
4025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026printf "%s\n" "$ac_try_echo"; } >&5
4027  (eval "$ac_try") 2>&5
4028  ac_status=$?
4029  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030  test $ac_status = 0; }; }; then
4031    cross_compiling=no
4032  else
4033    if test "$cross_compiling" = maybe; then
4034	cross_compiling=yes
4035    else
4036	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4038as_fn_error 77 "cannot run C compiled programs.
4039If you meant to cross compile, use \`--host'.
4040See \`config.log' for more details" "$LINENO" 5; }
4041    fi
4042  fi
4043fi
4044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4045printf "%s\n" "$cross_compiling" >&6; }
4046
4047rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4048ac_clean_files=$ac_clean_files_save
4049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4050printf %s "checking for suffix of object files... " >&6; }
4051if test ${ac_cv_objext+y}
4052then :
4053  printf %s "(cached) " >&6
4054else $as_nop
4055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057
4058int
4059main (void)
4060{
4061
4062  ;
4063  return 0;
4064}
4065_ACEOF
4066rm -f conftest.o conftest.obj
4067if { { ac_try="$ac_compile"
4068case "(($ac_try" in
4069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070  *) ac_try_echo=$ac_try;;
4071esac
4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073printf "%s\n" "$ac_try_echo"; } >&5
4074  (eval "$ac_compile") 2>&5
4075  ac_status=$?
4076  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077  test $ac_status = 0; }
4078then :
4079  for ac_file in conftest.o conftest.obj conftest.*; do
4080  test -f "$ac_file" || continue;
4081  case $ac_file in
4082    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4083    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4084       break;;
4085  esac
4086done
4087else $as_nop
4088  printf "%s\n" "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
4090
4091{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4092printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4093as_fn_error $? "cannot compute suffix of object files: cannot compile
4094See \`config.log' for more details" "$LINENO" 5; }
4095fi
4096rm -f conftest.$ac_cv_objext conftest.$ac_ext
4097fi
4098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4099printf "%s\n" "$ac_cv_objext" >&6; }
4100OBJEXT=$ac_cv_objext
4101ac_objext=$OBJEXT
4102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4103printf %s "checking whether the compiler supports GNU C... " >&6; }
4104if test ${ac_cv_c_compiler_gnu+y}
4105then :
4106  printf %s "(cached) " >&6
4107else $as_nop
4108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h.  */
4110
4111int
4112main (void)
4113{
4114#ifndef __GNUC__
4115       choke me
4116#endif
4117
4118  ;
4119  return 0;
4120}
4121_ACEOF
4122if ac_fn_c_try_compile "$LINENO"
4123then :
4124  ac_compiler_gnu=yes
4125else $as_nop
4126  ac_compiler_gnu=no
4127fi
4128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4129ac_cv_c_compiler_gnu=$ac_compiler_gnu
4130
4131fi
4132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4133printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4134ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135
4136if test $ac_compiler_gnu = yes; then
4137  GCC=yes
4138else
4139  GCC=
4140fi
4141ac_test_CFLAGS=${CFLAGS+y}
4142ac_save_CFLAGS=$CFLAGS
4143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4144printf %s "checking whether $CC accepts -g... " >&6; }
4145if test ${ac_cv_prog_cc_g+y}
4146then :
4147  printf %s "(cached) " >&6
4148else $as_nop
4149  ac_save_c_werror_flag=$ac_c_werror_flag
4150   ac_c_werror_flag=yes
4151   ac_cv_prog_cc_g=no
4152   CFLAGS="-g"
4153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154/* end confdefs.h.  */
4155
4156int
4157main (void)
4158{
4159
4160  ;
4161  return 0;
4162}
4163_ACEOF
4164if ac_fn_c_try_compile "$LINENO"
4165then :
4166  ac_cv_prog_cc_g=yes
4167else $as_nop
4168  CFLAGS=""
4169      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h.  */
4171
4172int
4173main (void)
4174{
4175
4176  ;
4177  return 0;
4178}
4179_ACEOF
4180if ac_fn_c_try_compile "$LINENO"
4181then :
4182
4183else $as_nop
4184  ac_c_werror_flag=$ac_save_c_werror_flag
4185	 CFLAGS="-g"
4186	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h.  */
4188
4189int
4190main (void)
4191{
4192
4193  ;
4194  return 0;
4195}
4196_ACEOF
4197if ac_fn_c_try_compile "$LINENO"
4198then :
4199  ac_cv_prog_cc_g=yes
4200fi
4201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4202fi
4203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4204fi
4205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4206   ac_c_werror_flag=$ac_save_c_werror_flag
4207fi
4208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4209printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4210if test $ac_test_CFLAGS; then
4211  CFLAGS=$ac_save_CFLAGS
4212elif test $ac_cv_prog_cc_g = yes; then
4213  if test "$GCC" = yes; then
4214    CFLAGS="-g -O2"
4215  else
4216    CFLAGS="-g"
4217  fi
4218else
4219  if test "$GCC" = yes; then
4220    CFLAGS="-O2"
4221  else
4222    CFLAGS=
4223  fi
4224fi
4225ac_prog_cc_stdc=no
4226if test x$ac_prog_cc_stdc = xno
4227then :
4228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4229printf %s "checking for $CC option to enable C11 features... " >&6; }
4230if test ${ac_cv_prog_cc_c11+y}
4231then :
4232  printf %s "(cached) " >&6
4233else $as_nop
4234  ac_cv_prog_cc_c11=no
4235ac_save_CC=$CC
4236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h.  */
4238$ac_c_conftest_c11_program
4239_ACEOF
4240for ac_arg in '' -std=gnu11
4241do
4242  CC="$ac_save_CC $ac_arg"
4243  if ac_fn_c_try_compile "$LINENO"
4244then :
4245  ac_cv_prog_cc_c11=$ac_arg
4246fi
4247rm -f core conftest.err conftest.$ac_objext conftest.beam
4248  test "x$ac_cv_prog_cc_c11" != "xno" && break
4249done
4250rm -f conftest.$ac_ext
4251CC=$ac_save_CC
4252fi
4253
4254if test "x$ac_cv_prog_cc_c11" = xno
4255then :
4256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4257printf "%s\n" "unsupported" >&6; }
4258else $as_nop
4259  if test "x$ac_cv_prog_cc_c11" = x
4260then :
4261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4262printf "%s\n" "none needed" >&6; }
4263else $as_nop
4264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4265printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4266     CC="$CC $ac_cv_prog_cc_c11"
4267fi
4268  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4269  ac_prog_cc_stdc=c11
4270fi
4271fi
4272if test x$ac_prog_cc_stdc = xno
4273then :
4274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4275printf %s "checking for $CC option to enable C99 features... " >&6; }
4276if test ${ac_cv_prog_cc_c99+y}
4277then :
4278  printf %s "(cached) " >&6
4279else $as_nop
4280  ac_cv_prog_cc_c99=no
4281ac_save_CC=$CC
4282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h.  */
4284$ac_c_conftest_c99_program
4285_ACEOF
4286for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4287do
4288  CC="$ac_save_CC $ac_arg"
4289  if ac_fn_c_try_compile "$LINENO"
4290then :
4291  ac_cv_prog_cc_c99=$ac_arg
4292fi
4293rm -f core conftest.err conftest.$ac_objext conftest.beam
4294  test "x$ac_cv_prog_cc_c99" != "xno" && break
4295done
4296rm -f conftest.$ac_ext
4297CC=$ac_save_CC
4298fi
4299
4300if test "x$ac_cv_prog_cc_c99" = xno
4301then :
4302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303printf "%s\n" "unsupported" >&6; }
4304else $as_nop
4305  if test "x$ac_cv_prog_cc_c99" = x
4306then :
4307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4308printf "%s\n" "none needed" >&6; }
4309else $as_nop
4310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4311printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4312     CC="$CC $ac_cv_prog_cc_c99"
4313fi
4314  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4315  ac_prog_cc_stdc=c99
4316fi
4317fi
4318if test x$ac_prog_cc_stdc = xno
4319then :
4320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4321printf %s "checking for $CC option to enable C89 features... " >&6; }
4322if test ${ac_cv_prog_cc_c89+y}
4323then :
4324  printf %s "(cached) " >&6
4325else $as_nop
4326  ac_cv_prog_cc_c89=no
4327ac_save_CC=$CC
4328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329/* end confdefs.h.  */
4330$ac_c_conftest_c89_program
4331_ACEOF
4332for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4333do
4334  CC="$ac_save_CC $ac_arg"
4335  if ac_fn_c_try_compile "$LINENO"
4336then :
4337  ac_cv_prog_cc_c89=$ac_arg
4338fi
4339rm -f core conftest.err conftest.$ac_objext conftest.beam
4340  test "x$ac_cv_prog_cc_c89" != "xno" && break
4341done
4342rm -f conftest.$ac_ext
4343CC=$ac_save_CC
4344fi
4345
4346if test "x$ac_cv_prog_cc_c89" = xno
4347then :
4348  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4349printf "%s\n" "unsupported" >&6; }
4350else $as_nop
4351  if test "x$ac_cv_prog_cc_c89" = x
4352then :
4353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4354printf "%s\n" "none needed" >&6; }
4355else $as_nop
4356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4357printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4358     CC="$CC $ac_cv_prog_cc_c89"
4359fi
4360  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4361  ac_prog_cc_stdc=c89
4362fi
4363fi
4364
4365ac_ext=c
4366ac_cpp='$CPP $CPPFLAGS'
4367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371
4372  ac_ext=c
4373ac_cpp='$CPP $CPPFLAGS'
4374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4378printf %s "checking whether $CC understands -c and -o together... " >&6; }
4379if test ${am_cv_prog_cc_c_o+y}
4380then :
4381  printf %s "(cached) " >&6
4382else $as_nop
4383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384/* end confdefs.h.  */
4385
4386int
4387main (void)
4388{
4389
4390  ;
4391  return 0;
4392}
4393_ACEOF
4394  # Make sure it works both with $CC and with simple cc.
4395  # Following AC_PROG_CC_C_O, we do the test twice because some
4396  # compilers refuse to overwrite an existing .o file with -o,
4397  # though they will create one.
4398  am_cv_prog_cc_c_o=yes
4399  for am_i in 1 2; do
4400    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4401   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } \
4405         && test -f conftest2.$ac_objext; then
4406      : OK
4407    else
4408      am_cv_prog_cc_c_o=no
4409      break
4410    fi
4411  done
4412  rm -f core conftest*
4413  unset am_i
4414fi
4415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4416printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4417if test "$am_cv_prog_cc_c_o" != yes; then
4418   # Losing compiler, so override with the script.
4419   # FIXME: It is wrong to rewrite CC.
4420   # But if we don't then we get into trouble of one sort or another.
4421   # A longer-term fix would be to have automake use am__CC in this case,
4422   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4423   CC="$am_aux_dir/compile $CC"
4424fi
4425ac_ext=c
4426ac_cpp='$CPP $CPPFLAGS'
4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430
4431
4432depcc="$CC"   am_compiler_list=
4433
4434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4435printf %s "checking dependency style of $depcc... " >&6; }
4436if test ${am_cv_CC_dependencies_compiler_type+y}
4437then :
4438  printf %s "(cached) " >&6
4439else $as_nop
4440  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4441  # We make a subdir and do the tests there.  Otherwise we can end up
4442  # making bogus files that we don't know about and never remove.  For
4443  # instance it was reported that on HP-UX the gcc test will end up
4444  # making a dummy file named 'D' -- because '-MD' means "put the output
4445  # in D".
4446  rm -rf conftest.dir
4447  mkdir conftest.dir
4448  # Copy depcomp to subdir because otherwise we won't find it if we're
4449  # using a relative directory.
4450  cp "$am_depcomp" conftest.dir
4451  cd conftest.dir
4452  # We will build objects and dependencies in a subdirectory because
4453  # it helps to detect inapplicable dependency modes.  For instance
4454  # both Tru64's cc and ICC support -MD to output dependencies as a
4455  # side effect of compilation, but ICC will put the dependencies in
4456  # the current directory while Tru64 will put them in the object
4457  # directory.
4458  mkdir sub
4459
4460  am_cv_CC_dependencies_compiler_type=none
4461  if test "$am_compiler_list" = ""; then
4462     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4463  fi
4464  am__universal=false
4465  case " $depcc " in #(
4466     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4467     esac
4468
4469  for depmode in $am_compiler_list; do
4470    # Setup a source with many dependencies, because some compilers
4471    # like to wrap large dependency lists on column 80 (with \), and
4472    # we should not choose a depcomp mode which is confused by this.
4473    #
4474    # We need to recreate these files for each test, as the compiler may
4475    # overwrite some of them when testing with obscure command lines.
4476    # This happens at least with the AIX C compiler.
4477    : > sub/conftest.c
4478    for i in 1 2 3 4 5 6; do
4479      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4480      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4481      # Solaris 10 /bin/sh.
4482      echo '/* dummy */' > sub/conftst$i.h
4483    done
4484    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4485
4486    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4487    # mode.  It turns out that the SunPro C++ compiler does not properly
4488    # handle '-M -o', and we need to detect this.  Also, some Intel
4489    # versions had trouble with output in subdirs.
4490    am__obj=sub/conftest.${OBJEXT-o}
4491    am__minus_obj="-o $am__obj"
4492    case $depmode in
4493    gcc)
4494      # This depmode causes a compiler race in universal mode.
4495      test "$am__universal" = false || continue
4496      ;;
4497    nosideeffect)
4498      # After this tag, mechanisms are not by side-effect, so they'll
4499      # only be used when explicitly requested.
4500      if test "x$enable_dependency_tracking" = xyes; then
4501	continue
4502      else
4503	break
4504      fi
4505      ;;
4506    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4507      # This compiler won't grok '-c -o', but also, the minuso test has
4508      # not run yet.  These depmodes are late enough in the game, and
4509      # so weak that their functioning should not be impacted.
4510      am__obj=conftest.${OBJEXT-o}
4511      am__minus_obj=
4512      ;;
4513    none) break ;;
4514    esac
4515    if depmode=$depmode \
4516       source=sub/conftest.c object=$am__obj \
4517       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4518       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4519         >/dev/null 2>conftest.err &&
4520       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4521       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4522       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4523       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4524      # icc doesn't choke on unknown options, it will just issue warnings
4525      # or remarks (even with -Werror).  So we grep stderr for any message
4526      # that says an option was ignored or not supported.
4527      # When given -MP, icc 7.0 and 7.1 complain thusly:
4528      #   icc: Command line warning: ignoring option '-M'; no argument required
4529      # The diagnosis changed in icc 8.0:
4530      #   icc: Command line remark: option '-MP' not supported
4531      if (grep 'ignoring option' conftest.err ||
4532          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4533        am_cv_CC_dependencies_compiler_type=$depmode
4534        break
4535      fi
4536    fi
4537  done
4538
4539  cd ..
4540  rm -rf conftest.dir
4541else
4542  am_cv_CC_dependencies_compiler_type=none
4543fi
4544
4545fi
4546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4547printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4548CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4549
4550 if
4551  test "x$enable_dependency_tracking" != xno \
4552  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4553  am__fastdepCC_TRUE=
4554  am__fastdepCC_FALSE='#'
4555else
4556  am__fastdepCC_TRUE='#'
4557  am__fastdepCC_FALSE=
4558fi
4559
4560
4561
4562ac_header= ac_cache=
4563for ac_item in $ac_header_c_list
4564do
4565  if test $ac_cache; then
4566    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4567    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4568      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4569    fi
4570    ac_header= ac_cache=
4571  elif test $ac_header; then
4572    ac_cache=$ac_item
4573  else
4574    ac_header=$ac_item
4575  fi
4576done
4577
4578
4579
4580
4581
4582
4583
4584
4585if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4586then :
4587
4588printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4589
4590fi
4591
4592
4593
4594
4595
4596
4597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4598printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4599if test ${ac_cv_safe_to_define___extensions__+y}
4600then :
4601  printf %s "(cached) " >&6
4602else $as_nop
4603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h.  */
4605
4606#         define __EXTENSIONS__ 1
4607          $ac_includes_default
4608int
4609main (void)
4610{
4611
4612  ;
4613  return 0;
4614}
4615_ACEOF
4616if ac_fn_c_try_compile "$LINENO"
4617then :
4618  ac_cv_safe_to_define___extensions__=yes
4619else $as_nop
4620  ac_cv_safe_to_define___extensions__=no
4621fi
4622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4623fi
4624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4625printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4626
4627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4628printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4629if test ${ac_cv_should_define__xopen_source+y}
4630then :
4631  printf %s "(cached) " >&6
4632else $as_nop
4633  ac_cv_should_define__xopen_source=no
4634    if test $ac_cv_header_wchar_h = yes
4635then :
4636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637/* end confdefs.h.  */
4638
4639          #include <wchar.h>
4640          mbstate_t x;
4641int
4642main (void)
4643{
4644
4645  ;
4646  return 0;
4647}
4648_ACEOF
4649if ac_fn_c_try_compile "$LINENO"
4650then :
4651
4652else $as_nop
4653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654/* end confdefs.h.  */
4655
4656            #define _XOPEN_SOURCE 500
4657            #include <wchar.h>
4658            mbstate_t x;
4659int
4660main (void)
4661{
4662
4663  ;
4664  return 0;
4665}
4666_ACEOF
4667if ac_fn_c_try_compile "$LINENO"
4668then :
4669  ac_cv_should_define__xopen_source=yes
4670fi
4671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4672fi
4673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4674fi
4675fi
4676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4677printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4678
4679  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4680
4681  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4682
4683  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4684
4685  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4686
4687  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4688
4689  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4690
4691  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4692
4693  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4694
4695  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4696
4697  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4698
4699  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4700
4701  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4702
4703  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4704
4705  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4706
4707  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4708
4709  if test $ac_cv_header_minix_config_h = yes
4710then :
4711  MINIX=yes
4712    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4713
4714    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4715
4716    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4717
4718else $as_nop
4719  MINIX=
4720fi
4721  if test $ac_cv_safe_to_define___extensions__ = yes
4722then :
4723  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4724
4725fi
4726  if test $ac_cv_should_define__xopen_source = yes
4727then :
4728  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4729
4730fi
4731
4732
4733# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4747printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4748if test ${ac_cv_c_undeclared_builtin_options+y}
4749then :
4750  printf %s "(cached) " >&6
4751else $as_nop
4752  ac_save_CFLAGS=$CFLAGS
4753   ac_cv_c_undeclared_builtin_options='cannot detect'
4754   for ac_arg in '' -fno-builtin; do
4755     CFLAGS="$ac_save_CFLAGS $ac_arg"
4756     # This test program should *not* compile successfully.
4757     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h.  */
4759
4760int
4761main (void)
4762{
4763(void) strchr;
4764  ;
4765  return 0;
4766}
4767_ACEOF
4768if ac_fn_c_try_compile "$LINENO"
4769then :
4770
4771else $as_nop
4772  # This test program should compile successfully.
4773        # No library function is consistently available on
4774        # freestanding implementations, so test against a dummy
4775        # declaration.  Include always-available headers on the
4776        # off chance that they somehow elicit warnings.
4777        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h.  */
4779#include <float.h>
4780#include <limits.h>
4781#include <stdarg.h>
4782#include <stddef.h>
4783extern void ac_decl (int, char *);
4784
4785int
4786main (void)
4787{
4788(void) ac_decl (0, (char *) 0);
4789  (void) ac_decl;
4790
4791  ;
4792  return 0;
4793}
4794_ACEOF
4795if ac_fn_c_try_compile "$LINENO"
4796then :
4797  if test x"$ac_arg" = x
4798then :
4799  ac_cv_c_undeclared_builtin_options='none needed'
4800else $as_nop
4801  ac_cv_c_undeclared_builtin_options=$ac_arg
4802fi
4803          break
4804fi
4805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4806fi
4807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4808    done
4809    CFLAGS=$ac_save_CFLAGS
4810
4811fi
4812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4813printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4814  case $ac_cv_c_undeclared_builtin_options in #(
4815  'cannot detect') :
4816    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4817printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4818as_fn_error $? "cannot make $CC report undeclared builtins
4819See \`config.log' for more details" "$LINENO" 5; } ;; #(
4820  'none needed') :
4821    ac_c_undeclared_builtin_options='' ;; #(
4822  *) :
4823    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4824esac
4825
4826
4827
4828
4829
4830ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4831if test "x$ac_cv_have_decl___clang__" = xyes
4832then :
4833  CLANGCC="yes"
4834else $as_nop
4835  CLANGCC="no"
4836fi
4837ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4838if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4839then :
4840  INTELCC="yes"
4841else $as_nop
4842  INTELCC="no"
4843fi
4844ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4845if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4846then :
4847  SUNCC="yes"
4848else $as_nop
4849  SUNCC="no"
4850fi
4851
4852
4853
4854
4855
4856
4857
4858
4859if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4860	if test -n "$ac_tool_prefix"; then
4861  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4862set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864printf %s "checking for $ac_word... " >&6; }
4865if test ${ac_cv_path_PKG_CONFIG+y}
4866then :
4867  printf %s "(cached) " >&6
4868else $as_nop
4869  case $PKG_CONFIG in
4870  [\\/]* | ?:[\\/]*)
4871  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4872  ;;
4873  *)
4874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877  IFS=$as_save_IFS
4878  case $as_dir in #(((
4879    '') as_dir=./ ;;
4880    */) ;;
4881    *) as_dir=$as_dir/ ;;
4882  esac
4883    for ac_exec_ext in '' $ac_executable_extensions; do
4884  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4885    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4886    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4887    break 2
4888  fi
4889done
4890  done
4891IFS=$as_save_IFS
4892
4893  ;;
4894esac
4895fi
4896PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4897if test -n "$PKG_CONFIG"; then
4898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4899printf "%s\n" "$PKG_CONFIG" >&6; }
4900else
4901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902printf "%s\n" "no" >&6; }
4903fi
4904
4905
4906fi
4907if test -z "$ac_cv_path_PKG_CONFIG"; then
4908  ac_pt_PKG_CONFIG=$PKG_CONFIG
4909  # Extract the first word of "pkg-config", so it can be a program name with args.
4910set dummy pkg-config; ac_word=$2
4911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912printf %s "checking for $ac_word... " >&6; }
4913if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4914then :
4915  printf %s "(cached) " >&6
4916else $as_nop
4917  case $ac_pt_PKG_CONFIG in
4918  [\\/]* | ?:[\\/]*)
4919  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4920  ;;
4921  *)
4922  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923for as_dir in $PATH
4924do
4925  IFS=$as_save_IFS
4926  case $as_dir in #(((
4927    '') as_dir=./ ;;
4928    */) ;;
4929    *) as_dir=$as_dir/ ;;
4930  esac
4931    for ac_exec_ext in '' $ac_executable_extensions; do
4932  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4933    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4934    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4935    break 2
4936  fi
4937done
4938  done
4939IFS=$as_save_IFS
4940
4941  ;;
4942esac
4943fi
4944ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4945if test -n "$ac_pt_PKG_CONFIG"; then
4946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4947printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4948else
4949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950printf "%s\n" "no" >&6; }
4951fi
4952
4953  if test "x$ac_pt_PKG_CONFIG" = x; then
4954    PKG_CONFIG=""
4955  else
4956    case $cross_compiling:$ac_tool_warned in
4957yes:)
4958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4959printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4960ac_tool_warned=yes ;;
4961esac
4962    PKG_CONFIG=$ac_pt_PKG_CONFIG
4963  fi
4964else
4965  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4966fi
4967
4968fi
4969if test -n "$PKG_CONFIG"; then
4970	_pkg_min_version=0.9.0
4971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4972printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4973	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4974		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4975printf "%s\n" "yes" >&6; }
4976	else
4977		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978printf "%s\n" "no" >&6; }
4979		PKG_CONFIG=""
4980	fi
4981fi
4982
4983
4984  # Make sure we can run config.sub.
4985$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4986  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4987
4988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4989printf %s "checking build system type... " >&6; }
4990if test ${ac_cv_build+y}
4991then :
4992  printf %s "(cached) " >&6
4993else $as_nop
4994  ac_build_alias=$build_alias
4995test "x$ac_build_alias" = x &&
4996  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4997test "x$ac_build_alias" = x &&
4998  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4999ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5000  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5001
5002fi
5003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5004printf "%s\n" "$ac_cv_build" >&6; }
5005case $ac_cv_build in
5006*-*-*) ;;
5007*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5008esac
5009build=$ac_cv_build
5010ac_save_IFS=$IFS; IFS='-'
5011set x $ac_cv_build
5012shift
5013build_cpu=$1
5014build_vendor=$2
5015shift; shift
5016# Remember, the first character of IFS is used to create $*,
5017# except with old shells:
5018build_os=$*
5019IFS=$ac_save_IFS
5020case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5021
5022
5023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5024printf %s "checking host system type... " >&6; }
5025if test ${ac_cv_host+y}
5026then :
5027  printf %s "(cached) " >&6
5028else $as_nop
5029  if test "x$host_alias" = x; then
5030  ac_cv_host=$ac_cv_build
5031else
5032  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5033    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5034fi
5035
5036fi
5037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5038printf "%s\n" "$ac_cv_host" >&6; }
5039case $ac_cv_host in
5040*-*-*) ;;
5041*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5042esac
5043host=$ac_cv_host
5044ac_save_IFS=$IFS; IFS='-'
5045set x $ac_cv_host
5046shift
5047host_cpu=$1
5048host_vendor=$2
5049shift; shift
5050# Remember, the first character of IFS is used to create $*,
5051# except with old shells:
5052host_os=$*
5053IFS=$ac_save_IFS
5054case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5055
5056
5057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5058printf %s "checking for a sed that does not truncate output... " >&6; }
5059if test ${ac_cv_path_SED+y}
5060then :
5061  printf %s "(cached) " >&6
5062else $as_nop
5063            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5064     for ac_i in 1 2 3 4 5 6 7; do
5065       ac_script="$ac_script$as_nl$ac_script"
5066     done
5067     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5068     { ac_script=; unset ac_script;}
5069     if test -z "$SED"; then
5070  ac_path_SED_found=false
5071  # Loop through the user's path and test for each of PROGNAME-LIST
5072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075  IFS=$as_save_IFS
5076  case $as_dir in #(((
5077    '') as_dir=./ ;;
5078    */) ;;
5079    *) as_dir=$as_dir/ ;;
5080  esac
5081    for ac_prog in sed gsed
5082   do
5083    for ac_exec_ext in '' $ac_executable_extensions; do
5084      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5085      as_fn_executable_p "$ac_path_SED" || continue
5086# Check for GNU ac_path_SED and select it if it is found.
5087  # Check for GNU $ac_path_SED
5088case `"$ac_path_SED" --version 2>&1` in
5089*GNU*)
5090  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5091*)
5092  ac_count=0
5093  printf %s 0123456789 >"conftest.in"
5094  while :
5095  do
5096    cat "conftest.in" "conftest.in" >"conftest.tmp"
5097    mv "conftest.tmp" "conftest.in"
5098    cp "conftest.in" "conftest.nl"
5099    printf "%s\n" '' >> "conftest.nl"
5100    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5101    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5102    as_fn_arith $ac_count + 1 && ac_count=$as_val
5103    if test $ac_count -gt ${ac_path_SED_max-0}; then
5104      # Best one so far, save it but keep looking for a better one
5105      ac_cv_path_SED="$ac_path_SED"
5106      ac_path_SED_max=$ac_count
5107    fi
5108    # 10*(2^10) chars as input seems more than enough
5109    test $ac_count -gt 10 && break
5110  done
5111  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5112esac
5113
5114      $ac_path_SED_found && break 3
5115    done
5116  done
5117  done
5118IFS=$as_save_IFS
5119  if test -z "$ac_cv_path_SED"; then
5120    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5121  fi
5122else
5123  ac_cv_path_SED=$SED
5124fi
5125
5126fi
5127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5128printf "%s\n" "$ac_cv_path_SED" >&6; }
5129 SED="$ac_cv_path_SED"
5130  rm -f conftest.sed
5131
5132
5133
5134
5135
5136
5137# Check whether --enable-selective-werror was given.
5138if test ${enable_selective_werror+y}
5139then :
5140  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5141else $as_nop
5142  SELECTIVE_WERROR=yes
5143fi
5144
5145
5146
5147
5148
5149# -v is too short to test reliably with XORG_TESTSET_CFLAG
5150if test "x$SUNCC" = "xyes"; then
5151    BASE_CFLAGS="-v"
5152else
5153    BASE_CFLAGS=""
5154fi
5155
5156# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170xorg_testset_save_CFLAGS="$CFLAGS"
5171
5172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5176if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5177then :
5178  printf %s "(cached) " >&6
5179else $as_nop
5180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h.  */
5182int i;
5183_ACEOF
5184if ac_fn_c_try_compile "$LINENO"
5185then :
5186  xorg_cv_cc_flag_unknown_warning_option=yes
5187else $as_nop
5188  xorg_cv_cc_flag_unknown_warning_option=no
5189fi
5190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5191fi
5192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5195	CFLAGS="$xorg_testset_save_CFLAGS"
5196fi
5197
5198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5201	fi
5202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5205if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5206then :
5207  printf %s "(cached) " >&6
5208else $as_nop
5209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210/* end confdefs.h.  */
5211int i;
5212_ACEOF
5213if ac_fn_c_try_compile "$LINENO"
5214then :
5215  xorg_cv_cc_flag_unused_command_line_argument=yes
5216else $as_nop
5217  xorg_cv_cc_flag_unused_command_line_argument=no
5218fi
5219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5220fi
5221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5224	CFLAGS="$xorg_testset_save_CFLAGS"
5225fi
5226
5227found="no"
5228
5229	if test $found = "no" ; then
5230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5232		fi
5233
5234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5236		fi
5237
5238		CFLAGS="$CFLAGS -Wall"
5239
5240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5241printf %s "checking if $CC supports -Wall... " >&6; }
5242		cacheid=xorg_cv_cc_flag__Wall
5243		if eval test \${$cacheid+y}
5244then :
5245  printf %s "(cached) " >&6
5246else $as_nop
5247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248/* end confdefs.h.  */
5249int i;
5250int
5251main (void)
5252{
5253
5254  ;
5255  return 0;
5256}
5257_ACEOF
5258if ac_fn_c_try_link "$LINENO"
5259then :
5260  eval $cacheid=yes
5261else $as_nop
5262  eval $cacheid=no
5263fi
5264rm -f core conftest.err conftest.$ac_objext conftest.beam \
5265    conftest$ac_exeext conftest.$ac_ext
5266fi
5267
5268
5269		CFLAGS="$xorg_testset_save_CFLAGS"
5270
5271		eval supported=\$$cacheid
5272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5273printf "%s\n" "$supported" >&6; }
5274		if test "$supported" = "yes" ; then
5275			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5276			found="yes"
5277		fi
5278	fi
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294xorg_testset_save_CFLAGS="$CFLAGS"
5295
5296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5299printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5300if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5301then :
5302  printf %s "(cached) " >&6
5303else $as_nop
5304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305/* end confdefs.h.  */
5306int i;
5307_ACEOF
5308if ac_fn_c_try_compile "$LINENO"
5309then :
5310  xorg_cv_cc_flag_unknown_warning_option=yes
5311else $as_nop
5312  xorg_cv_cc_flag_unknown_warning_option=no
5313fi
5314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5315fi
5316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5317printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5319	CFLAGS="$xorg_testset_save_CFLAGS"
5320fi
5321
5322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325	fi
5326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5328printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5329if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5330then :
5331  printf %s "(cached) " >&6
5332else $as_nop
5333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h.  */
5335int i;
5336_ACEOF
5337if ac_fn_c_try_compile "$LINENO"
5338then :
5339  xorg_cv_cc_flag_unused_command_line_argument=yes
5340else $as_nop
5341  xorg_cv_cc_flag_unused_command_line_argument=no
5342fi
5343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5344fi
5345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5346printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5347	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5348	CFLAGS="$xorg_testset_save_CFLAGS"
5349fi
5350
5351found="no"
5352
5353	if test $found = "no" ; then
5354		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5356		fi
5357
5358		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5360		fi
5361
5362		CFLAGS="$CFLAGS -Wpointer-arith"
5363
5364		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5365printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5366		cacheid=xorg_cv_cc_flag__Wpointer_arith
5367		if eval test \${$cacheid+y}
5368then :
5369  printf %s "(cached) " >&6
5370else $as_nop
5371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372/* end confdefs.h.  */
5373int i;
5374int
5375main (void)
5376{
5377
5378  ;
5379  return 0;
5380}
5381_ACEOF
5382if ac_fn_c_try_link "$LINENO"
5383then :
5384  eval $cacheid=yes
5385else $as_nop
5386  eval $cacheid=no
5387fi
5388rm -f core conftest.err conftest.$ac_objext conftest.beam \
5389    conftest$ac_exeext conftest.$ac_ext
5390fi
5391
5392
5393		CFLAGS="$xorg_testset_save_CFLAGS"
5394
5395		eval supported=\$$cacheid
5396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5397printf "%s\n" "$supported" >&6; }
5398		if test "$supported" = "yes" ; then
5399			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5400			found="yes"
5401		fi
5402	fi
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418xorg_testset_save_CFLAGS="$CFLAGS"
5419
5420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5423printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5424if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5425then :
5426  printf %s "(cached) " >&6
5427else $as_nop
5428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429/* end confdefs.h.  */
5430int i;
5431_ACEOF
5432if ac_fn_c_try_compile "$LINENO"
5433then :
5434  xorg_cv_cc_flag_unknown_warning_option=yes
5435else $as_nop
5436  xorg_cv_cc_flag_unknown_warning_option=no
5437fi
5438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5439fi
5440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5441printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5442	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5443	CFLAGS="$xorg_testset_save_CFLAGS"
5444fi
5445
5446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5447	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5448		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5449	fi
5450	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5452printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5453if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5454then :
5455  printf %s "(cached) " >&6
5456else $as_nop
5457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h.  */
5459int i;
5460_ACEOF
5461if ac_fn_c_try_compile "$LINENO"
5462then :
5463  xorg_cv_cc_flag_unused_command_line_argument=yes
5464else $as_nop
5465  xorg_cv_cc_flag_unused_command_line_argument=no
5466fi
5467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5468fi
5469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5470printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5471	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5472	CFLAGS="$xorg_testset_save_CFLAGS"
5473fi
5474
5475found="no"
5476
5477	if test $found = "no" ; then
5478		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5479			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5480		fi
5481
5482		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5483			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5484		fi
5485
5486		CFLAGS="$CFLAGS -Wmissing-declarations"
5487
5488		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5489printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5490		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5491		if eval test \${$cacheid+y}
5492then :
5493  printf %s "(cached) " >&6
5494else $as_nop
5495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496/* end confdefs.h.  */
5497int i;
5498int
5499main (void)
5500{
5501
5502  ;
5503  return 0;
5504}
5505_ACEOF
5506if ac_fn_c_try_link "$LINENO"
5507then :
5508  eval $cacheid=yes
5509else $as_nop
5510  eval $cacheid=no
5511fi
5512rm -f core conftest.err conftest.$ac_objext conftest.beam \
5513    conftest$ac_exeext conftest.$ac_ext
5514fi
5515
5516
5517		CFLAGS="$xorg_testset_save_CFLAGS"
5518
5519		eval supported=\$$cacheid
5520		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5521printf "%s\n" "$supported" >&6; }
5522		if test "$supported" = "yes" ; then
5523			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5524			found="yes"
5525		fi
5526	fi
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542xorg_testset_save_CFLAGS="$CFLAGS"
5543
5544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5545	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5547printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5548if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5549then :
5550  printf %s "(cached) " >&6
5551else $as_nop
5552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h.  */
5554int i;
5555_ACEOF
5556if ac_fn_c_try_compile "$LINENO"
5557then :
5558  xorg_cv_cc_flag_unknown_warning_option=yes
5559else $as_nop
5560  xorg_cv_cc_flag_unknown_warning_option=no
5561fi
5562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5563fi
5564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5565printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5566	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5567	CFLAGS="$xorg_testset_save_CFLAGS"
5568fi
5569
5570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5571	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5572		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573	fi
5574	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5575	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5576printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5577if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5578then :
5579  printf %s "(cached) " >&6
5580else $as_nop
5581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h.  */
5583int i;
5584_ACEOF
5585if ac_fn_c_try_compile "$LINENO"
5586then :
5587  xorg_cv_cc_flag_unused_command_line_argument=yes
5588else $as_nop
5589  xorg_cv_cc_flag_unused_command_line_argument=no
5590fi
5591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5592fi
5593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5594printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5596	CFLAGS="$xorg_testset_save_CFLAGS"
5597fi
5598
5599found="no"
5600
5601	if test $found = "no" ; then
5602		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5604		fi
5605
5606		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5608		fi
5609
5610		CFLAGS="$CFLAGS -Wformat=2"
5611
5612		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5613printf %s "checking if $CC supports -Wformat=2... " >&6; }
5614		cacheid=xorg_cv_cc_flag__Wformat_2
5615		if eval test \${$cacheid+y}
5616then :
5617  printf %s "(cached) " >&6
5618else $as_nop
5619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620/* end confdefs.h.  */
5621int i;
5622int
5623main (void)
5624{
5625
5626  ;
5627  return 0;
5628}
5629_ACEOF
5630if ac_fn_c_try_link "$LINENO"
5631then :
5632  eval $cacheid=yes
5633else $as_nop
5634  eval $cacheid=no
5635fi
5636rm -f core conftest.err conftest.$ac_objext conftest.beam \
5637    conftest$ac_exeext conftest.$ac_ext
5638fi
5639
5640
5641		CFLAGS="$xorg_testset_save_CFLAGS"
5642
5643		eval supported=\$$cacheid
5644		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5645printf "%s\n" "$supported" >&6; }
5646		if test "$supported" = "yes" ; then
5647			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5648			found="yes"
5649		fi
5650	fi
5651
5652	if test $found = "no" ; then
5653		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5655		fi
5656
5657		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5659		fi
5660
5661		CFLAGS="$CFLAGS -Wformat"
5662
5663		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5664printf %s "checking if $CC supports -Wformat... " >&6; }
5665		cacheid=xorg_cv_cc_flag__Wformat
5666		if eval test \${$cacheid+y}
5667then :
5668  printf %s "(cached) " >&6
5669else $as_nop
5670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h.  */
5672int i;
5673int
5674main (void)
5675{
5676
5677  ;
5678  return 0;
5679}
5680_ACEOF
5681if ac_fn_c_try_link "$LINENO"
5682then :
5683  eval $cacheid=yes
5684else $as_nop
5685  eval $cacheid=no
5686fi
5687rm -f core conftest.err conftest.$ac_objext conftest.beam \
5688    conftest$ac_exeext conftest.$ac_ext
5689fi
5690
5691
5692		CFLAGS="$xorg_testset_save_CFLAGS"
5693
5694		eval supported=\$$cacheid
5695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5696printf "%s\n" "$supported" >&6; }
5697		if test "$supported" = "yes" ; then
5698			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5699			found="yes"
5700		fi
5701	fi
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719xorg_testset_save_CFLAGS="$CFLAGS"
5720
5721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5722	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5723	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5724printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5725if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5726then :
5727  printf %s "(cached) " >&6
5728else $as_nop
5729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h.  */
5731int i;
5732_ACEOF
5733if ac_fn_c_try_compile "$LINENO"
5734then :
5735  xorg_cv_cc_flag_unknown_warning_option=yes
5736else $as_nop
5737  xorg_cv_cc_flag_unknown_warning_option=no
5738fi
5739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5740fi
5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5742printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5743	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5744	CFLAGS="$xorg_testset_save_CFLAGS"
5745fi
5746
5747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5748	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5749		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5750	fi
5751	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5753printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5754if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5755then :
5756  printf %s "(cached) " >&6
5757else $as_nop
5758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h.  */
5760int i;
5761_ACEOF
5762if ac_fn_c_try_compile "$LINENO"
5763then :
5764  xorg_cv_cc_flag_unused_command_line_argument=yes
5765else $as_nop
5766  xorg_cv_cc_flag_unused_command_line_argument=no
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5769fi
5770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5771printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5772	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5773	CFLAGS="$xorg_testset_save_CFLAGS"
5774fi
5775
5776found="no"
5777
5778	if test $found = "no" ; then
5779		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5781		fi
5782
5783		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5785		fi
5786
5787		CFLAGS="$CFLAGS -Wstrict-prototypes"
5788
5789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5790printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5791		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5792		if eval test \${$cacheid+y}
5793then :
5794  printf %s "(cached) " >&6
5795else $as_nop
5796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797/* end confdefs.h.  */
5798int i;
5799int
5800main (void)
5801{
5802
5803  ;
5804  return 0;
5805}
5806_ACEOF
5807if ac_fn_c_try_link "$LINENO"
5808then :
5809  eval $cacheid=yes
5810else $as_nop
5811  eval $cacheid=no
5812fi
5813rm -f core conftest.err conftest.$ac_objext conftest.beam \
5814    conftest$ac_exeext conftest.$ac_ext
5815fi
5816
5817
5818		CFLAGS="$xorg_testset_save_CFLAGS"
5819
5820		eval supported=\$$cacheid
5821		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5822printf "%s\n" "$supported" >&6; }
5823		if test "$supported" = "yes" ; then
5824			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5825			found="yes"
5826		fi
5827	fi
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843xorg_testset_save_CFLAGS="$CFLAGS"
5844
5845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5848printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5849if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5850then :
5851  printf %s "(cached) " >&6
5852else $as_nop
5853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h.  */
5855int i;
5856_ACEOF
5857if ac_fn_c_try_compile "$LINENO"
5858then :
5859  xorg_cv_cc_flag_unknown_warning_option=yes
5860else $as_nop
5861  xorg_cv_cc_flag_unknown_warning_option=no
5862fi
5863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5864fi
5865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5866printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5868	CFLAGS="$xorg_testset_save_CFLAGS"
5869fi
5870
5871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5874	fi
5875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5876	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5877printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5878if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5879then :
5880  printf %s "(cached) " >&6
5881else $as_nop
5882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883/* end confdefs.h.  */
5884int i;
5885_ACEOF
5886if ac_fn_c_try_compile "$LINENO"
5887then :
5888  xorg_cv_cc_flag_unused_command_line_argument=yes
5889else $as_nop
5890  xorg_cv_cc_flag_unused_command_line_argument=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5893fi
5894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5895printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5896	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5897	CFLAGS="$xorg_testset_save_CFLAGS"
5898fi
5899
5900found="no"
5901
5902	if test $found = "no" ; then
5903		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5905		fi
5906
5907		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5909		fi
5910
5911		CFLAGS="$CFLAGS -Wmissing-prototypes"
5912
5913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5914printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5915		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5916		if eval test \${$cacheid+y}
5917then :
5918  printf %s "(cached) " >&6
5919else $as_nop
5920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h.  */
5922int i;
5923int
5924main (void)
5925{
5926
5927  ;
5928  return 0;
5929}
5930_ACEOF
5931if ac_fn_c_try_link "$LINENO"
5932then :
5933  eval $cacheid=yes
5934else $as_nop
5935  eval $cacheid=no
5936fi
5937rm -f core conftest.err conftest.$ac_objext conftest.beam \
5938    conftest$ac_exeext conftest.$ac_ext
5939fi
5940
5941
5942		CFLAGS="$xorg_testset_save_CFLAGS"
5943
5944		eval supported=\$$cacheid
5945		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5946printf "%s\n" "$supported" >&6; }
5947		if test "$supported" = "yes" ; then
5948			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5949			found="yes"
5950		fi
5951	fi
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967xorg_testset_save_CFLAGS="$CFLAGS"
5968
5969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5972printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5973if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5974then :
5975  printf %s "(cached) " >&6
5976else $as_nop
5977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978/* end confdefs.h.  */
5979int i;
5980_ACEOF
5981if ac_fn_c_try_compile "$LINENO"
5982then :
5983  xorg_cv_cc_flag_unknown_warning_option=yes
5984else $as_nop
5985  xorg_cv_cc_flag_unknown_warning_option=no
5986fi
5987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5988fi
5989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5990printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5991	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5992	CFLAGS="$xorg_testset_save_CFLAGS"
5993fi
5994
5995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5996	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5998	fi
5999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6000	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6001printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6002if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6003then :
6004  printf %s "(cached) " >&6
6005else $as_nop
6006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h.  */
6008int i;
6009_ACEOF
6010if ac_fn_c_try_compile "$LINENO"
6011then :
6012  xorg_cv_cc_flag_unused_command_line_argument=yes
6013else $as_nop
6014  xorg_cv_cc_flag_unused_command_line_argument=no
6015fi
6016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6017fi
6018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6019printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6020	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6021	CFLAGS="$xorg_testset_save_CFLAGS"
6022fi
6023
6024found="no"
6025
6026	if test $found = "no" ; then
6027		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029		fi
6030
6031		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6033		fi
6034
6035		CFLAGS="$CFLAGS -Wnested-externs"
6036
6037		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6038printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6039		cacheid=xorg_cv_cc_flag__Wnested_externs
6040		if eval test \${$cacheid+y}
6041then :
6042  printf %s "(cached) " >&6
6043else $as_nop
6044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h.  */
6046int i;
6047int
6048main (void)
6049{
6050
6051  ;
6052  return 0;
6053}
6054_ACEOF
6055if ac_fn_c_try_link "$LINENO"
6056then :
6057  eval $cacheid=yes
6058else $as_nop
6059  eval $cacheid=no
6060fi
6061rm -f core conftest.err conftest.$ac_objext conftest.beam \
6062    conftest$ac_exeext conftest.$ac_ext
6063fi
6064
6065
6066		CFLAGS="$xorg_testset_save_CFLAGS"
6067
6068		eval supported=\$$cacheid
6069		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6070printf "%s\n" "$supported" >&6; }
6071		if test "$supported" = "yes" ; then
6072			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6073			found="yes"
6074		fi
6075	fi
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091xorg_testset_save_CFLAGS="$CFLAGS"
6092
6093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6096printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6097if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6098then :
6099  printf %s "(cached) " >&6
6100else $as_nop
6101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102/* end confdefs.h.  */
6103int i;
6104_ACEOF
6105if ac_fn_c_try_compile "$LINENO"
6106then :
6107  xorg_cv_cc_flag_unknown_warning_option=yes
6108else $as_nop
6109  xorg_cv_cc_flag_unknown_warning_option=no
6110fi
6111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6112fi
6113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6114printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6115	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6116	CFLAGS="$xorg_testset_save_CFLAGS"
6117fi
6118
6119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6120	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6121		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122	fi
6123	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6124	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6125printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6126if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6127then :
6128  printf %s "(cached) " >&6
6129else $as_nop
6130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h.  */
6132int i;
6133_ACEOF
6134if ac_fn_c_try_compile "$LINENO"
6135then :
6136  xorg_cv_cc_flag_unused_command_line_argument=yes
6137else $as_nop
6138  xorg_cv_cc_flag_unused_command_line_argument=no
6139fi
6140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6141fi
6142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6143printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6145	CFLAGS="$xorg_testset_save_CFLAGS"
6146fi
6147
6148found="no"
6149
6150	if test $found = "no" ; then
6151		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6153		fi
6154
6155		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6157		fi
6158
6159		CFLAGS="$CFLAGS -Wbad-function-cast"
6160
6161		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6162printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6163		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6164		if eval test \${$cacheid+y}
6165then :
6166  printf %s "(cached) " >&6
6167else $as_nop
6168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169/* end confdefs.h.  */
6170int i;
6171int
6172main (void)
6173{
6174
6175  ;
6176  return 0;
6177}
6178_ACEOF
6179if ac_fn_c_try_link "$LINENO"
6180then :
6181  eval $cacheid=yes
6182else $as_nop
6183  eval $cacheid=no
6184fi
6185rm -f core conftest.err conftest.$ac_objext conftest.beam \
6186    conftest$ac_exeext conftest.$ac_ext
6187fi
6188
6189
6190		CFLAGS="$xorg_testset_save_CFLAGS"
6191
6192		eval supported=\$$cacheid
6193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6194printf "%s\n" "$supported" >&6; }
6195		if test "$supported" = "yes" ; then
6196			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6197			found="yes"
6198		fi
6199	fi
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215xorg_testset_save_CFLAGS="$CFLAGS"
6216
6217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6218	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6220printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6221if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6222then :
6223  printf %s "(cached) " >&6
6224else $as_nop
6225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226/* end confdefs.h.  */
6227int i;
6228_ACEOF
6229if ac_fn_c_try_compile "$LINENO"
6230then :
6231  xorg_cv_cc_flag_unknown_warning_option=yes
6232else $as_nop
6233  xorg_cv_cc_flag_unknown_warning_option=no
6234fi
6235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6236fi
6237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6238printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6239	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6240	CFLAGS="$xorg_testset_save_CFLAGS"
6241fi
6242
6243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6244	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6245		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6246	fi
6247	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6248	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6249printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6250if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6251then :
6252  printf %s "(cached) " >&6
6253else $as_nop
6254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255/* end confdefs.h.  */
6256int i;
6257_ACEOF
6258if ac_fn_c_try_compile "$LINENO"
6259then :
6260  xorg_cv_cc_flag_unused_command_line_argument=yes
6261else $as_nop
6262  xorg_cv_cc_flag_unused_command_line_argument=no
6263fi
6264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6265fi
6266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6267printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6268	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6269	CFLAGS="$xorg_testset_save_CFLAGS"
6270fi
6271
6272found="no"
6273
6274	if test $found = "no" ; then
6275		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6276			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6277		fi
6278
6279		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6280			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6281		fi
6282
6283		CFLAGS="$CFLAGS -Wold-style-definition"
6284
6285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6286printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6287		cacheid=xorg_cv_cc_flag__Wold_style_definition
6288		if eval test \${$cacheid+y}
6289then :
6290  printf %s "(cached) " >&6
6291else $as_nop
6292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293/* end confdefs.h.  */
6294int i;
6295int
6296main (void)
6297{
6298
6299  ;
6300  return 0;
6301}
6302_ACEOF
6303if ac_fn_c_try_link "$LINENO"
6304then :
6305  eval $cacheid=yes
6306else $as_nop
6307  eval $cacheid=no
6308fi
6309rm -f core conftest.err conftest.$ac_objext conftest.beam \
6310    conftest$ac_exeext conftest.$ac_ext
6311fi
6312
6313
6314		CFLAGS="$xorg_testset_save_CFLAGS"
6315
6316		eval supported=\$$cacheid
6317		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6318printf "%s\n" "$supported" >&6; }
6319		if test "$supported" = "yes" ; then
6320			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6321			found="yes"
6322		fi
6323	fi
6324
6325	if test $found = "no" ; then
6326		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6328		fi
6329
6330		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6332		fi
6333
6334		CFLAGS="$CFLAGS -fd"
6335
6336		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6337printf %s "checking if $CC supports -fd... " >&6; }
6338		cacheid=xorg_cv_cc_flag__fd
6339		if eval test \${$cacheid+y}
6340then :
6341  printf %s "(cached) " >&6
6342else $as_nop
6343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344/* end confdefs.h.  */
6345int i;
6346int
6347main (void)
6348{
6349
6350  ;
6351  return 0;
6352}
6353_ACEOF
6354if ac_fn_c_try_link "$LINENO"
6355then :
6356  eval $cacheid=yes
6357else $as_nop
6358  eval $cacheid=no
6359fi
6360rm -f core conftest.err conftest.$ac_objext conftest.beam \
6361    conftest$ac_exeext conftest.$ac_ext
6362fi
6363
6364
6365		CFLAGS="$xorg_testset_save_CFLAGS"
6366
6367		eval supported=\$$cacheid
6368		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6369printf "%s\n" "$supported" >&6; }
6370		if test "$supported" = "yes" ; then
6371			BASE_CFLAGS="$BASE_CFLAGS -fd"
6372			found="yes"
6373		fi
6374	fi
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390xorg_testset_save_CFLAGS="$CFLAGS"
6391
6392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6393	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6395printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6396if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6397then :
6398  printf %s "(cached) " >&6
6399else $as_nop
6400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401/* end confdefs.h.  */
6402int i;
6403_ACEOF
6404if ac_fn_c_try_compile "$LINENO"
6405then :
6406  xorg_cv_cc_flag_unknown_warning_option=yes
6407else $as_nop
6408  xorg_cv_cc_flag_unknown_warning_option=no
6409fi
6410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6411fi
6412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6413printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6414	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6415	CFLAGS="$xorg_testset_save_CFLAGS"
6416fi
6417
6418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6419	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6420		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6421	fi
6422	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6423	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6424printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6425if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6426then :
6427  printf %s "(cached) " >&6
6428else $as_nop
6429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431int i;
6432_ACEOF
6433if ac_fn_c_try_compile "$LINENO"
6434then :
6435  xorg_cv_cc_flag_unused_command_line_argument=yes
6436else $as_nop
6437  xorg_cv_cc_flag_unused_command_line_argument=no
6438fi
6439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6440fi
6441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6442printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6443	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6444	CFLAGS="$xorg_testset_save_CFLAGS"
6445fi
6446
6447found="no"
6448
6449	if test $found = "no" ; then
6450		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6451			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452		fi
6453
6454		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6455			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6456		fi
6457
6458		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6459
6460		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6461printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6462		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6463		if eval test \${$cacheid+y}
6464then :
6465  printf %s "(cached) " >&6
6466else $as_nop
6467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468/* end confdefs.h.  */
6469int i;
6470int
6471main (void)
6472{
6473
6474  ;
6475  return 0;
6476}
6477_ACEOF
6478if ac_fn_c_try_link "$LINENO"
6479then :
6480  eval $cacheid=yes
6481else $as_nop
6482  eval $cacheid=no
6483fi
6484rm -f core conftest.err conftest.$ac_objext conftest.beam \
6485    conftest$ac_exeext conftest.$ac_ext
6486fi
6487
6488
6489		CFLAGS="$xorg_testset_save_CFLAGS"
6490
6491		eval supported=\$$cacheid
6492		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6493printf "%s\n" "$supported" >&6; }
6494		if test "$supported" = "yes" ; then
6495			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6496			found="yes"
6497		fi
6498	fi
6499
6500
6501
6502
6503
6504# This chunk adds additional warnings that could catch undesired effects.
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518xorg_testset_save_CFLAGS="$CFLAGS"
6519
6520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6524if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6525then :
6526  printf %s "(cached) " >&6
6527else $as_nop
6528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h.  */
6530int i;
6531_ACEOF
6532if ac_fn_c_try_compile "$LINENO"
6533then :
6534  xorg_cv_cc_flag_unknown_warning_option=yes
6535else $as_nop
6536  xorg_cv_cc_flag_unknown_warning_option=no
6537fi
6538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6539fi
6540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6542	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6543	CFLAGS="$xorg_testset_save_CFLAGS"
6544fi
6545
6546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6547	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6548		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6549	fi
6550	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6551	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6553if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6554then :
6555  printf %s "(cached) " >&6
6556else $as_nop
6557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558/* end confdefs.h.  */
6559int i;
6560_ACEOF
6561if ac_fn_c_try_compile "$LINENO"
6562then :
6563  xorg_cv_cc_flag_unused_command_line_argument=yes
6564else $as_nop
6565  xorg_cv_cc_flag_unused_command_line_argument=no
6566fi
6567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6568fi
6569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6570printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6572	CFLAGS="$xorg_testset_save_CFLAGS"
6573fi
6574
6575found="no"
6576
6577	if test $found = "no" ; then
6578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6580		fi
6581
6582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6584		fi
6585
6586		CFLAGS="$CFLAGS -Wunused"
6587
6588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6589printf %s "checking if $CC supports -Wunused... " >&6; }
6590		cacheid=xorg_cv_cc_flag__Wunused
6591		if eval test \${$cacheid+y}
6592then :
6593  printf %s "(cached) " >&6
6594else $as_nop
6595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596/* end confdefs.h.  */
6597int i;
6598int
6599main (void)
6600{
6601
6602  ;
6603  return 0;
6604}
6605_ACEOF
6606if ac_fn_c_try_link "$LINENO"
6607then :
6608  eval $cacheid=yes
6609else $as_nop
6610  eval $cacheid=no
6611fi
6612rm -f core conftest.err conftest.$ac_objext conftest.beam \
6613    conftest$ac_exeext conftest.$ac_ext
6614fi
6615
6616
6617		CFLAGS="$xorg_testset_save_CFLAGS"
6618
6619		eval supported=\$$cacheid
6620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6621printf "%s\n" "$supported" >&6; }
6622		if test "$supported" = "yes" ; then
6623			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6624			found="yes"
6625		fi
6626	fi
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642xorg_testset_save_CFLAGS="$CFLAGS"
6643
6644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6647printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6648if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6649then :
6650  printf %s "(cached) " >&6
6651else $as_nop
6652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653/* end confdefs.h.  */
6654int i;
6655_ACEOF
6656if ac_fn_c_try_compile "$LINENO"
6657then :
6658  xorg_cv_cc_flag_unknown_warning_option=yes
6659else $as_nop
6660  xorg_cv_cc_flag_unknown_warning_option=no
6661fi
6662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6663fi
6664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6665printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6667	CFLAGS="$xorg_testset_save_CFLAGS"
6668fi
6669
6670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6673	fi
6674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6676printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6677if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6678then :
6679  printf %s "(cached) " >&6
6680else $as_nop
6681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h.  */
6683int i;
6684_ACEOF
6685if ac_fn_c_try_compile "$LINENO"
6686then :
6687  xorg_cv_cc_flag_unused_command_line_argument=yes
6688else $as_nop
6689  xorg_cv_cc_flag_unused_command_line_argument=no
6690fi
6691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6692fi
6693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6694printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6696	CFLAGS="$xorg_testset_save_CFLAGS"
6697fi
6698
6699found="no"
6700
6701	if test $found = "no" ; then
6702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704		fi
6705
6706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6708		fi
6709
6710		CFLAGS="$CFLAGS -Wuninitialized"
6711
6712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6713printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6714		cacheid=xorg_cv_cc_flag__Wuninitialized
6715		if eval test \${$cacheid+y}
6716then :
6717  printf %s "(cached) " >&6
6718else $as_nop
6719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h.  */
6721int i;
6722int
6723main (void)
6724{
6725
6726  ;
6727  return 0;
6728}
6729_ACEOF
6730if ac_fn_c_try_link "$LINENO"
6731then :
6732  eval $cacheid=yes
6733else $as_nop
6734  eval $cacheid=no
6735fi
6736rm -f core conftest.err conftest.$ac_objext conftest.beam \
6737    conftest$ac_exeext conftest.$ac_ext
6738fi
6739
6740
6741		CFLAGS="$xorg_testset_save_CFLAGS"
6742
6743		eval supported=\$$cacheid
6744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6745printf "%s\n" "$supported" >&6; }
6746		if test "$supported" = "yes" ; then
6747			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6748			found="yes"
6749		fi
6750	fi
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766xorg_testset_save_CFLAGS="$CFLAGS"
6767
6768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6773then :
6774  printf %s "(cached) " >&6
6775else $as_nop
6776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777/* end confdefs.h.  */
6778int i;
6779_ACEOF
6780if ac_fn_c_try_compile "$LINENO"
6781then :
6782  xorg_cv_cc_flag_unknown_warning_option=yes
6783else $as_nop
6784  xorg_cv_cc_flag_unknown_warning_option=no
6785fi
6786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6787fi
6788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6789printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6791	CFLAGS="$xorg_testset_save_CFLAGS"
6792fi
6793
6794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797	fi
6798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6800printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6801if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6802then :
6803  printf %s "(cached) " >&6
6804else $as_nop
6805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806/* end confdefs.h.  */
6807int i;
6808_ACEOF
6809if ac_fn_c_try_compile "$LINENO"
6810then :
6811  xorg_cv_cc_flag_unused_command_line_argument=yes
6812else $as_nop
6813  xorg_cv_cc_flag_unused_command_line_argument=no
6814fi
6815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6816fi
6817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6818printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6820	CFLAGS="$xorg_testset_save_CFLAGS"
6821fi
6822
6823found="no"
6824
6825	if test $found = "no" ; then
6826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6828		fi
6829
6830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6832		fi
6833
6834		CFLAGS="$CFLAGS -Wshadow"
6835
6836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6837printf %s "checking if $CC supports -Wshadow... " >&6; }
6838		cacheid=xorg_cv_cc_flag__Wshadow
6839		if eval test \${$cacheid+y}
6840then :
6841  printf %s "(cached) " >&6
6842else $as_nop
6843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844/* end confdefs.h.  */
6845int i;
6846int
6847main (void)
6848{
6849
6850  ;
6851  return 0;
6852}
6853_ACEOF
6854if ac_fn_c_try_link "$LINENO"
6855then :
6856  eval $cacheid=yes
6857else $as_nop
6858  eval $cacheid=no
6859fi
6860rm -f core conftest.err conftest.$ac_objext conftest.beam \
6861    conftest$ac_exeext conftest.$ac_ext
6862fi
6863
6864
6865		CFLAGS="$xorg_testset_save_CFLAGS"
6866
6867		eval supported=\$$cacheid
6868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6869printf "%s\n" "$supported" >&6; }
6870		if test "$supported" = "yes" ; then
6871			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6872			found="yes"
6873		fi
6874	fi
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890xorg_testset_save_CFLAGS="$CFLAGS"
6891
6892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6895printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6896if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6897then :
6898  printf %s "(cached) " >&6
6899else $as_nop
6900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901/* end confdefs.h.  */
6902int i;
6903_ACEOF
6904if ac_fn_c_try_compile "$LINENO"
6905then :
6906  xorg_cv_cc_flag_unknown_warning_option=yes
6907else $as_nop
6908  xorg_cv_cc_flag_unknown_warning_option=no
6909fi
6910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6911fi
6912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6913printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6915	CFLAGS="$xorg_testset_save_CFLAGS"
6916fi
6917
6918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921	fi
6922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6924printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6925if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6926then :
6927  printf %s "(cached) " >&6
6928else $as_nop
6929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h.  */
6931int i;
6932_ACEOF
6933if ac_fn_c_try_compile "$LINENO"
6934then :
6935  xorg_cv_cc_flag_unused_command_line_argument=yes
6936else $as_nop
6937  xorg_cv_cc_flag_unused_command_line_argument=no
6938fi
6939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6940fi
6941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6942printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6943	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6944	CFLAGS="$xorg_testset_save_CFLAGS"
6945fi
6946
6947found="no"
6948
6949	if test $found = "no" ; then
6950		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6952		fi
6953
6954		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6956		fi
6957
6958		CFLAGS="$CFLAGS -Wmissing-noreturn"
6959
6960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6961printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6962		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6963		if eval test \${$cacheid+y}
6964then :
6965  printf %s "(cached) " >&6
6966else $as_nop
6967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968/* end confdefs.h.  */
6969int i;
6970int
6971main (void)
6972{
6973
6974  ;
6975  return 0;
6976}
6977_ACEOF
6978if ac_fn_c_try_link "$LINENO"
6979then :
6980  eval $cacheid=yes
6981else $as_nop
6982  eval $cacheid=no
6983fi
6984rm -f core conftest.err conftest.$ac_objext conftest.beam \
6985    conftest$ac_exeext conftest.$ac_ext
6986fi
6987
6988
6989		CFLAGS="$xorg_testset_save_CFLAGS"
6990
6991		eval supported=\$$cacheid
6992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6993printf "%s\n" "$supported" >&6; }
6994		if test "$supported" = "yes" ; then
6995			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6996			found="yes"
6997		fi
6998	fi
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014xorg_testset_save_CFLAGS="$CFLAGS"
7015
7016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7017	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7019printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7020if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7021then :
7022  printf %s "(cached) " >&6
7023else $as_nop
7024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025/* end confdefs.h.  */
7026int i;
7027_ACEOF
7028if ac_fn_c_try_compile "$LINENO"
7029then :
7030  xorg_cv_cc_flag_unknown_warning_option=yes
7031else $as_nop
7032  xorg_cv_cc_flag_unknown_warning_option=no
7033fi
7034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7035fi
7036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7037printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7039	CFLAGS="$xorg_testset_save_CFLAGS"
7040fi
7041
7042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7045	fi
7046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7047	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7048printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7049if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7050then :
7051  printf %s "(cached) " >&6
7052else $as_nop
7053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054/* end confdefs.h.  */
7055int i;
7056_ACEOF
7057if ac_fn_c_try_compile "$LINENO"
7058then :
7059  xorg_cv_cc_flag_unused_command_line_argument=yes
7060else $as_nop
7061  xorg_cv_cc_flag_unused_command_line_argument=no
7062fi
7063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7064fi
7065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7066printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7068	CFLAGS="$xorg_testset_save_CFLAGS"
7069fi
7070
7071found="no"
7072
7073	if test $found = "no" ; then
7074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7076		fi
7077
7078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7080		fi
7081
7082		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7083
7084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7085printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7086		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7087		if eval test \${$cacheid+y}
7088then :
7089  printf %s "(cached) " >&6
7090else $as_nop
7091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092/* end confdefs.h.  */
7093int i;
7094int
7095main (void)
7096{
7097
7098  ;
7099  return 0;
7100}
7101_ACEOF
7102if ac_fn_c_try_link "$LINENO"
7103then :
7104  eval $cacheid=yes
7105else $as_nop
7106  eval $cacheid=no
7107fi
7108rm -f core conftest.err conftest.$ac_objext conftest.beam \
7109    conftest$ac_exeext conftest.$ac_ext
7110fi
7111
7112
7113		CFLAGS="$xorg_testset_save_CFLAGS"
7114
7115		eval supported=\$$cacheid
7116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7117printf "%s\n" "$supported" >&6; }
7118		if test "$supported" = "yes" ; then
7119			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7120			found="yes"
7121		fi
7122	fi
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138xorg_testset_save_CFLAGS="$CFLAGS"
7139
7140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7143printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7144if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7145then :
7146  printf %s "(cached) " >&6
7147else $as_nop
7148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h.  */
7150int i;
7151_ACEOF
7152if ac_fn_c_try_compile "$LINENO"
7153then :
7154  xorg_cv_cc_flag_unknown_warning_option=yes
7155else $as_nop
7156  xorg_cv_cc_flag_unknown_warning_option=no
7157fi
7158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7159fi
7160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7161printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7163	CFLAGS="$xorg_testset_save_CFLAGS"
7164fi
7165
7166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7169	fi
7170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7172printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7173if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7174then :
7175  printf %s "(cached) " >&6
7176else $as_nop
7177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178/* end confdefs.h.  */
7179int i;
7180_ACEOF
7181if ac_fn_c_try_compile "$LINENO"
7182then :
7183  xorg_cv_cc_flag_unused_command_line_argument=yes
7184else $as_nop
7185  xorg_cv_cc_flag_unused_command_line_argument=no
7186fi
7187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7188fi
7189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7190printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7192	CFLAGS="$xorg_testset_save_CFLAGS"
7193fi
7194
7195found="no"
7196
7197	if test $found = "no" ; then
7198		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7200		fi
7201
7202		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7204		fi
7205
7206		CFLAGS="$CFLAGS -Wredundant-decls"
7207
7208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7209printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7210		cacheid=xorg_cv_cc_flag__Wredundant_decls
7211		if eval test \${$cacheid+y}
7212then :
7213  printf %s "(cached) " >&6
7214else $as_nop
7215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216/* end confdefs.h.  */
7217int i;
7218int
7219main (void)
7220{
7221
7222  ;
7223  return 0;
7224}
7225_ACEOF
7226if ac_fn_c_try_link "$LINENO"
7227then :
7228  eval $cacheid=yes
7229else $as_nop
7230  eval $cacheid=no
7231fi
7232rm -f core conftest.err conftest.$ac_objext conftest.beam \
7233    conftest$ac_exeext conftest.$ac_ext
7234fi
7235
7236
7237		CFLAGS="$xorg_testset_save_CFLAGS"
7238
7239		eval supported=\$$cacheid
7240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7241printf "%s\n" "$supported" >&6; }
7242		if test "$supported" = "yes" ; then
7243			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7244			found="yes"
7245		fi
7246	fi
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262xorg_testset_save_CFLAGS="$CFLAGS"
7263
7264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7267printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7268if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7269then :
7270  printf %s "(cached) " >&6
7271else $as_nop
7272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273/* end confdefs.h.  */
7274int i;
7275_ACEOF
7276if ac_fn_c_try_compile "$LINENO"
7277then :
7278  xorg_cv_cc_flag_unknown_warning_option=yes
7279else $as_nop
7280  xorg_cv_cc_flag_unknown_warning_option=no
7281fi
7282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7283fi
7284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7285printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7287	CFLAGS="$xorg_testset_save_CFLAGS"
7288fi
7289
7290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7293	fi
7294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7295	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7296printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7297if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7298then :
7299  printf %s "(cached) " >&6
7300else $as_nop
7301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302/* end confdefs.h.  */
7303int i;
7304_ACEOF
7305if ac_fn_c_try_compile "$LINENO"
7306then :
7307  xorg_cv_cc_flag_unused_command_line_argument=yes
7308else $as_nop
7309  xorg_cv_cc_flag_unused_command_line_argument=no
7310fi
7311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7312fi
7313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7314printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7316	CFLAGS="$xorg_testset_save_CFLAGS"
7317fi
7318
7319found="no"
7320
7321	if test $found = "no" ; then
7322		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7324		fi
7325
7326		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7328		fi
7329
7330		CFLAGS="$CFLAGS -Wlogical-op"
7331
7332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7333printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7334		cacheid=xorg_cv_cc_flag__Wlogical_op
7335		if eval test \${$cacheid+y}
7336then :
7337  printf %s "(cached) " >&6
7338else $as_nop
7339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340/* end confdefs.h.  */
7341int i;
7342int
7343main (void)
7344{
7345
7346  ;
7347  return 0;
7348}
7349_ACEOF
7350if ac_fn_c_try_link "$LINENO"
7351then :
7352  eval $cacheid=yes
7353else $as_nop
7354  eval $cacheid=no
7355fi
7356rm -f core conftest.err conftest.$ac_objext conftest.beam \
7357    conftest$ac_exeext conftest.$ac_ext
7358fi
7359
7360
7361		CFLAGS="$xorg_testset_save_CFLAGS"
7362
7363		eval supported=\$$cacheid
7364		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7365printf "%s\n" "$supported" >&6; }
7366		if test "$supported" = "yes" ; then
7367			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7368			found="yes"
7369		fi
7370	fi
7371
7372
7373
7374# These are currently disabled because they are noisy.  They will be enabled
7375# in the future once the codebase is sufficiently modernized to silence
7376# them.  For now, I don't want them to drown out the other warnings.
7377# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7378# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7379# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7380
7381# Turn some warnings into errors, so we don't accidently get successful builds
7382# when there are problems that should be fixed.
7383
7384if test "x$SELECTIVE_WERROR" = "xyes" ; then
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398xorg_testset_save_CFLAGS="$CFLAGS"
7399
7400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7404if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7405then :
7406  printf %s "(cached) " >&6
7407else $as_nop
7408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409/* end confdefs.h.  */
7410int i;
7411_ACEOF
7412if ac_fn_c_try_compile "$LINENO"
7413then :
7414  xorg_cv_cc_flag_unknown_warning_option=yes
7415else $as_nop
7416  xorg_cv_cc_flag_unknown_warning_option=no
7417fi
7418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7419fi
7420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7423	CFLAGS="$xorg_testset_save_CFLAGS"
7424fi
7425
7426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7429	fi
7430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7433if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7434then :
7435  printf %s "(cached) " >&6
7436else $as_nop
7437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438/* end confdefs.h.  */
7439int i;
7440_ACEOF
7441if ac_fn_c_try_compile "$LINENO"
7442then :
7443  xorg_cv_cc_flag_unused_command_line_argument=yes
7444else $as_nop
7445  xorg_cv_cc_flag_unused_command_line_argument=no
7446fi
7447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7448fi
7449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7452	CFLAGS="$xorg_testset_save_CFLAGS"
7453fi
7454
7455found="no"
7456
7457	if test $found = "no" ; then
7458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460		fi
7461
7462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7464		fi
7465
7466		CFLAGS="$CFLAGS -Werror=implicit"
7467
7468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7469printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7470		cacheid=xorg_cv_cc_flag__Werror_implicit
7471		if eval test \${$cacheid+y}
7472then :
7473  printf %s "(cached) " >&6
7474else $as_nop
7475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476/* end confdefs.h.  */
7477int i;
7478int
7479main (void)
7480{
7481
7482  ;
7483  return 0;
7484}
7485_ACEOF
7486if ac_fn_c_try_link "$LINENO"
7487then :
7488  eval $cacheid=yes
7489else $as_nop
7490  eval $cacheid=no
7491fi
7492rm -f core conftest.err conftest.$ac_objext conftest.beam \
7493    conftest$ac_exeext conftest.$ac_ext
7494fi
7495
7496
7497		CFLAGS="$xorg_testset_save_CFLAGS"
7498
7499		eval supported=\$$cacheid
7500		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7501printf "%s\n" "$supported" >&6; }
7502		if test "$supported" = "yes" ; then
7503			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7504			found="yes"
7505		fi
7506	fi
7507
7508	if test $found = "no" ; then
7509		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7510			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7511		fi
7512
7513		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7514			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7515		fi
7516
7517		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7518
7519		{ 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
7520printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7521		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7522		if eval test \${$cacheid+y}
7523then :
7524  printf %s "(cached) " >&6
7525else $as_nop
7526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527/* end confdefs.h.  */
7528int i;
7529int
7530main (void)
7531{
7532
7533  ;
7534  return 0;
7535}
7536_ACEOF
7537if ac_fn_c_try_link "$LINENO"
7538then :
7539  eval $cacheid=yes
7540else $as_nop
7541  eval $cacheid=no
7542fi
7543rm -f core conftest.err conftest.$ac_objext conftest.beam \
7544    conftest$ac_exeext conftest.$ac_ext
7545fi
7546
7547
7548		CFLAGS="$xorg_testset_save_CFLAGS"
7549
7550		eval supported=\$$cacheid
7551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7552printf "%s\n" "$supported" >&6; }
7553		if test "$supported" = "yes" ; then
7554			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7555			found="yes"
7556		fi
7557	fi
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573xorg_testset_save_CFLAGS="$CFLAGS"
7574
7575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7576	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7578printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7579if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7580then :
7581  printf %s "(cached) " >&6
7582else $as_nop
7583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584/* end confdefs.h.  */
7585int i;
7586_ACEOF
7587if ac_fn_c_try_compile "$LINENO"
7588then :
7589  xorg_cv_cc_flag_unknown_warning_option=yes
7590else $as_nop
7591  xorg_cv_cc_flag_unknown_warning_option=no
7592fi
7593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7594fi
7595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7596printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7597	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7598	CFLAGS="$xorg_testset_save_CFLAGS"
7599fi
7600
7601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7602	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7603		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7604	fi
7605	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7606	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7607printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7608if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7609then :
7610  printf %s "(cached) " >&6
7611else $as_nop
7612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613/* end confdefs.h.  */
7614int i;
7615_ACEOF
7616if ac_fn_c_try_compile "$LINENO"
7617then :
7618  xorg_cv_cc_flag_unused_command_line_argument=yes
7619else $as_nop
7620  xorg_cv_cc_flag_unused_command_line_argument=no
7621fi
7622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7623fi
7624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7625printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7626	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7627	CFLAGS="$xorg_testset_save_CFLAGS"
7628fi
7629
7630found="no"
7631
7632	if test $found = "no" ; then
7633		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7635		fi
7636
7637		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7639		fi
7640
7641		CFLAGS="$CFLAGS -Werror=nonnull"
7642
7643		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7644printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7645		cacheid=xorg_cv_cc_flag__Werror_nonnull
7646		if eval test \${$cacheid+y}
7647then :
7648  printf %s "(cached) " >&6
7649else $as_nop
7650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h.  */
7652int i;
7653int
7654main (void)
7655{
7656
7657  ;
7658  return 0;
7659}
7660_ACEOF
7661if ac_fn_c_try_link "$LINENO"
7662then :
7663  eval $cacheid=yes
7664else $as_nop
7665  eval $cacheid=no
7666fi
7667rm -f core conftest.err conftest.$ac_objext conftest.beam \
7668    conftest$ac_exeext conftest.$ac_ext
7669fi
7670
7671
7672		CFLAGS="$xorg_testset_save_CFLAGS"
7673
7674		eval supported=\$$cacheid
7675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7676printf "%s\n" "$supported" >&6; }
7677		if test "$supported" = "yes" ; then
7678			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7679			found="yes"
7680		fi
7681	fi
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697xorg_testset_save_CFLAGS="$CFLAGS"
7698
7699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7703if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7704then :
7705  printf %s "(cached) " >&6
7706else $as_nop
7707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708/* end confdefs.h.  */
7709int i;
7710_ACEOF
7711if ac_fn_c_try_compile "$LINENO"
7712then :
7713  xorg_cv_cc_flag_unknown_warning_option=yes
7714else $as_nop
7715  xorg_cv_cc_flag_unknown_warning_option=no
7716fi
7717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7718fi
7719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7722	CFLAGS="$xorg_testset_save_CFLAGS"
7723fi
7724
7725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7728	fi
7729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7732if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7733then :
7734  printf %s "(cached) " >&6
7735else $as_nop
7736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737/* end confdefs.h.  */
7738int i;
7739_ACEOF
7740if ac_fn_c_try_compile "$LINENO"
7741then :
7742  xorg_cv_cc_flag_unused_command_line_argument=yes
7743else $as_nop
7744  xorg_cv_cc_flag_unused_command_line_argument=no
7745fi
7746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7747fi
7748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7751	CFLAGS="$xorg_testset_save_CFLAGS"
7752fi
7753
7754found="no"
7755
7756	if test $found = "no" ; then
7757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7759		fi
7760
7761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7763		fi
7764
7765		CFLAGS="$CFLAGS -Werror=init-self"
7766
7767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7768printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7769		cacheid=xorg_cv_cc_flag__Werror_init_self
7770		if eval test \${$cacheid+y}
7771then :
7772  printf %s "(cached) " >&6
7773else $as_nop
7774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776int i;
7777int
7778main (void)
7779{
7780
7781  ;
7782  return 0;
7783}
7784_ACEOF
7785if ac_fn_c_try_link "$LINENO"
7786then :
7787  eval $cacheid=yes
7788else $as_nop
7789  eval $cacheid=no
7790fi
7791rm -f core conftest.err conftest.$ac_objext conftest.beam \
7792    conftest$ac_exeext conftest.$ac_ext
7793fi
7794
7795
7796		CFLAGS="$xorg_testset_save_CFLAGS"
7797
7798		eval supported=\$$cacheid
7799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7800printf "%s\n" "$supported" >&6; }
7801		if test "$supported" = "yes" ; then
7802			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7803			found="yes"
7804		fi
7805	fi
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821xorg_testset_save_CFLAGS="$CFLAGS"
7822
7823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7827if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7828then :
7829  printf %s "(cached) " >&6
7830else $as_nop
7831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832/* end confdefs.h.  */
7833int i;
7834_ACEOF
7835if ac_fn_c_try_compile "$LINENO"
7836then :
7837  xorg_cv_cc_flag_unknown_warning_option=yes
7838else $as_nop
7839  xorg_cv_cc_flag_unknown_warning_option=no
7840fi
7841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7842fi
7843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7846	CFLAGS="$xorg_testset_save_CFLAGS"
7847fi
7848
7849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7852	fi
7853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7856if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7857then :
7858  printf %s "(cached) " >&6
7859else $as_nop
7860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861/* end confdefs.h.  */
7862int i;
7863_ACEOF
7864if ac_fn_c_try_compile "$LINENO"
7865then :
7866  xorg_cv_cc_flag_unused_command_line_argument=yes
7867else $as_nop
7868  xorg_cv_cc_flag_unused_command_line_argument=no
7869fi
7870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7871fi
7872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7875	CFLAGS="$xorg_testset_save_CFLAGS"
7876fi
7877
7878found="no"
7879
7880	if test $found = "no" ; then
7881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7883		fi
7884
7885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7887		fi
7888
7889		CFLAGS="$CFLAGS -Werror=main"
7890
7891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7892printf %s "checking if $CC supports -Werror=main... " >&6; }
7893		cacheid=xorg_cv_cc_flag__Werror_main
7894		if eval test \${$cacheid+y}
7895then :
7896  printf %s "(cached) " >&6
7897else $as_nop
7898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h.  */
7900int i;
7901int
7902main (void)
7903{
7904
7905  ;
7906  return 0;
7907}
7908_ACEOF
7909if ac_fn_c_try_link "$LINENO"
7910then :
7911  eval $cacheid=yes
7912else $as_nop
7913  eval $cacheid=no
7914fi
7915rm -f core conftest.err conftest.$ac_objext conftest.beam \
7916    conftest$ac_exeext conftest.$ac_ext
7917fi
7918
7919
7920		CFLAGS="$xorg_testset_save_CFLAGS"
7921
7922		eval supported=\$$cacheid
7923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7924printf "%s\n" "$supported" >&6; }
7925		if test "$supported" = "yes" ; then
7926			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7927			found="yes"
7928		fi
7929	fi
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945xorg_testset_save_CFLAGS="$CFLAGS"
7946
7947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7949	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7951if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7952then :
7953  printf %s "(cached) " >&6
7954else $as_nop
7955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956/* end confdefs.h.  */
7957int i;
7958_ACEOF
7959if ac_fn_c_try_compile "$LINENO"
7960then :
7961  xorg_cv_cc_flag_unknown_warning_option=yes
7962else $as_nop
7963  xorg_cv_cc_flag_unknown_warning_option=no
7964fi
7965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7966fi
7967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7970	CFLAGS="$xorg_testset_save_CFLAGS"
7971fi
7972
7973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7976	fi
7977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7980if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7981then :
7982  printf %s "(cached) " >&6
7983else $as_nop
7984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985/* end confdefs.h.  */
7986int i;
7987_ACEOF
7988if ac_fn_c_try_compile "$LINENO"
7989then :
7990  xorg_cv_cc_flag_unused_command_line_argument=yes
7991else $as_nop
7992  xorg_cv_cc_flag_unused_command_line_argument=no
7993fi
7994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7995fi
7996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7999	CFLAGS="$xorg_testset_save_CFLAGS"
8000fi
8001
8002found="no"
8003
8004	if test $found = "no" ; then
8005		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007		fi
8008
8009		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8011		fi
8012
8013		CFLAGS="$CFLAGS -Werror=missing-braces"
8014
8015		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8016printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8017		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8018		if eval test \${$cacheid+y}
8019then :
8020  printf %s "(cached) " >&6
8021else $as_nop
8022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023/* end confdefs.h.  */
8024int i;
8025int
8026main (void)
8027{
8028
8029  ;
8030  return 0;
8031}
8032_ACEOF
8033if ac_fn_c_try_link "$LINENO"
8034then :
8035  eval $cacheid=yes
8036else $as_nop
8037  eval $cacheid=no
8038fi
8039rm -f core conftest.err conftest.$ac_objext conftest.beam \
8040    conftest$ac_exeext conftest.$ac_ext
8041fi
8042
8043
8044		CFLAGS="$xorg_testset_save_CFLAGS"
8045
8046		eval supported=\$$cacheid
8047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8048printf "%s\n" "$supported" >&6; }
8049		if test "$supported" = "yes" ; then
8050			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8051			found="yes"
8052		fi
8053	fi
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069xorg_testset_save_CFLAGS="$CFLAGS"
8070
8071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8075if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8076then :
8077  printf %s "(cached) " >&6
8078else $as_nop
8079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080/* end confdefs.h.  */
8081int i;
8082_ACEOF
8083if ac_fn_c_try_compile "$LINENO"
8084then :
8085  xorg_cv_cc_flag_unknown_warning_option=yes
8086else $as_nop
8087  xorg_cv_cc_flag_unknown_warning_option=no
8088fi
8089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8090fi
8091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8094	CFLAGS="$xorg_testset_save_CFLAGS"
8095fi
8096
8097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8100	fi
8101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8104if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8105then :
8106  printf %s "(cached) " >&6
8107else $as_nop
8108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109/* end confdefs.h.  */
8110int i;
8111_ACEOF
8112if ac_fn_c_try_compile "$LINENO"
8113then :
8114  xorg_cv_cc_flag_unused_command_line_argument=yes
8115else $as_nop
8116  xorg_cv_cc_flag_unused_command_line_argument=no
8117fi
8118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8119fi
8120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8123	CFLAGS="$xorg_testset_save_CFLAGS"
8124fi
8125
8126found="no"
8127
8128	if test $found = "no" ; then
8129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8131		fi
8132
8133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8135		fi
8136
8137		CFLAGS="$CFLAGS -Werror=sequence-point"
8138
8139		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8140printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8141		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8142		if eval test \${$cacheid+y}
8143then :
8144  printf %s "(cached) " >&6
8145else $as_nop
8146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147/* end confdefs.h.  */
8148int i;
8149int
8150main (void)
8151{
8152
8153  ;
8154  return 0;
8155}
8156_ACEOF
8157if ac_fn_c_try_link "$LINENO"
8158then :
8159  eval $cacheid=yes
8160else $as_nop
8161  eval $cacheid=no
8162fi
8163rm -f core conftest.err conftest.$ac_objext conftest.beam \
8164    conftest$ac_exeext conftest.$ac_ext
8165fi
8166
8167
8168		CFLAGS="$xorg_testset_save_CFLAGS"
8169
8170		eval supported=\$$cacheid
8171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8172printf "%s\n" "$supported" >&6; }
8173		if test "$supported" = "yes" ; then
8174			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8175			found="yes"
8176		fi
8177	fi
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193xorg_testset_save_CFLAGS="$CFLAGS"
8194
8195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8196	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8198printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8199if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8200then :
8201  printf %s "(cached) " >&6
8202else $as_nop
8203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204/* end confdefs.h.  */
8205int i;
8206_ACEOF
8207if ac_fn_c_try_compile "$LINENO"
8208then :
8209  xorg_cv_cc_flag_unknown_warning_option=yes
8210else $as_nop
8211  xorg_cv_cc_flag_unknown_warning_option=no
8212fi
8213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8214fi
8215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8216printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8218	CFLAGS="$xorg_testset_save_CFLAGS"
8219fi
8220
8221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8224	fi
8225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8227printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8228if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8229then :
8230  printf %s "(cached) " >&6
8231else $as_nop
8232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233/* end confdefs.h.  */
8234int i;
8235_ACEOF
8236if ac_fn_c_try_compile "$LINENO"
8237then :
8238  xorg_cv_cc_flag_unused_command_line_argument=yes
8239else $as_nop
8240  xorg_cv_cc_flag_unused_command_line_argument=no
8241fi
8242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8243fi
8244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8245printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8246	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8247	CFLAGS="$xorg_testset_save_CFLAGS"
8248fi
8249
8250found="no"
8251
8252	if test $found = "no" ; then
8253		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8255		fi
8256
8257		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8259		fi
8260
8261		CFLAGS="$CFLAGS -Werror=return-type"
8262
8263		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8264printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8265		cacheid=xorg_cv_cc_flag__Werror_return_type
8266		if eval test \${$cacheid+y}
8267then :
8268  printf %s "(cached) " >&6
8269else $as_nop
8270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271/* end confdefs.h.  */
8272int i;
8273int
8274main (void)
8275{
8276
8277  ;
8278  return 0;
8279}
8280_ACEOF
8281if ac_fn_c_try_link "$LINENO"
8282then :
8283  eval $cacheid=yes
8284else $as_nop
8285  eval $cacheid=no
8286fi
8287rm -f core conftest.err conftest.$ac_objext conftest.beam \
8288    conftest$ac_exeext conftest.$ac_ext
8289fi
8290
8291
8292		CFLAGS="$xorg_testset_save_CFLAGS"
8293
8294		eval supported=\$$cacheid
8295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8296printf "%s\n" "$supported" >&6; }
8297		if test "$supported" = "yes" ; then
8298			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8299			found="yes"
8300		fi
8301	fi
8302
8303	if test $found = "no" ; then
8304		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306		fi
8307
8308		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8310		fi
8311
8312		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8313
8314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8315printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8316		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8317		if eval test \${$cacheid+y}
8318then :
8319  printf %s "(cached) " >&6
8320else $as_nop
8321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322/* end confdefs.h.  */
8323int i;
8324int
8325main (void)
8326{
8327
8328  ;
8329  return 0;
8330}
8331_ACEOF
8332if ac_fn_c_try_link "$LINENO"
8333then :
8334  eval $cacheid=yes
8335else $as_nop
8336  eval $cacheid=no
8337fi
8338rm -f core conftest.err conftest.$ac_objext conftest.beam \
8339    conftest$ac_exeext conftest.$ac_ext
8340fi
8341
8342
8343		CFLAGS="$xorg_testset_save_CFLAGS"
8344
8345		eval supported=\$$cacheid
8346		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8347printf "%s\n" "$supported" >&6; }
8348		if test "$supported" = "yes" ; then
8349			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8350			found="yes"
8351		fi
8352	fi
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368xorg_testset_save_CFLAGS="$CFLAGS"
8369
8370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8372	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8373printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8374if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8375then :
8376  printf %s "(cached) " >&6
8377else $as_nop
8378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379/* end confdefs.h.  */
8380int i;
8381_ACEOF
8382if ac_fn_c_try_compile "$LINENO"
8383then :
8384  xorg_cv_cc_flag_unknown_warning_option=yes
8385else $as_nop
8386  xorg_cv_cc_flag_unknown_warning_option=no
8387fi
8388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8389fi
8390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8393	CFLAGS="$xorg_testset_save_CFLAGS"
8394fi
8395
8396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8399	fi
8400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8403if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8404then :
8405  printf %s "(cached) " >&6
8406else $as_nop
8407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408/* end confdefs.h.  */
8409int i;
8410_ACEOF
8411if ac_fn_c_try_compile "$LINENO"
8412then :
8413  xorg_cv_cc_flag_unused_command_line_argument=yes
8414else $as_nop
8415  xorg_cv_cc_flag_unused_command_line_argument=no
8416fi
8417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8418fi
8419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8420printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8422	CFLAGS="$xorg_testset_save_CFLAGS"
8423fi
8424
8425found="no"
8426
8427	if test $found = "no" ; then
8428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8430		fi
8431
8432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8434		fi
8435
8436		CFLAGS="$CFLAGS -Werror=trigraphs"
8437
8438		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8439printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8440		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8441		if eval test \${$cacheid+y}
8442then :
8443  printf %s "(cached) " >&6
8444else $as_nop
8445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446/* end confdefs.h.  */
8447int i;
8448int
8449main (void)
8450{
8451
8452  ;
8453  return 0;
8454}
8455_ACEOF
8456if ac_fn_c_try_link "$LINENO"
8457then :
8458  eval $cacheid=yes
8459else $as_nop
8460  eval $cacheid=no
8461fi
8462rm -f core conftest.err conftest.$ac_objext conftest.beam \
8463    conftest$ac_exeext conftest.$ac_ext
8464fi
8465
8466
8467		CFLAGS="$xorg_testset_save_CFLAGS"
8468
8469		eval supported=\$$cacheid
8470		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8471printf "%s\n" "$supported" >&6; }
8472		if test "$supported" = "yes" ; then
8473			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8474			found="yes"
8475		fi
8476	fi
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492xorg_testset_save_CFLAGS="$CFLAGS"
8493
8494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8496	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8497printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8498if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8499then :
8500  printf %s "(cached) " >&6
8501else $as_nop
8502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503/* end confdefs.h.  */
8504int i;
8505_ACEOF
8506if ac_fn_c_try_compile "$LINENO"
8507then :
8508  xorg_cv_cc_flag_unknown_warning_option=yes
8509else $as_nop
8510  xorg_cv_cc_flag_unknown_warning_option=no
8511fi
8512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8513fi
8514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8515printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8517	CFLAGS="$xorg_testset_save_CFLAGS"
8518fi
8519
8520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523	fi
8524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8526printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8527if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8528then :
8529  printf %s "(cached) " >&6
8530else $as_nop
8531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532/* end confdefs.h.  */
8533int i;
8534_ACEOF
8535if ac_fn_c_try_compile "$LINENO"
8536then :
8537  xorg_cv_cc_flag_unused_command_line_argument=yes
8538else $as_nop
8539  xorg_cv_cc_flag_unused_command_line_argument=no
8540fi
8541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8542fi
8543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8546	CFLAGS="$xorg_testset_save_CFLAGS"
8547fi
8548
8549found="no"
8550
8551	if test $found = "no" ; then
8552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8554		fi
8555
8556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8558		fi
8559
8560		CFLAGS="$CFLAGS -Werror=array-bounds"
8561
8562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8563printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8564		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8565		if eval test \${$cacheid+y}
8566then :
8567  printf %s "(cached) " >&6
8568else $as_nop
8569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570/* end confdefs.h.  */
8571int i;
8572int
8573main (void)
8574{
8575
8576  ;
8577  return 0;
8578}
8579_ACEOF
8580if ac_fn_c_try_link "$LINENO"
8581then :
8582  eval $cacheid=yes
8583else $as_nop
8584  eval $cacheid=no
8585fi
8586rm -f core conftest.err conftest.$ac_objext conftest.beam \
8587    conftest$ac_exeext conftest.$ac_ext
8588fi
8589
8590
8591		CFLAGS="$xorg_testset_save_CFLAGS"
8592
8593		eval supported=\$$cacheid
8594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8595printf "%s\n" "$supported" >&6; }
8596		if test "$supported" = "yes" ; then
8597			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8598			found="yes"
8599		fi
8600	fi
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616xorg_testset_save_CFLAGS="$CFLAGS"
8617
8618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8622if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8623then :
8624  printf %s "(cached) " >&6
8625else $as_nop
8626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627/* end confdefs.h.  */
8628int i;
8629_ACEOF
8630if ac_fn_c_try_compile "$LINENO"
8631then :
8632  xorg_cv_cc_flag_unknown_warning_option=yes
8633else $as_nop
8634  xorg_cv_cc_flag_unknown_warning_option=no
8635fi
8636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8637fi
8638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8641	CFLAGS="$xorg_testset_save_CFLAGS"
8642fi
8643
8644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8647	fi
8648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8651if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8652then :
8653  printf %s "(cached) " >&6
8654else $as_nop
8655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656/* end confdefs.h.  */
8657int i;
8658_ACEOF
8659if ac_fn_c_try_compile "$LINENO"
8660then :
8661  xorg_cv_cc_flag_unused_command_line_argument=yes
8662else $as_nop
8663  xorg_cv_cc_flag_unused_command_line_argument=no
8664fi
8665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8666fi
8667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8670	CFLAGS="$xorg_testset_save_CFLAGS"
8671fi
8672
8673found="no"
8674
8675	if test $found = "no" ; then
8676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8678		fi
8679
8680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8682		fi
8683
8684		CFLAGS="$CFLAGS -Werror=write-strings"
8685
8686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8687printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8688		cacheid=xorg_cv_cc_flag__Werror_write_strings
8689		if eval test \${$cacheid+y}
8690then :
8691  printf %s "(cached) " >&6
8692else $as_nop
8693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694/* end confdefs.h.  */
8695int i;
8696int
8697main (void)
8698{
8699
8700  ;
8701  return 0;
8702}
8703_ACEOF
8704if ac_fn_c_try_link "$LINENO"
8705then :
8706  eval $cacheid=yes
8707else $as_nop
8708  eval $cacheid=no
8709fi
8710rm -f core conftest.err conftest.$ac_objext conftest.beam \
8711    conftest$ac_exeext conftest.$ac_ext
8712fi
8713
8714
8715		CFLAGS="$xorg_testset_save_CFLAGS"
8716
8717		eval supported=\$$cacheid
8718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8719printf "%s\n" "$supported" >&6; }
8720		if test "$supported" = "yes" ; then
8721			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8722			found="yes"
8723		fi
8724	fi
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740xorg_testset_save_CFLAGS="$CFLAGS"
8741
8742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8746if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8747then :
8748  printf %s "(cached) " >&6
8749else $as_nop
8750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751/* end confdefs.h.  */
8752int i;
8753_ACEOF
8754if ac_fn_c_try_compile "$LINENO"
8755then :
8756  xorg_cv_cc_flag_unknown_warning_option=yes
8757else $as_nop
8758  xorg_cv_cc_flag_unknown_warning_option=no
8759fi
8760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8761fi
8762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8765	CFLAGS="$xorg_testset_save_CFLAGS"
8766fi
8767
8768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8771	fi
8772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8776then :
8777  printf %s "(cached) " >&6
8778else $as_nop
8779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780/* end confdefs.h.  */
8781int i;
8782_ACEOF
8783if ac_fn_c_try_compile "$LINENO"
8784then :
8785  xorg_cv_cc_flag_unused_command_line_argument=yes
8786else $as_nop
8787  xorg_cv_cc_flag_unused_command_line_argument=no
8788fi
8789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8790fi
8791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8794	CFLAGS="$xorg_testset_save_CFLAGS"
8795fi
8796
8797found="no"
8798
8799	if test $found = "no" ; then
8800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802		fi
8803
8804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8806		fi
8807
8808		CFLAGS="$CFLAGS -Werror=address"
8809
8810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8811printf %s "checking if $CC supports -Werror=address... " >&6; }
8812		cacheid=xorg_cv_cc_flag__Werror_address
8813		if eval test \${$cacheid+y}
8814then :
8815  printf %s "(cached) " >&6
8816else $as_nop
8817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818/* end confdefs.h.  */
8819int i;
8820int
8821main (void)
8822{
8823
8824  ;
8825  return 0;
8826}
8827_ACEOF
8828if ac_fn_c_try_link "$LINENO"
8829then :
8830  eval $cacheid=yes
8831else $as_nop
8832  eval $cacheid=no
8833fi
8834rm -f core conftest.err conftest.$ac_objext conftest.beam \
8835    conftest$ac_exeext conftest.$ac_ext
8836fi
8837
8838
8839		CFLAGS="$xorg_testset_save_CFLAGS"
8840
8841		eval supported=\$$cacheid
8842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8843printf "%s\n" "$supported" >&6; }
8844		if test "$supported" = "yes" ; then
8845			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8846			found="yes"
8847		fi
8848	fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864xorg_testset_save_CFLAGS="$CFLAGS"
8865
8866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8869printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8870if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8871then :
8872  printf %s "(cached) " >&6
8873else $as_nop
8874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875/* end confdefs.h.  */
8876int i;
8877_ACEOF
8878if ac_fn_c_try_compile "$LINENO"
8879then :
8880  xorg_cv_cc_flag_unknown_warning_option=yes
8881else $as_nop
8882  xorg_cv_cc_flag_unknown_warning_option=no
8883fi
8884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8885fi
8886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8887printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8889	CFLAGS="$xorg_testset_save_CFLAGS"
8890fi
8891
8892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8895	fi
8896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8898printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8899if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8900then :
8901  printf %s "(cached) " >&6
8902else $as_nop
8903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h.  */
8905int i;
8906_ACEOF
8907if ac_fn_c_try_compile "$LINENO"
8908then :
8909  xorg_cv_cc_flag_unused_command_line_argument=yes
8910else $as_nop
8911  xorg_cv_cc_flag_unused_command_line_argument=no
8912fi
8913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8914fi
8915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8918	CFLAGS="$xorg_testset_save_CFLAGS"
8919fi
8920
8921found="no"
8922
8923	if test $found = "no" ; then
8924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926		fi
8927
8928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8930		fi
8931
8932		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8933
8934		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8935printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8936		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8937		if eval test \${$cacheid+y}
8938then :
8939  printf %s "(cached) " >&6
8940else $as_nop
8941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942/* end confdefs.h.  */
8943int i;
8944int
8945main (void)
8946{
8947
8948  ;
8949  return 0;
8950}
8951_ACEOF
8952if ac_fn_c_try_link "$LINENO"
8953then :
8954  eval $cacheid=yes
8955else $as_nop
8956  eval $cacheid=no
8957fi
8958rm -f core conftest.err conftest.$ac_objext conftest.beam \
8959    conftest$ac_exeext conftest.$ac_ext
8960fi
8961
8962
8963		CFLAGS="$xorg_testset_save_CFLAGS"
8964
8965		eval supported=\$$cacheid
8966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8967printf "%s\n" "$supported" >&6; }
8968		if test "$supported" = "yes" ; then
8969			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8970			found="yes"
8971		fi
8972	fi
8973
8974	if test $found = "no" ; then
8975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8977		fi
8978
8979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8981		fi
8982
8983		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8984
8985		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8986printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8987		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8988		if eval test \${$cacheid+y}
8989then :
8990  printf %s "(cached) " >&6
8991else $as_nop
8992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993/* end confdefs.h.  */
8994int i;
8995int
8996main (void)
8997{
8998
8999  ;
9000  return 0;
9001}
9002_ACEOF
9003if ac_fn_c_try_link "$LINENO"
9004then :
9005  eval $cacheid=yes
9006else $as_nop
9007  eval $cacheid=no
9008fi
9009rm -f core conftest.err conftest.$ac_objext conftest.beam \
9010    conftest$ac_exeext conftest.$ac_ext
9011fi
9012
9013
9014		CFLAGS="$xorg_testset_save_CFLAGS"
9015
9016		eval supported=\$$cacheid
9017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9018printf "%s\n" "$supported" >&6; }
9019		if test "$supported" = "yes" ; then
9020			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9021			found="yes"
9022		fi
9023	fi
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039xorg_testset_save_CFLAGS="$CFLAGS"
9040
9041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9044printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9045if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9046then :
9047  printf %s "(cached) " >&6
9048else $as_nop
9049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050/* end confdefs.h.  */
9051int i;
9052_ACEOF
9053if ac_fn_c_try_compile "$LINENO"
9054then :
9055  xorg_cv_cc_flag_unknown_warning_option=yes
9056else $as_nop
9057  xorg_cv_cc_flag_unknown_warning_option=no
9058fi
9059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9060fi
9061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9062printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9064	CFLAGS="$xorg_testset_save_CFLAGS"
9065fi
9066
9067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9070	fi
9071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9073printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9074if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9075then :
9076  printf %s "(cached) " >&6
9077else $as_nop
9078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079/* end confdefs.h.  */
9080int i;
9081_ACEOF
9082if ac_fn_c_try_compile "$LINENO"
9083then :
9084  xorg_cv_cc_flag_unused_command_line_argument=yes
9085else $as_nop
9086  xorg_cv_cc_flag_unused_command_line_argument=no
9087fi
9088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9089fi
9090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9093	CFLAGS="$xorg_testset_save_CFLAGS"
9094fi
9095
9096found="no"
9097
9098	if test $found = "no" ; then
9099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9101		fi
9102
9103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9105		fi
9106
9107		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9108
9109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9110printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9111		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9112		if eval test \${$cacheid+y}
9113then :
9114  printf %s "(cached) " >&6
9115else $as_nop
9116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117/* end confdefs.h.  */
9118int i;
9119int
9120main (void)
9121{
9122
9123  ;
9124  return 0;
9125}
9126_ACEOF
9127if ac_fn_c_try_link "$LINENO"
9128then :
9129  eval $cacheid=yes
9130else $as_nop
9131  eval $cacheid=no
9132fi
9133rm -f core conftest.err conftest.$ac_objext conftest.beam \
9134    conftest$ac_exeext conftest.$ac_ext
9135fi
9136
9137
9138		CFLAGS="$xorg_testset_save_CFLAGS"
9139
9140		eval supported=\$$cacheid
9141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9142printf "%s\n" "$supported" >&6; }
9143		if test "$supported" = "yes" ; then
9144			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9145			found="yes"
9146		fi
9147	fi
9148
9149 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9150else
9151{ 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
9152printf "%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;}
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166xorg_testset_save_CFLAGS="$CFLAGS"
9167
9168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9169	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9170	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9171printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9172if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9173then :
9174  printf %s "(cached) " >&6
9175else $as_nop
9176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177/* end confdefs.h.  */
9178int i;
9179_ACEOF
9180if ac_fn_c_try_compile "$LINENO"
9181then :
9182  xorg_cv_cc_flag_unknown_warning_option=yes
9183else $as_nop
9184  xorg_cv_cc_flag_unknown_warning_option=no
9185fi
9186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9187fi
9188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9189printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9191	CFLAGS="$xorg_testset_save_CFLAGS"
9192fi
9193
9194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9197	fi
9198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9199	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9200printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9201if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9202then :
9203  printf %s "(cached) " >&6
9204else $as_nop
9205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h.  */
9207int i;
9208_ACEOF
9209if ac_fn_c_try_compile "$LINENO"
9210then :
9211  xorg_cv_cc_flag_unused_command_line_argument=yes
9212else $as_nop
9213  xorg_cv_cc_flag_unused_command_line_argument=no
9214fi
9215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9216fi
9217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9220	CFLAGS="$xorg_testset_save_CFLAGS"
9221fi
9222
9223found="no"
9224
9225	if test $found = "no" ; then
9226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9228		fi
9229
9230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9232		fi
9233
9234		CFLAGS="$CFLAGS -Wimplicit"
9235
9236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9237printf %s "checking if $CC supports -Wimplicit... " >&6; }
9238		cacheid=xorg_cv_cc_flag__Wimplicit
9239		if eval test \${$cacheid+y}
9240then :
9241  printf %s "(cached) " >&6
9242else $as_nop
9243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244/* end confdefs.h.  */
9245int i;
9246int
9247main (void)
9248{
9249
9250  ;
9251  return 0;
9252}
9253_ACEOF
9254if ac_fn_c_try_link "$LINENO"
9255then :
9256  eval $cacheid=yes
9257else $as_nop
9258  eval $cacheid=no
9259fi
9260rm -f core conftest.err conftest.$ac_objext conftest.beam \
9261    conftest$ac_exeext conftest.$ac_ext
9262fi
9263
9264
9265		CFLAGS="$xorg_testset_save_CFLAGS"
9266
9267		eval supported=\$$cacheid
9268		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9269printf "%s\n" "$supported" >&6; }
9270		if test "$supported" = "yes" ; then
9271			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9272			found="yes"
9273		fi
9274	fi
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290xorg_testset_save_CFLAGS="$CFLAGS"
9291
9292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9294	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9296if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9297then :
9298  printf %s "(cached) " >&6
9299else $as_nop
9300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301/* end confdefs.h.  */
9302int i;
9303_ACEOF
9304if ac_fn_c_try_compile "$LINENO"
9305then :
9306  xorg_cv_cc_flag_unknown_warning_option=yes
9307else $as_nop
9308  xorg_cv_cc_flag_unknown_warning_option=no
9309fi
9310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9311fi
9312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9313printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9315	CFLAGS="$xorg_testset_save_CFLAGS"
9316fi
9317
9318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9321	fi
9322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9324printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9325if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9326then :
9327  printf %s "(cached) " >&6
9328else $as_nop
9329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330/* end confdefs.h.  */
9331int i;
9332_ACEOF
9333if ac_fn_c_try_compile "$LINENO"
9334then :
9335  xorg_cv_cc_flag_unused_command_line_argument=yes
9336else $as_nop
9337  xorg_cv_cc_flag_unused_command_line_argument=no
9338fi
9339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9340fi
9341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9342printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9344	CFLAGS="$xorg_testset_save_CFLAGS"
9345fi
9346
9347found="no"
9348
9349	if test $found = "no" ; then
9350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352		fi
9353
9354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9356		fi
9357
9358		CFLAGS="$CFLAGS -Wnonnull"
9359
9360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9361printf %s "checking if $CC supports -Wnonnull... " >&6; }
9362		cacheid=xorg_cv_cc_flag__Wnonnull
9363		if eval test \${$cacheid+y}
9364then :
9365  printf %s "(cached) " >&6
9366else $as_nop
9367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368/* end confdefs.h.  */
9369int i;
9370int
9371main (void)
9372{
9373
9374  ;
9375  return 0;
9376}
9377_ACEOF
9378if ac_fn_c_try_link "$LINENO"
9379then :
9380  eval $cacheid=yes
9381else $as_nop
9382  eval $cacheid=no
9383fi
9384rm -f core conftest.err conftest.$ac_objext conftest.beam \
9385    conftest$ac_exeext conftest.$ac_ext
9386fi
9387
9388
9389		CFLAGS="$xorg_testset_save_CFLAGS"
9390
9391		eval supported=\$$cacheid
9392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9393printf "%s\n" "$supported" >&6; }
9394		if test "$supported" = "yes" ; then
9395			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9396			found="yes"
9397		fi
9398	fi
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414xorg_testset_save_CFLAGS="$CFLAGS"
9415
9416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9418	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9419printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9420if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9421then :
9422  printf %s "(cached) " >&6
9423else $as_nop
9424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425/* end confdefs.h.  */
9426int i;
9427_ACEOF
9428if ac_fn_c_try_compile "$LINENO"
9429then :
9430  xorg_cv_cc_flag_unknown_warning_option=yes
9431else $as_nop
9432  xorg_cv_cc_flag_unknown_warning_option=no
9433fi
9434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9435fi
9436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9437printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9438	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9439	CFLAGS="$xorg_testset_save_CFLAGS"
9440fi
9441
9442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9443	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9444		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445	fi
9446	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9448printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9449if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9450then :
9451  printf %s "(cached) " >&6
9452else $as_nop
9453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454/* end confdefs.h.  */
9455int i;
9456_ACEOF
9457if ac_fn_c_try_compile "$LINENO"
9458then :
9459  xorg_cv_cc_flag_unused_command_line_argument=yes
9460else $as_nop
9461  xorg_cv_cc_flag_unused_command_line_argument=no
9462fi
9463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9464fi
9465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9468	CFLAGS="$xorg_testset_save_CFLAGS"
9469fi
9470
9471found="no"
9472
9473	if test $found = "no" ; then
9474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9476		fi
9477
9478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9480		fi
9481
9482		CFLAGS="$CFLAGS -Winit-self"
9483
9484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9485printf %s "checking if $CC supports -Winit-self... " >&6; }
9486		cacheid=xorg_cv_cc_flag__Winit_self
9487		if eval test \${$cacheid+y}
9488then :
9489  printf %s "(cached) " >&6
9490else $as_nop
9491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492/* end confdefs.h.  */
9493int i;
9494int
9495main (void)
9496{
9497
9498  ;
9499  return 0;
9500}
9501_ACEOF
9502if ac_fn_c_try_link "$LINENO"
9503then :
9504  eval $cacheid=yes
9505else $as_nop
9506  eval $cacheid=no
9507fi
9508rm -f core conftest.err conftest.$ac_objext conftest.beam \
9509    conftest$ac_exeext conftest.$ac_ext
9510fi
9511
9512
9513		CFLAGS="$xorg_testset_save_CFLAGS"
9514
9515		eval supported=\$$cacheid
9516		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9517printf "%s\n" "$supported" >&6; }
9518		if test "$supported" = "yes" ; then
9519			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9520			found="yes"
9521		fi
9522	fi
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538xorg_testset_save_CFLAGS="$CFLAGS"
9539
9540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9541	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9542	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9543printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9544if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9545then :
9546  printf %s "(cached) " >&6
9547else $as_nop
9548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549/* end confdefs.h.  */
9550int i;
9551_ACEOF
9552if ac_fn_c_try_compile "$LINENO"
9553then :
9554  xorg_cv_cc_flag_unknown_warning_option=yes
9555else $as_nop
9556  xorg_cv_cc_flag_unknown_warning_option=no
9557fi
9558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9559fi
9560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9563	CFLAGS="$xorg_testset_save_CFLAGS"
9564fi
9565
9566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9569	fi
9570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9573if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9574then :
9575  printf %s "(cached) " >&6
9576else $as_nop
9577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579int i;
9580_ACEOF
9581if ac_fn_c_try_compile "$LINENO"
9582then :
9583  xorg_cv_cc_flag_unused_command_line_argument=yes
9584else $as_nop
9585  xorg_cv_cc_flag_unused_command_line_argument=no
9586fi
9587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9588fi
9589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9590printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9591	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9592	CFLAGS="$xorg_testset_save_CFLAGS"
9593fi
9594
9595found="no"
9596
9597	if test $found = "no" ; then
9598		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9599			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9600		fi
9601
9602		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9603			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9604		fi
9605
9606		CFLAGS="$CFLAGS -Wmain"
9607
9608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9609printf %s "checking if $CC supports -Wmain... " >&6; }
9610		cacheid=xorg_cv_cc_flag__Wmain
9611		if eval test \${$cacheid+y}
9612then :
9613  printf %s "(cached) " >&6
9614else $as_nop
9615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616/* end confdefs.h.  */
9617int i;
9618int
9619main (void)
9620{
9621
9622  ;
9623  return 0;
9624}
9625_ACEOF
9626if ac_fn_c_try_link "$LINENO"
9627then :
9628  eval $cacheid=yes
9629else $as_nop
9630  eval $cacheid=no
9631fi
9632rm -f core conftest.err conftest.$ac_objext conftest.beam \
9633    conftest$ac_exeext conftest.$ac_ext
9634fi
9635
9636
9637		CFLAGS="$xorg_testset_save_CFLAGS"
9638
9639		eval supported=\$$cacheid
9640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9641printf "%s\n" "$supported" >&6; }
9642		if test "$supported" = "yes" ; then
9643			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9644			found="yes"
9645		fi
9646	fi
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662xorg_testset_save_CFLAGS="$CFLAGS"
9663
9664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9665	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9668if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9669then :
9670  printf %s "(cached) " >&6
9671else $as_nop
9672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673/* end confdefs.h.  */
9674int i;
9675_ACEOF
9676if ac_fn_c_try_compile "$LINENO"
9677then :
9678  xorg_cv_cc_flag_unknown_warning_option=yes
9679else $as_nop
9680  xorg_cv_cc_flag_unknown_warning_option=no
9681fi
9682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9683fi
9684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9687	CFLAGS="$xorg_testset_save_CFLAGS"
9688fi
9689
9690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9693	fi
9694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9697if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9698then :
9699  printf %s "(cached) " >&6
9700else $as_nop
9701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702/* end confdefs.h.  */
9703int i;
9704_ACEOF
9705if ac_fn_c_try_compile "$LINENO"
9706then :
9707  xorg_cv_cc_flag_unused_command_line_argument=yes
9708else $as_nop
9709  xorg_cv_cc_flag_unused_command_line_argument=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9712fi
9713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9716	CFLAGS="$xorg_testset_save_CFLAGS"
9717fi
9718
9719found="no"
9720
9721	if test $found = "no" ; then
9722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724		fi
9725
9726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728		fi
9729
9730		CFLAGS="$CFLAGS -Wmissing-braces"
9731
9732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9733printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9734		cacheid=xorg_cv_cc_flag__Wmissing_braces
9735		if eval test \${$cacheid+y}
9736then :
9737  printf %s "(cached) " >&6
9738else $as_nop
9739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740/* end confdefs.h.  */
9741int i;
9742int
9743main (void)
9744{
9745
9746  ;
9747  return 0;
9748}
9749_ACEOF
9750if ac_fn_c_try_link "$LINENO"
9751then :
9752  eval $cacheid=yes
9753else $as_nop
9754  eval $cacheid=no
9755fi
9756rm -f core conftest.err conftest.$ac_objext conftest.beam \
9757    conftest$ac_exeext conftest.$ac_ext
9758fi
9759
9760
9761		CFLAGS="$xorg_testset_save_CFLAGS"
9762
9763		eval supported=\$$cacheid
9764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9765printf "%s\n" "$supported" >&6; }
9766		if test "$supported" = "yes" ; then
9767			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9768			found="yes"
9769		fi
9770	fi
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786xorg_testset_save_CFLAGS="$CFLAGS"
9787
9788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9792if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9793then :
9794  printf %s "(cached) " >&6
9795else $as_nop
9796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797/* end confdefs.h.  */
9798int i;
9799_ACEOF
9800if ac_fn_c_try_compile "$LINENO"
9801then :
9802  xorg_cv_cc_flag_unknown_warning_option=yes
9803else $as_nop
9804  xorg_cv_cc_flag_unknown_warning_option=no
9805fi
9806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9807fi
9808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9809printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9810	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9811	CFLAGS="$xorg_testset_save_CFLAGS"
9812fi
9813
9814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9815	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817	fi
9818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9819	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9820printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9821if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9822then :
9823  printf %s "(cached) " >&6
9824else $as_nop
9825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826/* end confdefs.h.  */
9827int i;
9828_ACEOF
9829if ac_fn_c_try_compile "$LINENO"
9830then :
9831  xorg_cv_cc_flag_unused_command_line_argument=yes
9832else $as_nop
9833  xorg_cv_cc_flag_unused_command_line_argument=no
9834fi
9835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9836fi
9837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9838printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9840	CFLAGS="$xorg_testset_save_CFLAGS"
9841fi
9842
9843found="no"
9844
9845	if test $found = "no" ; then
9846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9848		fi
9849
9850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9852		fi
9853
9854		CFLAGS="$CFLAGS -Wsequence-point"
9855
9856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9857printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9858		cacheid=xorg_cv_cc_flag__Wsequence_point
9859		if eval test \${$cacheid+y}
9860then :
9861  printf %s "(cached) " >&6
9862else $as_nop
9863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864/* end confdefs.h.  */
9865int i;
9866int
9867main (void)
9868{
9869
9870  ;
9871  return 0;
9872}
9873_ACEOF
9874if ac_fn_c_try_link "$LINENO"
9875then :
9876  eval $cacheid=yes
9877else $as_nop
9878  eval $cacheid=no
9879fi
9880rm -f core conftest.err conftest.$ac_objext conftest.beam \
9881    conftest$ac_exeext conftest.$ac_ext
9882fi
9883
9884
9885		CFLAGS="$xorg_testset_save_CFLAGS"
9886
9887		eval supported=\$$cacheid
9888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9889printf "%s\n" "$supported" >&6; }
9890		if test "$supported" = "yes" ; then
9891			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9892			found="yes"
9893		fi
9894	fi
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910xorg_testset_save_CFLAGS="$CFLAGS"
9911
9912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9916if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9917then :
9918  printf %s "(cached) " >&6
9919else $as_nop
9920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h.  */
9922int i;
9923_ACEOF
9924if ac_fn_c_try_compile "$LINENO"
9925then :
9926  xorg_cv_cc_flag_unknown_warning_option=yes
9927else $as_nop
9928  xorg_cv_cc_flag_unknown_warning_option=no
9929fi
9930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9931fi
9932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9933printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9934	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9935	CFLAGS="$xorg_testset_save_CFLAGS"
9936fi
9937
9938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9939	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9940		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9941	fi
9942	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9944printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9945if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9946then :
9947  printf %s "(cached) " >&6
9948else $as_nop
9949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h.  */
9951int i;
9952_ACEOF
9953if ac_fn_c_try_compile "$LINENO"
9954then :
9955  xorg_cv_cc_flag_unused_command_line_argument=yes
9956else $as_nop
9957  xorg_cv_cc_flag_unused_command_line_argument=no
9958fi
9959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9960fi
9961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9962printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9964	CFLAGS="$xorg_testset_save_CFLAGS"
9965fi
9966
9967found="no"
9968
9969	if test $found = "no" ; then
9970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9972		fi
9973
9974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9976		fi
9977
9978		CFLAGS="$CFLAGS -Wreturn-type"
9979
9980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9981printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9982		cacheid=xorg_cv_cc_flag__Wreturn_type
9983		if eval test \${$cacheid+y}
9984then :
9985  printf %s "(cached) " >&6
9986else $as_nop
9987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988/* end confdefs.h.  */
9989int i;
9990int
9991main (void)
9992{
9993
9994  ;
9995  return 0;
9996}
9997_ACEOF
9998if ac_fn_c_try_link "$LINENO"
9999then :
10000  eval $cacheid=yes
10001else $as_nop
10002  eval $cacheid=no
10003fi
10004rm -f core conftest.err conftest.$ac_objext conftest.beam \
10005    conftest$ac_exeext conftest.$ac_ext
10006fi
10007
10008
10009		CFLAGS="$xorg_testset_save_CFLAGS"
10010
10011		eval supported=\$$cacheid
10012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10013printf "%s\n" "$supported" >&6; }
10014		if test "$supported" = "yes" ; then
10015			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10016			found="yes"
10017		fi
10018	fi
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034xorg_testset_save_CFLAGS="$CFLAGS"
10035
10036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10038	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10039printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10040if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10041then :
10042  printf %s "(cached) " >&6
10043else $as_nop
10044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045/* end confdefs.h.  */
10046int i;
10047_ACEOF
10048if ac_fn_c_try_compile "$LINENO"
10049then :
10050  xorg_cv_cc_flag_unknown_warning_option=yes
10051else $as_nop
10052  xorg_cv_cc_flag_unknown_warning_option=no
10053fi
10054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10055fi
10056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10057printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10058	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10059	CFLAGS="$xorg_testset_save_CFLAGS"
10060fi
10061
10062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10063	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10064		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10065	fi
10066	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10068printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10069if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10070then :
10071  printf %s "(cached) " >&6
10072else $as_nop
10073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074/* end confdefs.h.  */
10075int i;
10076_ACEOF
10077if ac_fn_c_try_compile "$LINENO"
10078then :
10079  xorg_cv_cc_flag_unused_command_line_argument=yes
10080else $as_nop
10081  xorg_cv_cc_flag_unused_command_line_argument=no
10082fi
10083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10084fi
10085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10086printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10087	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10088	CFLAGS="$xorg_testset_save_CFLAGS"
10089fi
10090
10091found="no"
10092
10093	if test $found = "no" ; then
10094		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10095			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10096		fi
10097
10098		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10099			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10100		fi
10101
10102		CFLAGS="$CFLAGS -Wtrigraphs"
10103
10104		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10105printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10106		cacheid=xorg_cv_cc_flag__Wtrigraphs
10107		if eval test \${$cacheid+y}
10108then :
10109  printf %s "(cached) " >&6
10110else $as_nop
10111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112/* end confdefs.h.  */
10113int i;
10114int
10115main (void)
10116{
10117
10118  ;
10119  return 0;
10120}
10121_ACEOF
10122if ac_fn_c_try_link "$LINENO"
10123then :
10124  eval $cacheid=yes
10125else $as_nop
10126  eval $cacheid=no
10127fi
10128rm -f core conftest.err conftest.$ac_objext conftest.beam \
10129    conftest$ac_exeext conftest.$ac_ext
10130fi
10131
10132
10133		CFLAGS="$xorg_testset_save_CFLAGS"
10134
10135		eval supported=\$$cacheid
10136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10137printf "%s\n" "$supported" >&6; }
10138		if test "$supported" = "yes" ; then
10139			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10140			found="yes"
10141		fi
10142	fi
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158xorg_testset_save_CFLAGS="$CFLAGS"
10159
10160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10161	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10162	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10163printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10164if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10165then :
10166  printf %s "(cached) " >&6
10167else $as_nop
10168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169/* end confdefs.h.  */
10170int i;
10171_ACEOF
10172if ac_fn_c_try_compile "$LINENO"
10173then :
10174  xorg_cv_cc_flag_unknown_warning_option=yes
10175else $as_nop
10176  xorg_cv_cc_flag_unknown_warning_option=no
10177fi
10178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10179fi
10180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10181printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10182	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10183	CFLAGS="$xorg_testset_save_CFLAGS"
10184fi
10185
10186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10187	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10188		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10189	fi
10190	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10192printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10193if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10194then :
10195  printf %s "(cached) " >&6
10196else $as_nop
10197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h.  */
10199int i;
10200_ACEOF
10201if ac_fn_c_try_compile "$LINENO"
10202then :
10203  xorg_cv_cc_flag_unused_command_line_argument=yes
10204else $as_nop
10205  xorg_cv_cc_flag_unused_command_line_argument=no
10206fi
10207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10208fi
10209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10210printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10211	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10212	CFLAGS="$xorg_testset_save_CFLAGS"
10213fi
10214
10215found="no"
10216
10217	if test $found = "no" ; then
10218		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10220		fi
10221
10222		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10224		fi
10225
10226		CFLAGS="$CFLAGS -Warray-bounds"
10227
10228		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10229printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10230		cacheid=xorg_cv_cc_flag__Warray_bounds
10231		if eval test \${$cacheid+y}
10232then :
10233  printf %s "(cached) " >&6
10234else $as_nop
10235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236/* end confdefs.h.  */
10237int i;
10238int
10239main (void)
10240{
10241
10242  ;
10243  return 0;
10244}
10245_ACEOF
10246if ac_fn_c_try_link "$LINENO"
10247then :
10248  eval $cacheid=yes
10249else $as_nop
10250  eval $cacheid=no
10251fi
10252rm -f core conftest.err conftest.$ac_objext conftest.beam \
10253    conftest$ac_exeext conftest.$ac_ext
10254fi
10255
10256
10257		CFLAGS="$xorg_testset_save_CFLAGS"
10258
10259		eval supported=\$$cacheid
10260		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10261printf "%s\n" "$supported" >&6; }
10262		if test "$supported" = "yes" ; then
10263			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10264			found="yes"
10265		fi
10266	fi
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282xorg_testset_save_CFLAGS="$CFLAGS"
10283
10284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10286	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10287printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10288if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10289then :
10290  printf %s "(cached) " >&6
10291else $as_nop
10292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293/* end confdefs.h.  */
10294int i;
10295_ACEOF
10296if ac_fn_c_try_compile "$LINENO"
10297then :
10298  xorg_cv_cc_flag_unknown_warning_option=yes
10299else $as_nop
10300  xorg_cv_cc_flag_unknown_warning_option=no
10301fi
10302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10303fi
10304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10305printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10306	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10307	CFLAGS="$xorg_testset_save_CFLAGS"
10308fi
10309
10310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10311	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10312		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10313	fi
10314	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10316printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10317if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10318then :
10319  printf %s "(cached) " >&6
10320else $as_nop
10321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h.  */
10323int i;
10324_ACEOF
10325if ac_fn_c_try_compile "$LINENO"
10326then :
10327  xorg_cv_cc_flag_unused_command_line_argument=yes
10328else $as_nop
10329  xorg_cv_cc_flag_unused_command_line_argument=no
10330fi
10331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10332fi
10333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10334printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10335	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10336	CFLAGS="$xorg_testset_save_CFLAGS"
10337fi
10338
10339found="no"
10340
10341	if test $found = "no" ; then
10342		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10343			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10344		fi
10345
10346		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10347			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10348		fi
10349
10350		CFLAGS="$CFLAGS -Wwrite-strings"
10351
10352		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10353printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10354		cacheid=xorg_cv_cc_flag__Wwrite_strings
10355		if eval test \${$cacheid+y}
10356then :
10357  printf %s "(cached) " >&6
10358else $as_nop
10359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360/* end confdefs.h.  */
10361int i;
10362int
10363main (void)
10364{
10365
10366  ;
10367  return 0;
10368}
10369_ACEOF
10370if ac_fn_c_try_link "$LINENO"
10371then :
10372  eval $cacheid=yes
10373else $as_nop
10374  eval $cacheid=no
10375fi
10376rm -f core conftest.err conftest.$ac_objext conftest.beam \
10377    conftest$ac_exeext conftest.$ac_ext
10378fi
10379
10380
10381		CFLAGS="$xorg_testset_save_CFLAGS"
10382
10383		eval supported=\$$cacheid
10384		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10385printf "%s\n" "$supported" >&6; }
10386		if test "$supported" = "yes" ; then
10387			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10388			found="yes"
10389		fi
10390	fi
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406xorg_testset_save_CFLAGS="$CFLAGS"
10407
10408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10409	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10411printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10412if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10413then :
10414  printf %s "(cached) " >&6
10415else $as_nop
10416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417/* end confdefs.h.  */
10418int i;
10419_ACEOF
10420if ac_fn_c_try_compile "$LINENO"
10421then :
10422  xorg_cv_cc_flag_unknown_warning_option=yes
10423else $as_nop
10424  xorg_cv_cc_flag_unknown_warning_option=no
10425fi
10426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10427fi
10428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10429printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10430	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10431	CFLAGS="$xorg_testset_save_CFLAGS"
10432fi
10433
10434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10435	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10436		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10437	fi
10438	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10440printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10441if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10442then :
10443  printf %s "(cached) " >&6
10444else $as_nop
10445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h.  */
10447int i;
10448_ACEOF
10449if ac_fn_c_try_compile "$LINENO"
10450then :
10451  xorg_cv_cc_flag_unused_command_line_argument=yes
10452else $as_nop
10453  xorg_cv_cc_flag_unused_command_line_argument=no
10454fi
10455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10456fi
10457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10458printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10460	CFLAGS="$xorg_testset_save_CFLAGS"
10461fi
10462
10463found="no"
10464
10465	if test $found = "no" ; then
10466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468		fi
10469
10470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472		fi
10473
10474		CFLAGS="$CFLAGS -Waddress"
10475
10476		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10477printf %s "checking if $CC supports -Waddress... " >&6; }
10478		cacheid=xorg_cv_cc_flag__Waddress
10479		if eval test \${$cacheid+y}
10480then :
10481  printf %s "(cached) " >&6
10482else $as_nop
10483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484/* end confdefs.h.  */
10485int i;
10486int
10487main (void)
10488{
10489
10490  ;
10491  return 0;
10492}
10493_ACEOF
10494if ac_fn_c_try_link "$LINENO"
10495then :
10496  eval $cacheid=yes
10497else $as_nop
10498  eval $cacheid=no
10499fi
10500rm -f core conftest.err conftest.$ac_objext conftest.beam \
10501    conftest$ac_exeext conftest.$ac_ext
10502fi
10503
10504
10505		CFLAGS="$xorg_testset_save_CFLAGS"
10506
10507		eval supported=\$$cacheid
10508		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10509printf "%s\n" "$supported" >&6; }
10510		if test "$supported" = "yes" ; then
10511			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10512			found="yes"
10513		fi
10514	fi
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530xorg_testset_save_CFLAGS="$CFLAGS"
10531
10532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10535printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10536if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10537then :
10538  printf %s "(cached) " >&6
10539else $as_nop
10540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541/* end confdefs.h.  */
10542int i;
10543_ACEOF
10544if ac_fn_c_try_compile "$LINENO"
10545then :
10546  xorg_cv_cc_flag_unknown_warning_option=yes
10547else $as_nop
10548  xorg_cv_cc_flag_unknown_warning_option=no
10549fi
10550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10551fi
10552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10553printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10554	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10555	CFLAGS="$xorg_testset_save_CFLAGS"
10556fi
10557
10558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10559	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10560		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10561	fi
10562	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10564printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10565if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10566then :
10567  printf %s "(cached) " >&6
10568else $as_nop
10569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570/* end confdefs.h.  */
10571int i;
10572_ACEOF
10573if ac_fn_c_try_compile "$LINENO"
10574then :
10575  xorg_cv_cc_flag_unused_command_line_argument=yes
10576else $as_nop
10577  xorg_cv_cc_flag_unused_command_line_argument=no
10578fi
10579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10580fi
10581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10582printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10584	CFLAGS="$xorg_testset_save_CFLAGS"
10585fi
10586
10587found="no"
10588
10589	if test $found = "no" ; then
10590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592		fi
10593
10594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10596		fi
10597
10598		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10599
10600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10601printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10602		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10603		if eval test \${$cacheid+y}
10604then :
10605  printf %s "(cached) " >&6
10606else $as_nop
10607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608/* end confdefs.h.  */
10609int i;
10610int
10611main (void)
10612{
10613
10614  ;
10615  return 0;
10616}
10617_ACEOF
10618if ac_fn_c_try_link "$LINENO"
10619then :
10620  eval $cacheid=yes
10621else $as_nop
10622  eval $cacheid=no
10623fi
10624rm -f core conftest.err conftest.$ac_objext conftest.beam \
10625    conftest$ac_exeext conftest.$ac_ext
10626fi
10627
10628
10629		CFLAGS="$xorg_testset_save_CFLAGS"
10630
10631		eval supported=\$$cacheid
10632		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10633printf "%s\n" "$supported" >&6; }
10634		if test "$supported" = "yes" ; then
10635			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10636			found="yes"
10637		fi
10638	fi
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654xorg_testset_save_CFLAGS="$CFLAGS"
10655
10656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10658	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10659printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10660if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10661then :
10662  printf %s "(cached) " >&6
10663else $as_nop
10664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665/* end confdefs.h.  */
10666int i;
10667_ACEOF
10668if ac_fn_c_try_compile "$LINENO"
10669then :
10670  xorg_cv_cc_flag_unknown_warning_option=yes
10671else $as_nop
10672  xorg_cv_cc_flag_unknown_warning_option=no
10673fi
10674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10675fi
10676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10677printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10678	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10679	CFLAGS="$xorg_testset_save_CFLAGS"
10680fi
10681
10682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10683	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10684		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10685	fi
10686	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10687	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10688printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10689if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10690then :
10691  printf %s "(cached) " >&6
10692else $as_nop
10693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694/* end confdefs.h.  */
10695int i;
10696_ACEOF
10697if ac_fn_c_try_compile "$LINENO"
10698then :
10699  xorg_cv_cc_flag_unused_command_line_argument=yes
10700else $as_nop
10701  xorg_cv_cc_flag_unused_command_line_argument=no
10702fi
10703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10704fi
10705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10706printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10707	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10708	CFLAGS="$xorg_testset_save_CFLAGS"
10709fi
10710
10711found="no"
10712
10713	if test $found = "no" ; then
10714		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10715			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10716		fi
10717
10718		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10719			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10720		fi
10721
10722		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10723
10724		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10725printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10726		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10727		if eval test \${$cacheid+y}
10728then :
10729  printf %s "(cached) " >&6
10730else $as_nop
10731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732/* end confdefs.h.  */
10733int i;
10734int
10735main (void)
10736{
10737
10738  ;
10739  return 0;
10740}
10741_ACEOF
10742if ac_fn_c_try_link "$LINENO"
10743then :
10744  eval $cacheid=yes
10745else $as_nop
10746  eval $cacheid=no
10747fi
10748rm -f core conftest.err conftest.$ac_objext conftest.beam \
10749    conftest$ac_exeext conftest.$ac_ext
10750fi
10751
10752
10753		CFLAGS="$xorg_testset_save_CFLAGS"
10754
10755		eval supported=\$$cacheid
10756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10757printf "%s\n" "$supported" >&6; }
10758		if test "$supported" = "yes" ; then
10759			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10760			found="yes"
10761		fi
10762	fi
10763
10764
10765fi
10766
10767
10768
10769
10770
10771
10772
10773		CWARNFLAGS="$BASE_CFLAGS"
10774		if  test "x$GCC" = xyes ; then
10775		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10776		fi
10777
10778
10779
10780
10781
10782
10783
10784
10785# Check whether --enable-strict-compilation was given.
10786if test ${enable_strict_compilation+y}
10787then :
10788  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10789else $as_nop
10790  STRICT_COMPILE=no
10791fi
10792
10793
10794
10795
10796
10797
10798STRICT_CFLAGS=""
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812xorg_testset_save_CFLAGS="$CFLAGS"
10813
10814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10818if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10819then :
10820  printf %s "(cached) " >&6
10821else $as_nop
10822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823/* end confdefs.h.  */
10824int i;
10825_ACEOF
10826if ac_fn_c_try_compile "$LINENO"
10827then :
10828  xorg_cv_cc_flag_unknown_warning_option=yes
10829else $as_nop
10830  xorg_cv_cc_flag_unknown_warning_option=no
10831fi
10832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10833fi
10834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10837	CFLAGS="$xorg_testset_save_CFLAGS"
10838fi
10839
10840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10843	fi
10844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10847if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10848then :
10849  printf %s "(cached) " >&6
10850else $as_nop
10851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852/* end confdefs.h.  */
10853int i;
10854_ACEOF
10855if ac_fn_c_try_compile "$LINENO"
10856then :
10857  xorg_cv_cc_flag_unused_command_line_argument=yes
10858else $as_nop
10859  xorg_cv_cc_flag_unused_command_line_argument=no
10860fi
10861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10862fi
10863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10866	CFLAGS="$xorg_testset_save_CFLAGS"
10867fi
10868
10869found="no"
10870
10871	if test $found = "no" ; then
10872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10874		fi
10875
10876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10878		fi
10879
10880		CFLAGS="$CFLAGS -pedantic"
10881
10882		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10883printf %s "checking if $CC supports -pedantic... " >&6; }
10884		cacheid=xorg_cv_cc_flag__pedantic
10885		if eval test \${$cacheid+y}
10886then :
10887  printf %s "(cached) " >&6
10888else $as_nop
10889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890/* end confdefs.h.  */
10891int i;
10892int
10893main (void)
10894{
10895
10896  ;
10897  return 0;
10898}
10899_ACEOF
10900if ac_fn_c_try_link "$LINENO"
10901then :
10902  eval $cacheid=yes
10903else $as_nop
10904  eval $cacheid=no
10905fi
10906rm -f core conftest.err conftest.$ac_objext conftest.beam \
10907    conftest$ac_exeext conftest.$ac_ext
10908fi
10909
10910
10911		CFLAGS="$xorg_testset_save_CFLAGS"
10912
10913		eval supported=\$$cacheid
10914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10915printf "%s\n" "$supported" >&6; }
10916		if test "$supported" = "yes" ; then
10917			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10918			found="yes"
10919		fi
10920	fi
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936xorg_testset_save_CFLAGS="$CFLAGS"
10937
10938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10942if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10943then :
10944  printf %s "(cached) " >&6
10945else $as_nop
10946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947/* end confdefs.h.  */
10948int i;
10949_ACEOF
10950if ac_fn_c_try_compile "$LINENO"
10951then :
10952  xorg_cv_cc_flag_unknown_warning_option=yes
10953else $as_nop
10954  xorg_cv_cc_flag_unknown_warning_option=no
10955fi
10956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10957fi
10958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10959printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10960	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10961	CFLAGS="$xorg_testset_save_CFLAGS"
10962fi
10963
10964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10965	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10966		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10967	fi
10968	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10970printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10971if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10972then :
10973  printf %s "(cached) " >&6
10974else $as_nop
10975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976/* end confdefs.h.  */
10977int i;
10978_ACEOF
10979if ac_fn_c_try_compile "$LINENO"
10980then :
10981  xorg_cv_cc_flag_unused_command_line_argument=yes
10982else $as_nop
10983  xorg_cv_cc_flag_unused_command_line_argument=no
10984fi
10985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10986fi
10987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10988printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10990	CFLAGS="$xorg_testset_save_CFLAGS"
10991fi
10992
10993found="no"
10994
10995	if test $found = "no" ; then
10996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10998		fi
10999
11000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11002		fi
11003
11004		CFLAGS="$CFLAGS -Werror"
11005
11006		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11007printf %s "checking if $CC supports -Werror... " >&6; }
11008		cacheid=xorg_cv_cc_flag__Werror
11009		if eval test \${$cacheid+y}
11010then :
11011  printf %s "(cached) " >&6
11012else $as_nop
11013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014/* end confdefs.h.  */
11015int i;
11016int
11017main (void)
11018{
11019
11020  ;
11021  return 0;
11022}
11023_ACEOF
11024if ac_fn_c_try_link "$LINENO"
11025then :
11026  eval $cacheid=yes
11027else $as_nop
11028  eval $cacheid=no
11029fi
11030rm -f core conftest.err conftest.$ac_objext conftest.beam \
11031    conftest$ac_exeext conftest.$ac_ext
11032fi
11033
11034
11035		CFLAGS="$xorg_testset_save_CFLAGS"
11036
11037		eval supported=\$$cacheid
11038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11039printf "%s\n" "$supported" >&6; }
11040		if test "$supported" = "yes" ; then
11041			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11042			found="yes"
11043		fi
11044	fi
11045
11046	if test $found = "no" ; then
11047		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11049		fi
11050
11051		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11053		fi
11054
11055		CFLAGS="$CFLAGS -errwarn"
11056
11057		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11058printf %s "checking if $CC supports -errwarn... " >&6; }
11059		cacheid=xorg_cv_cc_flag__errwarn
11060		if eval test \${$cacheid+y}
11061then :
11062  printf %s "(cached) " >&6
11063else $as_nop
11064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065/* end confdefs.h.  */
11066int i;
11067int
11068main (void)
11069{
11070
11071  ;
11072  return 0;
11073}
11074_ACEOF
11075if ac_fn_c_try_link "$LINENO"
11076then :
11077  eval $cacheid=yes
11078else $as_nop
11079  eval $cacheid=no
11080fi
11081rm -f core conftest.err conftest.$ac_objext conftest.beam \
11082    conftest$ac_exeext conftest.$ac_ext
11083fi
11084
11085
11086		CFLAGS="$xorg_testset_save_CFLAGS"
11087
11088		eval supported=\$$cacheid
11089		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11090printf "%s\n" "$supported" >&6; }
11091		if test "$supported" = "yes" ; then
11092			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11093			found="yes"
11094		fi
11095	fi
11096
11097
11098
11099# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11100# activate it with -Werror, so we add it here explicitly.
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114xorg_testset_save_CFLAGS="$CFLAGS"
11115
11116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11117	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11118	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11119printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11120if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11121then :
11122  printf %s "(cached) " >&6
11123else $as_nop
11124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125/* end confdefs.h.  */
11126int i;
11127_ACEOF
11128if ac_fn_c_try_compile "$LINENO"
11129then :
11130  xorg_cv_cc_flag_unknown_warning_option=yes
11131else $as_nop
11132  xorg_cv_cc_flag_unknown_warning_option=no
11133fi
11134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11135fi
11136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11137printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11138	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11139	CFLAGS="$xorg_testset_save_CFLAGS"
11140fi
11141
11142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11143	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11144		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11145	fi
11146	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11147	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11148printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11149if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11150then :
11151  printf %s "(cached) " >&6
11152else $as_nop
11153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h.  */
11155int i;
11156_ACEOF
11157if ac_fn_c_try_compile "$LINENO"
11158then :
11159  xorg_cv_cc_flag_unused_command_line_argument=yes
11160else $as_nop
11161  xorg_cv_cc_flag_unused_command_line_argument=no
11162fi
11163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11164fi
11165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11166printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11167	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11168	CFLAGS="$xorg_testset_save_CFLAGS"
11169fi
11170
11171found="no"
11172
11173	if test $found = "no" ; then
11174		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11176		fi
11177
11178		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11180		fi
11181
11182		CFLAGS="$CFLAGS -Werror=attributes"
11183
11184		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11185printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11186		cacheid=xorg_cv_cc_flag__Werror_attributes
11187		if eval test \${$cacheid+y}
11188then :
11189  printf %s "(cached) " >&6
11190else $as_nop
11191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192/* end confdefs.h.  */
11193int i;
11194int
11195main (void)
11196{
11197
11198  ;
11199  return 0;
11200}
11201_ACEOF
11202if ac_fn_c_try_link "$LINENO"
11203then :
11204  eval $cacheid=yes
11205else $as_nop
11206  eval $cacheid=no
11207fi
11208rm -f core conftest.err conftest.$ac_objext conftest.beam \
11209    conftest$ac_exeext conftest.$ac_ext
11210fi
11211
11212
11213		CFLAGS="$xorg_testset_save_CFLAGS"
11214
11215		eval supported=\$$cacheid
11216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11217printf "%s\n" "$supported" >&6; }
11218		if test "$supported" = "yes" ; then
11219			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11220			found="yes"
11221		fi
11222	fi
11223
11224
11225
11226if test "x$STRICT_COMPILE" = "xyes"; then
11227    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11228    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11229fi
11230
11231
11232
11233
11234
11235
11236cat >>confdefs.h <<_ACEOF
11237#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11238_ACEOF
11239
11240	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11241	if test "x$PVM" = "x"; then
11242		PVM="0"
11243	fi
11244
11245printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11246
11247	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11248	if test "x$PVP" = "x"; then
11249		PVP="0"
11250	fi
11251
11252printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11253
11254
11255
11256CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11257mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11258|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11259touch \$(top_srcdir)/ChangeLog; \
11260echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11261
11262
11263
11264
11265macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11266INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11267mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11268|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11269touch \$(top_srcdir)/INSTALL; \
11270echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11271
11272
11273
11274
11275
11276
11277case $host_os in
11278    solaris*)
11279        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11280        # check for a man page file found in later versions that use
11281        # traditional section numbers instead
11282        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11283printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11284if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11285then :
11286  printf %s "(cached) " >&6
11287else $as_nop
11288  test "$cross_compiling" = yes &&
11289  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11290if test -r "/usr/share/man/man7/attributes.7"; then
11291  ac_cv_file__usr_share_man_man7_attributes_7=yes
11292else
11293  ac_cv_file__usr_share_man_man7_attributes_7=no
11294fi
11295fi
11296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11297printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11298if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11299then :
11300  SYSV_MAN_SECTIONS=false
11301else $as_nop
11302  SYSV_MAN_SECTIONS=true
11303fi
11304
11305        ;;
11306    *) SYSV_MAN_SECTIONS=false ;;
11307esac
11308
11309if test x$APP_MAN_SUFFIX = x    ; then
11310    APP_MAN_SUFFIX=1
11311fi
11312if test x$APP_MAN_DIR = x    ; then
11313    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11314fi
11315
11316if test x$LIB_MAN_SUFFIX = x    ; then
11317    LIB_MAN_SUFFIX=3
11318fi
11319if test x$LIB_MAN_DIR = x    ; then
11320    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11321fi
11322
11323if test x$FILE_MAN_SUFFIX = x    ; then
11324    case $SYSV_MAN_SECTIONS in
11325	true)				FILE_MAN_SUFFIX=4  ;;
11326	*)				FILE_MAN_SUFFIX=5  ;;
11327    esac
11328fi
11329if test x$FILE_MAN_DIR = x    ; then
11330    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11331fi
11332
11333if test x$MISC_MAN_SUFFIX = x    ; then
11334    case $SYSV_MAN_SECTIONS in
11335	true)				MISC_MAN_SUFFIX=5  ;;
11336	*)				MISC_MAN_SUFFIX=7  ;;
11337    esac
11338fi
11339if test x$MISC_MAN_DIR = x    ; then
11340    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11341fi
11342
11343if test x$DRIVER_MAN_SUFFIX = x    ; then
11344    case $SYSV_MAN_SECTIONS in
11345	true)				DRIVER_MAN_SUFFIX=7  ;;
11346	*)				DRIVER_MAN_SUFFIX=4  ;;
11347    esac
11348fi
11349if test x$DRIVER_MAN_DIR = x    ; then
11350    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11351fi
11352
11353if test x$ADMIN_MAN_SUFFIX = x    ; then
11354    case $SYSV_MAN_SECTIONS in
11355	true)				ADMIN_MAN_SUFFIX=1m ;;
11356	*)				ADMIN_MAN_SUFFIX=8  ;;
11357    esac
11358fi
11359if test x$ADMIN_MAN_DIR = x    ; then
11360    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11361fi
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377XORG_MAN_PAGE="X Version 11"
11378
11379MAN_SUBSTS="\
11380	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11381	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11382	-e 's|__xservername__|Xorg|g' \
11383	-e 's|__xconfigfile__|xorg.conf|g' \
11384	-e 's|__projectroot__|\$(prefix)|g' \
11385	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11386	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11387	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11388	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11389	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11390	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11391	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11392
11393
11394
11395# Check whether --enable-silent-rules was given.
11396if test ${enable_silent_rules+y}
11397then :
11398  enableval=$enable_silent_rules;
11399fi
11400
11401case $enable_silent_rules in # (((
11402  yes) AM_DEFAULT_VERBOSITY=0;;
11403   no) AM_DEFAULT_VERBOSITY=1;;
11404    *) AM_DEFAULT_VERBOSITY=0;;
11405esac
11406am_make=${MAKE-make}
11407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11408printf %s "checking whether $am_make supports nested variables... " >&6; }
11409if test ${am_cv_make_support_nested_variables+y}
11410then :
11411  printf %s "(cached) " >&6
11412else $as_nop
11413  if printf "%s\n" 'TRUE=$(BAR$(V))
11414BAR0=false
11415BAR1=true
11416V=1
11417am__doit:
11418	@$(TRUE)
11419.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11420  am_cv_make_support_nested_variables=yes
11421else
11422  am_cv_make_support_nested_variables=no
11423fi
11424fi
11425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11426printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11427if test $am_cv_make_support_nested_variables = yes; then
11428    AM_V='$(V)'
11429  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11430else
11431  AM_V=$AM_DEFAULT_VERBOSITY
11432  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11433fi
11434AM_BACKSLASH='\'
11435
11436
11437
11438ac_fn_c_check_header_compile "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
11439if test "x$ac_cv_header_net_errno_h" = xyes
11440then :
11441  printf "%s\n" "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
11442
11443fi
11444
11445
11446ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
11447if test "x$ac_cv_func_reallocarray" = xyes
11448then :
11449  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
11450
11451fi
11452ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11453if test "x$ac_cv_func_strlcpy" = xyes
11454then :
11455  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
11456
11457fi
11458
11459
11460# Checks for pkg-config packages
11461
11462pkg_failed=no
11463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
11464printf %s "checking for XAUTH... " >&6; }
11465
11466if test -n "$XAUTH_CFLAGS"; then
11467    pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
11468 elif test -n "$PKG_CONFIG"; then
11469    if test -n "$PKG_CONFIG" && \
11470    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
11471  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
11472  ac_status=$?
11473  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474  test $ac_status = 0; }; then
11475  pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
11476		      test "x$?" != "x0" && pkg_failed=yes
11477else
11478  pkg_failed=yes
11479fi
11480 else
11481    pkg_failed=untried
11482fi
11483if test -n "$XAUTH_LIBS"; then
11484    pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
11485 elif test -n "$PKG_CONFIG"; then
11486    if test -n "$PKG_CONFIG" && \
11487    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
11488  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
11489  ac_status=$?
11490  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11491  test $ac_status = 0; }; then
11492  pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
11493		      test "x$?" != "x0" && pkg_failed=yes
11494else
11495  pkg_failed=yes
11496fi
11497 else
11498    pkg_failed=untried
11499fi
11500
11501
11502
11503if test $pkg_failed = yes; then
11504   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505printf "%s\n" "no" >&6; }
11506
11507if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11508        _pkg_short_errors_supported=yes
11509else
11510        _pkg_short_errors_supported=no
11511fi
11512        if test $_pkg_short_errors_supported = yes; then
11513	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
11514        else
11515	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
11516        fi
11517	# Put the nasty error message in config.log where it belongs
11518	echo "$XAUTH_PKG_ERRORS" >&5
11519
11520	as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
11521
11522$XAUTH_PKG_ERRORS
11523
11524Consider adjusting the PKG_CONFIG_PATH environment variable if you
11525installed software in a non-standard prefix.
11526
11527Alternatively, you may set the environment variables XAUTH_CFLAGS
11528and XAUTH_LIBS to avoid the need to call pkg-config.
11529See the pkg-config man page for more details." "$LINENO" 5
11530elif test $pkg_failed = untried; then
11531     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532printf "%s\n" "no" >&6; }
11533	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11534printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11535as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11536is in your PATH or set the PKG_CONFIG environment variable to the full
11537path to pkg-config.
11538
11539Alternatively, you may set the environment variables XAUTH_CFLAGS
11540and XAUTH_LIBS to avoid the need to call pkg-config.
11541See the pkg-config man page for more details.
11542
11543To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11544See \`config.log' for more details" "$LINENO" 5; }
11545else
11546	XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
11547	XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
11548        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11549printf "%s\n" "yes" >&6; }
11550
11551fi
11552
11553# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
11554# was not expanded, since xauth with no address support is rather broken.
11555#
11556# If you're seeing an error here, be sure you installed the lib/xtrans module
11557# first and if it's not in the default location, that you set the ACLOCAL
11558# environment variable to find it, such as:
11559#       ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
11560
11561
11562# Transport selection macro from xtrans.m4
11563# Needed to set *CONN defines for gethost.c & parsedpy.c
11564
11565
11566 case $host_os in
11567	mingw*)	unixdef="no"   ;;
11568	*)	unixdef="yes"  ;;
11569 esac
11570 # Check whether --enable-unix-transport was given.
11571if test ${enable_unix_transport+y}
11572then :
11573  enableval=$enable_unix_transport; UNIXCONN=$enableval
11574else $as_nop
11575  UNIXCONN=$unixdef
11576fi
11577
11578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11579printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
11580 if test "$UNIXCONN" = "yes"; then
11581
11582printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
11583
11584 fi
11585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11586printf "%s\n" "$UNIXCONN" >&6; }
11587 # Check whether --enable-tcp-transport was given.
11588if test ${enable_tcp_transport+y}
11589then :
11590  enableval=$enable_tcp_transport; TCPCONN=$enableval
11591else $as_nop
11592  TCPCONN=yes
11593fi
11594
11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11596printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
11597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11598printf "%s\n" "$TCPCONN" >&6; }
11599 if test "$TCPCONN" = "yes"; then
11600
11601printf "%s\n" "#define TCPCONN 1" >>confdefs.h
11602
11603
11604 # SVR4 hides these in libraries other than libc
11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11606printf %s "checking for library containing socket... " >&6; }
11607if test ${ac_cv_search_socket+y}
11608then :
11609  printf %s "(cached) " >&6
11610else $as_nop
11611  ac_func_search_save_LIBS=$LIBS
11612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613/* end confdefs.h.  */
11614
11615/* Override any GCC internal prototype to avoid an error.
11616   Use char because int might match the return type of a GCC
11617   builtin and then its argument prototype would still apply.  */
11618char socket ();
11619int
11620main (void)
11621{
11622return socket ();
11623  ;
11624  return 0;
11625}
11626_ACEOF
11627for ac_lib in '' socket
11628do
11629  if test -z "$ac_lib"; then
11630    ac_res="none required"
11631  else
11632    ac_res=-l$ac_lib
11633    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11634  fi
11635  if ac_fn_c_try_link "$LINENO"
11636then :
11637  ac_cv_search_socket=$ac_res
11638fi
11639rm -f core conftest.err conftest.$ac_objext conftest.beam \
11640    conftest$ac_exeext
11641  if test ${ac_cv_search_socket+y}
11642then :
11643  break
11644fi
11645done
11646if test ${ac_cv_search_socket+y}
11647then :
11648
11649else $as_nop
11650  ac_cv_search_socket=no
11651fi
11652rm conftest.$ac_ext
11653LIBS=$ac_func_search_save_LIBS
11654fi
11655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11656printf "%s\n" "$ac_cv_search_socket" >&6; }
11657ac_res=$ac_cv_search_socket
11658if test "$ac_res" != no
11659then :
11660  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11661
11662fi
11663
11664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11665printf %s "checking for library containing gethostbyname... " >&6; }
11666if test ${ac_cv_search_gethostbyname+y}
11667then :
11668  printf %s "(cached) " >&6
11669else $as_nop
11670  ac_func_search_save_LIBS=$LIBS
11671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672/* end confdefs.h.  */
11673
11674/* Override any GCC internal prototype to avoid an error.
11675   Use char because int might match the return type of a GCC
11676   builtin and then its argument prototype would still apply.  */
11677char gethostbyname ();
11678int
11679main (void)
11680{
11681return gethostbyname ();
11682  ;
11683  return 0;
11684}
11685_ACEOF
11686for ac_lib in '' nsl
11687do
11688  if test -z "$ac_lib"; then
11689    ac_res="none required"
11690  else
11691    ac_res=-l$ac_lib
11692    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11693  fi
11694  if ac_fn_c_try_link "$LINENO"
11695then :
11696  ac_cv_search_gethostbyname=$ac_res
11697fi
11698rm -f core conftest.err conftest.$ac_objext conftest.beam \
11699    conftest$ac_exeext
11700  if test ${ac_cv_search_gethostbyname+y}
11701then :
11702  break
11703fi
11704done
11705if test ${ac_cv_search_gethostbyname+y}
11706then :
11707
11708else $as_nop
11709  ac_cv_search_gethostbyname=no
11710fi
11711rm conftest.$ac_ext
11712LIBS=$ac_func_search_save_LIBS
11713fi
11714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
11715printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
11716ac_res=$ac_cv_search_gethostbyname
11717if test "$ac_res" != no
11718then :
11719  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11720
11721fi
11722
11723 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
11724   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11725printf %s "checking for main in -lws2_32... " >&6; }
11726if test ${ac_cv_lib_ws2_32_main+y}
11727then :
11728  printf %s "(cached) " >&6
11729else $as_nop
11730  ac_check_lib_save_LIBS=$LIBS
11731LIBS="-lws2_32  $LIBS"
11732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733/* end confdefs.h.  */
11734
11735
11736int
11737main (void)
11738{
11739return main ();
11740  ;
11741  return 0;
11742}
11743_ACEOF
11744if ac_fn_c_try_link "$LINENO"
11745then :
11746  ac_cv_lib_ws2_32_main=yes
11747else $as_nop
11748  ac_cv_lib_ws2_32_main=no
11749fi
11750rm -f core conftest.err conftest.$ac_objext conftest.beam \
11751    conftest$ac_exeext conftest.$ac_ext
11752LIBS=$ac_check_lib_save_LIBS
11753fi
11754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11755printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
11756if test "x$ac_cv_lib_ws2_32_main" = xyes
11757then :
11758  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
11759
11760  LIBS="-lws2_32 $LIBS"
11761
11762fi
11763
11764 fi
11765
11766 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
11767 # Check whether --enable-ipv6 was given.
11768if test ${enable_ipv6+y}
11769then :
11770  enableval=$enable_ipv6; IPV6CONN=$enableval
11771else $as_nop
11772  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11773if test "x$ac_cv_func_getaddrinfo" = xyes
11774then :
11775  IPV6CONN=yes
11776else $as_nop
11777  IPV6CONN=no
11778fi
11779
11780fi
11781
11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11783printf %s "checking if IPv6 support should be built... " >&6; }
11784 if test "$IPV6CONN" = "yes"; then
11785
11786printf "%s\n" "#define IPv6 1" >>confdefs.h
11787
11788 fi
11789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11790printf "%s\n" "$IPV6CONN" >&6; }
11791
11792 # 4.3BSD-Reno added a new member to struct sockaddr_in
11793 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11794#include <sys/types.h>
11795#include <sys/socket.h>
11796#include <netinet/in.h>
11797
11798"
11799if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
11800then :
11801
11802printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
11803
11804fi
11805
11806
11807 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11808 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11809$ac_includes_default
11810#include <sys/socket.h>
11811"
11812if test "x$ac_cv_type_socklen_t" = xyes
11813then :
11814
11815printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11816
11817
11818fi
11819
11820
11821 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
11822 # _XOPEN_SOURCE to get it (such as on Solaris)
11823 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11824$ac_includes_default
11825#include <sys/socket.h>
11826
11827"
11828if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
11829then :
11830
11831fi
11832
11833 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
11834 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11835     unset ac_cv_member_struct_msghdr_msg_control
11836     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
11837printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
11838     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11839#define _XOPEN_SOURCE 600
11840$ac_includes_default
11841#include <sys/socket.h>
11842
11843"
11844if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
11845then :
11846
11847printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
11848
11849
11850fi
11851
11852 fi
11853 # If that didn't work, fall back to XPG5/UNIX98 with C89
11854 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11855     unset ac_cv_member_struct_msghdr_msg_control
11856     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
11857printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
11858     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11859#define _XOPEN_SOURCE 500
11860$ac_includes_default
11861#include <sys/socket.h>
11862
11863"
11864if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
11865then :
11866
11867printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
11868
11869
11870fi
11871
11872 fi
11873
11874
11875
11876 fi
11877 case $host_os in
11878	solaris*|sco*|sysv4*)	localdef="yes" ;;
11879	*)			localdef="no"  ;;
11880 esac
11881 # Check whether --enable-local-transport was given.
11882if test ${enable_local_transport+y}
11883then :
11884  enableval=$enable_local_transport; LOCALCONN=$enableval
11885else $as_nop
11886  LOCALCONN=$localdef
11887fi
11888
11889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11890printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
11891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11892printf "%s\n" "$LOCALCONN" >&6; }
11893 if test "$LOCALCONN" = "yes"; then
11894
11895printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
11896
11897 fi
11898
11899 # Other functions Xtrans may need
11900 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11901if test "x$ac_cv_func_strcasecmp" = xyes
11902then :
11903  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
11904
11905fi
11906ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11907if test "x$ac_cv_func_strlcpy" = xyes
11908then :
11909  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
11910
11911fi
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921# Check whether --with-lint was given.
11922if test ${with_lint+y}
11923then :
11924  withval=$with_lint; use_lint=$withval
11925else $as_nop
11926  use_lint=no
11927fi
11928
11929
11930# Obtain platform specific info like program name and options
11931# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11932case $host_os in
11933  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11934	lint_name=splint
11935	lint_options="-badflag"
11936	;;
11937  *freebsd* | *netbsd*)
11938	lint_name=lint
11939	lint_options="-u -b"
11940	;;
11941  *solaris*)
11942	lint_name=lint
11943	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11944	;;
11945esac
11946
11947# Test for the presence of the program (either guessed by the code or spelled out by the user)
11948if test "x$use_lint" = x"yes" ; then
11949   # Extract the first word of "$lint_name", so it can be a program name with args.
11950set dummy $lint_name; ac_word=$2
11951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952printf %s "checking for $ac_word... " >&6; }
11953if test ${ac_cv_path_LINT+y}
11954then :
11955  printf %s "(cached) " >&6
11956else $as_nop
11957  case $LINT in
11958  [\\/]* | ?:[\\/]*)
11959  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11960  ;;
11961  *)
11962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963for as_dir in $PATH
11964do
11965  IFS=$as_save_IFS
11966  case $as_dir in #(((
11967    '') as_dir=./ ;;
11968    */) ;;
11969    *) as_dir=$as_dir/ ;;
11970  esac
11971    for ac_exec_ext in '' $ac_executable_extensions; do
11972  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11973    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
11974    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11975    break 2
11976  fi
11977done
11978  done
11979IFS=$as_save_IFS
11980
11981  ;;
11982esac
11983fi
11984LINT=$ac_cv_path_LINT
11985if test -n "$LINT"; then
11986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11987printf "%s\n" "$LINT" >&6; }
11988else
11989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990printf "%s\n" "no" >&6; }
11991fi
11992
11993
11994   if test "x$LINT" = "x"; then
11995        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11996   fi
11997elif test "x$use_lint" = x"no" ; then
11998   if test "x$LINT" != "x"; then
11999      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12000printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12001   fi
12002else
12003   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12004fi
12005
12006# User supplied flags override default flags
12007if test "x$LINT_FLAGS" != "x"; then
12008   lint_options=$LINT_FLAGS
12009fi
12010
12011LINT_FLAGS=$lint_options
12012
12013 if test "x$LINT" != x; then
12014  LINT_TRUE=
12015  LINT_FALSE='#'
12016else
12017  LINT_TRUE='#'
12018  LINT_FALSE=
12019fi
12020
12021
12022
12023
12024ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
12025
12026cat >confcache <<\_ACEOF
12027# This file is a shell script that caches the results of configure
12028# tests run on this system so they can be shared between configure
12029# scripts and configure runs, see configure's option --config-cache.
12030# It is not useful on other systems.  If it contains results you don't
12031# want to keep, you may remove or edit it.
12032#
12033# config.status only pays attention to the cache file if you give it
12034# the --recheck option to rerun configure.
12035#
12036# `ac_cv_env_foo' variables (set or unset) will be overridden when
12037# loading this file, other *unset* `ac_cv_foo' will be assigned the
12038# following values.
12039
12040_ACEOF
12041
12042# The following way of writing the cache mishandles newlines in values,
12043# but we know of no workaround that is simple, portable, and efficient.
12044# So, we kill variables containing newlines.
12045# Ultrix sh set writes to stderr and can't be redirected directly,
12046# and sets the high bit in the cache file unless we assign to the vars.
12047(
12048  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12049    eval ac_val=\$$ac_var
12050    case $ac_val in #(
12051    *${as_nl}*)
12052      case $ac_var in #(
12053      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12054printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12055      esac
12056      case $ac_var in #(
12057      _ | IFS | as_nl) ;; #(
12058      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12059      *) { eval $ac_var=; unset $ac_var;} ;;
12060      esac ;;
12061    esac
12062  done
12063
12064  (set) 2>&1 |
12065    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12066    *${as_nl}ac_space=\ *)
12067      # `set' does not quote correctly, so add quotes: double-quote
12068      # substitution turns \\\\ into \\, and sed turns \\ into \.
12069      sed -n \
12070	"s/'/'\\\\''/g;
12071	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12072      ;; #(
12073    *)
12074      # `set' quotes correctly as required by POSIX, so do not add quotes.
12075      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12076      ;;
12077    esac |
12078    sort
12079) |
12080  sed '
12081     /^ac_cv_env_/b end
12082     t clear
12083     :clear
12084     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12085     t end
12086     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12087     :end' >>confcache
12088if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12089  if test -w "$cache_file"; then
12090    if test "x$cache_file" != "x/dev/null"; then
12091      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12092printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12093      if test ! -f "$cache_file" || test -h "$cache_file"; then
12094	cat confcache >"$cache_file"
12095      else
12096        case $cache_file in #(
12097        */* | ?:*)
12098	  mv -f confcache "$cache_file"$$ &&
12099	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12100        *)
12101	  mv -f confcache "$cache_file" ;;
12102	esac
12103      fi
12104    fi
12105  else
12106    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12107printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12108  fi
12109fi
12110rm -f confcache
12111
12112test "x$prefix" = xNONE && prefix=$ac_default_prefix
12113# Let make expand exec_prefix.
12114test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12115
12116DEFS=-DHAVE_CONFIG_H
12117
12118ac_libobjs=
12119ac_ltlibobjs=
12120U=
12121for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12122  # 1. Remove the extension, and $U if already installed.
12123  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12124  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12125  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12126  #    will be set to the directory where LIBOBJS objects are built.
12127  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12128  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12129done
12130LIBOBJS=$ac_libobjs
12131
12132LTLIBOBJS=$ac_ltlibobjs
12133
12134
12135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12136printf %s "checking that generated files are newer than configure... " >&6; }
12137   if test -n "$am_sleep_pid"; then
12138     # Hide warnings about reused PIDs.
12139     wait $am_sleep_pid 2>/dev/null
12140   fi
12141   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12142printf "%s\n" "done" >&6; }
12143 if test -n "$EXEEXT"; then
12144  am__EXEEXT_TRUE=
12145  am__EXEEXT_FALSE='#'
12146else
12147  am__EXEEXT_TRUE='#'
12148  am__EXEEXT_FALSE=
12149fi
12150
12151if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12152  as_fn_error $? "conditional \"AMDEP\" was never defined.
12153Usually this means the macro was only invoked conditionally." "$LINENO" 5
12154fi
12155if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12156  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12157Usually this means the macro was only invoked conditionally." "$LINENO" 5
12158fi
12159if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12160  as_fn_error $? "conditional \"LINT\" was never defined.
12161Usually this means the macro was only invoked conditionally." "$LINENO" 5
12162fi
12163
12164: "${CONFIG_STATUS=./config.status}"
12165ac_write_fail=0
12166ac_clean_files_save=$ac_clean_files
12167ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12169printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12170as_write_fail=0
12171cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12172#! $SHELL
12173# Generated by $as_me.
12174# Run this file to recreate the current configuration.
12175# Compiler output produced by configure, useful for debugging
12176# configure, is in config.log if it exists.
12177
12178debug=false
12179ac_cs_recheck=false
12180ac_cs_silent=false
12181
12182SHELL=\${CONFIG_SHELL-$SHELL}
12183export SHELL
12184_ASEOF
12185cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12186## -------------------- ##
12187## M4sh Initialization. ##
12188## -------------------- ##
12189
12190# Be more Bourne compatible
12191DUALCASE=1; export DUALCASE # for MKS sh
12192as_nop=:
12193if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12194then :
12195  emulate sh
12196  NULLCMD=:
12197  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12198  # is contrary to our usage.  Disable this feature.
12199  alias -g '${1+"$@"}'='"$@"'
12200  setopt NO_GLOB_SUBST
12201else $as_nop
12202  case `(set -o) 2>/dev/null` in #(
12203  *posix*) :
12204    set -o posix ;; #(
12205  *) :
12206     ;;
12207esac
12208fi
12209
12210
12211
12212# Reset variables that may have inherited troublesome values from
12213# the environment.
12214
12215# IFS needs to be set, to space, tab, and newline, in precisely that order.
12216# (If _AS_PATH_WALK were called with IFS unset, it would have the
12217# side effect of setting IFS to empty, thus disabling word splitting.)
12218# Quoting is to prevent editors from complaining about space-tab.
12219as_nl='
12220'
12221export as_nl
12222IFS=" ""	$as_nl"
12223
12224PS1='$ '
12225PS2='> '
12226PS4='+ '
12227
12228# Ensure predictable behavior from utilities with locale-dependent output.
12229LC_ALL=C
12230export LC_ALL
12231LANGUAGE=C
12232export LANGUAGE
12233
12234# We cannot yet rely on "unset" to work, but we need these variables
12235# to be unset--not just set to an empty or harmless value--now, to
12236# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12237# also avoids known problems related to "unset" and subshell syntax
12238# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12239for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12240do eval test \${$as_var+y} \
12241  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12242done
12243
12244# Ensure that fds 0, 1, and 2 are open.
12245if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12246if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12247if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12248
12249# The user is always right.
12250if ${PATH_SEPARATOR+false} :; then
12251  PATH_SEPARATOR=:
12252  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12253    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12254      PATH_SEPARATOR=';'
12255  }
12256fi
12257
12258
12259# Find who we are.  Look in the path if we contain no directory separator.
12260as_myself=
12261case $0 in #((
12262  *[\\/]* ) as_myself=$0 ;;
12263  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264for as_dir in $PATH
12265do
12266  IFS=$as_save_IFS
12267  case $as_dir in #(((
12268    '') as_dir=./ ;;
12269    */) ;;
12270    *) as_dir=$as_dir/ ;;
12271  esac
12272    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12273  done
12274IFS=$as_save_IFS
12275
12276     ;;
12277esac
12278# We did not find ourselves, most probably we were run as `sh COMMAND'
12279# in which case we are not to be found in the path.
12280if test "x$as_myself" = x; then
12281  as_myself=$0
12282fi
12283if test ! -f "$as_myself"; then
12284  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12285  exit 1
12286fi
12287
12288
12289
12290# as_fn_error STATUS ERROR [LINENO LOG_FD]
12291# ----------------------------------------
12292# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12293# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12294# script with STATUS, using 1 if that was 0.
12295as_fn_error ()
12296{
12297  as_status=$1; test $as_status -eq 0 && as_status=1
12298  if test "$4"; then
12299    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12300    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12301  fi
12302  printf "%s\n" "$as_me: error: $2" >&2
12303  as_fn_exit $as_status
12304} # as_fn_error
12305
12306
12307
12308# as_fn_set_status STATUS
12309# -----------------------
12310# Set $? to STATUS, without forking.
12311as_fn_set_status ()
12312{
12313  return $1
12314} # as_fn_set_status
12315
12316# as_fn_exit STATUS
12317# -----------------
12318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12319as_fn_exit ()
12320{
12321  set +e
12322  as_fn_set_status $1
12323  exit $1
12324} # as_fn_exit
12325
12326# as_fn_unset VAR
12327# ---------------
12328# Portably unset VAR.
12329as_fn_unset ()
12330{
12331  { eval $1=; unset $1;}
12332}
12333as_unset=as_fn_unset
12334
12335# as_fn_append VAR VALUE
12336# ----------------------
12337# Append the text in VALUE to the end of the definition contained in VAR. Take
12338# advantage of any shell optimizations that allow amortized linear growth over
12339# repeated appends, instead of the typical quadratic growth present in naive
12340# implementations.
12341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12342then :
12343  eval 'as_fn_append ()
12344  {
12345    eval $1+=\$2
12346  }'
12347else $as_nop
12348  as_fn_append ()
12349  {
12350    eval $1=\$$1\$2
12351  }
12352fi # as_fn_append
12353
12354# as_fn_arith ARG...
12355# ------------------
12356# Perform arithmetic evaluation on the ARGs, and store the result in the
12357# global $as_val. Take advantage of shells that can avoid forks. The arguments
12358# must be portable across $(()) and expr.
12359if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12360then :
12361  eval 'as_fn_arith ()
12362  {
12363    as_val=$(( $* ))
12364  }'
12365else $as_nop
12366  as_fn_arith ()
12367  {
12368    as_val=`expr "$@" || test $? -eq 1`
12369  }
12370fi # as_fn_arith
12371
12372
12373if expr a : '\(a\)' >/dev/null 2>&1 &&
12374   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12375  as_expr=expr
12376else
12377  as_expr=false
12378fi
12379
12380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12381  as_basename=basename
12382else
12383  as_basename=false
12384fi
12385
12386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12387  as_dirname=dirname
12388else
12389  as_dirname=false
12390fi
12391
12392as_me=`$as_basename -- "$0" ||
12393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12394	 X"$0" : 'X\(//\)$' \| \
12395	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12396printf "%s\n" X/"$0" |
12397    sed '/^.*\/\([^/][^/]*\)\/*$/{
12398	    s//\1/
12399	    q
12400	  }
12401	  /^X\/\(\/\/\)$/{
12402	    s//\1/
12403	    q
12404	  }
12405	  /^X\/\(\/\).*/{
12406	    s//\1/
12407	    q
12408	  }
12409	  s/.*/./; q'`
12410
12411# Avoid depending upon Character Ranges.
12412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12415as_cr_digits='0123456789'
12416as_cr_alnum=$as_cr_Letters$as_cr_digits
12417
12418
12419# Determine whether it's possible to make 'echo' print without a newline.
12420# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12421# for compatibility with existing Makefiles.
12422ECHO_C= ECHO_N= ECHO_T=
12423case `echo -n x` in #(((((
12424-n*)
12425  case `echo 'xy\c'` in
12426  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12427  xy)  ECHO_C='\c';;
12428  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12429       ECHO_T='	';;
12430  esac;;
12431*)
12432  ECHO_N='-n';;
12433esac
12434
12435# For backward compatibility with old third-party macros, we provide
12436# the shell variables $as_echo and $as_echo_n.  New code should use
12437# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12438as_echo='printf %s\n'
12439as_echo_n='printf %s'
12440
12441rm -f conf$$ conf$$.exe conf$$.file
12442if test -d conf$$.dir; then
12443  rm -f conf$$.dir/conf$$.file
12444else
12445  rm -f conf$$.dir
12446  mkdir conf$$.dir 2>/dev/null
12447fi
12448if (echo >conf$$.file) 2>/dev/null; then
12449  if ln -s conf$$.file conf$$ 2>/dev/null; then
12450    as_ln_s='ln -s'
12451    # ... but there are two gotchas:
12452    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12453    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12454    # In both cases, we have to default to `cp -pR'.
12455    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12456      as_ln_s='cp -pR'
12457  elif ln conf$$.file conf$$ 2>/dev/null; then
12458    as_ln_s=ln
12459  else
12460    as_ln_s='cp -pR'
12461  fi
12462else
12463  as_ln_s='cp -pR'
12464fi
12465rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12466rmdir conf$$.dir 2>/dev/null
12467
12468
12469# as_fn_mkdir_p
12470# -------------
12471# Create "$as_dir" as a directory, including parents if necessary.
12472as_fn_mkdir_p ()
12473{
12474
12475  case $as_dir in #(
12476  -*) as_dir=./$as_dir;;
12477  esac
12478  test -d "$as_dir" || eval $as_mkdir_p || {
12479    as_dirs=
12480    while :; do
12481      case $as_dir in #(
12482      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12483      *) as_qdir=$as_dir;;
12484      esac
12485      as_dirs="'$as_qdir' $as_dirs"
12486      as_dir=`$as_dirname -- "$as_dir" ||
12487$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12488	 X"$as_dir" : 'X\(//\)[^/]' \| \
12489	 X"$as_dir" : 'X\(//\)$' \| \
12490	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12491printf "%s\n" X"$as_dir" |
12492    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12493	    s//\1/
12494	    q
12495	  }
12496	  /^X\(\/\/\)[^/].*/{
12497	    s//\1/
12498	    q
12499	  }
12500	  /^X\(\/\/\)$/{
12501	    s//\1/
12502	    q
12503	  }
12504	  /^X\(\/\).*/{
12505	    s//\1/
12506	    q
12507	  }
12508	  s/.*/./; q'`
12509      test -d "$as_dir" && break
12510    done
12511    test -z "$as_dirs" || eval "mkdir $as_dirs"
12512  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12513
12514
12515} # as_fn_mkdir_p
12516if mkdir -p . 2>/dev/null; then
12517  as_mkdir_p='mkdir -p "$as_dir"'
12518else
12519  test -d ./-p && rmdir ./-p
12520  as_mkdir_p=false
12521fi
12522
12523
12524# as_fn_executable_p FILE
12525# -----------------------
12526# Test if FILE is an executable regular file.
12527as_fn_executable_p ()
12528{
12529  test -f "$1" && test -x "$1"
12530} # as_fn_executable_p
12531as_test_x='test -x'
12532as_executable_p=as_fn_executable_p
12533
12534# Sed expression to map a string onto a valid CPP name.
12535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12536
12537# Sed expression to map a string onto a valid variable name.
12538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12539
12540
12541exec 6>&1
12542## ----------------------------------- ##
12543## Main body of $CONFIG_STATUS script. ##
12544## ----------------------------------- ##
12545_ASEOF
12546test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12547
12548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12549# Save the log message, to keep $0 and so on meaningful, and to
12550# report actual input values of CONFIG_FILES etc. instead of their
12551# values after options handling.
12552ac_log="
12553This file was extended by xauth $as_me 1.1.2, which was
12554generated by GNU Autoconf 2.71.  Invocation command line was
12555
12556  CONFIG_FILES    = $CONFIG_FILES
12557  CONFIG_HEADERS  = $CONFIG_HEADERS
12558  CONFIG_LINKS    = $CONFIG_LINKS
12559  CONFIG_COMMANDS = $CONFIG_COMMANDS
12560  $ $0 $@
12561
12562on `(hostname || uname -n) 2>/dev/null | sed 1q`
12563"
12564
12565_ACEOF
12566
12567case $ac_config_files in *"
12568"*) set x $ac_config_files; shift; ac_config_files=$*;;
12569esac
12570
12571case $ac_config_headers in *"
12572"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12573esac
12574
12575
12576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12577# Files that config.status was made for.
12578config_files="$ac_config_files"
12579config_headers="$ac_config_headers"
12580config_commands="$ac_config_commands"
12581
12582_ACEOF
12583
12584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12585ac_cs_usage="\
12586\`$as_me' instantiates files and other configuration actions
12587from templates according to the current configuration.  Unless the files
12588and actions are specified as TAGs, all are instantiated by default.
12589
12590Usage: $0 [OPTION]... [TAG]...
12591
12592  -h, --help       print this help, then exit
12593  -V, --version    print version number and configuration settings, then exit
12594      --config     print configuration, then exit
12595  -q, --quiet, --silent
12596                   do not print progress messages
12597  -d, --debug      don't remove temporary files
12598      --recheck    update $as_me by reconfiguring in the same conditions
12599      --file=FILE[:TEMPLATE]
12600                   instantiate the configuration file FILE
12601      --header=FILE[:TEMPLATE]
12602                   instantiate the configuration header FILE
12603
12604Configuration files:
12605$config_files
12606
12607Configuration headers:
12608$config_headers
12609
12610Configuration commands:
12611$config_commands
12612
12613Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>."
12614
12615_ACEOF
12616ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12617ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12619ac_cs_config='$ac_cs_config_escaped'
12620ac_cs_version="\\
12621xauth config.status 1.1.2
12622configured by $0, generated by GNU Autoconf 2.71,
12623  with options \\"\$ac_cs_config\\"
12624
12625Copyright (C) 2021 Free Software Foundation, Inc.
12626This config.status script is free software; the Free Software Foundation
12627gives unlimited permission to copy, distribute and modify it."
12628
12629ac_pwd='$ac_pwd'
12630srcdir='$srcdir'
12631INSTALL='$INSTALL'
12632MKDIR_P='$MKDIR_P'
12633AWK='$AWK'
12634test -n "\$AWK" || AWK=awk
12635_ACEOF
12636
12637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12638# The default lists apply if the user does not specify any file.
12639ac_need_defaults=:
12640while test $# != 0
12641do
12642  case $1 in
12643  --*=?*)
12644    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12645    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12646    ac_shift=:
12647    ;;
12648  --*=)
12649    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12650    ac_optarg=
12651    ac_shift=:
12652    ;;
12653  *)
12654    ac_option=$1
12655    ac_optarg=$2
12656    ac_shift=shift
12657    ;;
12658  esac
12659
12660  case $ac_option in
12661  # Handling of the options.
12662  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12663    ac_cs_recheck=: ;;
12664  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12665    printf "%s\n" "$ac_cs_version"; exit ;;
12666  --config | --confi | --conf | --con | --co | --c )
12667    printf "%s\n" "$ac_cs_config"; exit ;;
12668  --debug | --debu | --deb | --de | --d | -d )
12669    debug=: ;;
12670  --file | --fil | --fi | --f )
12671    $ac_shift
12672    case $ac_optarg in
12673    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12674    '') as_fn_error $? "missing file argument" ;;
12675    esac
12676    as_fn_append CONFIG_FILES " '$ac_optarg'"
12677    ac_need_defaults=false;;
12678  --header | --heade | --head | --hea )
12679    $ac_shift
12680    case $ac_optarg in
12681    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12682    esac
12683    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12684    ac_need_defaults=false;;
12685  --he | --h)
12686    # Conflict between --help and --header
12687    as_fn_error $? "ambiguous option: \`$1'
12688Try \`$0 --help' for more information.";;
12689  --help | --hel | -h )
12690    printf "%s\n" "$ac_cs_usage"; exit ;;
12691  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12692  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12693    ac_cs_silent=: ;;
12694
12695  # This is an error.
12696  -*) as_fn_error $? "unrecognized option: \`$1'
12697Try \`$0 --help' for more information." ;;
12698
12699  *) as_fn_append ac_config_targets " $1"
12700     ac_need_defaults=false ;;
12701
12702  esac
12703  shift
12704done
12705
12706ac_configure_extra_args=
12707
12708if $ac_cs_silent; then
12709  exec 6>/dev/null
12710  ac_configure_extra_args="$ac_configure_extra_args --silent"
12711fi
12712
12713_ACEOF
12714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12715if \$ac_cs_recheck; then
12716  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12717  shift
12718  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12719  CONFIG_SHELL='$SHELL'
12720  export CONFIG_SHELL
12721  exec "\$@"
12722fi
12723
12724_ACEOF
12725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12726exec 5>>config.log
12727{
12728  echo
12729  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12730## Running $as_me. ##
12731_ASBOX
12732  printf "%s\n" "$ac_log"
12733} >&5
12734
12735_ACEOF
12736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12737#
12738# INIT-COMMANDS
12739#
12740AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12741
12742_ACEOF
12743
12744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12745
12746# Handling of arguments.
12747for ac_config_target in $ac_config_targets
12748do
12749  case $ac_config_target in
12750    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12751    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12752    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12753    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12754    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12755
12756  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12757  esac
12758done
12759
12760
12761# If the user did not use the arguments to specify the items to instantiate,
12762# then the envvar interface is used.  Set only those that are not.
12763# We use the long form for the default assignment because of an extremely
12764# bizarre bug on SunOS 4.1.3.
12765if $ac_need_defaults; then
12766  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12767  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12768  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12769fi
12770
12771# Have a temporary directory for convenience.  Make it in the build tree
12772# simply because there is no reason against having it here, and in addition,
12773# creating and moving files from /tmp can sometimes cause problems.
12774# Hook for its removal unless debugging.
12775# Note that there is a small window in which the directory will not be cleaned:
12776# after its creation but before its name has been assigned to `$tmp'.
12777$debug ||
12778{
12779  tmp= ac_tmp=
12780  trap 'exit_status=$?
12781  : "${ac_tmp:=$tmp}"
12782  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12783' 0
12784  trap 'as_fn_exit 1' 1 2 13 15
12785}
12786# Create a (secure) tmp directory for tmp files.
12787
12788{
12789  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12790  test -d "$tmp"
12791}  ||
12792{
12793  tmp=./conf$$-$RANDOM
12794  (umask 077 && mkdir "$tmp")
12795} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12796ac_tmp=$tmp
12797
12798# Set up the scripts for CONFIG_FILES section.
12799# No need to generate them if there are no CONFIG_FILES.
12800# This happens for instance with `./config.status config.h'.
12801if test -n "$CONFIG_FILES"; then
12802
12803
12804ac_cr=`echo X | tr X '\015'`
12805# On cygwin, bash can eat \r inside `` if the user requested igncr.
12806# But we know of no other shell where ac_cr would be empty at this
12807# point, so we can use a bashism as a fallback.
12808if test "x$ac_cr" = x; then
12809  eval ac_cr=\$\'\\r\'
12810fi
12811ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12812if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12813  ac_cs_awk_cr='\\r'
12814else
12815  ac_cs_awk_cr=$ac_cr
12816fi
12817
12818echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12819_ACEOF
12820
12821
12822{
12823  echo "cat >conf$$subs.awk <<_ACEOF" &&
12824  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12825  echo "_ACEOF"
12826} >conf$$subs.sh ||
12827  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12828ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12829ac_delim='%!_!# '
12830for ac_last_try in false false false false false :; do
12831  . ./conf$$subs.sh ||
12832    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12833
12834  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12835  if test $ac_delim_n = $ac_delim_num; then
12836    break
12837  elif $ac_last_try; then
12838    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12839  else
12840    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12841  fi
12842done
12843rm -f conf$$subs.sh
12844
12845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12846cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12847_ACEOF
12848sed -n '
12849h
12850s/^/S["/; s/!.*/"]=/
12851p
12852g
12853s/^[^!]*!//
12854:repl
12855t repl
12856s/'"$ac_delim"'$//
12857t delim
12858:nl
12859h
12860s/\(.\{148\}\)..*/\1/
12861t more1
12862s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12863p
12864n
12865b repl
12866:more1
12867s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12868p
12869g
12870s/.\{148\}//
12871t nl
12872:delim
12873h
12874s/\(.\{148\}\)..*/\1/
12875t more2
12876s/["\\]/\\&/g; s/^/"/; s/$/"/
12877p
12878b
12879:more2
12880s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12881p
12882g
12883s/.\{148\}//
12884t delim
12885' <conf$$subs.awk | sed '
12886/^[^""]/{
12887  N
12888  s/\n//
12889}
12890' >>$CONFIG_STATUS || ac_write_fail=1
12891rm -f conf$$subs.awk
12892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12893_ACAWK
12894cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12895  for (key in S) S_is_set[key] = 1
12896  FS = ""
12897
12898}
12899{
12900  line = $ 0
12901  nfields = split(line, field, "@")
12902  substed = 0
12903  len = length(field[1])
12904  for (i = 2; i < nfields; i++) {
12905    key = field[i]
12906    keylen = length(key)
12907    if (S_is_set[key]) {
12908      value = S[key]
12909      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12910      len += length(value) + length(field[++i])
12911      substed = 1
12912    } else
12913      len += 1 + keylen
12914  }
12915
12916  print line
12917}
12918
12919_ACAWK
12920_ACEOF
12921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12922if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12923  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12924else
12925  cat
12926fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12927  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12928_ACEOF
12929
12930# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12931# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12932# trailing colons and then remove the whole line if VPATH becomes empty
12933# (actually we leave an empty line to preserve line numbers).
12934if test "x$srcdir" = x.; then
12935  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12936h
12937s///
12938s/^/:/
12939s/[	 ]*$/:/
12940s/:\$(srcdir):/:/g
12941s/:\${srcdir}:/:/g
12942s/:@srcdir@:/:/g
12943s/^:*//
12944s/:*$//
12945x
12946s/\(=[	 ]*\).*/\1/
12947G
12948s/\n//
12949s/^[^=]*=[	 ]*$//
12950}'
12951fi
12952
12953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12954fi # test -n "$CONFIG_FILES"
12955
12956# Set up the scripts for CONFIG_HEADERS section.
12957# No need to generate them if there are no CONFIG_HEADERS.
12958# This happens for instance with `./config.status Makefile'.
12959if test -n "$CONFIG_HEADERS"; then
12960cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12961BEGIN {
12962_ACEOF
12963
12964# Transform confdefs.h into an awk script `defines.awk', embedded as
12965# here-document in config.status, that substitutes the proper values into
12966# config.h.in to produce config.h.
12967
12968# Create a delimiter string that does not exist in confdefs.h, to ease
12969# handling of long lines.
12970ac_delim='%!_!# '
12971for ac_last_try in false false :; do
12972  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12973  if test -z "$ac_tt"; then
12974    break
12975  elif $ac_last_try; then
12976    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12977  else
12978    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12979  fi
12980done
12981
12982# For the awk script, D is an array of macro values keyed by name,
12983# likewise P contains macro parameters if any.  Preserve backslash
12984# newline sequences.
12985
12986ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12987sed -n '
12988s/.\{148\}/&'"$ac_delim"'/g
12989t rset
12990:rset
12991s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12992t def
12993d
12994:def
12995s/\\$//
12996t bsnl
12997s/["\\]/\\&/g
12998s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12999D["\1"]=" \3"/p
13000s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13001d
13002:bsnl
13003s/["\\]/\\&/g
13004s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13005D["\1"]=" \3\\\\\\n"\\/p
13006t cont
13007s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13008t cont
13009d
13010:cont
13011n
13012s/.\{148\}/&'"$ac_delim"'/g
13013t clear
13014:clear
13015s/\\$//
13016t bsnlc
13017s/["\\]/\\&/g; s/^/"/; s/$/"/p
13018d
13019:bsnlc
13020s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13021b cont
13022' <confdefs.h | sed '
13023s/'"$ac_delim"'/"\\\
13024"/g' >>$CONFIG_STATUS || ac_write_fail=1
13025
13026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13027  for (key in D) D_is_set[key] = 1
13028  FS = ""
13029}
13030/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13031  line = \$ 0
13032  split(line, arg, " ")
13033  if (arg[1] == "#") {
13034    defundef = arg[2]
13035    mac1 = arg[3]
13036  } else {
13037    defundef = substr(arg[1], 2)
13038    mac1 = arg[2]
13039  }
13040  split(mac1, mac2, "(") #)
13041  macro = mac2[1]
13042  prefix = substr(line, 1, index(line, defundef) - 1)
13043  if (D_is_set[macro]) {
13044    # Preserve the white space surrounding the "#".
13045    print prefix "define", macro P[macro] D[macro]
13046    next
13047  } else {
13048    # Replace #undef with comments.  This is necessary, for example,
13049    # in the case of _POSIX_SOURCE, which is predefined and required
13050    # on some systems where configure will not decide to define it.
13051    if (defundef == "undef") {
13052      print "/*", prefix defundef, macro, "*/"
13053      next
13054    }
13055  }
13056}
13057{ print }
13058_ACAWK
13059_ACEOF
13060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13061  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13062fi # test -n "$CONFIG_HEADERS"
13063
13064
13065eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13066shift
13067for ac_tag
13068do
13069  case $ac_tag in
13070  :[FHLC]) ac_mode=$ac_tag; continue;;
13071  esac
13072  case $ac_mode$ac_tag in
13073  :[FHL]*:*);;
13074  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13075  :[FH]-) ac_tag=-:-;;
13076  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13077  esac
13078  ac_save_IFS=$IFS
13079  IFS=:
13080  set x $ac_tag
13081  IFS=$ac_save_IFS
13082  shift
13083  ac_file=$1
13084  shift
13085
13086  case $ac_mode in
13087  :L) ac_source=$1;;
13088  :[FH])
13089    ac_file_inputs=
13090    for ac_f
13091    do
13092      case $ac_f in
13093      -) ac_f="$ac_tmp/stdin";;
13094      *) # Look for the file first in the build tree, then in the source tree
13095	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13096	 # because $ac_f cannot contain `:'.
13097	 test -f "$ac_f" ||
13098	   case $ac_f in
13099	   [\\/$]*) false;;
13100	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13101	   esac ||
13102	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13103      esac
13104      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13105      as_fn_append ac_file_inputs " '$ac_f'"
13106    done
13107
13108    # Let's still pretend it is `configure' which instantiates (i.e., don't
13109    # use $as_me), people would be surprised to read:
13110    #    /* config.h.  Generated by config.status.  */
13111    configure_input='Generated from '`
13112	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13113	`' by configure.'
13114    if test x"$ac_file" != x-; then
13115      configure_input="$ac_file.  $configure_input"
13116      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13117printf "%s\n" "$as_me: creating $ac_file" >&6;}
13118    fi
13119    # Neutralize special characters interpreted by sed in replacement strings.
13120    case $configure_input in #(
13121    *\&* | *\|* | *\\* )
13122       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13123       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13124    *) ac_sed_conf_input=$configure_input;;
13125    esac
13126
13127    case $ac_tag in
13128    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13129      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13130    esac
13131    ;;
13132  esac
13133
13134  ac_dir=`$as_dirname -- "$ac_file" ||
13135$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13136	 X"$ac_file" : 'X\(//\)[^/]' \| \
13137	 X"$ac_file" : 'X\(//\)$' \| \
13138	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13139printf "%s\n" X"$ac_file" |
13140    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13141	    s//\1/
13142	    q
13143	  }
13144	  /^X\(\/\/\)[^/].*/{
13145	    s//\1/
13146	    q
13147	  }
13148	  /^X\(\/\/\)$/{
13149	    s//\1/
13150	    q
13151	  }
13152	  /^X\(\/\).*/{
13153	    s//\1/
13154	    q
13155	  }
13156	  s/.*/./; q'`
13157  as_dir="$ac_dir"; as_fn_mkdir_p
13158  ac_builddir=.
13159
13160case "$ac_dir" in
13161.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13162*)
13163  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13164  # A ".." for each directory in $ac_dir_suffix.
13165  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13166  case $ac_top_builddir_sub in
13167  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13168  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13169  esac ;;
13170esac
13171ac_abs_top_builddir=$ac_pwd
13172ac_abs_builddir=$ac_pwd$ac_dir_suffix
13173# for backward compatibility:
13174ac_top_builddir=$ac_top_build_prefix
13175
13176case $srcdir in
13177  .)  # We are building in place.
13178    ac_srcdir=.
13179    ac_top_srcdir=$ac_top_builddir_sub
13180    ac_abs_top_srcdir=$ac_pwd ;;
13181  [\\/]* | ?:[\\/]* )  # Absolute name.
13182    ac_srcdir=$srcdir$ac_dir_suffix;
13183    ac_top_srcdir=$srcdir
13184    ac_abs_top_srcdir=$srcdir ;;
13185  *) # Relative name.
13186    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13187    ac_top_srcdir=$ac_top_build_prefix$srcdir
13188    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13189esac
13190ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13191
13192
13193  case $ac_mode in
13194  :F)
13195  #
13196  # CONFIG_FILE
13197  #
13198
13199  case $INSTALL in
13200  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13201  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13202  esac
13203  ac_MKDIR_P=$MKDIR_P
13204  case $MKDIR_P in
13205  [\\/$]* | ?:[\\/]* ) ;;
13206  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13207  esac
13208_ACEOF
13209
13210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13211# If the template does not know about datarootdir, expand it.
13212# FIXME: This hack should be removed a few years after 2.60.
13213ac_datarootdir_hack=; ac_datarootdir_seen=
13214ac_sed_dataroot='
13215/datarootdir/ {
13216  p
13217  q
13218}
13219/@datadir@/p
13220/@docdir@/p
13221/@infodir@/p
13222/@localedir@/p
13223/@mandir@/p'
13224case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13225*datarootdir*) ac_datarootdir_seen=yes;;
13226*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13228printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13229_ACEOF
13230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13231  ac_datarootdir_hack='
13232  s&@datadir@&$datadir&g
13233  s&@docdir@&$docdir&g
13234  s&@infodir@&$infodir&g
13235  s&@localedir@&$localedir&g
13236  s&@mandir@&$mandir&g
13237  s&\\\${datarootdir}&$datarootdir&g' ;;
13238esac
13239_ACEOF
13240
13241# Neutralize VPATH when `$srcdir' = `.'.
13242# Shell code in configure.ac might set extrasub.
13243# FIXME: do we really want to maintain this feature?
13244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13245ac_sed_extra="$ac_vpsub
13246$extrasub
13247_ACEOF
13248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13249:t
13250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13251s|@configure_input@|$ac_sed_conf_input|;t t
13252s&@top_builddir@&$ac_top_builddir_sub&;t t
13253s&@top_build_prefix@&$ac_top_build_prefix&;t t
13254s&@srcdir@&$ac_srcdir&;t t
13255s&@abs_srcdir@&$ac_abs_srcdir&;t t
13256s&@top_srcdir@&$ac_top_srcdir&;t t
13257s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13258s&@builddir@&$ac_builddir&;t t
13259s&@abs_builddir@&$ac_abs_builddir&;t t
13260s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13261s&@INSTALL@&$ac_INSTALL&;t t
13262s&@MKDIR_P@&$ac_MKDIR_P&;t t
13263$ac_datarootdir_hack
13264"
13265eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13266  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13267
13268test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13269  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13270  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13271      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13273which seems to be undefined.  Please make sure it is defined" >&5
13274printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13275which seems to be undefined.  Please make sure it is defined" >&2;}
13276
13277  rm -f "$ac_tmp/stdin"
13278  case $ac_file in
13279  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13280  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13281  esac \
13282  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13283 ;;
13284  :H)
13285  #
13286  # CONFIG_HEADER
13287  #
13288  if test x"$ac_file" != x-; then
13289    {
13290      printf "%s\n" "/* $configure_input  */" >&1 \
13291      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13292    } >"$ac_tmp/config.h" \
13293      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13294    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13295      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13296printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13297    else
13298      rm -f "$ac_file"
13299      mv "$ac_tmp/config.h" "$ac_file" \
13300	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13301    fi
13302  else
13303    printf "%s\n" "/* $configure_input  */" >&1 \
13304      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13305      || as_fn_error $? "could not create -" "$LINENO" 5
13306  fi
13307# Compute "$ac_file"'s index in $config_headers.
13308_am_arg="$ac_file"
13309_am_stamp_count=1
13310for _am_header in $config_headers :; do
13311  case $_am_header in
13312    $_am_arg | $_am_arg:* )
13313      break ;;
13314    * )
13315      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13316  esac
13317done
13318echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13319$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13320	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13321	 X"$_am_arg" : 'X\(//\)$' \| \
13322	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13323printf "%s\n" X"$_am_arg" |
13324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13325	    s//\1/
13326	    q
13327	  }
13328	  /^X\(\/\/\)[^/].*/{
13329	    s//\1/
13330	    q
13331	  }
13332	  /^X\(\/\/\)$/{
13333	    s//\1/
13334	    q
13335	  }
13336	  /^X\(\/\).*/{
13337	    s//\1/
13338	    q
13339	  }
13340	  s/.*/./; q'`/stamp-h$_am_stamp_count
13341 ;;
13342
13343  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13344printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13345 ;;
13346  esac
13347
13348
13349  case $ac_file$ac_mode in
13350    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13351  # Older Autoconf quotes --file arguments for eval, but not when files
13352  # are listed without --file.  Let's play safe and only enable the eval
13353  # if we detect the quoting.
13354  # TODO: see whether this extra hack can be removed once we start
13355  # requiring Autoconf 2.70 or later.
13356  case $CONFIG_FILES in #(
13357  *\'*) :
13358    eval set x "$CONFIG_FILES" ;; #(
13359  *) :
13360    set x $CONFIG_FILES ;; #(
13361  *) :
13362     ;;
13363esac
13364  shift
13365  # Used to flag and report bootstrapping failures.
13366  am_rc=0
13367  for am_mf
13368  do
13369    # Strip MF so we end up with the name of the file.
13370    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13371    # Check whether this is an Automake generated Makefile which includes
13372    # dependency-tracking related rules and includes.
13373    # Grep'ing the whole file directly is not great: AIX grep has a line
13374    # limit of 2048, but all sed's we know have understand at least 4000.
13375    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13376      || continue
13377    am_dirpart=`$as_dirname -- "$am_mf" ||
13378$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13379	 X"$am_mf" : 'X\(//\)[^/]' \| \
13380	 X"$am_mf" : 'X\(//\)$' \| \
13381	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13382printf "%s\n" X"$am_mf" |
13383    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13384	    s//\1/
13385	    q
13386	  }
13387	  /^X\(\/\/\)[^/].*/{
13388	    s//\1/
13389	    q
13390	  }
13391	  /^X\(\/\/\)$/{
13392	    s//\1/
13393	    q
13394	  }
13395	  /^X\(\/\).*/{
13396	    s//\1/
13397	    q
13398	  }
13399	  s/.*/./; q'`
13400    am_filepart=`$as_basename -- "$am_mf" ||
13401$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13402	 X"$am_mf" : 'X\(//\)$' \| \
13403	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13404printf "%s\n" X/"$am_mf" |
13405    sed '/^.*\/\([^/][^/]*\)\/*$/{
13406	    s//\1/
13407	    q
13408	  }
13409	  /^X\/\(\/\/\)$/{
13410	    s//\1/
13411	    q
13412	  }
13413	  /^X\/\(\/\).*/{
13414	    s//\1/
13415	    q
13416	  }
13417	  s/.*/./; q'`
13418    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13419      && sed -e '/# am--include-marker/d' "$am_filepart" \
13420        | $MAKE -f - am--depfiles" >&5
13421   (cd "$am_dirpart" \
13422      && sed -e '/# am--include-marker/d' "$am_filepart" \
13423        | $MAKE -f - am--depfiles) >&5 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); } || am_rc=$?
13427  done
13428  if test $am_rc -ne 0; then
13429    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13430printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13431as_fn_error $? "Something went wrong bootstrapping makefile fragments
13432    for automatic dependency tracking.  If GNU make was not used, consider
13433    re-running the configure script with MAKE=\"gmake\" (or whatever is
13434    necessary).  You can also try re-running configure with the
13435    '--disable-dependency-tracking' option to at least be able to build
13436    the package (albeit without support for automatic dependency tracking).
13437See \`config.log' for more details" "$LINENO" 5; }
13438  fi
13439  { am_dirpart=; unset am_dirpart;}
13440  { am_filepart=; unset am_filepart;}
13441  { am_mf=; unset am_mf;}
13442  { am_rc=; unset am_rc;}
13443  rm -f conftest-deps.mk
13444}
13445 ;;
13446
13447  esac
13448done # for ac_tag
13449
13450
13451as_fn_exit 0
13452_ACEOF
13453ac_clean_files=$ac_clean_files_save
13454
13455test $ac_write_fail = 0 ||
13456  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13457
13458
13459# configure is writing to config.log, and then calls config.status.
13460# config.status does its own redirection, appending to config.log.
13461# Unfortunately, on DOS this fails, as config.log is still kept open
13462# by configure, so config.status won't be able to write to it; its
13463# output is simply discarded.  So we exec the FD to /dev/null,
13464# effectively closing config.log, so it can be properly (re)opened and
13465# appended to by config.status.  When coming back to configure, we
13466# need to make the FD available again.
13467if test "$no_create" != yes; then
13468  ac_cs_success=:
13469  ac_config_status_args=
13470  test "$silent" = yes &&
13471    ac_config_status_args="$ac_config_status_args --quiet"
13472  exec 5>/dev/null
13473  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13474  exec 5>>config.log
13475  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13476  # would make configure fail if this is the last instruction.
13477  $ac_cs_success || as_fn_exit 1
13478fi
13479if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13481printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13482fi
13483
13484
13485