configure revision 273c00b8
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xauth 1.1.3.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
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 case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1"
188  if (eval "$as_required") 2>/dev/null
189then :
190  as_have_required=yes
191else case e in #(
192  e) as_have_required=no ;;
193esac
194fi
195  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196then :
197
198else case e in #(
199  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200as_found=false
201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202do
203  IFS=$as_save_IFS
204  case $as_dir in #(((
205    '') as_dir=./ ;;
206    */) ;;
207    *) as_dir=$as_dir/ ;;
208  esac
209  as_found=:
210  case $as_dir in #(
211	 /*)
212	   for as_base in sh bash ksh sh5; do
213	     # Try only shells that exist, to save several forks.
214	     as_shell=$as_dir$as_base
215	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217then :
218  CONFIG_SHELL=$as_shell as_have_required=yes
219		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220then :
221  break 2
222fi
223fi
224	   done;;
225       esac
226  as_found=false
227done
228IFS=$as_save_IFS
229if $as_found
230then :
231
232else case e in #(
233  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235then :
236  CONFIG_SHELL=$SHELL as_have_required=yes
237fi ;;
238esac
239fi
240
241
242      if test "x$CONFIG_SHELL" != x
243then :
244  export CONFIG_SHELL
245             # We cannot yet assume a decent shell, so we have to provide a
246# neutralization value for shells without unset; and this also
247# works around shells that cannot unset nonexistent variables.
248# Preserve -v and -x to the replacement shell.
249BASH_ENV=/dev/null
250ENV=/dev/null
251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252case $- in # ((((
253  *v*x* | *x*v* ) as_opts=-vx ;;
254  *v* ) as_opts=-v ;;
255  *x* ) as_opts=-x ;;
256  * ) as_opts= ;;
257esac
258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259# Admittedly, this is quite paranoid, since all the known shells bail
260# out after a failed 'exec'.
261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262exit 255
263fi
264
265    if test x$as_have_required = xno
266then :
267  printf "%s\n" "$0: This script requires a shell more modern than all"
268  printf "%s\n" "$0: the shells that I found on your system."
269  if test ${ZSH_VERSION+y} ; then
270    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272  else
273    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274$0: https://gitlab.freedesktop.org/xorg/app/xauth/-/issues
275$0: about your system, including any error possibly output
276$0: before this message. Then install a modern shell, or
277$0: manually run the script under such a shell if you do
278$0: have one."
279  fi
280  exit 1
281fi ;;
282esac
283fi
284fi
285SHELL=${CONFIG_SHELL-/bin/sh}
286export SHELL
287# Unset more variables known to interfere with behavior of common tools.
288CLICOLOR_FORCE= GREP_OPTIONS=
289unset CLICOLOR_FORCE GREP_OPTIONS
290
291## --------------------- ##
292## M4sh Shell Functions. ##
293## --------------------- ##
294# as_fn_unset VAR
295# ---------------
296# Portably unset VAR.
297as_fn_unset ()
298{
299  { eval $1=; unset $1;}
300}
301as_unset=as_fn_unset
302
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309  return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317  set +e
318  as_fn_set_status $1
319  exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328  case $as_dir in #(
329  -*) as_dir=./$as_dir;;
330  esac
331  test -d "$as_dir" || eval $as_mkdir_p || {
332    as_dirs=
333    while :; do
334      case $as_dir in #(
335      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336      *) as_qdir=$as_dir;;
337      esac
338      as_dirs="'$as_qdir' $as_dirs"
339      as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341	 X"$as_dir" : 'X\(//\)[^/]' \| \
342	 X"$as_dir" : 'X\(//\)$' \| \
343	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344printf "%s\n" X"$as_dir" |
345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\/\)[^/].*/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\).*/{
358	    s//\1/
359	    q
360	  }
361	  s/.*/./; q'`
362      test -d "$as_dir" && break
363    done
364    test -z "$as_dirs" || eval "mkdir $as_dirs"
365  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375  test -f "$1" && test -x "$1"
376} # as_fn_executable_p
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else case e in #(
390  e) as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  } ;;
394esac
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403then :
404  eval 'as_fn_arith ()
405  {
406    as_val=$(( $* ))
407  }'
408else case e in #(
409  e) as_fn_arith ()
410  {
411    as_val=`expr "$@" || test $? -eq 1`
412  } ;;
413esac
414fi # as_fn_arith
415
416
417# as_fn_error STATUS ERROR [LINENO LOG_FD]
418# ----------------------------------------
419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421# script with STATUS, using 1 if that was 0.
422as_fn_error ()
423{
424  as_status=$1; test $as_status -eq 0 && as_status=1
425  if test "$4"; then
426    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428  fi
429  printf "%s\n" "$as_me: error: $2" >&2
430  as_fn_exit $as_status
431} # as_fn_error
432
433if expr a : '\(a\)' >/dev/null 2>&1 &&
434   test "X`expr 00001 : '.*\(...\)'`" = X001; then
435  as_expr=expr
436else
437  as_expr=false
438fi
439
440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441  as_basename=basename
442else
443  as_basename=false
444fi
445
446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447  as_dirname=dirname
448else
449  as_dirname=false
450fi
451
452as_me=`$as_basename -- "$0" ||
453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454	 X"$0" : 'X\(//\)$' \| \
455	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456printf "%s\n" X/"$0" |
457    sed '/^.*\/\([^/][^/]*\)\/*$/{
458	    s//\1/
459	    q
460	  }
461	  /^X\/\(\/\/\)$/{
462	    s//\1/
463	    q
464	  }
465	  /^X\/\(\/\).*/{
466	    s//\1/
467	    q
468	  }
469	  s/.*/./; q'`
470
471# Avoid depending upon Character Ranges.
472as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475as_cr_digits='0123456789'
476as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479  as_lineno_1=$LINENO as_lineno_1a=$LINENO
480  as_lineno_2=$LINENO as_lineno_2a=$LINENO
481  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
484  sed -n '
485    p
486    /[$]LINENO/=
487  ' <$as_myself |
488    sed '
489      t clear
490      :clear
491      s/[$]LINENO.*/&-/
492      t lineno
493      b
494      :lineno
495      N
496      :loop
497      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498      t loop
499      s/-\n.*//
500    ' >$as_me.lineno &&
501  chmod +x "$as_me.lineno" ||
502    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505  # already done that, so ensure we don't try to do so again and fall
506  # in an infinite loop.  This has already happened in practice.
507  _as_can_reexec=no; export _as_can_reexec
508  # Don't try to exec as it changes $[0], causing all sort of problems
509  # (the dirname of $[0] is not the place where we might find the
510  # original and so on.  Autoconf is especially sensitive to this).
511  . "./$as_me.lineno"
512  # Exit status is that of the last command.
513  exit
514}
515
516
517# Determine whether it's possible to make 'echo' print without a newline.
518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519# for compatibility with existing Makefiles.
520ECHO_C= ECHO_N= ECHO_T=
521case `echo -n x` in #(((((
522-n*)
523  case `echo 'xy\c'` in
524  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
525  xy)  ECHO_C='\c';;
526  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
527       ECHO_T='	';;
528  esac;;
529*)
530  ECHO_N='-n';;
531esac
532
533# For backward compatibility with old third-party macros, we provide
534# the shell variables $as_echo and $as_echo_n.  New code should use
535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536as_echo='printf %s\n'
537as_echo_n='printf %s'
538
539rm -f conf$$ conf$$.exe conf$$.file
540if test -d conf$$.dir; then
541  rm -f conf$$.dir/conf$$.file
542else
543  rm -f conf$$.dir
544  mkdir conf$$.dir 2>/dev/null
545fi
546if (echo >conf$$.file) 2>/dev/null; then
547  if ln -s conf$$.file conf$$ 2>/dev/null; then
548    as_ln_s='ln -s'
549    # ... but there are two gotchas:
550    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552    # In both cases, we have to default to 'cp -pR'.
553    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554      as_ln_s='cp -pR'
555  elif ln conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s=ln
557  else
558    as_ln_s='cp -pR'
559  fi
560else
561  as_ln_s='cp -pR'
562fi
563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564rmdir conf$$.dir 2>/dev/null
565
566if mkdir -p . 2>/dev/null; then
567  as_mkdir_p='mkdir -p "$as_dir"'
568else
569  test -d ./-p && rmdir ./-p
570  as_mkdir_p=false
571fi
572
573as_test_x='test -x'
574as_executable_p=as_fn_executable_p
575
576# Sed expression to map a string onto a valid CPP name.
577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580# Sed expression to map a string onto a valid variable name.
581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585test -n "$DJDIR" || exec 7<&0 </dev/null
586exec 6>&1
587
588# Name of the host.
589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590# so uname gets run too.
591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593#
594# Initializations.
595#
596ac_default_prefix=/usr/local
597ac_clean_files=
598ac_config_libobj_dir=.
599LIBOBJS=
600cross_compiling=no
601subdirs=
602MFLAGS=
603MAKEFLAGS=
604
605# Identity of this package.
606PACKAGE_NAME='xauth'
607PACKAGE_TARNAME='xauth'
608PACKAGE_VERSION='1.1.3'
609PACKAGE_STRING='xauth 1.1.3'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xauth/-/issues'
611PACKAGE_URL=''
612
613ac_unique_file="xauth.c"
614# Factoring default headers for most tests.
615ac_includes_default="\
616#include <stddef.h>
617#ifdef HAVE_STDIO_H
618# include <stdio.h>
619#endif
620#ifdef HAVE_STDLIB_H
621# include <stdlib.h>
622#endif
623#ifdef HAVE_STRING_H
624# include <string.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_STRINGS_H
633# include <strings.h>
634#endif
635#ifdef HAVE_SYS_TYPES_H
636# include <sys/types.h>
637#endif
638#ifdef HAVE_SYS_STAT_H
639# include <sys/stat.h>
640#endif
641#ifdef HAVE_UNISTD_H
642# include <unistd.h>
643#endif"
644
645ac_header_c_list=
646enable_year2038=no
647ac_subst_vars='am__EXEEXT_FALSE
648am__EXEEXT_TRUE
649LTLIBOBJS
650LIBOBJS
651LINT_FALSE
652LINT_TRUE
653LINT_FLAGS
654LINT
655XAUTH_LIBS
656XAUTH_CFLAGS
657MAN_SUBSTS
658XORG_MAN_PAGE
659ADMIN_MAN_DIR
660DRIVER_MAN_DIR
661MISC_MAN_DIR
662FILE_MAN_DIR
663LIB_MAN_DIR
664APP_MAN_DIR
665ADMIN_MAN_SUFFIX
666DRIVER_MAN_SUFFIX
667MISC_MAN_SUFFIX
668FILE_MAN_SUFFIX
669LIB_MAN_SUFFIX
670APP_MAN_SUFFIX
671SED
672host_os
673host_vendor
674host_cpu
675host
676build_os
677build_vendor
678build_cpu
679build
680INSTALL_CMD
681PKG_CONFIG_LIBDIR
682PKG_CONFIG_PATH
683PKG_CONFIG
684CHANGELOG_CMD
685STRICT_CFLAGS
686CWARNFLAGS
687BASE_CFLAGS
688AM_BACKSLASH
689AM_DEFAULT_VERBOSITY
690AM_DEFAULT_V
691AM_V
692CSCOPE
693ETAGS
694CTAGS
695am__fastdepCC_FALSE
696am__fastdepCC_TRUE
697CCDEPMODE
698am__nodep
699AMDEPBACKSLASH
700AMDEP_FALSE
701AMDEP_TRUE
702am__include
703DEPDIR
704am__untar
705am__tar
706AMTAR
707am__leading_dot
708SET_MAKE
709AWK
710mkdir_p
711MKDIR_P
712INSTALL_STRIP_PROGRAM
713STRIP
714install_sh
715MAKEINFO
716AUTOHEADER
717AUTOMAKE
718AUTOCONF
719ACLOCAL
720VERSION
721PACKAGE
722CYGPATH_W
723am__isrc
724INSTALL_DATA
725INSTALL_SCRIPT
726INSTALL_PROGRAM
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753runstatedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL
773am__quote'
774ac_subst_files=''
775ac_user_opts='
776enable_option_checking
777enable_dependency_tracking
778enable_silent_rules
779enable_selective_werror
780enable_strict_compilation
781enable_largefile
782enable_unix_transport
783enable_tcp_transport
784enable_ipv6
785enable_local_transport
786with_lint
787enable_year2038
788'
789      ac_precious_vars='build_alias
790host_alias
791target_alias
792CC
793CFLAGS
794LDFLAGS
795LIBS
796CPPFLAGS
797PKG_CONFIG
798PKG_CONFIG_PATH
799PKG_CONFIG_LIBDIR
800XAUTH_CFLAGS
801XAUTH_LIBS
802LINT
803LINT_FLAGS'
804
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842runstatedir='${localstatedir}/run'
843includedir='${prefix}/include'
844oldincludedir='/usr/include'
845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846infodir='${datarootdir}/info'
847htmldir='${docdir}'
848dvidir='${docdir}'
849pdfdir='${docdir}'
850psdir='${docdir}'
851libdir='${exec_prefix}/lib'
852localedir='${datarootdir}/locale'
853mandir='${datarootdir}/man'
854
855ac_prev=
856ac_dashdash=
857for ac_option
858do
859  # If the previous option needs an argument, assign it.
860  if test -n "$ac_prev"; then
861    eval $ac_prev=\$ac_option
862    ac_prev=
863    continue
864  fi
865
866  case $ac_option in
867  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868  *=)   ac_optarg= ;;
869  *)    ac_optarg=yes ;;
870  esac
871
872  case $ac_dashdash$ac_option in
873  --)
874    ac_dashdash=yes ;;
875
876  -bindir | --bindir | --bindi | --bind | --bin | --bi)
877    ac_prev=bindir ;;
878  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879    bindir=$ac_optarg ;;
880
881  -build | --build | --buil | --bui | --bu)
882    ac_prev=build_alias ;;
883  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884    build_alias=$ac_optarg ;;
885
886  -cache-file | --cache-file | --cache-fil | --cache-fi \
887  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888    ac_prev=cache_file ;;
889  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891    cache_file=$ac_optarg ;;
892
893  --config-cache | -C)
894    cache_file=config.cache ;;
895
896  -datadir | --datadir | --datadi | --datad)
897    ac_prev=datadir ;;
898  -datadir=* | --datadir=* | --datadi=* | --datad=*)
899    datadir=$ac_optarg ;;
900
901  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902  | --dataroo | --dataro | --datar)
903    ac_prev=datarootdir ;;
904  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906    datarootdir=$ac_optarg ;;
907
908  -disable-* | --disable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error $? "invalid feature name: '$ac_useropt'"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=no ;;
923
924  -docdir | --docdir | --docdi | --doc | --do)
925    ac_prev=docdir ;;
926  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927    docdir=$ac_optarg ;;
928
929  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930    ac_prev=dvidir ;;
931  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932    dvidir=$ac_optarg ;;
933
934  -enable-* | --enable-*)
935    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936    # Reject names that are not valid shell variable names.
937    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938      as_fn_error $? "invalid feature name: '$ac_useropt'"
939    ac_useropt_orig=$ac_useropt
940    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
941    case $ac_user_opts in
942      *"
943"enable_$ac_useropt"
944"*) ;;
945      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946	 ac_unrecognized_sep=', ';;
947    esac
948    eval enable_$ac_useropt=\$ac_optarg ;;
949
950  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952  | --exec | --exe | --ex)
953    ac_prev=exec_prefix ;;
954  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956  | --exec=* | --exe=* | --ex=*)
957    exec_prefix=$ac_optarg ;;
958
959  -gas | --gas | --ga | --g)
960    # Obsolete; use --with-gas.
961    with_gas=yes ;;
962
963  -help | --help | --hel | --he | -h)
964    ac_init_help=long ;;
965  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966    ac_init_help=recursive ;;
967  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968    ac_init_help=short ;;
969
970  -host | --host | --hos | --ho)
971    ac_prev=host_alias ;;
972  -host=* | --host=* | --hos=* | --ho=*)
973    host_alias=$ac_optarg ;;
974
975  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976    ac_prev=htmldir ;;
977  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978  | --ht=*)
979    htmldir=$ac_optarg ;;
980
981  -includedir | --includedir | --includedi | --included | --include \
982  | --includ | --inclu | --incl | --inc)
983    ac_prev=includedir ;;
984  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985  | --includ=* | --inclu=* | --incl=* | --inc=*)
986    includedir=$ac_optarg ;;
987
988  -infodir | --infodir | --infodi | --infod | --info | --inf)
989    ac_prev=infodir ;;
990  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991    infodir=$ac_optarg ;;
992
993  -libdir | --libdir | --libdi | --libd)
994    ac_prev=libdir ;;
995  -libdir=* | --libdir=* | --libdi=* | --libd=*)
996    libdir=$ac_optarg ;;
997
998  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999  | --libexe | --libex | --libe)
1000    ac_prev=libexecdir ;;
1001  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002  | --libexe=* | --libex=* | --libe=*)
1003    libexecdir=$ac_optarg ;;
1004
1005  -localedir | --localedir | --localedi | --localed | --locale)
1006    ac_prev=localedir ;;
1007  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008    localedir=$ac_optarg ;;
1009
1010  -localstatedir | --localstatedir | --localstatedi | --localstated \
1011  | --localstate | --localstat | --localsta | --localst | --locals)
1012    ac_prev=localstatedir ;;
1013  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015    localstatedir=$ac_optarg ;;
1016
1017  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018    ac_prev=mandir ;;
1019  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020    mandir=$ac_optarg ;;
1021
1022  -nfp | --nfp | --nf)
1023    # Obsolete; use --without-fp.
1024    with_fp=no ;;
1025
1026  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027  | --no-cr | --no-c | -n)
1028    no_create=yes ;;
1029
1030  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032    no_recursion=yes ;;
1033
1034  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036  | --oldin | --oldi | --old | --ol | --o)
1037    ac_prev=oldincludedir ;;
1038  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041    oldincludedir=$ac_optarg ;;
1042
1043  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044    ac_prev=prefix ;;
1045  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046    prefix=$ac_optarg ;;
1047
1048  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049  | --program-pre | --program-pr | --program-p)
1050    ac_prev=program_prefix ;;
1051  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053    program_prefix=$ac_optarg ;;
1054
1055  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056  | --program-suf | --program-su | --program-s)
1057    ac_prev=program_suffix ;;
1058  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060    program_suffix=$ac_optarg ;;
1061
1062  -program-transform-name | --program-transform-name \
1063  | --program-transform-nam | --program-transform-na \
1064  | --program-transform-n | --program-transform- \
1065  | --program-transform | --program-transfor \
1066  | --program-transfo | --program-transf \
1067  | --program-trans | --program-tran \
1068  | --progr-tra | --program-tr | --program-t)
1069    ac_prev=program_transform_name ;;
1070  -program-transform-name=* | --program-transform-name=* \
1071  | --program-transform-nam=* | --program-transform-na=* \
1072  | --program-transform-n=* | --program-transform-=* \
1073  | --program-transform=* | --program-transfor=* \
1074  | --program-transfo=* | --program-transf=* \
1075  | --program-trans=* | --program-tran=* \
1076  | --progr-tra=* | --program-tr=* | --program-t=*)
1077    program_transform_name=$ac_optarg ;;
1078
1079  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080    ac_prev=pdfdir ;;
1081  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082    pdfdir=$ac_optarg ;;
1083
1084  -psdir | --psdir | --psdi | --psd | --ps)
1085    ac_prev=psdir ;;
1086  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087    psdir=$ac_optarg ;;
1088
1089  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090  | -silent | --silent | --silen | --sile | --sil)
1091    silent=yes ;;
1092
1093  -runstatedir | --runstatedir | --runstatedi | --runstated \
1094  | --runstate | --runstat | --runsta | --runst | --runs \
1095  | --run | --ru | --r)
1096    ac_prev=runstatedir ;;
1097  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1098  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1099  | --run=* | --ru=* | --r=*)
1100    runstatedir=$ac_optarg ;;
1101
1102  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103    ac_prev=sbindir ;;
1104  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105  | --sbi=* | --sb=*)
1106    sbindir=$ac_optarg ;;
1107
1108  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110  | --sharedst | --shareds | --shared | --share | --shar \
1111  | --sha | --sh)
1112    ac_prev=sharedstatedir ;;
1113  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116  | --sha=* | --sh=*)
1117    sharedstatedir=$ac_optarg ;;
1118
1119  -site | --site | --sit)
1120    ac_prev=site ;;
1121  -site=* | --site=* | --sit=*)
1122    site=$ac_optarg ;;
1123
1124  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125    ac_prev=srcdir ;;
1126  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127    srcdir=$ac_optarg ;;
1128
1129  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130  | --syscon | --sysco | --sysc | --sys | --sy)
1131    ac_prev=sysconfdir ;;
1132  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134    sysconfdir=$ac_optarg ;;
1135
1136  -target | --target | --targe | --targ | --tar | --ta | --t)
1137    ac_prev=target_alias ;;
1138  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139    target_alias=$ac_optarg ;;
1140
1141  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142    verbose=yes ;;
1143
1144  -version | --version | --versio | --versi | --vers | -V)
1145    ac_init_version=: ;;
1146
1147  -with-* | --with-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: '$ac_useropt'"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=\$ac_optarg ;;
1162
1163  -without-* | --without-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: '$ac_useropt'"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=no ;;
1178
1179  --x)
1180    # Obsolete; use --with-x.
1181    with_x=yes ;;
1182
1183  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184  | --x-incl | --x-inc | --x-in | --x-i)
1185    ac_prev=x_includes ;;
1186  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188    x_includes=$ac_optarg ;;
1189
1190  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192    ac_prev=x_libraries ;;
1193  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195    x_libraries=$ac_optarg ;;
1196
1197  -*) as_fn_error $? "unrecognized option: '$ac_option'
1198Try '$0 --help' for more information"
1199    ;;
1200
1201  *=*)
1202    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203    # Reject names that are not valid shell variable names.
1204    case $ac_envvar in #(
1205      '' | [0-9]* | *[!_$as_cr_alnum]* )
1206      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1207    esac
1208    eval $ac_envvar=\$ac_optarg
1209    export $ac_envvar ;;
1210
1211  *)
1212    # FIXME: should be removed in autoconf 3.0.
1213    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1214    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1216    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217    ;;
1218
1219  esac
1220done
1221
1222if test -n "$ac_prev"; then
1223  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224  as_fn_error $? "missing argument to $ac_option"
1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228  case $enable_option_checking in
1229    no) ;;
1230    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232  esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237		datadir sysconfdir sharedstatedir localstatedir includedir \
1238		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239		libdir localedir mandir runstatedir
1240do
1241  eval ac_val=\$$ac_var
1242  # Remove trailing slashes.
1243  case $ac_val in
1244    */ )
1245      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246      eval $ac_var=\$ac_val;;
1247  esac
1248  # Be sure to have absolute directory names.
1249  case $ac_val in
1250    [\\/$]* | ?:[\\/]* )  continue;;
1251    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252  esac
1253  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254done
1255
1256# There might be people who depend on the old broken behavior: '$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265  if test "x$build_alias" = x; then
1266    cross_compiling=maybe
1267  elif test "x$build_alias" != "x$host_alias"; then
1268    cross_compiling=yes
1269  fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281  as_fn_error $? "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288  ac_srcdir_defaulted=yes
1289  # Try the directory containing this script, then the parent directory.
1290  ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293	 X"$as_myself" : 'X\(//\)$' \| \
1294	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295printf "%s\n" X"$as_myself" |
1296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)[^/].*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\).*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  s/.*/./; q'`
1313  srcdir=$ac_confdir
1314  if test ! -r "$srcdir/$ac_unique_file"; then
1315    srcdir=..
1316  fi
1317else
1318  ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327	pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330  srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_env_${ac_var}_value=\$${ac_var}
1341  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349  # Omit some internal or obsolete options to make the list less imposing.
1350  # This message is too long to be a string in the A/UX 3.1 sh.
1351  cat <<_ACEOF
1352'configure' configures xauth 1.1.3 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362  -h, --help              display this help and exit
1363      --help=short        display options specific to this package
1364      --help=recursive    display the short help of all the included packages
1365  -V, --version           display version information and exit
1366  -q, --quiet, --silent   do not print 'checking ...' messages
1367      --cache-file=FILE   cache test results in FILE [disabled]
1368  -C, --config-cache      alias for '--cache-file=config.cache'
1369  -n, --no-create         do not create output files
1370      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1371
1372Installation directories:
1373  --prefix=PREFIX         install architecture-independent files in PREFIX
1374                          [$ac_default_prefix]
1375  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                          [PREFIX]
1377
1378By default, 'make install' will install all the files in
1379'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1380an installation prefix other than '$ac_default_prefix' using '--prefix',
1381for instance '--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386  --bindir=DIR            user executables [EPREFIX/bin]
1387  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1393  --libdir=DIR            object code libraries [EPREFIX/lib]
1394  --includedir=DIR        C header files [PREFIX/include]
1395  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1396  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1397  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1398  --infodir=DIR           info documentation [DATAROOTDIR/info]
1399  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1400  --mandir=DIR            man documentation [DATAROOTDIR/man]
1401  --docdir=DIR            documentation root [DATAROOTDIR/doc/xauth]
1402  --htmldir=DIR           html documentation [DOCDIR]
1403  --dvidir=DIR            dvi documentation [DOCDIR]
1404  --pdfdir=DIR            pdf documentation [DOCDIR]
1405  --psdir=DIR             ps documentation [DOCDIR]
1406_ACEOF
1407
1408  cat <<\_ACEOF
1409
1410Program names:
1411  --program-prefix=PREFIX            prepend PREFIX to installed program names
1412  --program-suffix=SUFFIX            append SUFFIX to installed program names
1413  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1414
1415System types:
1416  --build=BUILD     configure for building on BUILD [guessed]
1417  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422  case $ac_init_help in
1423     short | recursive ) echo "Configuration of xauth 1.1.3:";;
1424   esac
1425  cat <<\_ACEOF
1426
1427Optional Features:
1428  --disable-option-checking  ignore unrecognized --enable/--with options
1429  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431  --enable-dependency-tracking
1432                          do not reject slow dependency extractors
1433  --disable-dependency-tracking
1434                          speeds up one-time build
1435  --enable-silent-rules   less verbose build output (undo: "make V=1")
1436  --disable-silent-rules  verbose build output (undo: "make V=0")
1437  --disable-selective-werror
1438                          Turn off selective compiler errors. (default:
1439                          enabled)
1440  --enable-strict-compilation
1441                          Enable all warnings from compiler and make them
1442                          errors (default: disabled)
1443  --disable-largefile     omit support for large files
1444  --enable-unix-transport Enable UNIX domain socket transport
1445  --enable-tcp-transport  Enable TCP socket transport
1446  --enable-ipv6           Enable IPv6 support
1447  --enable-local-transport
1448                          Enable os-specific local transport
1449  --enable-year2038       support timestamps after 2038
1450
1451Optional Packages:
1452  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1453  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1454  --with-lint             Use a lint-style source code checker (default:
1455                          disabled)
1456
1457Some influential environment variables:
1458  CC          C compiler command
1459  CFLAGS      C compiler flags
1460  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461              nonstandard directory <lib dir>
1462  LIBS        libraries to pass to the linker, e.g. -l<library>
1463  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464              you have headers in a nonstandard directory <include dir>
1465  PKG_CONFIG  path to pkg-config utility
1466  PKG_CONFIG_PATH
1467              directories to add to pkg-config's search path
1468  PKG_CONFIG_LIBDIR
1469              path overriding pkg-config's built-in search path
1470  XAUTH_CFLAGS
1471              C compiler flags for XAUTH, overriding pkg-config
1472  XAUTH_LIBS  linker flags for XAUTH, overriding pkg-config
1473  LINT        Path to a lint-style command
1474  LINT_FLAGS  Flags for the lint-style command
1475
1476Use these variables to override the choices made by 'configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
1479Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>.
1480_ACEOF
1481ac_status=$?
1482fi
1483
1484if test "$ac_init_help" = "recursive"; then
1485  # If there are subdirs, report their specific --help.
1486  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487    test -d "$ac_dir" ||
1488      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489      continue
1490    ac_builddir=.
1491
1492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
1495  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1496  # A ".." for each directory in $ac_dir_suffix.
1497  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498  case $ac_top_builddir_sub in
1499  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501  esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
1507
1508case $srcdir in
1509  .)  # We are building in place.
1510    ac_srcdir=.
1511    ac_top_srcdir=$ac_top_builddir_sub
1512    ac_abs_top_srcdir=$ac_pwd ;;
1513  [\\/]* | ?:[\\/]* )  # Absolute name.
1514    ac_srcdir=$srcdir$ac_dir_suffix;
1515    ac_top_srcdir=$srcdir
1516    ac_abs_top_srcdir=$srcdir ;;
1517  *) # Relative name.
1518    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519    ac_top_srcdir=$ac_top_build_prefix$srcdir
1520    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521esac
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524    cd "$ac_dir" || { ac_status=$?; continue; }
1525    # Check for configure.gnu first; this name is used for a wrapper for
1526    # Metaconfig's "Configure" on case-insensitive file systems.
1527    if test -f "$ac_srcdir/configure.gnu"; then
1528      echo &&
1529      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530    elif test -f "$ac_srcdir/configure"; then
1531      echo &&
1532      $SHELL "$ac_srcdir/configure" --help=recursive
1533    else
1534      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535    fi || ac_status=$?
1536    cd "$ac_pwd" || { ac_status=$?; break; }
1537  done
1538fi
1539
1540test -n "$ac_init_help" && exit $ac_status
1541if $ac_init_version; then
1542  cat <<\_ACEOF
1543xauth configure 1.1.3
1544generated by GNU Autoconf 2.72
1545
1546Copyright (C) 2023 Free Software Foundation, Inc.
1547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
1549_ACEOF
1550  exit
1551fi
1552
1553## ------------------------ ##
1554## Autoconf initialization. ##
1555## ------------------------ ##
1556
1557# ac_fn_c_try_compile LINENO
1558# --------------------------
1559# Try to compile conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_c_try_compile ()
1561{
1562  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563  rm -f conftest.$ac_objext conftest.beam
1564  if { { ac_try="$ac_compile"
1565case "(($ac_try" in
1566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567  *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570printf "%s\n" "$ac_try_echo"; } >&5
1571  (eval "$ac_compile") 2>conftest.err
1572  ac_status=$?
1573  if test -s conftest.err; then
1574    grep -v '^ *+' conftest.err >conftest.er1
1575    cat conftest.er1 >&5
1576    mv -f conftest.er1 conftest.err
1577  fi
1578  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579  test $ac_status = 0; } && {
1580	 test -z "$ac_c_werror_flag" ||
1581	 test ! -s conftest.err
1582       } && test -s conftest.$ac_objext
1583then :
1584  ac_retval=0
1585else case e in #(
1586  e) printf "%s\n" "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
1588
1589	ac_retval=1 ;;
1590esac
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 case e in #(
1610  e) 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 case e in #(
1619  e) eval "$3=no" ;;
1620esac
1621fi
1622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1623esac
1624fi
1625eval ac_res=\$$3
1626	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627printf "%s\n" "$ac_res" >&6; }
1628  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629
1630} # ac_fn_c_check_header_compile
1631
1632# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1633# ------------------------------------------------------------------
1634# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1635# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1636ac_fn_check_decl ()
1637{
1638  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639  as_decl_name=`echo $2|sed 's/ *(.*//'`
1640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1641printf %s "checking whether $as_decl_name is declared... " >&6; }
1642if eval test \${$3+y}
1643then :
1644  printf %s "(cached) " >&6
1645else case e in #(
1646  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1647  eval ac_save_FLAGS=\$$6
1648  as_fn_append $6 " $5"
1649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h.  */
1651$4
1652int
1653main (void)
1654{
1655#ifndef $as_decl_name
1656#ifdef __cplusplus
1657  (void) $as_decl_use;
1658#else
1659  (void) $as_decl_name;
1660#endif
1661#endif
1662
1663  ;
1664  return 0;
1665}
1666_ACEOF
1667if ac_fn_c_try_compile "$LINENO"
1668then :
1669  eval "$3=yes"
1670else case e in #(
1671  e) eval "$3=no" ;;
1672esac
1673fi
1674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1675  eval $6=\$ac_save_FLAGS
1676 ;;
1677esac
1678fi
1679eval ac_res=\$$3
1680	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681printf "%s\n" "$ac_res" >&6; }
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684} # ac_fn_check_decl
1685
1686# ac_fn_c_try_link LINENO
1687# -----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_link ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699printf "%s\n" "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && {
1709	 test -z "$ac_c_werror_flag" ||
1710	 test ! -s conftest.err
1711       } && test -s conftest$ac_exeext && {
1712	 test "$cross_compiling" = yes ||
1713	 test -x conftest$ac_exeext
1714       }
1715then :
1716  ac_retval=0
1717else case e in #(
1718  e) printf "%s\n" "$as_me: failed program was:" >&5
1719sed 's/^/| /' conftest.$ac_ext >&5
1720
1721	ac_retval=1 ;;
1722esac
1723fi
1724  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726  # interfere with the next link command; also delete a directory that is
1727  # left behind by Apple's compiler.  We do this before executing the actions.
1728  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730  as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_link
1733
1734# ac_fn_c_check_func LINENO FUNC VAR
1735# ----------------------------------
1736# Tests whether FUNC exists, setting the cache variable VAR accordingly
1737ac_fn_c_check_func ()
1738{
1739  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741printf %s "checking for $2... " >&6; }
1742if eval test \${$3+y}
1743then :
1744  printf %s "(cached) " >&6
1745else case e in #(
1746  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1750#define $2 innocuous_$2
1751
1752/* System header to define __stub macros and hopefully few prototypes,
1753   which can conflict with char $2 (void); below.  */
1754
1755#include <limits.h>
1756#undef $2
1757
1758/* Override any GCC internal prototype to avoid an error.
1759   Use char because int might match the return type of a GCC
1760   builtin and then its argument prototype would still apply.  */
1761#ifdef __cplusplus
1762extern "C"
1763#endif
1764char $2 (void);
1765/* The GNU C library defines this for functions which it implements
1766    to always fail with ENOSYS.  Some functions are actually named
1767    something starting with __ and the normal name is an alias.  */
1768#if defined __stub_$2 || defined __stub___$2
1769choke me
1770#endif
1771
1772int
1773main (void)
1774{
1775return $2 ();
1776  ;
1777  return 0;
1778}
1779_ACEOF
1780if ac_fn_c_try_link "$LINENO"
1781then :
1782  eval "$3=yes"
1783else case e in #(
1784  e) eval "$3=no" ;;
1785esac
1786fi
1787rm -f core conftest.err conftest.$ac_objext conftest.beam \
1788    conftest$ac_exeext conftest.$ac_ext ;;
1789esac
1790fi
1791eval ac_res=\$$3
1792	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793printf "%s\n" "$ac_res" >&6; }
1794  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796} # ac_fn_c_check_func
1797
1798# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1799# ----------------------------------------------------
1800# Tries to find if the field MEMBER exists in type AGGR, after including
1801# INCLUDES, setting cache variable VAR accordingly.
1802ac_fn_c_check_member ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1806printf %s "checking for $2.$3... " >&6; }
1807if eval test \${$4+y}
1808then :
1809  printf %s "(cached) " >&6
1810else case e in #(
1811  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813$5
1814int
1815main (void)
1816{
1817static $2 ac_aggr;
1818if (ac_aggr.$3)
1819return 0;
1820  ;
1821  return 0;
1822}
1823_ACEOF
1824if ac_fn_c_try_compile "$LINENO"
1825then :
1826  eval "$4=yes"
1827else case e in #(
1828  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h.  */
1830$5
1831int
1832main (void)
1833{
1834static $2 ac_aggr;
1835if (sizeof ac_aggr.$3)
1836return 0;
1837  ;
1838  return 0;
1839}
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"
1842then :
1843  eval "$4=yes"
1844else case e in #(
1845  e) eval "$4=no" ;;
1846esac
1847fi
1848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1849esac
1850fi
1851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1852esac
1853fi
1854eval ac_res=\$$4
1855	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856printf "%s\n" "$ac_res" >&6; }
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_member
1860
1861# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1862# -------------------------------------------
1863# Tests whether TYPE exists after having included INCLUDES, setting cache
1864# variable VAR accordingly.
1865ac_fn_c_check_type ()
1866{
1867  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869printf %s "checking for $2... " >&6; }
1870if eval test \${$3+y}
1871then :
1872  printf %s "(cached) " >&6
1873else case e in #(
1874  e) eval "$3=no"
1875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877$4
1878int
1879main (void)
1880{
1881if (sizeof ($2))
1882	 return 0;
1883  ;
1884  return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_compile "$LINENO"
1888then :
1889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h.  */
1891$4
1892int
1893main (void)
1894{
1895if (sizeof (($2)))
1896	    return 0;
1897  ;
1898  return 0;
1899}
1900_ACEOF
1901if ac_fn_c_try_compile "$LINENO"
1902then :
1903
1904else case e in #(
1905  e) eval "$3=yes" ;;
1906esac
1907fi
1908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1909fi
1910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1911esac
1912fi
1913eval ac_res=\$$3
1914	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915printf "%s\n" "$ac_res" >&6; }
1916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918} # ac_fn_c_check_type
1919ac_configure_args_raw=
1920for ac_arg
1921do
1922  case $ac_arg in
1923  *\'*)
1924    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1925  esac
1926  as_fn_append ac_configure_args_raw " '$ac_arg'"
1927done
1928
1929case $ac_configure_args_raw in
1930  *$as_nl*)
1931    ac_safe_unquote= ;;
1932  *)
1933    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1934    ac_unsafe_a="$ac_unsafe_z#~"
1935    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1936    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1937esac
1938
1939cat >config.log <<_ACEOF
1940This file contains any messages produced by compilers while
1941running configure, to aid debugging if configure makes a mistake.
1942
1943It was created by xauth $as_me 1.1.3, which was
1944generated by GNU Autoconf 2.72.  Invocation command line was
1945
1946  $ $0$ac_configure_args_raw
1947
1948_ACEOF
1949exec 5>>config.log
1950{
1951cat <<_ASUNAME
1952## --------- ##
1953## Platform. ##
1954## --------- ##
1955
1956hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1957uname -m = `(uname -m) 2>/dev/null || echo unknown`
1958uname -r = `(uname -r) 2>/dev/null || echo unknown`
1959uname -s = `(uname -s) 2>/dev/null || echo unknown`
1960uname -v = `(uname -v) 2>/dev/null || echo unknown`
1961
1962/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1963/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1964
1965/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1966/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1967/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1968/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1969/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1970/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1971/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1972
1973_ASUNAME
1974
1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976for as_dir in $PATH
1977do
1978  IFS=$as_save_IFS
1979  case $as_dir in #(((
1980    '') as_dir=./ ;;
1981    */) ;;
1982    *) as_dir=$as_dir/ ;;
1983  esac
1984    printf "%s\n" "PATH: $as_dir"
1985  done
1986IFS=$as_save_IFS
1987
1988} >&5
1989
1990cat >&5 <<_ACEOF
1991
1992
1993## ----------- ##
1994## Core tests. ##
1995## ----------- ##
1996
1997_ACEOF
1998
1999
2000# Keep a trace of the command line.
2001# Strip out --no-create and --no-recursion so they do not pile up.
2002# Strip out --silent because we don't want to record it for future runs.
2003# Also quote any args containing shell meta-characters.
2004# Make two passes to allow for proper duplicate-argument suppression.
2005ac_configure_args=
2006ac_configure_args0=
2007ac_configure_args1=
2008ac_must_keep_next=false
2009for ac_pass in 1 2
2010do
2011  for ac_arg
2012  do
2013    case $ac_arg in
2014    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2015    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2016    | -silent | --silent | --silen | --sile | --sil)
2017      continue ;;
2018    *\'*)
2019      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2020    esac
2021    case $ac_pass in
2022    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2023    2)
2024      as_fn_append ac_configure_args1 " '$ac_arg'"
2025      if test $ac_must_keep_next = true; then
2026	ac_must_keep_next=false # Got value, back to normal.
2027      else
2028	case $ac_arg in
2029	  *=* | --config-cache | -C | -disable-* | --disable-* \
2030	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2031	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2032	  | -with-* | --with-* | -without-* | --without-* | --x)
2033	    case "$ac_configure_args0 " in
2034	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2035	    esac
2036	    ;;
2037	  -* ) ac_must_keep_next=true ;;
2038	esac
2039      fi
2040      as_fn_append ac_configure_args " '$ac_arg'"
2041      ;;
2042    esac
2043  done
2044done
2045{ ac_configure_args0=; unset ac_configure_args0;}
2046{ ac_configure_args1=; unset ac_configure_args1;}
2047
2048# When interrupted or exit'd, cleanup temporary files, and complete
2049# config.log.  We remove comments because anyway the quotes in there
2050# would cause problems or look ugly.
2051# WARNING: Use '\'' to represent an apostrophe within the trap.
2052# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2053trap 'exit_status=$?
2054  # Sanitize IFS.
2055  IFS=" ""	$as_nl"
2056  # Save into config.log some information that might help in debugging.
2057  {
2058    echo
2059
2060    printf "%s\n" "## ---------------- ##
2061## Cache variables. ##
2062## ---------------- ##"
2063    echo
2064    # The following way of writing the cache mishandles newlines in values,
2065(
2066  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2067    eval ac_val=\$$ac_var
2068    case $ac_val in #(
2069    *${as_nl}*)
2070      case $ac_var in #(
2071      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2072printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2073      esac
2074      case $ac_var in #(
2075      _ | IFS | as_nl) ;; #(
2076      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2077      *) { eval $ac_var=; unset $ac_var;} ;;
2078      esac ;;
2079    esac
2080  done
2081  (set) 2>&1 |
2082    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2083    *${as_nl}ac_space=\ *)
2084      sed -n \
2085	"s/'\''/'\''\\\\'\'''\''/g;
2086	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2087      ;; #(
2088    *)
2089      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2090      ;;
2091    esac |
2092    sort
2093)
2094    echo
2095
2096    printf "%s\n" "## ----------------- ##
2097## Output variables. ##
2098## ----------------- ##"
2099    echo
2100    for ac_var in $ac_subst_vars
2101    do
2102      eval ac_val=\$$ac_var
2103      case $ac_val in
2104      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105      esac
2106      printf "%s\n" "$ac_var='\''$ac_val'\''"
2107    done | sort
2108    echo
2109
2110    if test -n "$ac_subst_files"; then
2111      printf "%s\n" "## ------------------- ##
2112## File substitutions. ##
2113## ------------------- ##"
2114      echo
2115      for ac_var in $ac_subst_files
2116      do
2117	eval ac_val=\$$ac_var
2118	case $ac_val in
2119	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120	esac
2121	printf "%s\n" "$ac_var='\''$ac_val'\''"
2122      done | sort
2123      echo
2124    fi
2125
2126    if test -s confdefs.h; then
2127      printf "%s\n" "## ----------- ##
2128## confdefs.h. ##
2129## ----------- ##"
2130      echo
2131      cat confdefs.h
2132      echo
2133    fi
2134    test "$ac_signal" != 0 &&
2135      printf "%s\n" "$as_me: caught signal $ac_signal"
2136    printf "%s\n" "$as_me: exit $exit_status"
2137  } >&5
2138  rm -f core *.core core.conftest.* &&
2139    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2140    exit $exit_status
2141' 0
2142for ac_signal in 1 2 13 15; do
2143  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2144done
2145ac_signal=0
2146
2147# confdefs.h avoids OS command line length limits that DEFS can exceed.
2148rm -f -r conftest* confdefs.h
2149
2150printf "%s\n" "/* confdefs.h */" > confdefs.h
2151
2152# Predefined preprocessor variables.
2153
2154printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2155
2156printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2157
2158printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2159
2160printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2161
2162printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2163
2164printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2165
2166
2167# Let the site file select an alternate cache file if it wants to.
2168# Prefer an explicitly selected file to automatically selected ones.
2169if test -n "$CONFIG_SITE"; then
2170  ac_site_files="$CONFIG_SITE"
2171elif test "x$prefix" != xNONE; then
2172  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2173else
2174  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2175fi
2176
2177for ac_site_file in $ac_site_files
2178do
2179  case $ac_site_file in #(
2180  */*) :
2181     ;; #(
2182  *) :
2183    ac_site_file=./$ac_site_file ;;
2184esac
2185  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2186    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2187printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2188    sed 's/^/| /' "$ac_site_file" >&5
2189    . "$ac_site_file" \
2190      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2191printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2192as_fn_error $? "failed to load site script $ac_site_file
2193See 'config.log' for more details" "$LINENO" 5; }
2194  fi
2195done
2196
2197if test -r "$cache_file"; then
2198  # Some versions of bash will fail to source /dev/null (special files
2199  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2200  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2201    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2202printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2203    case $cache_file in
2204      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2205      *)                      . "./$cache_file";;
2206    esac
2207  fi
2208else
2209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2210printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2211  >$cache_file
2212fi
2213
2214as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2215# Test code for whether the C compiler supports C89 (global declarations)
2216ac_c_conftest_c89_globals='
2217/* Does the compiler advertise C89 conformance?
2218   Do not test the value of __STDC__, because some compilers set it to 0
2219   while being otherwise adequately conformant. */
2220#if !defined __STDC__
2221# error "Compiler does not advertise C89 conformance"
2222#endif
2223
2224#include <stddef.h>
2225#include <stdarg.h>
2226struct stat;
2227/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2228struct buf { int x; };
2229struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2230static char *e (char **p, int i)
2231{
2232  return p[i];
2233}
2234static char *f (char * (*g) (char **, int), char **p, ...)
2235{
2236  char *s;
2237  va_list v;
2238  va_start (v,p);
2239  s = g (p, va_arg (v,int));
2240  va_end (v);
2241  return s;
2242}
2243
2244/* C89 style stringification. */
2245#define noexpand_stringify(a) #a
2246const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2247
2248/* C89 style token pasting.  Exercises some of the corner cases that
2249   e.g. old MSVC gets wrong, but not very hard. */
2250#define noexpand_concat(a,b) a##b
2251#define expand_concat(a,b) noexpand_concat(a,b)
2252extern int vA;
2253extern int vbee;
2254#define aye A
2255#define bee B
2256int *pvA = &expand_concat(v,aye);
2257int *pvbee = &noexpand_concat(v,bee);
2258
2259/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2260   function prototypes and stuff, but not \xHH hex character constants.
2261   These do not provoke an error unfortunately, instead are silently treated
2262   as an "x".  The following induces an error, until -std is added to get
2263   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2264   array size at least.  It is necessary to write \x00 == 0 to get something
2265   that is true only with -std.  */
2266int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2267
2268/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2269   inside strings and character constants.  */
2270#define FOO(x) '\''x'\''
2271int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2272
2273int test (int i, double x);
2274struct s1 {int (*f) (int a);};
2275struct s2 {int (*f) (double a);};
2276int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2277               int, int);'
2278
2279# Test code for whether the C compiler supports C89 (body of main).
2280ac_c_conftest_c89_main='
2281ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2282'
2283
2284# Test code for whether the C compiler supports C99 (global declarations)
2285ac_c_conftest_c99_globals='
2286/* Does the compiler advertise C99 conformance? */
2287#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2288# error "Compiler does not advertise C99 conformance"
2289#endif
2290
2291// See if C++-style comments work.
2292
2293#include <stdbool.h>
2294extern int puts (const char *);
2295extern int printf (const char *, ...);
2296extern int dprintf (int, const char *, ...);
2297extern void *malloc (size_t);
2298extern void free (void *);
2299
2300// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2301// dprintf is used instead of fprintf to avoid needing to declare
2302// FILE and stderr.
2303#define debug(...) dprintf (2, __VA_ARGS__)
2304#define showlist(...) puts (#__VA_ARGS__)
2305#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2306static void
2307test_varargs_macros (void)
2308{
2309  int x = 1234;
2310  int y = 5678;
2311  debug ("Flag");
2312  debug ("X = %d\n", x);
2313  showlist (The first, second, and third items.);
2314  report (x>y, "x is %d but y is %d", x, y);
2315}
2316
2317// Check long long types.
2318#define BIG64 18446744073709551615ull
2319#define BIG32 4294967295ul
2320#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2321#if !BIG_OK
2322  #error "your preprocessor is broken"
2323#endif
2324#if BIG_OK
2325#else
2326  #error "your preprocessor is broken"
2327#endif
2328static long long int bignum = -9223372036854775807LL;
2329static unsigned long long int ubignum = BIG64;
2330
2331struct incomplete_array
2332{
2333  int datasize;
2334  double data[];
2335};
2336
2337struct named_init {
2338  int number;
2339  const wchar_t *name;
2340  double average;
2341};
2342
2343typedef const char *ccp;
2344
2345static inline int
2346test_restrict (ccp restrict text)
2347{
2348  // Iterate through items via the restricted pointer.
2349  // Also check for declarations in for loops.
2350  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2351    continue;
2352  return 0;
2353}
2354
2355// Check varargs and va_copy.
2356static bool
2357test_varargs (const char *format, ...)
2358{
2359  va_list args;
2360  va_start (args, format);
2361  va_list args_copy;
2362  va_copy (args_copy, args);
2363
2364  const char *str = "";
2365  int number = 0;
2366  float fnumber = 0;
2367
2368  while (*format)
2369    {
2370      switch (*format++)
2371	{
2372	case '\''s'\'': // string
2373	  str = va_arg (args_copy, const char *);
2374	  break;
2375	case '\''d'\'': // int
2376	  number = va_arg (args_copy, int);
2377	  break;
2378	case '\''f'\'': // float
2379	  fnumber = va_arg (args_copy, double);
2380	  break;
2381	default:
2382	  break;
2383	}
2384    }
2385  va_end (args_copy);
2386  va_end (args);
2387
2388  return *str && number && fnumber;
2389}
2390'
2391
2392# Test code for whether the C compiler supports C99 (body of main).
2393ac_c_conftest_c99_main='
2394  // Check bool.
2395  _Bool success = false;
2396  success |= (argc != 0);
2397
2398  // Check restrict.
2399  if (test_restrict ("String literal") == 0)
2400    success = true;
2401  char *restrict newvar = "Another string";
2402
2403  // Check varargs.
2404  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2405  test_varargs_macros ();
2406
2407  // Check flexible array members.
2408  struct incomplete_array *ia =
2409    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2410  ia->datasize = 10;
2411  for (int i = 0; i < ia->datasize; ++i)
2412    ia->data[i] = i * 1.234;
2413  // Work around memory leak warnings.
2414  free (ia);
2415
2416  // Check named initializers.
2417  struct named_init ni = {
2418    .number = 34,
2419    .name = L"Test wide string",
2420    .average = 543.34343,
2421  };
2422
2423  ni.number = 58;
2424
2425  int dynamic_array[ni.number];
2426  dynamic_array[0] = argv[0][0];
2427  dynamic_array[ni.number - 1] = 543;
2428
2429  // work around unused variable warnings
2430  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2431	 || dynamic_array[ni.number - 1] != 543);
2432'
2433
2434# Test code for whether the C compiler supports C11 (global declarations)
2435ac_c_conftest_c11_globals='
2436/* Does the compiler advertise C11 conformance? */
2437#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2438# error "Compiler does not advertise C11 conformance"
2439#endif
2440
2441// Check _Alignas.
2442char _Alignas (double) aligned_as_double;
2443char _Alignas (0) no_special_alignment;
2444extern char aligned_as_int;
2445char _Alignas (0) _Alignas (int) aligned_as_int;
2446
2447// Check _Alignof.
2448enum
2449{
2450  int_alignment = _Alignof (int),
2451  int_array_alignment = _Alignof (int[100]),
2452  char_alignment = _Alignof (char)
2453};
2454_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2455
2456// Check _Noreturn.
2457int _Noreturn does_not_return (void) { for (;;) continue; }
2458
2459// Check _Static_assert.
2460struct test_static_assert
2461{
2462  int x;
2463  _Static_assert (sizeof (int) <= sizeof (long int),
2464                  "_Static_assert does not work in struct");
2465  long int y;
2466};
2467
2468// Check UTF-8 literals.
2469#define u8 syntax error!
2470char const utf8_literal[] = u8"happens to be ASCII" "another string";
2471
2472// Check duplicate typedefs.
2473typedef long *long_ptr;
2474typedef long int *long_ptr;
2475typedef long_ptr long_ptr;
2476
2477// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2478struct anonymous
2479{
2480  union {
2481    struct { int i; int j; };
2482    struct { int k; long int l; } w;
2483  };
2484  int m;
2485} v1;
2486'
2487
2488# Test code for whether the C compiler supports C11 (body of main).
2489ac_c_conftest_c11_main='
2490  _Static_assert ((offsetof (struct anonymous, i)
2491		   == offsetof (struct anonymous, w.k)),
2492		  "Anonymous union alignment botch");
2493  v1.i = 2;
2494  v1.w.k = 5;
2495  ok |= v1.i != 5;
2496'
2497
2498# Test code for whether the C compiler supports C11 (complete).
2499ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2500${ac_c_conftest_c99_globals}
2501${ac_c_conftest_c11_globals}
2502
2503int
2504main (int argc, char **argv)
2505{
2506  int ok = 0;
2507  ${ac_c_conftest_c89_main}
2508  ${ac_c_conftest_c99_main}
2509  ${ac_c_conftest_c11_main}
2510  return ok;
2511}
2512"
2513
2514# Test code for whether the C compiler supports C99 (complete).
2515ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2516${ac_c_conftest_c99_globals}
2517
2518int
2519main (int argc, char **argv)
2520{
2521  int ok = 0;
2522  ${ac_c_conftest_c89_main}
2523  ${ac_c_conftest_c99_main}
2524  return ok;
2525}
2526"
2527
2528# Test code for whether the C compiler supports C89 (complete).
2529ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2530
2531int
2532main (int argc, char **argv)
2533{
2534  int ok = 0;
2535  ${ac_c_conftest_c89_main}
2536  return ok;
2537}
2538"
2539
2540as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2541as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2542as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2543as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2544as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2545as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2546as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2547as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2548as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2549as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2550
2551# Auxiliary files required by this configure script.
2552ac_aux_files="config.guess config.sub missing install-sh compile"
2553
2554# Locations in which to look for auxiliary files.
2555ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2556
2557# Search for a directory containing all of the required auxiliary files,
2558# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2559# If we don't find one directory that contains all the files we need,
2560# we report the set of missing files from the *first* directory in
2561# $ac_aux_dir_candidates and give up.
2562ac_missing_aux_files=""
2563ac_first_candidate=:
2564printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566as_found=false
2567for as_dir in $ac_aux_dir_candidates
2568do
2569  IFS=$as_save_IFS
2570  case $as_dir in #(((
2571    '') as_dir=./ ;;
2572    */) ;;
2573    *) as_dir=$as_dir/ ;;
2574  esac
2575  as_found=:
2576
2577  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2578  ac_aux_dir_found=yes
2579  ac_install_sh=
2580  for ac_aux in $ac_aux_files
2581  do
2582    # As a special case, if "install-sh" is required, that requirement
2583    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2584    # and $ac_install_sh is set appropriately for whichever one is found.
2585    if test x"$ac_aux" = x"install-sh"
2586    then
2587      if test -f "${as_dir}install-sh"; then
2588        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2589        ac_install_sh="${as_dir}install-sh -c"
2590      elif test -f "${as_dir}install.sh"; then
2591        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2592        ac_install_sh="${as_dir}install.sh -c"
2593      elif test -f "${as_dir}shtool"; then
2594        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2595        ac_install_sh="${as_dir}shtool install -c"
2596      else
2597        ac_aux_dir_found=no
2598        if $ac_first_candidate; then
2599          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2600        else
2601          break
2602        fi
2603      fi
2604    else
2605      if test -f "${as_dir}${ac_aux}"; then
2606        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2607      else
2608        ac_aux_dir_found=no
2609        if $ac_first_candidate; then
2610          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2611        else
2612          break
2613        fi
2614      fi
2615    fi
2616  done
2617  if test "$ac_aux_dir_found" = yes; then
2618    ac_aux_dir="$as_dir"
2619    break
2620  fi
2621  ac_first_candidate=false
2622
2623  as_found=false
2624done
2625IFS=$as_save_IFS
2626if $as_found
2627then :
2628
2629else case e in #(
2630  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2631esac
2632fi
2633
2634
2635# These three variables are undocumented and unsupported,
2636# and are intended to be withdrawn in a future Autoconf release.
2637# They can cause serious problems if a builder's source tree is in a directory
2638# whose full name contains unusual characters.
2639if test -f "${ac_aux_dir}config.guess"; then
2640  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2641fi
2642if test -f "${ac_aux_dir}config.sub"; then
2643  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2644fi
2645if test -f "$ac_aux_dir/configure"; then
2646  ac_configure="$SHELL ${ac_aux_dir}configure"
2647fi
2648
2649# Check that the precious variables saved in the cache have kept the same
2650# value.
2651ac_cache_corrupted=false
2652for ac_var in $ac_precious_vars; do
2653  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2654  eval ac_new_set=\$ac_env_${ac_var}_set
2655  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2656  eval ac_new_val=\$ac_env_${ac_var}_value
2657  case $ac_old_set,$ac_new_set in
2658    set,)
2659      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2660printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2661      ac_cache_corrupted=: ;;
2662    ,set)
2663      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2664printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2665      ac_cache_corrupted=: ;;
2666    ,);;
2667    *)
2668      if test "x$ac_old_val" != "x$ac_new_val"; then
2669	# differences in whitespace do not lead to failure.
2670	ac_old_val_w=`echo x $ac_old_val`
2671	ac_new_val_w=`echo x $ac_new_val`
2672	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2673	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2674printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2675	  ac_cache_corrupted=:
2676	else
2677	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2678printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2679	  eval $ac_var=\$ac_old_val
2680	fi
2681	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2682printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2683	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2684printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2685      fi;;
2686  esac
2687  # Pass precious variables to config.status.
2688  if test "$ac_new_set" = set; then
2689    case $ac_new_val in
2690    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2691    *) ac_arg=$ac_var=$ac_new_val ;;
2692    esac
2693    case " $ac_configure_args " in
2694      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2695      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2696    esac
2697  fi
2698done
2699if $ac_cache_corrupted; then
2700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2701printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2703printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2704  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2705	    and start over" "$LINENO" 5
2706fi
2707## -------------------- ##
2708## Main body of script. ##
2709## -------------------- ##
2710
2711ac_ext=c
2712ac_cpp='$CPP $CPPFLAGS'
2713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716
2717
2718
2719ac_config_headers="$ac_config_headers config.h"
2720
2721
2722# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2723# Must be called before any macros that run the compiler (like
2724# AC_PROG_LIBTOOL) to avoid autoconf errors.
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736# Expand $ac_aux_dir to an absolute path.
2737am_aux_dir=`cd "$ac_aux_dir" && pwd`
2738
2739ac_ext=c
2740ac_cpp='$CPP $CPPFLAGS'
2741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744if test -n "$ac_tool_prefix"; then
2745  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2746set dummy ${ac_tool_prefix}gcc; ac_word=$2
2747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748printf %s "checking for $ac_word... " >&6; }
2749if test ${ac_cv_prog_CC+y}
2750then :
2751  printf %s "(cached) " >&6
2752else case e in #(
2753  e) if test -n "$CC"; then
2754  ac_cv_prog_CC="$CC" # Let the user override the test.
2755else
2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759  IFS=$as_save_IFS
2760  case $as_dir in #(((
2761    '') as_dir=./ ;;
2762    */) ;;
2763    *) as_dir=$as_dir/ ;;
2764  esac
2765    for ac_exec_ext in '' $ac_executable_extensions; do
2766  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2767    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2768    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2769    break 2
2770  fi
2771done
2772  done
2773IFS=$as_save_IFS
2774
2775fi ;;
2776esac
2777fi
2778CC=$ac_cv_prog_CC
2779if test -n "$CC"; then
2780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2781printf "%s\n" "$CC" >&6; }
2782else
2783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784printf "%s\n" "no" >&6; }
2785fi
2786
2787
2788fi
2789if test -z "$ac_cv_prog_CC"; then
2790  ac_ct_CC=$CC
2791  # Extract the first word of "gcc", so it can be a program name with args.
2792set dummy gcc; ac_word=$2
2793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794printf %s "checking for $ac_word... " >&6; }
2795if test ${ac_cv_prog_ac_ct_CC+y}
2796then :
2797  printf %s "(cached) " >&6
2798else case e in #(
2799  e) if test -n "$ac_ct_CC"; then
2800  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801else
2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805  IFS=$as_save_IFS
2806  case $as_dir in #(((
2807    '') as_dir=./ ;;
2808    */) ;;
2809    *) as_dir=$as_dir/ ;;
2810  esac
2811    for ac_exec_ext in '' $ac_executable_extensions; do
2812  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2813    ac_cv_prog_ac_ct_CC="gcc"
2814    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2815    break 2
2816  fi
2817done
2818  done
2819IFS=$as_save_IFS
2820
2821fi ;;
2822esac
2823fi
2824ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825if test -n "$ac_ct_CC"; then
2826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2827printf "%s\n" "$ac_ct_CC" >&6; }
2828else
2829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830printf "%s\n" "no" >&6; }
2831fi
2832
2833  if test "x$ac_ct_CC" = x; then
2834    CC=""
2835  else
2836    case $cross_compiling:$ac_tool_warned in
2837yes:)
2838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2839printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2840ac_tool_warned=yes ;;
2841esac
2842    CC=$ac_ct_CC
2843  fi
2844else
2845  CC="$ac_cv_prog_CC"
2846fi
2847
2848if test -z "$CC"; then
2849          if test -n "$ac_tool_prefix"; then
2850    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2851set dummy ${ac_tool_prefix}cc; ac_word=$2
2852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853printf %s "checking for $ac_word... " >&6; }
2854if test ${ac_cv_prog_CC+y}
2855then :
2856  printf %s "(cached) " >&6
2857else case e in #(
2858  e) if test -n "$CC"; then
2859  ac_cv_prog_CC="$CC" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864  IFS=$as_save_IFS
2865  case $as_dir in #(((
2866    '') as_dir=./ ;;
2867    */) ;;
2868    *) as_dir=$as_dir/ ;;
2869  esac
2870    for ac_exec_ext in '' $ac_executable_extensions; do
2871  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2872    ac_cv_prog_CC="${ac_tool_prefix}cc"
2873    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2874    break 2
2875  fi
2876done
2877  done
2878IFS=$as_save_IFS
2879
2880fi ;;
2881esac
2882fi
2883CC=$ac_cv_prog_CC
2884if test -n "$CC"; then
2885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886printf "%s\n" "$CC" >&6; }
2887else
2888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889printf "%s\n" "no" >&6; }
2890fi
2891
2892
2893  fi
2894fi
2895if test -z "$CC"; then
2896  # Extract the first word of "cc", so it can be a program name with args.
2897set dummy cc; ac_word=$2
2898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899printf %s "checking for $ac_word... " >&6; }
2900if test ${ac_cv_prog_CC+y}
2901then :
2902  printf %s "(cached) " >&6
2903else case e in #(
2904  e) if test -n "$CC"; then
2905  ac_cv_prog_CC="$CC" # Let the user override the test.
2906else
2907  ac_prog_rejected=no
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911  IFS=$as_save_IFS
2912  case $as_dir in #(((
2913    '') as_dir=./ ;;
2914    */) ;;
2915    *) as_dir=$as_dir/ ;;
2916  esac
2917    for ac_exec_ext in '' $ac_executable_extensions; do
2918  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2919    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2920       ac_prog_rejected=yes
2921       continue
2922     fi
2923    ac_cv_prog_CC="cc"
2924    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2925    break 2
2926  fi
2927done
2928  done
2929IFS=$as_save_IFS
2930
2931if test $ac_prog_rejected = yes; then
2932  # We found a bogon in the path, so make sure we never use it.
2933  set dummy $ac_cv_prog_CC
2934  shift
2935  if test $# != 0; then
2936    # We chose a different compiler from the bogus one.
2937    # However, it has the same basename, so the bogon will be chosen
2938    # first if we set CC to just the basename; use the full file name.
2939    shift
2940    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2941  fi
2942fi
2943fi ;;
2944esac
2945fi
2946CC=$ac_cv_prog_CC
2947if test -n "$CC"; then
2948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949printf "%s\n" "$CC" >&6; }
2950else
2951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952printf "%s\n" "no" >&6; }
2953fi
2954
2955
2956fi
2957if test -z "$CC"; then
2958  if test -n "$ac_tool_prefix"; then
2959  for ac_prog in cl.exe
2960  do
2961    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2962set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964printf %s "checking for $ac_word... " >&6; }
2965if test ${ac_cv_prog_CC+y}
2966then :
2967  printf %s "(cached) " >&6
2968else case e in #(
2969  e) if test -n "$CC"; then
2970  ac_cv_prog_CC="$CC" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  case $as_dir in #(((
2977    '') as_dir=./ ;;
2978    */) ;;
2979    *) as_dir=$as_dir/ ;;
2980  esac
2981    for ac_exec_ext in '' $ac_executable_extensions; do
2982  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2983    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2984    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2985    break 2
2986  fi
2987done
2988  done
2989IFS=$as_save_IFS
2990
2991fi ;;
2992esac
2993fi
2994CC=$ac_cv_prog_CC
2995if test -n "$CC"; then
2996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997printf "%s\n" "$CC" >&6; }
2998else
2999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000printf "%s\n" "no" >&6; }
3001fi
3002
3003
3004    test -n "$CC" && break
3005  done
3006fi
3007if test -z "$CC"; then
3008  ac_ct_CC=$CC
3009  for ac_prog in cl.exe
3010do
3011  # Extract the first word of "$ac_prog", so it can be a program name with args.
3012set dummy $ac_prog; ac_word=$2
3013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014printf %s "checking for $ac_word... " >&6; }
3015if test ${ac_cv_prog_ac_ct_CC+y}
3016then :
3017  printf %s "(cached) " >&6
3018else case e in #(
3019  e) if test -n "$ac_ct_CC"; then
3020  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025  IFS=$as_save_IFS
3026  case $as_dir in #(((
3027    '') as_dir=./ ;;
3028    */) ;;
3029    *) as_dir=$as_dir/ ;;
3030  esac
3031    for ac_exec_ext in '' $ac_executable_extensions; do
3032  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3033    ac_cv_prog_ac_ct_CC="$ac_prog"
3034    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3035    break 2
3036  fi
3037done
3038  done
3039IFS=$as_save_IFS
3040
3041fi ;;
3042esac
3043fi
3044ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045if test -n "$ac_ct_CC"; then
3046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3047printf "%s\n" "$ac_ct_CC" >&6; }
3048else
3049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050printf "%s\n" "no" >&6; }
3051fi
3052
3053
3054  test -n "$ac_ct_CC" && break
3055done
3056
3057  if test "x$ac_ct_CC" = x; then
3058    CC=""
3059  else
3060    case $cross_compiling:$ac_tool_warned in
3061yes:)
3062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064ac_tool_warned=yes ;;
3065esac
3066    CC=$ac_ct_CC
3067  fi
3068fi
3069
3070fi
3071if test -z "$CC"; then
3072  if test -n "$ac_tool_prefix"; then
3073  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3074set dummy ${ac_tool_prefix}clang; ac_word=$2
3075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076printf %s "checking for $ac_word... " >&6; }
3077if test ${ac_cv_prog_CC+y}
3078then :
3079  printf %s "(cached) " >&6
3080else case e in #(
3081  e) if test -n "$CC"; then
3082  ac_cv_prog_CC="$CC" # Let the user override the test.
3083else
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087  IFS=$as_save_IFS
3088  case $as_dir in #(((
3089    '') as_dir=./ ;;
3090    */) ;;
3091    *) as_dir=$as_dir/ ;;
3092  esac
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3095    ac_cv_prog_CC="${ac_tool_prefix}clang"
3096    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099done
3100  done
3101IFS=$as_save_IFS
3102
3103fi ;;
3104esac
3105fi
3106CC=$ac_cv_prog_CC
3107if test -n "$CC"; then
3108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109printf "%s\n" "$CC" >&6; }
3110else
3111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112printf "%s\n" "no" >&6; }
3113fi
3114
3115
3116fi
3117if test -z "$ac_cv_prog_CC"; then
3118  ac_ct_CC=$CC
3119  # Extract the first word of "clang", so it can be a program name with args.
3120set dummy clang; ac_word=$2
3121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122printf %s "checking for $ac_word... " >&6; }
3123if test ${ac_cv_prog_ac_ct_CC+y}
3124then :
3125  printf %s "(cached) " >&6
3126else case e in #(
3127  e) if test -n "$ac_ct_CC"; then
3128  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133  IFS=$as_save_IFS
3134  case $as_dir in #(((
3135    '') as_dir=./ ;;
3136    */) ;;
3137    *) as_dir=$as_dir/ ;;
3138  esac
3139    for ac_exec_ext in '' $ac_executable_extensions; do
3140  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3141    ac_cv_prog_ac_ct_CC="clang"
3142    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3143    break 2
3144  fi
3145done
3146  done
3147IFS=$as_save_IFS
3148
3149fi ;;
3150esac
3151fi
3152ac_ct_CC=$ac_cv_prog_ac_ct_CC
3153if test -n "$ac_ct_CC"; then
3154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3155printf "%s\n" "$ac_ct_CC" >&6; }
3156else
3157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158printf "%s\n" "no" >&6; }
3159fi
3160
3161  if test "x$ac_ct_CC" = x; then
3162    CC=""
3163  else
3164    case $cross_compiling:$ac_tool_warned in
3165yes:)
3166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168ac_tool_warned=yes ;;
3169esac
3170    CC=$ac_ct_CC
3171  fi
3172else
3173  CC="$ac_cv_prog_CC"
3174fi
3175
3176fi
3177
3178
3179test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3180printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3181as_fn_error $? "no acceptable C compiler found in \$PATH
3182See 'config.log' for more details" "$LINENO" 5; }
3183
3184# Provide some information about the compiler.
3185printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3186set X $ac_compile
3187ac_compiler=$2
3188for ac_option in --version -v -V -qversion -version; do
3189  { { ac_try="$ac_compiler $ac_option >&5"
3190case "(($ac_try" in
3191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192  *) ac_try_echo=$ac_try;;
3193esac
3194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195printf "%s\n" "$ac_try_echo"; } >&5
3196  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3197  ac_status=$?
3198  if test -s conftest.err; then
3199    sed '10a\
3200... rest of stderr output deleted ...
3201         10q' conftest.err >conftest.er1
3202    cat conftest.er1 >&5
3203  fi
3204  rm -f conftest.er1 conftest.err
3205  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206  test $ac_status = 0; }
3207done
3208
3209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210/* end confdefs.h.  */
3211
3212int
3213main (void)
3214{
3215
3216  ;
3217  return 0;
3218}
3219_ACEOF
3220ac_clean_files_save=$ac_clean_files
3221ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3222# Try to create an executable without -o first, disregard a.out.
3223# It will help us diagnose broken compilers, and finding out an intuition
3224# of exeext.
3225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3226printf %s "checking whether the C compiler works... " >&6; }
3227ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3228
3229# The possible output files:
3230ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3231
3232ac_rmfiles=
3233for ac_file in $ac_files
3234do
3235  case $ac_file in
3236    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3237    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3238  esac
3239done
3240rm -f $ac_rmfiles
3241
3242if { { ac_try="$ac_link_default"
3243case "(($ac_try" in
3244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245  *) ac_try_echo=$ac_try;;
3246esac
3247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248printf "%s\n" "$ac_try_echo"; } >&5
3249  (eval "$ac_link_default") 2>&5
3250  ac_status=$?
3251  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252  test $ac_status = 0; }
3253then :
3254  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3255# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3256# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3257# so that the user can short-circuit this test for compilers unknown to
3258# Autoconf.
3259for ac_file in $ac_files ''
3260do
3261  test -f "$ac_file" || continue
3262  case $ac_file in
3263    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3264	;;
3265    [ab].out )
3266	# We found the default executable, but exeext='' is most
3267	# certainly right.
3268	break;;
3269    *.* )
3270	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3271	then :; else
3272	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3273	fi
3274	# We set ac_cv_exeext here because the later test for it is not
3275	# safe: cross compilers may not add the suffix if given an '-o'
3276	# argument, so we may need to know it at that point already.
3277	# Even if this section looks crufty: it has the advantage of
3278	# actually working.
3279	break;;
3280    * )
3281	break;;
3282  esac
3283done
3284test "$ac_cv_exeext" = no && ac_cv_exeext=
3285
3286else case e in #(
3287  e) ac_file='' ;;
3288esac
3289fi
3290if test -z "$ac_file"
3291then :
3292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293printf "%s\n" "no" >&6; }
3294printf "%s\n" "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3298printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3299as_fn_error 77 "C compiler cannot create executables
3300See 'config.log' for more details" "$LINENO" 5; }
3301else case e in #(
3302  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303printf "%s\n" "yes" >&6; } ;;
3304esac
3305fi
3306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307printf %s "checking for C compiler default output file name... " >&6; }
3308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309printf "%s\n" "$ac_file" >&6; }
3310ac_exeext=$ac_cv_exeext
3311
3312rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3313ac_clean_files=$ac_clean_files_save
3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3315printf %s "checking for suffix of executables... " >&6; }
3316if { { ac_try="$ac_link"
3317case "(($ac_try" in
3318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319  *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322printf "%s\n" "$ac_try_echo"; } >&5
3323  (eval "$ac_link") 2>&5
3324  ac_status=$?
3325  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326  test $ac_status = 0; }
3327then :
3328  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3329# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3330# work properly (i.e., refer to 'conftest.exe'), while it won't with
3331# 'rm'.
3332for ac_file in conftest.exe conftest conftest.*; do
3333  test -f "$ac_file" || continue
3334  case $ac_file in
3335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3336    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3337	  break;;
3338    * ) break;;
3339  esac
3340done
3341else case e in #(
3342  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3343printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3344as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3345See 'config.log' for more details" "$LINENO" 5; } ;;
3346esac
3347fi
3348rm -f conftest conftest$ac_cv_exeext
3349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3350printf "%s\n" "$ac_cv_exeext" >&6; }
3351
3352rm -f conftest.$ac_ext
3353EXEEXT=$ac_cv_exeext
3354ac_exeext=$EXEEXT
3355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h.  */
3357#include <stdio.h>
3358int
3359main (void)
3360{
3361FILE *f = fopen ("conftest.out", "w");
3362 if (!f)
3363  return 1;
3364 return ferror (f) || fclose (f) != 0;
3365
3366  ;
3367  return 0;
3368}
3369_ACEOF
3370ac_clean_files="$ac_clean_files conftest.out"
3371# Check that the compiler produces executables we can run.  If not, either
3372# the compiler is broken, or we cross compile.
3373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3374printf %s "checking whether we are cross compiling... " >&6; }
3375if test "$cross_compiling" != yes; then
3376  { { ac_try="$ac_link"
3377case "(($ac_try" in
3378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379  *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382printf "%s\n" "$ac_try_echo"; } >&5
3383  (eval "$ac_link") 2>&5
3384  ac_status=$?
3385  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386  test $ac_status = 0; }
3387  if { ac_try='./conftest$ac_cv_exeext'
3388  { { case "(($ac_try" in
3389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390  *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393printf "%s\n" "$ac_try_echo"; } >&5
3394  (eval "$ac_try") 2>&5
3395  ac_status=$?
3396  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397  test $ac_status = 0; }; }; then
3398    cross_compiling=no
3399  else
3400    if test "$cross_compiling" = maybe; then
3401	cross_compiling=yes
3402    else
3403	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3404printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3405as_fn_error 77 "cannot run C compiled programs.
3406If you meant to cross compile, use '--host'.
3407See 'config.log' for more details" "$LINENO" 5; }
3408    fi
3409  fi
3410fi
3411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3412printf "%s\n" "$cross_compiling" >&6; }
3413
3414rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3415  conftest.o conftest.obj conftest.out
3416ac_clean_files=$ac_clean_files_save
3417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3418printf %s "checking for suffix of object files... " >&6; }
3419if test ${ac_cv_objext+y}
3420then :
3421  printf %s "(cached) " >&6
3422else case e in #(
3423  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h.  */
3425
3426int
3427main (void)
3428{
3429
3430  ;
3431  return 0;
3432}
3433_ACEOF
3434rm -f conftest.o conftest.obj
3435if { { ac_try="$ac_compile"
3436case "(($ac_try" in
3437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438  *) ac_try_echo=$ac_try;;
3439esac
3440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441printf "%s\n" "$ac_try_echo"; } >&5
3442  (eval "$ac_compile") 2>&5
3443  ac_status=$?
3444  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445  test $ac_status = 0; }
3446then :
3447  for ac_file in conftest.o conftest.obj conftest.*; do
3448  test -f "$ac_file" || continue;
3449  case $ac_file in
3450    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3451    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3452       break;;
3453  esac
3454done
3455else case e in #(
3456  e) printf "%s\n" "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
3459{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3460printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3461as_fn_error $? "cannot compute suffix of object files: cannot compile
3462See 'config.log' for more details" "$LINENO" 5; } ;;
3463esac
3464fi
3465rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3466esac
3467fi
3468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3469printf "%s\n" "$ac_cv_objext" >&6; }
3470OBJEXT=$ac_cv_objext
3471ac_objext=$OBJEXT
3472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3473printf %s "checking whether the compiler supports GNU C... " >&6; }
3474if test ${ac_cv_c_compiler_gnu+y}
3475then :
3476  printf %s "(cached) " >&6
3477else case e in #(
3478  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479/* end confdefs.h.  */
3480
3481int
3482main (void)
3483{
3484#ifndef __GNUC__
3485       choke me
3486#endif
3487
3488  ;
3489  return 0;
3490}
3491_ACEOF
3492if ac_fn_c_try_compile "$LINENO"
3493then :
3494  ac_compiler_gnu=yes
3495else case e in #(
3496  e) ac_compiler_gnu=no ;;
3497esac
3498fi
3499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3500ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501 ;;
3502esac
3503fi
3504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3505printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3506ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507
3508if test $ac_compiler_gnu = yes; then
3509  GCC=yes
3510else
3511  GCC=
3512fi
3513ac_test_CFLAGS=${CFLAGS+y}
3514ac_save_CFLAGS=$CFLAGS
3515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3516printf %s "checking whether $CC accepts -g... " >&6; }
3517if test ${ac_cv_prog_cc_g+y}
3518then :
3519  printf %s "(cached) " >&6
3520else case e in #(
3521  e) ac_save_c_werror_flag=$ac_c_werror_flag
3522   ac_c_werror_flag=yes
3523   ac_cv_prog_cc_g=no
3524   CFLAGS="-g"
3525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526/* end confdefs.h.  */
3527
3528int
3529main (void)
3530{
3531
3532  ;
3533  return 0;
3534}
3535_ACEOF
3536if ac_fn_c_try_compile "$LINENO"
3537then :
3538  ac_cv_prog_cc_g=yes
3539else case e in #(
3540  e) CFLAGS=""
3541      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542/* end confdefs.h.  */
3543
3544int
3545main (void)
3546{
3547
3548  ;
3549  return 0;
3550}
3551_ACEOF
3552if ac_fn_c_try_compile "$LINENO"
3553then :
3554
3555else case e in #(
3556  e) ac_c_werror_flag=$ac_save_c_werror_flag
3557	 CFLAGS="-g"
3558	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h.  */
3560
3561int
3562main (void)
3563{
3564
3565  ;
3566  return 0;
3567}
3568_ACEOF
3569if ac_fn_c_try_compile "$LINENO"
3570then :
3571  ac_cv_prog_cc_g=yes
3572fi
3573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3574esac
3575fi
3576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3577esac
3578fi
3579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3580   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3581esac
3582fi
3583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3584printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3585if test $ac_test_CFLAGS; then
3586  CFLAGS=$ac_save_CFLAGS
3587elif test $ac_cv_prog_cc_g = yes; then
3588  if test "$GCC" = yes; then
3589    CFLAGS="-g -O2"
3590  else
3591    CFLAGS="-g"
3592  fi
3593else
3594  if test "$GCC" = yes; then
3595    CFLAGS="-O2"
3596  else
3597    CFLAGS=
3598  fi
3599fi
3600ac_prog_cc_stdc=no
3601if test x$ac_prog_cc_stdc = xno
3602then :
3603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3604printf %s "checking for $CC option to enable C11 features... " >&6; }
3605if test ${ac_cv_prog_cc_c11+y}
3606then :
3607  printf %s "(cached) " >&6
3608else case e in #(
3609  e) ac_cv_prog_cc_c11=no
3610ac_save_CC=$CC
3611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h.  */
3613$ac_c_conftest_c11_program
3614_ACEOF
3615for ac_arg in '' -std=gnu11
3616do
3617  CC="$ac_save_CC $ac_arg"
3618  if ac_fn_c_try_compile "$LINENO"
3619then :
3620  ac_cv_prog_cc_c11=$ac_arg
3621fi
3622rm -f core conftest.err conftest.$ac_objext conftest.beam
3623  test "x$ac_cv_prog_cc_c11" != "xno" && break
3624done
3625rm -f conftest.$ac_ext
3626CC=$ac_save_CC ;;
3627esac
3628fi
3629
3630if test "x$ac_cv_prog_cc_c11" = xno
3631then :
3632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3633printf "%s\n" "unsupported" >&6; }
3634else case e in #(
3635  e) if test "x$ac_cv_prog_cc_c11" = x
3636then :
3637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3638printf "%s\n" "none needed" >&6; }
3639else case e in #(
3640  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3641printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3642     CC="$CC $ac_cv_prog_cc_c11" ;;
3643esac
3644fi
3645  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3646  ac_prog_cc_stdc=c11 ;;
3647esac
3648fi
3649fi
3650if test x$ac_prog_cc_stdc = xno
3651then :
3652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3653printf %s "checking for $CC option to enable C99 features... " >&6; }
3654if test ${ac_cv_prog_cc_c99+y}
3655then :
3656  printf %s "(cached) " >&6
3657else case e in #(
3658  e) ac_cv_prog_cc_c99=no
3659ac_save_CC=$CC
3660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661/* end confdefs.h.  */
3662$ac_c_conftest_c99_program
3663_ACEOF
3664for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3665do
3666  CC="$ac_save_CC $ac_arg"
3667  if ac_fn_c_try_compile "$LINENO"
3668then :
3669  ac_cv_prog_cc_c99=$ac_arg
3670fi
3671rm -f core conftest.err conftest.$ac_objext conftest.beam
3672  test "x$ac_cv_prog_cc_c99" != "xno" && break
3673done
3674rm -f conftest.$ac_ext
3675CC=$ac_save_CC ;;
3676esac
3677fi
3678
3679if test "x$ac_cv_prog_cc_c99" = xno
3680then :
3681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3682printf "%s\n" "unsupported" >&6; }
3683else case e in #(
3684  e) if test "x$ac_cv_prog_cc_c99" = x
3685then :
3686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3687printf "%s\n" "none needed" >&6; }
3688else case e in #(
3689  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3690printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3691     CC="$CC $ac_cv_prog_cc_c99" ;;
3692esac
3693fi
3694  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3695  ac_prog_cc_stdc=c99 ;;
3696esac
3697fi
3698fi
3699if test x$ac_prog_cc_stdc = xno
3700then :
3701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3702printf %s "checking for $CC option to enable C89 features... " >&6; }
3703if test ${ac_cv_prog_cc_c89+y}
3704then :
3705  printf %s "(cached) " >&6
3706else case e in #(
3707  e) ac_cv_prog_cc_c89=no
3708ac_save_CC=$CC
3709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710/* end confdefs.h.  */
3711$ac_c_conftest_c89_program
3712_ACEOF
3713for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3714do
3715  CC="$ac_save_CC $ac_arg"
3716  if ac_fn_c_try_compile "$LINENO"
3717then :
3718  ac_cv_prog_cc_c89=$ac_arg
3719fi
3720rm -f core conftest.err conftest.$ac_objext conftest.beam
3721  test "x$ac_cv_prog_cc_c89" != "xno" && break
3722done
3723rm -f conftest.$ac_ext
3724CC=$ac_save_CC ;;
3725esac
3726fi
3727
3728if test "x$ac_cv_prog_cc_c89" = xno
3729then :
3730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3731printf "%s\n" "unsupported" >&6; }
3732else case e in #(
3733  e) if test "x$ac_cv_prog_cc_c89" = x
3734then :
3735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3736printf "%s\n" "none needed" >&6; }
3737else case e in #(
3738  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3739printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3740     CC="$CC $ac_cv_prog_cc_c89" ;;
3741esac
3742fi
3743  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3744  ac_prog_cc_stdc=c89 ;;
3745esac
3746fi
3747fi
3748
3749ac_ext=c
3750ac_cpp='$CPP $CPPFLAGS'
3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755
3756  ac_ext=c
3757ac_cpp='$CPP $CPPFLAGS'
3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3762printf %s "checking whether $CC understands -c and -o together... " >&6; }
3763if test ${am_cv_prog_cc_c_o+y}
3764then :
3765  printf %s "(cached) " >&6
3766else case e in #(
3767  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768/* end confdefs.h.  */
3769
3770int
3771main (void)
3772{
3773
3774  ;
3775  return 0;
3776}
3777_ACEOF
3778  # Make sure it works both with $CC and with simple cc.
3779  # Following AC_PROG_CC_C_O, we do the test twice because some
3780  # compilers refuse to overwrite an existing .o file with -o,
3781  # though they will create one.
3782  am_cv_prog_cc_c_o=yes
3783  for am_i in 1 2; do
3784    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3785   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); } \
3789         && test -f conftest2.$ac_objext; then
3790      : OK
3791    else
3792      am_cv_prog_cc_c_o=no
3793      break
3794    fi
3795  done
3796  rm -f core conftest*
3797  unset am_i ;;
3798esac
3799fi
3800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3801printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3802if test "$am_cv_prog_cc_c_o" != yes; then
3803   # Losing compiler, so override with the script.
3804   # FIXME: It is wrong to rewrite CC.
3805   # But if we don't then we get into trouble of one sort or another.
3806   # A longer-term fix would be to have automake use am__CC in this case,
3807   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3808   CC="$am_aux_dir/compile $CC"
3809fi
3810ac_ext=c
3811ac_cpp='$CPP $CPPFLAGS'
3812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815
3816
3817
3818ac_header= ac_cache=
3819for ac_item in $ac_header_c_list
3820do
3821  if test $ac_cache; then
3822    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3823    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3824      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3825    fi
3826    ac_header= ac_cache=
3827  elif test $ac_header; then
3828    ac_cache=$ac_item
3829  else
3830    ac_header=$ac_item
3831  fi
3832done
3833
3834
3835
3836
3837
3838
3839
3840
3841if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3842then :
3843
3844printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3845
3846fi
3847
3848
3849
3850
3851
3852
3853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3854printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3855if test ${ac_cv_safe_to_define___extensions__+y}
3856then :
3857  printf %s "(cached) " >&6
3858else case e in #(
3859  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861
3862#         define __EXTENSIONS__ 1
3863          $ac_includes_default
3864int
3865main (void)
3866{
3867
3868  ;
3869  return 0;
3870}
3871_ACEOF
3872if ac_fn_c_try_compile "$LINENO"
3873then :
3874  ac_cv_safe_to_define___extensions__=yes
3875else case e in #(
3876  e) ac_cv_safe_to_define___extensions__=no ;;
3877esac
3878fi
3879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3880esac
3881fi
3882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3883printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3884
3885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3886printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3887if test ${ac_cv_should_define__xopen_source+y}
3888then :
3889  printf %s "(cached) " >&6
3890else case e in #(
3891  e) ac_cv_should_define__xopen_source=no
3892    if test $ac_cv_header_wchar_h = yes
3893then :
3894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896
3897          #include <wchar.h>
3898          mbstate_t x;
3899int
3900main (void)
3901{
3902
3903  ;
3904  return 0;
3905}
3906_ACEOF
3907if ac_fn_c_try_compile "$LINENO"
3908then :
3909
3910else case e in #(
3911  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h.  */
3913
3914            #define _XOPEN_SOURCE 500
3915            #include <wchar.h>
3916            mbstate_t x;
3917int
3918main (void)
3919{
3920
3921  ;
3922  return 0;
3923}
3924_ACEOF
3925if ac_fn_c_try_compile "$LINENO"
3926then :
3927  ac_cv_should_define__xopen_source=yes
3928fi
3929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3930esac
3931fi
3932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3933fi ;;
3934esac
3935fi
3936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3937printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3938
3939  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3940
3941  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3942
3943  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3944
3945  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3946
3947  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3948
3949  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3950
3951  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3952
3953  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3954
3955  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3956
3957  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3958
3959  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3960
3961  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3962
3963  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3964
3965  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3966
3967  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3968
3969  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3970
3971  if test $ac_cv_header_minix_config_h = yes
3972then :
3973  MINIX=yes
3974    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3975
3976    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3977
3978    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3979
3980else case e in #(
3981  e) MINIX= ;;
3982esac
3983fi
3984  if test $ac_cv_safe_to_define___extensions__ = yes
3985then :
3986  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3987
3988fi
3989  if test $ac_cv_should_define__xopen_source = yes
3990then :
3991  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3992
3993fi
3994
3995
3996# Initialize Automake
3997am__api_version='1.16'
3998
3999
4000  # Find a good install program.  We prefer a C program (faster),
4001# so one script is as good as another.  But avoid the broken or
4002# incompatible versions:
4003# SysV /etc/install, /usr/sbin/install
4004# SunOS /usr/etc/install
4005# IRIX /sbin/install
4006# AIX /bin/install
4007# AmigaOS /C/install, which installs bootblocks on floppy discs
4008# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4009# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4010# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4011# OS/2's system install, which has a completely different semantic
4012# ./install, which can be erroneously created by make from ./install.sh.
4013# Reject install programs that cannot install multiple files.
4014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4015printf %s "checking for a BSD-compatible install... " >&6; }
4016if test -z "$INSTALL"; then
4017if test ${ac_cv_path_install+y}
4018then :
4019  printf %s "(cached) " >&6
4020else case e in #(
4021  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022for as_dir in $PATH
4023do
4024  IFS=$as_save_IFS
4025  case $as_dir in #(((
4026    '') as_dir=./ ;;
4027    */) ;;
4028    *) as_dir=$as_dir/ ;;
4029  esac
4030    # Account for fact that we put trailing slashes in our PATH walk.
4031case $as_dir in #((
4032  ./ | /[cC]/* | \
4033  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4034  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4035  /usr/ucb/* ) ;;
4036  *)
4037    # OSF1 and SCO ODT 3.0 have their own names for install.
4038    # Don't use installbsd from OSF since it installs stuff as root
4039    # by default.
4040    for ac_prog in ginstall scoinst install; do
4041      for ac_exec_ext in '' $ac_executable_extensions; do
4042	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4043	  if test $ac_prog = install &&
4044	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4045	    # AIX install.  It has an incompatible calling convention.
4046	    :
4047	  elif test $ac_prog = install &&
4048	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4049	    # program-specific install script used by HP pwplus--don't use.
4050	    :
4051	  else
4052	    rm -rf conftest.one conftest.two conftest.dir
4053	    echo one > conftest.one
4054	    echo two > conftest.two
4055	    mkdir conftest.dir
4056	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4057	      test -s conftest.one && test -s conftest.two &&
4058	      test -s conftest.dir/conftest.one &&
4059	      test -s conftest.dir/conftest.two
4060	    then
4061	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4062	      break 3
4063	    fi
4064	  fi
4065	fi
4066      done
4067    done
4068    ;;
4069esac
4070
4071  done
4072IFS=$as_save_IFS
4073
4074rm -rf conftest.one conftest.two conftest.dir
4075 ;;
4076esac
4077fi
4078  if test ${ac_cv_path_install+y}; then
4079    INSTALL=$ac_cv_path_install
4080  else
4081    # As a last resort, use the slow shell script.  Don't cache a
4082    # value for INSTALL within a source directory, because that will
4083    # break other packages using the cache if that directory is
4084    # removed, or if the value is a relative name.
4085    INSTALL=$ac_install_sh
4086  fi
4087fi
4088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4089printf "%s\n" "$INSTALL" >&6; }
4090
4091# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4092# It thinks the first close brace ends the variable substitution.
4093test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4094
4095test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4096
4097test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4098
4099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4100printf %s "checking whether build environment is sane... " >&6; }
4101# Reject unsafe characters in $srcdir or the absolute working directory
4102# name.  Accept space and tab only in the latter.
4103am_lf='
4104'
4105case `pwd` in
4106  *[\\\"\#\$\&\'\`$am_lf]*)
4107    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4108esac
4109case $srcdir in
4110  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4111    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4112esac
4113
4114# Do 'set' in a subshell so we don't clobber the current shell's
4115# arguments.  Must try -L first in case configure is actually a
4116# symlink; some systems play weird games with the mod time of symlinks
4117# (eg FreeBSD returns the mod time of the symlink's containing
4118# directory).
4119if (
4120   am_has_slept=no
4121   for am_try in 1 2; do
4122     echo "timestamp, slept: $am_has_slept" > conftest.file
4123     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4124     if test "$*" = "X"; then
4125	# -L didn't work.
4126	set X `ls -t "$srcdir/configure" conftest.file`
4127     fi
4128     if test "$*" != "X $srcdir/configure conftest.file" \
4129	&& test "$*" != "X conftest.file $srcdir/configure"; then
4130
4131	# If neither matched, then we have a broken ls.  This can happen
4132	# if, for instance, CONFIG_SHELL is bash and it inherits a
4133	# broken ls alias from the environment.  This has actually
4134	# happened.  Such a system could not be considered "sane".
4135	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4136  alias in your environment" "$LINENO" 5
4137     fi
4138     if test "$2" = conftest.file || test $am_try -eq 2; then
4139       break
4140     fi
4141     # Just in case.
4142     sleep 1
4143     am_has_slept=yes
4144   done
4145   test "$2" = conftest.file
4146   )
4147then
4148   # Ok.
4149   :
4150else
4151   as_fn_error $? "newly created file is older than distributed files!
4152Check your system clock" "$LINENO" 5
4153fi
4154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4155printf "%s\n" "yes" >&6; }
4156# If we didn't sleep, we still need to ensure time stamps of config.status and
4157# generated files are strictly newer.
4158am_sleep_pid=
4159if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4160  ( sleep 1 ) &
4161  am_sleep_pid=$!
4162fi
4163
4164rm -f conftest.file
4165
4166test "$program_prefix" != NONE &&
4167  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4168# Use a double $ so make ignores it.
4169test "$program_suffix" != NONE &&
4170  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4171# Double any \ or $.
4172# By default was 's,x,x', remove it if useless.
4173ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4174program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4175
4176
4177  if test x"${MISSING+set}" != xset; then
4178  MISSING="\${SHELL} '$am_aux_dir/missing'"
4179fi
4180# Use eval to expand $SHELL
4181if eval "$MISSING --is-lightweight"; then
4182  am_missing_run="$MISSING "
4183else
4184  am_missing_run=
4185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4186printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4187fi
4188
4189if test x"${install_sh+set}" != xset; then
4190  case $am_aux_dir in
4191  *\ * | *\	*)
4192    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4193  *)
4194    install_sh="\${SHELL} $am_aux_dir/install-sh"
4195  esac
4196fi
4197
4198# Installed binaries are usually stripped using 'strip' when the user
4199# run "make install-strip".  However 'strip' might not be the right
4200# tool to use in cross-compilation environments, therefore Automake
4201# will honor the 'STRIP' environment variable to overrule this program.
4202if test "$cross_compiling" != no; then
4203  if test -n "$ac_tool_prefix"; then
4204  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4205set dummy ${ac_tool_prefix}strip; ac_word=$2
4206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207printf %s "checking for $ac_word... " >&6; }
4208if test ${ac_cv_prog_STRIP+y}
4209then :
4210  printf %s "(cached) " >&6
4211else case e in #(
4212  e) if test -n "$STRIP"; then
4213  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218  IFS=$as_save_IFS
4219  case $as_dir in #(((
4220    '') as_dir=./ ;;
4221    */) ;;
4222    *) as_dir=$as_dir/ ;;
4223  esac
4224    for ac_exec_ext in '' $ac_executable_extensions; do
4225  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4226    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4227    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4228    break 2
4229  fi
4230done
4231  done
4232IFS=$as_save_IFS
4233
4234fi ;;
4235esac
4236fi
4237STRIP=$ac_cv_prog_STRIP
4238if test -n "$STRIP"; then
4239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4240printf "%s\n" "$STRIP" >&6; }
4241else
4242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243printf "%s\n" "no" >&6; }
4244fi
4245
4246
4247fi
4248if test -z "$ac_cv_prog_STRIP"; then
4249  ac_ct_STRIP=$STRIP
4250  # Extract the first word of "strip", so it can be a program name with args.
4251set dummy strip; ac_word=$2
4252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253printf %s "checking for $ac_word... " >&6; }
4254if test ${ac_cv_prog_ac_ct_STRIP+y}
4255then :
4256  printf %s "(cached) " >&6
4257else case e in #(
4258  e) if test -n "$ac_ct_STRIP"; then
4259  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4260else
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264  IFS=$as_save_IFS
4265  case $as_dir in #(((
4266    '') as_dir=./ ;;
4267    */) ;;
4268    *) as_dir=$as_dir/ ;;
4269  esac
4270    for ac_exec_ext in '' $ac_executable_extensions; do
4271  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4272    ac_cv_prog_ac_ct_STRIP="strip"
4273    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4274    break 2
4275  fi
4276done
4277  done
4278IFS=$as_save_IFS
4279
4280fi ;;
4281esac
4282fi
4283ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4284if test -n "$ac_ct_STRIP"; then
4285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4286printf "%s\n" "$ac_ct_STRIP" >&6; }
4287else
4288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289printf "%s\n" "no" >&6; }
4290fi
4291
4292  if test "x$ac_ct_STRIP" = x; then
4293    STRIP=":"
4294  else
4295    case $cross_compiling:$ac_tool_warned in
4296yes:)
4297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4299ac_tool_warned=yes ;;
4300esac
4301    STRIP=$ac_ct_STRIP
4302  fi
4303else
4304  STRIP="$ac_cv_prog_STRIP"
4305fi
4306
4307fi
4308INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4309
4310
4311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4312printf %s "checking for a race-free mkdir -p... " >&6; }
4313if test -z "$MKDIR_P"; then
4314  if test ${ac_cv_path_mkdir+y}
4315then :
4316  printf %s "(cached) " >&6
4317else case e in #(
4318  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4320do
4321  IFS=$as_save_IFS
4322  case $as_dir in #(((
4323    '') as_dir=./ ;;
4324    */) ;;
4325    *) as_dir=$as_dir/ ;;
4326  esac
4327    for ac_prog in mkdir gmkdir; do
4328	 for ac_exec_ext in '' $ac_executable_extensions; do
4329	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4330	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4331	     'mkdir ('*'coreutils) '* | \
4332	     *'BusyBox '* | \
4333	     'mkdir (fileutils) '4.1*)
4334	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4335	       break 3;;
4336	   esac
4337	 done
4338       done
4339  done
4340IFS=$as_save_IFS
4341 ;;
4342esac
4343fi
4344
4345  test -d ./--version && rmdir ./--version
4346  if test ${ac_cv_path_mkdir+y}; then
4347    MKDIR_P="$ac_cv_path_mkdir -p"
4348  else
4349    # As a last resort, use plain mkdir -p,
4350    # in the hope it doesn't have the bugs of ancient mkdir.
4351    MKDIR_P='mkdir -p'
4352  fi
4353fi
4354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4355printf "%s\n" "$MKDIR_P" >&6; }
4356
4357for ac_prog in gawk mawk nawk awk
4358do
4359  # Extract the first word of "$ac_prog", so it can be a program name with args.
4360set dummy $ac_prog; ac_word=$2
4361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362printf %s "checking for $ac_word... " >&6; }
4363if test ${ac_cv_prog_AWK+y}
4364then :
4365  printf %s "(cached) " >&6
4366else case e in #(
4367  e) if test -n "$AWK"; then
4368  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4369else
4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH
4372do
4373  IFS=$as_save_IFS
4374  case $as_dir in #(((
4375    '') as_dir=./ ;;
4376    */) ;;
4377    *) as_dir=$as_dir/ ;;
4378  esac
4379    for ac_exec_ext in '' $ac_executable_extensions; do
4380  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4381    ac_cv_prog_AWK="$ac_prog"
4382    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4383    break 2
4384  fi
4385done
4386  done
4387IFS=$as_save_IFS
4388
4389fi ;;
4390esac
4391fi
4392AWK=$ac_cv_prog_AWK
4393if test -n "$AWK"; then
4394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4395printf "%s\n" "$AWK" >&6; }
4396else
4397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398printf "%s\n" "no" >&6; }
4399fi
4400
4401
4402  test -n "$AWK" && break
4403done
4404
4405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4406printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4407set x ${MAKE-make}
4408ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4409if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4410then :
4411  printf %s "(cached) " >&6
4412else case e in #(
4413  e) cat >conftest.make <<\_ACEOF
4414SHELL = /bin/sh
4415all:
4416	@echo '@@@%%%=$(MAKE)=@@@%%%'
4417_ACEOF
4418# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4419case `${MAKE-make} -f conftest.make 2>/dev/null` in
4420  *@@@%%%=?*=@@@%%%*)
4421    eval ac_cv_prog_make_${ac_make}_set=yes;;
4422  *)
4423    eval ac_cv_prog_make_${ac_make}_set=no;;
4424esac
4425rm -f conftest.make ;;
4426esac
4427fi
4428if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4429  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4430printf "%s\n" "yes" >&6; }
4431  SET_MAKE=
4432else
4433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434printf "%s\n" "no" >&6; }
4435  SET_MAKE="MAKE=${MAKE-make}"
4436fi
4437
4438rm -rf .tst 2>/dev/null
4439mkdir .tst 2>/dev/null
4440if test -d .tst; then
4441  am__leading_dot=.
4442else
4443  am__leading_dot=_
4444fi
4445rmdir .tst 2>/dev/null
4446
4447DEPDIR="${am__leading_dot}deps"
4448
4449ac_config_commands="$ac_config_commands depfiles"
4450
4451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4452printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4453cat > confinc.mk << 'END'
4454am__doit:
4455	@echo this is the am__doit target >confinc.out
4456.PHONY: am__doit
4457END
4458am__include="#"
4459am__quote=
4460# BSD make does it like this.
4461echo '.include "confinc.mk" # ignored' > confmf.BSD
4462# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4463echo 'include confinc.mk # ignored' > confmf.GNU
4464_am_result=no
4465for s in GNU BSD; do
4466  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4467   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }
4471  case $?:`cat confinc.out 2>/dev/null` in #(
4472  '0:this is the am__doit target') :
4473    case $s in #(
4474  BSD) :
4475    am__include='.include' am__quote='"' ;; #(
4476  *) :
4477    am__include='include' am__quote='' ;;
4478esac ;; #(
4479  *) :
4480     ;;
4481esac
4482  if test "$am__include" != "#"; then
4483    _am_result="yes ($s style)"
4484    break
4485  fi
4486done
4487rm -f confinc.* confmf.*
4488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4489printf "%s\n" "${_am_result}" >&6; }
4490
4491# Check whether --enable-dependency-tracking was given.
4492if test ${enable_dependency_tracking+y}
4493then :
4494  enableval=$enable_dependency_tracking;
4495fi
4496
4497if test "x$enable_dependency_tracking" != xno; then
4498  am_depcomp="$ac_aux_dir/depcomp"
4499  AMDEPBACKSLASH='\'
4500  am__nodep='_no'
4501fi
4502 if test "x$enable_dependency_tracking" != xno; then
4503  AMDEP_TRUE=
4504  AMDEP_FALSE='#'
4505else
4506  AMDEP_TRUE='#'
4507  AMDEP_FALSE=
4508fi
4509
4510
4511# Check whether --enable-silent-rules was given.
4512if test ${enable_silent_rules+y}
4513then :
4514  enableval=$enable_silent_rules;
4515fi
4516
4517case $enable_silent_rules in # (((
4518  yes) AM_DEFAULT_VERBOSITY=0;;
4519   no) AM_DEFAULT_VERBOSITY=1;;
4520    *) AM_DEFAULT_VERBOSITY=1;;
4521esac
4522am_make=${MAKE-make}
4523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4524printf %s "checking whether $am_make supports nested variables... " >&6; }
4525if test ${am_cv_make_support_nested_variables+y}
4526then :
4527  printf %s "(cached) " >&6
4528else case e in #(
4529  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4530BAR0=false
4531BAR1=true
4532V=1
4533am__doit:
4534	@$(TRUE)
4535.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4536  am_cv_make_support_nested_variables=yes
4537else
4538  am_cv_make_support_nested_variables=no
4539fi ;;
4540esac
4541fi
4542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4543printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4544if test $am_cv_make_support_nested_variables = yes; then
4545    AM_V='$(V)'
4546  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4547else
4548  AM_V=$AM_DEFAULT_VERBOSITY
4549  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4550fi
4551AM_BACKSLASH='\'
4552
4553if test "`cd $srcdir && pwd`" != "`pwd`"; then
4554  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4555  # is not polluted with repeated "-I."
4556  am__isrc=' -I$(srcdir)'
4557  # test to see if srcdir already configured
4558  if test -f $srcdir/config.status; then
4559    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4560  fi
4561fi
4562
4563# test whether we have cygpath
4564if test -z "$CYGPATH_W"; then
4565  if (cygpath --version) >/dev/null 2>/dev/null; then
4566    CYGPATH_W='cygpath -w'
4567  else
4568    CYGPATH_W=echo
4569  fi
4570fi
4571
4572
4573# Define the identity of the package.
4574 PACKAGE='xauth'
4575 VERSION='1.1.3'
4576
4577
4578printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4579
4580
4581printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4582
4583# Some tools Automake needs.
4584
4585ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4586
4587
4588AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4589
4590
4591AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4592
4593
4594AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4595
4596
4597MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4598
4599# For better backward compatibility.  To be removed once Automake 1.9.x
4600# dies out for good.  For more background, see:
4601# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4602# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4603mkdir_p='$(MKDIR_P)'
4604
4605# We need awk for the "check" target (and possibly the TAP driver).  The
4606# system "awk" is bad on some platforms.
4607# Always define AMTAR for backward compatibility.  Yes, it's still used
4608# in the wild :-(  We should find a proper way to deprecate it ...
4609AMTAR='$${TAR-tar}'
4610
4611
4612# We'll loop over all known methods to create a tar archive until one works.
4613_am_tools='gnutar  pax cpio none'
4614
4615am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4616
4617
4618
4619
4620
4621depcc="$CC"   am_compiler_list=
4622
4623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4624printf %s "checking dependency style of $depcc... " >&6; }
4625if test ${am_cv_CC_dependencies_compiler_type+y}
4626then :
4627  printf %s "(cached) " >&6
4628else case e in #(
4629  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4630  # We make a subdir and do the tests there.  Otherwise we can end up
4631  # making bogus files that we don't know about and never remove.  For
4632  # instance it was reported that on HP-UX the gcc test will end up
4633  # making a dummy file named 'D' -- because '-MD' means "put the output
4634  # in D".
4635  rm -rf conftest.dir
4636  mkdir conftest.dir
4637  # Copy depcomp to subdir because otherwise we won't find it if we're
4638  # using a relative directory.
4639  cp "$am_depcomp" conftest.dir
4640  cd conftest.dir
4641  # We will build objects and dependencies in a subdirectory because
4642  # it helps to detect inapplicable dependency modes.  For instance
4643  # both Tru64's cc and ICC support -MD to output dependencies as a
4644  # side effect of compilation, but ICC will put the dependencies in
4645  # the current directory while Tru64 will put them in the object
4646  # directory.
4647  mkdir sub
4648
4649  am_cv_CC_dependencies_compiler_type=none
4650  if test "$am_compiler_list" = ""; then
4651     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4652  fi
4653  am__universal=false
4654  case " $depcc " in #(
4655     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4656     esac
4657
4658  for depmode in $am_compiler_list; do
4659    # Setup a source with many dependencies, because some compilers
4660    # like to wrap large dependency lists on column 80 (with \), and
4661    # we should not choose a depcomp mode which is confused by this.
4662    #
4663    # We need to recreate these files for each test, as the compiler may
4664    # overwrite some of them when testing with obscure command lines.
4665    # This happens at least with the AIX C compiler.
4666    : > sub/conftest.c
4667    for i in 1 2 3 4 5 6; do
4668      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4669      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4670      # Solaris 10 /bin/sh.
4671      echo '/* dummy */' > sub/conftst$i.h
4672    done
4673    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4674
4675    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4676    # mode.  It turns out that the SunPro C++ compiler does not properly
4677    # handle '-M -o', and we need to detect this.  Also, some Intel
4678    # versions had trouble with output in subdirs.
4679    am__obj=sub/conftest.${OBJEXT-o}
4680    am__minus_obj="-o $am__obj"
4681    case $depmode in
4682    gcc)
4683      # This depmode causes a compiler race in universal mode.
4684      test "$am__universal" = false || continue
4685      ;;
4686    nosideeffect)
4687      # After this tag, mechanisms are not by side-effect, so they'll
4688      # only be used when explicitly requested.
4689      if test "x$enable_dependency_tracking" = xyes; then
4690	continue
4691      else
4692	break
4693      fi
4694      ;;
4695    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4696      # This compiler won't grok '-c -o', but also, the minuso test has
4697      # not run yet.  These depmodes are late enough in the game, and
4698      # so weak that their functioning should not be impacted.
4699      am__obj=conftest.${OBJEXT-o}
4700      am__minus_obj=
4701      ;;
4702    none) break ;;
4703    esac
4704    if depmode=$depmode \
4705       source=sub/conftest.c object=$am__obj \
4706       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4707       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4708         >/dev/null 2>conftest.err &&
4709       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4710       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4711       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4712       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4713      # icc doesn't choke on unknown options, it will just issue warnings
4714      # or remarks (even with -Werror).  So we grep stderr for any message
4715      # that says an option was ignored or not supported.
4716      # When given -MP, icc 7.0 and 7.1 complain thusly:
4717      #   icc: Command line warning: ignoring option '-M'; no argument required
4718      # The diagnosis changed in icc 8.0:
4719      #   icc: Command line remark: option '-MP' not supported
4720      if (grep 'ignoring option' conftest.err ||
4721          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4722        am_cv_CC_dependencies_compiler_type=$depmode
4723        break
4724      fi
4725    fi
4726  done
4727
4728  cd ..
4729  rm -rf conftest.dir
4730else
4731  am_cv_CC_dependencies_compiler_type=none
4732fi
4733 ;;
4734esac
4735fi
4736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4737printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4738CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4739
4740 if
4741  test "x$enable_dependency_tracking" != xno \
4742  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4743  am__fastdepCC_TRUE=
4744  am__fastdepCC_FALSE='#'
4745else
4746  am__fastdepCC_TRUE='#'
4747  am__fastdepCC_FALSE=
4748fi
4749
4750
4751# Variables for tags utilities; see am/tags.am
4752if test -z "$CTAGS"; then
4753  CTAGS=ctags
4754fi
4755
4756if test -z "$ETAGS"; then
4757  ETAGS=etags
4758fi
4759
4760if test -z "$CSCOPE"; then
4761  CSCOPE=cscope
4762fi
4763
4764
4765
4766# POSIX will say in a future version that running "rm -f" with no argument
4767# is OK; and we want to be able to make that assumption in our Makefile
4768# recipes.  So use an aggressive probe to check that the usage we want is
4769# actually supported "in the wild" to an acceptable degree.
4770# See automake bug#10828.
4771# To make any issue more visible, cause the running configure to be aborted
4772# by default if the 'rm' program in use doesn't match our expectations; the
4773# user can still override this though.
4774if rm -f && rm -fr && rm -rf; then : OK; else
4775  cat >&2 <<'END'
4776Oops!
4777
4778Your 'rm' program seems unable to run without file operands specified
4779on the command line, even when the '-f' option is present.  This is contrary
4780to the behaviour of most rm programs out there, and not conforming with
4781the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4782
4783Please tell bug-automake@gnu.org about your system, including the value
4784of your $PATH and any error possibly output before this message.  This
4785can help us improve future automake versions.
4786
4787END
4788  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4789    echo 'Configuration will proceed anyway, since you have set the' >&2
4790    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4791    echo >&2
4792  else
4793    cat >&2 <<'END'
4794Aborting the configuration process, to ensure you take notice of the issue.
4795
4796You can download and install GNU coreutils to get an 'rm' implementation
4797that behaves properly: <https://www.gnu.org/software/coreutils/>.
4798
4799If you want to complete the configuration process using your problematic
4800'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4801to "yes", and re-run configure.
4802
4803END
4804    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4805  fi
4806fi
4807
4808
4809# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4822printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4823if test ${ac_cv_c_undeclared_builtin_options+y}
4824then :
4825  printf %s "(cached) " >&6
4826else case e in #(
4827  e) ac_save_CFLAGS=$CFLAGS
4828   ac_cv_c_undeclared_builtin_options='cannot detect'
4829   for ac_arg in '' -fno-builtin; do
4830     CFLAGS="$ac_save_CFLAGS $ac_arg"
4831     # This test program should *not* compile successfully.
4832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834
4835int
4836main (void)
4837{
4838(void) strchr;
4839  ;
4840  return 0;
4841}
4842_ACEOF
4843if ac_fn_c_try_compile "$LINENO"
4844then :
4845
4846else case e in #(
4847  e) # This test program should compile successfully.
4848        # No library function is consistently available on
4849        # freestanding implementations, so test against a dummy
4850        # declaration.  Include always-available headers on the
4851        # off chance that they somehow elicit warnings.
4852        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853/* end confdefs.h.  */
4854#include <float.h>
4855#include <limits.h>
4856#include <stdarg.h>
4857#include <stddef.h>
4858extern void ac_decl (int, char *);
4859
4860int
4861main (void)
4862{
4863(void) ac_decl (0, (char *) 0);
4864  (void) ac_decl;
4865
4866  ;
4867  return 0;
4868}
4869_ACEOF
4870if ac_fn_c_try_compile "$LINENO"
4871then :
4872  if test x"$ac_arg" = x
4873then :
4874  ac_cv_c_undeclared_builtin_options='none needed'
4875else case e in #(
4876  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4877esac
4878fi
4879          break
4880fi
4881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4882esac
4883fi
4884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4885    done
4886    CFLAGS=$ac_save_CFLAGS
4887   ;;
4888esac
4889fi
4890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4891printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4892  case $ac_cv_c_undeclared_builtin_options in #(
4893  'cannot detect') :
4894    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4895printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4896as_fn_error $? "cannot make $CC report undeclared builtins
4897See 'config.log' for more details" "$LINENO" 5; } ;; #(
4898  'none needed') :
4899    ac_c_undeclared_builtin_options='' ;; #(
4900  *) :
4901    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4902esac
4903
4904
4905
4906
4907
4908ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4909if test "x$ac_cv_have_decl___clang__" = xyes
4910then :
4911  CLANGCC="yes"
4912else case e in #(
4913  e) CLANGCC="no" ;;
4914esac
4915fi
4916ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4917if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4918then :
4919  INTELCC="yes"
4920else case e in #(
4921  e) INTELCC="no" ;;
4922esac
4923fi
4924ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4925if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4926then :
4927  SUNCC="yes"
4928else case e in #(
4929  e) SUNCC="no" ;;
4930esac
4931fi
4932
4933
4934
4935
4936
4937
4938
4939
4940if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4941	if test -n "$ac_tool_prefix"; then
4942  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4943set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945printf %s "checking for $ac_word... " >&6; }
4946if test ${ac_cv_path_PKG_CONFIG+y}
4947then :
4948  printf %s "(cached) " >&6
4949else case e in #(
4950  e) case $PKG_CONFIG in
4951  [\\/]* | ?:[\\/]*)
4952  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4953  ;;
4954  *)
4955  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH
4957do
4958  IFS=$as_save_IFS
4959  case $as_dir in #(((
4960    '') as_dir=./ ;;
4961    */) ;;
4962    *) as_dir=$as_dir/ ;;
4963  esac
4964    for ac_exec_ext in '' $ac_executable_extensions; do
4965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4966    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4967    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4968    break 2
4969  fi
4970done
4971  done
4972IFS=$as_save_IFS
4973
4974  ;;
4975esac ;;
4976esac
4977fi
4978PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4979if test -n "$PKG_CONFIG"; then
4980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4981printf "%s\n" "$PKG_CONFIG" >&6; }
4982else
4983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984printf "%s\n" "no" >&6; }
4985fi
4986
4987
4988fi
4989if test -z "$ac_cv_path_PKG_CONFIG"; then
4990  ac_pt_PKG_CONFIG=$PKG_CONFIG
4991  # Extract the first word of "pkg-config", so it can be a program name with args.
4992set dummy pkg-config; ac_word=$2
4993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994printf %s "checking for $ac_word... " >&6; }
4995if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4996then :
4997  printf %s "(cached) " >&6
4998else case e in #(
4999  e) case $ac_pt_PKG_CONFIG in
5000  [\\/]* | ?:[\\/]*)
5001  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5002  ;;
5003  *)
5004  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005for as_dir in $PATH
5006do
5007  IFS=$as_save_IFS
5008  case $as_dir in #(((
5009    '') as_dir=./ ;;
5010    */) ;;
5011    *) as_dir=$as_dir/ ;;
5012  esac
5013    for ac_exec_ext in '' $ac_executable_extensions; do
5014  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5015    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5016    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5017    break 2
5018  fi
5019done
5020  done
5021IFS=$as_save_IFS
5022
5023  ;;
5024esac ;;
5025esac
5026fi
5027ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5028if test -n "$ac_pt_PKG_CONFIG"; then
5029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5030printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5031else
5032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033printf "%s\n" "no" >&6; }
5034fi
5035
5036  if test "x$ac_pt_PKG_CONFIG" = x; then
5037    PKG_CONFIG=""
5038  else
5039    case $cross_compiling:$ac_tool_warned in
5040yes:)
5041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5042printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5043ac_tool_warned=yes ;;
5044esac
5045    PKG_CONFIG=$ac_pt_PKG_CONFIG
5046  fi
5047else
5048  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5049fi
5050
5051fi
5052if test -n "$PKG_CONFIG"; then
5053	_pkg_min_version=0.9.0
5054	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5055printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5056	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5057		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5058printf "%s\n" "yes" >&6; }
5059	else
5060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061printf "%s\n" "no" >&6; }
5062		PKG_CONFIG=""
5063	fi
5064fi
5065
5066
5067  # Make sure we can run config.sub.
5068$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5069  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5070
5071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5072printf %s "checking build system type... " >&6; }
5073if test ${ac_cv_build+y}
5074then :
5075  printf %s "(cached) " >&6
5076else case e in #(
5077  e) ac_build_alias=$build_alias
5078test "x$ac_build_alias" = x &&
5079  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5080test "x$ac_build_alias" = x &&
5081  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5082ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5083  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5084 ;;
5085esac
5086fi
5087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5088printf "%s\n" "$ac_cv_build" >&6; }
5089case $ac_cv_build in
5090*-*-*) ;;
5091*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5092esac
5093build=$ac_cv_build
5094ac_save_IFS=$IFS; IFS='-'
5095set x $ac_cv_build
5096shift
5097build_cpu=$1
5098build_vendor=$2
5099shift; shift
5100# Remember, the first character of IFS is used to create $*,
5101# except with old shells:
5102build_os=$*
5103IFS=$ac_save_IFS
5104case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5105
5106
5107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5108printf %s "checking host system type... " >&6; }
5109if test ${ac_cv_host+y}
5110then :
5111  printf %s "(cached) " >&6
5112else case e in #(
5113  e) if test "x$host_alias" = x; then
5114  ac_cv_host=$ac_cv_build
5115else
5116  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5117    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5118fi
5119 ;;
5120esac
5121fi
5122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5123printf "%s\n" "$ac_cv_host" >&6; }
5124case $ac_cv_host in
5125*-*-*) ;;
5126*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5127esac
5128host=$ac_cv_host
5129ac_save_IFS=$IFS; IFS='-'
5130set x $ac_cv_host
5131shift
5132host_cpu=$1
5133host_vendor=$2
5134shift; shift
5135# Remember, the first character of IFS is used to create $*,
5136# except with old shells:
5137host_os=$*
5138IFS=$ac_save_IFS
5139case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5140
5141
5142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5143printf %s "checking for a sed that does not truncate output... " >&6; }
5144if test ${ac_cv_path_SED+y}
5145then :
5146  printf %s "(cached) " >&6
5147else case e in #(
5148  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5149     for ac_i in 1 2 3 4 5 6 7; do
5150       ac_script="$ac_script$as_nl$ac_script"
5151     done
5152     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5153     { ac_script=; unset ac_script;}
5154     if test -z "$SED"; then
5155  ac_path_SED_found=false
5156  # Loop through the user's path and test for each of PROGNAME-LIST
5157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160  IFS=$as_save_IFS
5161  case $as_dir in #(((
5162    '') as_dir=./ ;;
5163    */) ;;
5164    *) as_dir=$as_dir/ ;;
5165  esac
5166    for ac_prog in sed gsed
5167   do
5168    for ac_exec_ext in '' $ac_executable_extensions; do
5169      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5170      as_fn_executable_p "$ac_path_SED" || continue
5171# Check for GNU ac_path_SED and select it if it is found.
5172  # Check for GNU $ac_path_SED
5173case `"$ac_path_SED" --version 2>&1` in #(
5174*GNU*)
5175  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5176#(
5177*)
5178  ac_count=0
5179  printf %s 0123456789 >"conftest.in"
5180  while :
5181  do
5182    cat "conftest.in" "conftest.in" >"conftest.tmp"
5183    mv "conftest.tmp" "conftest.in"
5184    cp "conftest.in" "conftest.nl"
5185    printf "%s\n" '' >> "conftest.nl"
5186    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188    as_fn_arith $ac_count + 1 && ac_count=$as_val
5189    if test $ac_count -gt ${ac_path_SED_max-0}; then
5190      # Best one so far, save it but keep looking for a better one
5191      ac_cv_path_SED="$ac_path_SED"
5192      ac_path_SED_max=$ac_count
5193    fi
5194    # 10*(2^10) chars as input seems more than enough
5195    test $ac_count -gt 10 && break
5196  done
5197  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198esac
5199
5200      $ac_path_SED_found && break 3
5201    done
5202  done
5203  done
5204IFS=$as_save_IFS
5205  if test -z "$ac_cv_path_SED"; then
5206    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5207  fi
5208else
5209  ac_cv_path_SED=$SED
5210fi
5211 ;;
5212esac
5213fi
5214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5215printf "%s\n" "$ac_cv_path_SED" >&6; }
5216 SED="$ac_cv_path_SED"
5217  rm -f conftest.sed
5218
5219
5220
5221
5222
5223
5224# Check whether --enable-selective-werror was given.
5225if test ${enable_selective_werror+y}
5226then :
5227  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5228else case e in #(
5229  e) SELECTIVE_WERROR=yes ;;
5230esac
5231fi
5232
5233
5234
5235
5236
5237# -v is too short to test reliably with XORG_TESTSET_CFLAG
5238if test "x$SUNCC" = "xyes"; then
5239    BASE_CFLAGS="-v"
5240else
5241    BASE_CFLAGS=""
5242fi
5243
5244# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258xorg_testset_save_CFLAGS="$CFLAGS"
5259
5260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5261	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5262	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5263printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5264if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5265then :
5266  printf %s "(cached) " >&6
5267else case e in #(
5268  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h.  */
5270int i;
5271_ACEOF
5272if ac_fn_c_try_compile "$LINENO"
5273then :
5274  xorg_cv_cc_flag_unknown_warning_option=yes
5275else case e in #(
5276  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5277esac
5278fi
5279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5280esac
5281fi
5282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5283printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5284	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5285	CFLAGS="$xorg_testset_save_CFLAGS"
5286fi
5287
5288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5289	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5290		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5291	fi
5292	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5293	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5294printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5295if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5296then :
5297  printf %s "(cached) " >&6
5298else case e in #(
5299  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h.  */
5301int i;
5302_ACEOF
5303if ac_fn_c_try_compile "$LINENO"
5304then :
5305  xorg_cv_cc_flag_unused_command_line_argument=yes
5306else case e in #(
5307  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5308esac
5309fi
5310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5311esac
5312fi
5313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5314printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5316	CFLAGS="$xorg_testset_save_CFLAGS"
5317fi
5318
5319found="no"
5320
5321	if test $found = "no" ; then
5322		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324		fi
5325
5326		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5328		fi
5329
5330		CFLAGS="$CFLAGS -Wall"
5331
5332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5333printf %s "checking if $CC supports -Wall... " >&6; }
5334		cacheid=xorg_cv_cc_flag__Wall
5335		if eval test \${$cacheid+y}
5336then :
5337  printf %s "(cached) " >&6
5338else case e in #(
5339  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h.  */
5341int i;
5342int
5343main (void)
5344{
5345
5346  ;
5347  return 0;
5348}
5349_ACEOF
5350if ac_fn_c_try_link "$LINENO"
5351then :
5352  eval $cacheid=yes
5353else case e in #(
5354  e) eval $cacheid=no ;;
5355esac
5356fi
5357rm -f core conftest.err conftest.$ac_objext conftest.beam \
5358    conftest$ac_exeext conftest.$ac_ext ;;
5359esac
5360fi
5361
5362
5363		CFLAGS="$xorg_testset_save_CFLAGS"
5364
5365		eval supported=\$$cacheid
5366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5367printf "%s\n" "$supported" >&6; }
5368		if test "$supported" = "yes" ; then
5369			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5370			found="yes"
5371		fi
5372	fi
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388xorg_testset_save_CFLAGS="$CFLAGS"
5389
5390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5392	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5393printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5394if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5395then :
5396  printf %s "(cached) " >&6
5397else case e in #(
5398  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399/* end confdefs.h.  */
5400int i;
5401_ACEOF
5402if ac_fn_c_try_compile "$LINENO"
5403then :
5404  xorg_cv_cc_flag_unknown_warning_option=yes
5405else case e in #(
5406  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5407esac
5408fi
5409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5410esac
5411fi
5412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5413printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5414	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5415	CFLAGS="$xorg_testset_save_CFLAGS"
5416fi
5417
5418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5419	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5420		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5421	fi
5422	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5423	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5424printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5425if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5426then :
5427  printf %s "(cached) " >&6
5428else case e in #(
5429  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430/* end confdefs.h.  */
5431int i;
5432_ACEOF
5433if ac_fn_c_try_compile "$LINENO"
5434then :
5435  xorg_cv_cc_flag_unused_command_line_argument=yes
5436else case e in #(
5437  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5438esac
5439fi
5440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5441esac
5442fi
5443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5444printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5446	CFLAGS="$xorg_testset_save_CFLAGS"
5447fi
5448
5449found="no"
5450
5451	if test $found = "no" ; then
5452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454		fi
5455
5456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5458		fi
5459
5460		CFLAGS="$CFLAGS -Wpointer-arith"
5461
5462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5463printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5464		cacheid=xorg_cv_cc_flag__Wpointer_arith
5465		if eval test \${$cacheid+y}
5466then :
5467  printf %s "(cached) " >&6
5468else case e in #(
5469  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h.  */
5471int i;
5472int
5473main (void)
5474{
5475
5476  ;
5477  return 0;
5478}
5479_ACEOF
5480if ac_fn_c_try_link "$LINENO"
5481then :
5482  eval $cacheid=yes
5483else case e in #(
5484  e) eval $cacheid=no ;;
5485esac
5486fi
5487rm -f core conftest.err conftest.$ac_objext conftest.beam \
5488    conftest$ac_exeext conftest.$ac_ext ;;
5489esac
5490fi
5491
5492
5493		CFLAGS="$xorg_testset_save_CFLAGS"
5494
5495		eval supported=\$$cacheid
5496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5497printf "%s\n" "$supported" >&6; }
5498		if test "$supported" = "yes" ; then
5499			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5500			found="yes"
5501		fi
5502	fi
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518xorg_testset_save_CFLAGS="$CFLAGS"
5519
5520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5524if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5525then :
5526  printf %s "(cached) " >&6
5527else case e in #(
5528  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529/* end confdefs.h.  */
5530int i;
5531_ACEOF
5532if ac_fn_c_try_compile "$LINENO"
5533then :
5534  xorg_cv_cc_flag_unknown_warning_option=yes
5535else case e in #(
5536  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5537esac
5538fi
5539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5540esac
5541fi
5542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5543printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5545	CFLAGS="$xorg_testset_save_CFLAGS"
5546fi
5547
5548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5551	fi
5552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5553	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5554printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5555if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5556then :
5557  printf %s "(cached) " >&6
5558else case e in #(
5559  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h.  */
5561int i;
5562_ACEOF
5563if ac_fn_c_try_compile "$LINENO"
5564then :
5565  xorg_cv_cc_flag_unused_command_line_argument=yes
5566else case e in #(
5567  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5568esac
5569fi
5570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5571esac
5572fi
5573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5574printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5575	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5576	CFLAGS="$xorg_testset_save_CFLAGS"
5577fi
5578
5579found="no"
5580
5581	if test $found = "no" ; then
5582		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5584		fi
5585
5586		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5588		fi
5589
5590		CFLAGS="$CFLAGS -Wmissing-declarations"
5591
5592		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5593printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5594		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5595		if eval test \${$cacheid+y}
5596then :
5597  printf %s "(cached) " >&6
5598else case e in #(
5599  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600/* end confdefs.h.  */
5601int i;
5602int
5603main (void)
5604{
5605
5606  ;
5607  return 0;
5608}
5609_ACEOF
5610if ac_fn_c_try_link "$LINENO"
5611then :
5612  eval $cacheid=yes
5613else case e in #(
5614  e) eval $cacheid=no ;;
5615esac
5616fi
5617rm -f core conftest.err conftest.$ac_objext conftest.beam \
5618    conftest$ac_exeext conftest.$ac_ext ;;
5619esac
5620fi
5621
5622
5623		CFLAGS="$xorg_testset_save_CFLAGS"
5624
5625		eval supported=\$$cacheid
5626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5627printf "%s\n" "$supported" >&6; }
5628		if test "$supported" = "yes" ; then
5629			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5630			found="yes"
5631		fi
5632	fi
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648xorg_testset_save_CFLAGS="$CFLAGS"
5649
5650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5653printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5654if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5655then :
5656  printf %s "(cached) " >&6
5657else case e in #(
5658  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h.  */
5660int i;
5661_ACEOF
5662if ac_fn_c_try_compile "$LINENO"
5663then :
5664  xorg_cv_cc_flag_unknown_warning_option=yes
5665else case e in #(
5666  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5667esac
5668fi
5669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5670esac
5671fi
5672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5673printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5674	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5675	CFLAGS="$xorg_testset_save_CFLAGS"
5676fi
5677
5678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5679	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5680		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681	fi
5682	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5683	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5684printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5685if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5686then :
5687  printf %s "(cached) " >&6
5688else case e in #(
5689  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h.  */
5691int i;
5692_ACEOF
5693if ac_fn_c_try_compile "$LINENO"
5694then :
5695  xorg_cv_cc_flag_unused_command_line_argument=yes
5696else case e in #(
5697  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5698esac
5699fi
5700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5701esac
5702fi
5703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5704printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5705	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5706	CFLAGS="$xorg_testset_save_CFLAGS"
5707fi
5708
5709found="no"
5710
5711	if test $found = "no" ; then
5712		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5713			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5714		fi
5715
5716		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5717			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5718		fi
5719
5720		CFLAGS="$CFLAGS -Wformat=2"
5721
5722		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5723printf %s "checking if $CC supports -Wformat=2... " >&6; }
5724		cacheid=xorg_cv_cc_flag__Wformat_2
5725		if eval test \${$cacheid+y}
5726then :
5727  printf %s "(cached) " >&6
5728else case e in #(
5729  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h.  */
5731int i;
5732int
5733main (void)
5734{
5735
5736  ;
5737  return 0;
5738}
5739_ACEOF
5740if ac_fn_c_try_link "$LINENO"
5741then :
5742  eval $cacheid=yes
5743else case e in #(
5744  e) eval $cacheid=no ;;
5745esac
5746fi
5747rm -f core conftest.err conftest.$ac_objext conftest.beam \
5748    conftest$ac_exeext conftest.$ac_ext ;;
5749esac
5750fi
5751
5752
5753		CFLAGS="$xorg_testset_save_CFLAGS"
5754
5755		eval supported=\$$cacheid
5756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5757printf "%s\n" "$supported" >&6; }
5758		if test "$supported" = "yes" ; then
5759			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5760			found="yes"
5761		fi
5762	fi
5763
5764	if test $found = "no" ; then
5765		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5766			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767		fi
5768
5769		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5770			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5771		fi
5772
5773		CFLAGS="$CFLAGS -Wformat"
5774
5775		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5776printf %s "checking if $CC supports -Wformat... " >&6; }
5777		cacheid=xorg_cv_cc_flag__Wformat
5778		if eval test \${$cacheid+y}
5779then :
5780  printf %s "(cached) " >&6
5781else case e in #(
5782  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783/* end confdefs.h.  */
5784int i;
5785int
5786main (void)
5787{
5788
5789  ;
5790  return 0;
5791}
5792_ACEOF
5793if ac_fn_c_try_link "$LINENO"
5794then :
5795  eval $cacheid=yes
5796else case e in #(
5797  e) eval $cacheid=no ;;
5798esac
5799fi
5800rm -f core conftest.err conftest.$ac_objext conftest.beam \
5801    conftest$ac_exeext conftest.$ac_ext ;;
5802esac
5803fi
5804
5805
5806		CFLAGS="$xorg_testset_save_CFLAGS"
5807
5808		eval supported=\$$cacheid
5809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5810printf "%s\n" "$supported" >&6; }
5811		if test "$supported" = "yes" ; then
5812			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5813			found="yes"
5814		fi
5815	fi
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833xorg_testset_save_CFLAGS="$CFLAGS"
5834
5835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5837	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5838printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5839if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5840then :
5841  printf %s "(cached) " >&6
5842else case e in #(
5843  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h.  */
5845int i;
5846_ACEOF
5847if ac_fn_c_try_compile "$LINENO"
5848then :
5849  xorg_cv_cc_flag_unknown_warning_option=yes
5850else case e in #(
5851  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5852esac
5853fi
5854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5855esac
5856fi
5857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5859	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5860	CFLAGS="$xorg_testset_save_CFLAGS"
5861fi
5862
5863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5864	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866	fi
5867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5870if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5871then :
5872  printf %s "(cached) " >&6
5873else case e in #(
5874  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h.  */
5876int i;
5877_ACEOF
5878if ac_fn_c_try_compile "$LINENO"
5879then :
5880  xorg_cv_cc_flag_unused_command_line_argument=yes
5881else case e in #(
5882  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5883esac
5884fi
5885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5886esac
5887fi
5888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5889printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5891	CFLAGS="$xorg_testset_save_CFLAGS"
5892fi
5893
5894found="no"
5895
5896	if test $found = "no" ; then
5897		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899		fi
5900
5901		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5903		fi
5904
5905		CFLAGS="$CFLAGS -Wstrict-prototypes"
5906
5907		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5908printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5909		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5910		if eval test \${$cacheid+y}
5911then :
5912  printf %s "(cached) " >&6
5913else case e in #(
5914  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915/* end confdefs.h.  */
5916int i;
5917int
5918main (void)
5919{
5920
5921  ;
5922  return 0;
5923}
5924_ACEOF
5925if ac_fn_c_try_link "$LINENO"
5926then :
5927  eval $cacheid=yes
5928else case e in #(
5929  e) eval $cacheid=no ;;
5930esac
5931fi
5932rm -f core conftest.err conftest.$ac_objext conftest.beam \
5933    conftest$ac_exeext conftest.$ac_ext ;;
5934esac
5935fi
5936
5937
5938		CFLAGS="$xorg_testset_save_CFLAGS"
5939
5940		eval supported=\$$cacheid
5941		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5942printf "%s\n" "$supported" >&6; }
5943		if test "$supported" = "yes" ; then
5944			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5945			found="yes"
5946		fi
5947	fi
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963xorg_testset_save_CFLAGS="$CFLAGS"
5964
5965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5969if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5970then :
5971  printf %s "(cached) " >&6
5972else case e in #(
5973  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974/* end confdefs.h.  */
5975int i;
5976_ACEOF
5977if ac_fn_c_try_compile "$LINENO"
5978then :
5979  xorg_cv_cc_flag_unknown_warning_option=yes
5980else case e in #(
5981  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5982esac
5983fi
5984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5985esac
5986fi
5987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5990	CFLAGS="$xorg_testset_save_CFLAGS"
5991fi
5992
5993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996	fi
5997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6000if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6001then :
6002  printf %s "(cached) " >&6
6003else case e in #(
6004  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005/* end confdefs.h.  */
6006int i;
6007_ACEOF
6008if ac_fn_c_try_compile "$LINENO"
6009then :
6010  xorg_cv_cc_flag_unused_command_line_argument=yes
6011else case e in #(
6012  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6013esac
6014fi
6015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6016esac
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 -Wmissing-prototypes"
6036
6037		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6038printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6039		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6040		if eval test \${$cacheid+y}
6041then :
6042  printf %s "(cached) " >&6
6043else case e in #(
6044  e) 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 case e in #(
6059  e) eval $cacheid=no ;;
6060esac
6061fi
6062rm -f core conftest.err conftest.$ac_objext conftest.beam \
6063    conftest$ac_exeext conftest.$ac_ext ;;
6064esac
6065fi
6066
6067
6068		CFLAGS="$xorg_testset_save_CFLAGS"
6069
6070		eval supported=\$$cacheid
6071		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6072printf "%s\n" "$supported" >&6; }
6073		if test "$supported" = "yes" ; then
6074			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6075			found="yes"
6076		fi
6077	fi
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093xorg_testset_save_CFLAGS="$CFLAGS"
6094
6095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6096	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6098printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6099if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6100then :
6101  printf %s "(cached) " >&6
6102else case e in #(
6103  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104/* end confdefs.h.  */
6105int i;
6106_ACEOF
6107if ac_fn_c_try_compile "$LINENO"
6108then :
6109  xorg_cv_cc_flag_unknown_warning_option=yes
6110else case e in #(
6111  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6112esac
6113fi
6114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6115esac
6116fi
6117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6118printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6119	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6120	CFLAGS="$xorg_testset_save_CFLAGS"
6121fi
6122
6123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6124	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6125		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6126	fi
6127	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6128	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6129printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6130if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6131then :
6132  printf %s "(cached) " >&6
6133else case e in #(
6134  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135/* end confdefs.h.  */
6136int i;
6137_ACEOF
6138if ac_fn_c_try_compile "$LINENO"
6139then :
6140  xorg_cv_cc_flag_unused_command_line_argument=yes
6141else case e in #(
6142  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6143esac
6144fi
6145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6146esac
6147fi
6148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6149printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6150	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6151	CFLAGS="$xorg_testset_save_CFLAGS"
6152fi
6153
6154found="no"
6155
6156	if test $found = "no" ; then
6157		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6158			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159		fi
6160
6161		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6162			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6163		fi
6164
6165		CFLAGS="$CFLAGS -Wnested-externs"
6166
6167		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6168printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6169		cacheid=xorg_cv_cc_flag__Wnested_externs
6170		if eval test \${$cacheid+y}
6171then :
6172  printf %s "(cached) " >&6
6173else case e in #(
6174  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h.  */
6176int i;
6177int
6178main (void)
6179{
6180
6181  ;
6182  return 0;
6183}
6184_ACEOF
6185if ac_fn_c_try_link "$LINENO"
6186then :
6187  eval $cacheid=yes
6188else case e in #(
6189  e) eval $cacheid=no ;;
6190esac
6191fi
6192rm -f core conftest.err conftest.$ac_objext conftest.beam \
6193    conftest$ac_exeext conftest.$ac_ext ;;
6194esac
6195fi
6196
6197
6198		CFLAGS="$xorg_testset_save_CFLAGS"
6199
6200		eval supported=\$$cacheid
6201		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6202printf "%s\n" "$supported" >&6; }
6203		if test "$supported" = "yes" ; then
6204			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6205			found="yes"
6206		fi
6207	fi
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223xorg_testset_save_CFLAGS="$CFLAGS"
6224
6225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6226	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6228printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6229if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6230then :
6231  printf %s "(cached) " >&6
6232else case e in #(
6233  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234/* end confdefs.h.  */
6235int i;
6236_ACEOF
6237if ac_fn_c_try_compile "$LINENO"
6238then :
6239  xorg_cv_cc_flag_unknown_warning_option=yes
6240else case e in #(
6241  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6242esac
6243fi
6244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6245esac
6246fi
6247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6248printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6250	CFLAGS="$xorg_testset_save_CFLAGS"
6251fi
6252
6253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256	fi
6257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6259printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6260if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6261then :
6262  printf %s "(cached) " >&6
6263else case e in #(
6264  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265/* end confdefs.h.  */
6266int i;
6267_ACEOF
6268if ac_fn_c_try_compile "$LINENO"
6269then :
6270  xorg_cv_cc_flag_unused_command_line_argument=yes
6271else case e in #(
6272  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6273esac
6274fi
6275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6276esac
6277fi
6278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6279printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6280	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6281	CFLAGS="$xorg_testset_save_CFLAGS"
6282fi
6283
6284found="no"
6285
6286	if test $found = "no" ; then
6287		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6289		fi
6290
6291		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6293		fi
6294
6295		CFLAGS="$CFLAGS -Wbad-function-cast"
6296
6297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6298printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6299		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6300		if eval test \${$cacheid+y}
6301then :
6302  printf %s "(cached) " >&6
6303else case e in #(
6304  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305/* end confdefs.h.  */
6306int i;
6307int
6308main (void)
6309{
6310
6311  ;
6312  return 0;
6313}
6314_ACEOF
6315if ac_fn_c_try_link "$LINENO"
6316then :
6317  eval $cacheid=yes
6318else case e in #(
6319  e) eval $cacheid=no ;;
6320esac
6321fi
6322rm -f core conftest.err conftest.$ac_objext conftest.beam \
6323    conftest$ac_exeext conftest.$ac_ext ;;
6324esac
6325fi
6326
6327
6328		CFLAGS="$xorg_testset_save_CFLAGS"
6329
6330		eval supported=\$$cacheid
6331		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6332printf "%s\n" "$supported" >&6; }
6333		if test "$supported" = "yes" ; then
6334			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6335			found="yes"
6336		fi
6337	fi
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353xorg_testset_save_CFLAGS="$CFLAGS"
6354
6355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6356	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6358printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6359if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6360then :
6361  printf %s "(cached) " >&6
6362else case e in #(
6363  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h.  */
6365int i;
6366_ACEOF
6367if ac_fn_c_try_compile "$LINENO"
6368then :
6369  xorg_cv_cc_flag_unknown_warning_option=yes
6370else case e in #(
6371  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6372esac
6373fi
6374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6375esac
6376fi
6377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6378printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6379	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6380	CFLAGS="$xorg_testset_save_CFLAGS"
6381fi
6382
6383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6384	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6385		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386	fi
6387	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6388	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6389printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6390if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6391then :
6392  printf %s "(cached) " >&6
6393else case e in #(
6394  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395/* end confdefs.h.  */
6396int i;
6397_ACEOF
6398if ac_fn_c_try_compile "$LINENO"
6399then :
6400  xorg_cv_cc_flag_unused_command_line_argument=yes
6401else case e in #(
6402  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6403esac
6404fi
6405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6406esac
6407fi
6408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6411	CFLAGS="$xorg_testset_save_CFLAGS"
6412fi
6413
6414found="no"
6415
6416	if test $found = "no" ; then
6417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6419		fi
6420
6421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6423		fi
6424
6425		CFLAGS="$CFLAGS -Wold-style-definition"
6426
6427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6428printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6429		cacheid=xorg_cv_cc_flag__Wold_style_definition
6430		if eval test \${$cacheid+y}
6431then :
6432  printf %s "(cached) " >&6
6433else case e in #(
6434  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h.  */
6436int i;
6437int
6438main (void)
6439{
6440
6441  ;
6442  return 0;
6443}
6444_ACEOF
6445if ac_fn_c_try_link "$LINENO"
6446then :
6447  eval $cacheid=yes
6448else case e in #(
6449  e) eval $cacheid=no ;;
6450esac
6451fi
6452rm -f core conftest.err conftest.$ac_objext conftest.beam \
6453    conftest$ac_exeext conftest.$ac_ext ;;
6454esac
6455fi
6456
6457
6458		CFLAGS="$xorg_testset_save_CFLAGS"
6459
6460		eval supported=\$$cacheid
6461		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6462printf "%s\n" "$supported" >&6; }
6463		if test "$supported" = "yes" ; then
6464			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6465			found="yes"
6466		fi
6467	fi
6468
6469	if test $found = "no" ; then
6470		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6471			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6472		fi
6473
6474		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6475			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6476		fi
6477
6478		CFLAGS="$CFLAGS -fd"
6479
6480		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6481printf %s "checking if $CC supports -fd... " >&6; }
6482		cacheid=xorg_cv_cc_flag__fd
6483		if eval test \${$cacheid+y}
6484then :
6485  printf %s "(cached) " >&6
6486else case e in #(
6487  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488/* end confdefs.h.  */
6489int i;
6490int
6491main (void)
6492{
6493
6494  ;
6495  return 0;
6496}
6497_ACEOF
6498if ac_fn_c_try_link "$LINENO"
6499then :
6500  eval $cacheid=yes
6501else case e in #(
6502  e) eval $cacheid=no ;;
6503esac
6504fi
6505rm -f core conftest.err conftest.$ac_objext conftest.beam \
6506    conftest$ac_exeext conftest.$ac_ext ;;
6507esac
6508fi
6509
6510
6511		CFLAGS="$xorg_testset_save_CFLAGS"
6512
6513		eval supported=\$$cacheid
6514		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6515printf "%s\n" "$supported" >&6; }
6516		if test "$supported" = "yes" ; then
6517			BASE_CFLAGS="$BASE_CFLAGS -fd"
6518			found="yes"
6519		fi
6520	fi
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536xorg_testset_save_CFLAGS="$CFLAGS"
6537
6538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6541printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6542if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6543then :
6544  printf %s "(cached) " >&6
6545else case e in #(
6546  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547/* end confdefs.h.  */
6548int i;
6549_ACEOF
6550if ac_fn_c_try_compile "$LINENO"
6551then :
6552  xorg_cv_cc_flag_unknown_warning_option=yes
6553else case e in #(
6554  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6555esac
6556fi
6557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6558esac
6559fi
6560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6563	CFLAGS="$xorg_testset_save_CFLAGS"
6564fi
6565
6566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569	fi
6570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6573if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6574then :
6575  printf %s "(cached) " >&6
6576else case e in #(
6577  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578/* end confdefs.h.  */
6579int i;
6580_ACEOF
6581if ac_fn_c_try_compile "$LINENO"
6582then :
6583  xorg_cv_cc_flag_unused_command_line_argument=yes
6584else case e in #(
6585  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6586esac
6587fi
6588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6589esac
6590fi
6591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6592printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6593	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6594	CFLAGS="$xorg_testset_save_CFLAGS"
6595fi
6596
6597found="no"
6598
6599	if test $found = "no" ; then
6600		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6601			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6602		fi
6603
6604		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6605			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6606		fi
6607
6608		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6609
6610		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6611printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6612		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6613		if eval test \${$cacheid+y}
6614then :
6615  printf %s "(cached) " >&6
6616else case e in #(
6617  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h.  */
6619int i;
6620int
6621main (void)
6622{
6623
6624  ;
6625  return 0;
6626}
6627_ACEOF
6628if ac_fn_c_try_link "$LINENO"
6629then :
6630  eval $cacheid=yes
6631else case e in #(
6632  e) eval $cacheid=no ;;
6633esac
6634fi
6635rm -f core conftest.err conftest.$ac_objext conftest.beam \
6636    conftest$ac_exeext conftest.$ac_ext ;;
6637esac
6638fi
6639
6640
6641		CFLAGS="$xorg_testset_save_CFLAGS"
6642
6643		eval supported=\$$cacheid
6644		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6645printf "%s\n" "$supported" >&6; }
6646		if test "$supported" = "yes" ; then
6647			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6648			found="yes"
6649		fi
6650	fi
6651
6652
6653
6654
6655
6656# This chunk adds additional warnings that could catch undesired effects.
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670xorg_testset_save_CFLAGS="$CFLAGS"
6671
6672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6674	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6675printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6676if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6677then :
6678  printf %s "(cached) " >&6
6679else case e in #(
6680  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681/* end confdefs.h.  */
6682int i;
6683_ACEOF
6684if ac_fn_c_try_compile "$LINENO"
6685then :
6686  xorg_cv_cc_flag_unknown_warning_option=yes
6687else case e in #(
6688  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6689esac
6690fi
6691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6692esac
6693fi
6694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6697	CFLAGS="$xorg_testset_save_CFLAGS"
6698fi
6699
6700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703	fi
6704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6707if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6708then :
6709  printf %s "(cached) " >&6
6710else case e in #(
6711  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712/* end confdefs.h.  */
6713int i;
6714_ACEOF
6715if ac_fn_c_try_compile "$LINENO"
6716then :
6717  xorg_cv_cc_flag_unused_command_line_argument=yes
6718else case e in #(
6719  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6720esac
6721fi
6722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6723esac
6724fi
6725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6726printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6728	CFLAGS="$xorg_testset_save_CFLAGS"
6729fi
6730
6731found="no"
6732
6733	if test $found = "no" ; then
6734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6736		fi
6737
6738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6740		fi
6741
6742		CFLAGS="$CFLAGS -Wunused"
6743
6744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6745printf %s "checking if $CC supports -Wunused... " >&6; }
6746		cacheid=xorg_cv_cc_flag__Wunused
6747		if eval test \${$cacheid+y}
6748then :
6749  printf %s "(cached) " >&6
6750else case e in #(
6751  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752/* end confdefs.h.  */
6753int i;
6754int
6755main (void)
6756{
6757
6758  ;
6759  return 0;
6760}
6761_ACEOF
6762if ac_fn_c_try_link "$LINENO"
6763then :
6764  eval $cacheid=yes
6765else case e in #(
6766  e) eval $cacheid=no ;;
6767esac
6768fi
6769rm -f core conftest.err conftest.$ac_objext conftest.beam \
6770    conftest$ac_exeext conftest.$ac_ext ;;
6771esac
6772fi
6773
6774
6775		CFLAGS="$xorg_testset_save_CFLAGS"
6776
6777		eval supported=\$$cacheid
6778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6779printf "%s\n" "$supported" >&6; }
6780		if test "$supported" = "yes" ; then
6781			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6782			found="yes"
6783		fi
6784	fi
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800xorg_testset_save_CFLAGS="$CFLAGS"
6801
6802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6803	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6805printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6806if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6807then :
6808  printf %s "(cached) " >&6
6809else case e in #(
6810  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h.  */
6812int i;
6813_ACEOF
6814if ac_fn_c_try_compile "$LINENO"
6815then :
6816  xorg_cv_cc_flag_unknown_warning_option=yes
6817else case e in #(
6818  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6819esac
6820fi
6821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6822esac
6823fi
6824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6825printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6827	CFLAGS="$xorg_testset_save_CFLAGS"
6828fi
6829
6830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6833	fi
6834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6836printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6837if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6838then :
6839  printf %s "(cached) " >&6
6840else case e in #(
6841  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842/* end confdefs.h.  */
6843int i;
6844_ACEOF
6845if ac_fn_c_try_compile "$LINENO"
6846then :
6847  xorg_cv_cc_flag_unused_command_line_argument=yes
6848else case e in #(
6849  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6850esac
6851fi
6852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6853esac
6854fi
6855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6856printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6857	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6858	CFLAGS="$xorg_testset_save_CFLAGS"
6859fi
6860
6861found="no"
6862
6863	if test $found = "no" ; then
6864		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6865			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6866		fi
6867
6868		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6869			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6870		fi
6871
6872		CFLAGS="$CFLAGS -Wuninitialized"
6873
6874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6875printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6876		cacheid=xorg_cv_cc_flag__Wuninitialized
6877		if eval test \${$cacheid+y}
6878then :
6879  printf %s "(cached) " >&6
6880else case e in #(
6881  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882/* end confdefs.h.  */
6883int i;
6884int
6885main (void)
6886{
6887
6888  ;
6889  return 0;
6890}
6891_ACEOF
6892if ac_fn_c_try_link "$LINENO"
6893then :
6894  eval $cacheid=yes
6895else case e in #(
6896  e) eval $cacheid=no ;;
6897esac
6898fi
6899rm -f core conftest.err conftest.$ac_objext conftest.beam \
6900    conftest$ac_exeext conftest.$ac_ext ;;
6901esac
6902fi
6903
6904
6905		CFLAGS="$xorg_testset_save_CFLAGS"
6906
6907		eval supported=\$$cacheid
6908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6909printf "%s\n" "$supported" >&6; }
6910		if test "$supported" = "yes" ; then
6911			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6912			found="yes"
6913		fi
6914	fi
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930xorg_testset_save_CFLAGS="$CFLAGS"
6931
6932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6933	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6936if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6937then :
6938  printf %s "(cached) " >&6
6939else case e in #(
6940  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941/* end confdefs.h.  */
6942int i;
6943_ACEOF
6944if ac_fn_c_try_compile "$LINENO"
6945then :
6946  xorg_cv_cc_flag_unknown_warning_option=yes
6947else case e in #(
6948  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6949esac
6950fi
6951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6952esac
6953fi
6954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6955printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6956	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6957	CFLAGS="$xorg_testset_save_CFLAGS"
6958fi
6959
6960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6961	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6962		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6963	fi
6964	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6965	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6966printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6967if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6968then :
6969  printf %s "(cached) " >&6
6970else case e in #(
6971  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972/* end confdefs.h.  */
6973int i;
6974_ACEOF
6975if ac_fn_c_try_compile "$LINENO"
6976then :
6977  xorg_cv_cc_flag_unused_command_line_argument=yes
6978else case e in #(
6979  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6980esac
6981fi
6982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6983esac
6984fi
6985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6986printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6988	CFLAGS="$xorg_testset_save_CFLAGS"
6989fi
6990
6991found="no"
6992
6993	if test $found = "no" ; then
6994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996		fi
6997
6998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7000		fi
7001
7002		CFLAGS="$CFLAGS -Wshadow"
7003
7004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7005printf %s "checking if $CC supports -Wshadow... " >&6; }
7006		cacheid=xorg_cv_cc_flag__Wshadow
7007		if eval test \${$cacheid+y}
7008then :
7009  printf %s "(cached) " >&6
7010else case e in #(
7011  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012/* end confdefs.h.  */
7013int i;
7014int
7015main (void)
7016{
7017
7018  ;
7019  return 0;
7020}
7021_ACEOF
7022if ac_fn_c_try_link "$LINENO"
7023then :
7024  eval $cacheid=yes
7025else case e in #(
7026  e) eval $cacheid=no ;;
7027esac
7028fi
7029rm -f core conftest.err conftest.$ac_objext conftest.beam \
7030    conftest$ac_exeext conftest.$ac_ext ;;
7031esac
7032fi
7033
7034
7035		CFLAGS="$xorg_testset_save_CFLAGS"
7036
7037		eval supported=\$$cacheid
7038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7039printf "%s\n" "$supported" >&6; }
7040		if test "$supported" = "yes" ; then
7041			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7042			found="yes"
7043		fi
7044	fi
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060xorg_testset_save_CFLAGS="$CFLAGS"
7061
7062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7063	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7066if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7067then :
7068  printf %s "(cached) " >&6
7069else case e in #(
7070  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071/* end confdefs.h.  */
7072int i;
7073_ACEOF
7074if ac_fn_c_try_compile "$LINENO"
7075then :
7076  xorg_cv_cc_flag_unknown_warning_option=yes
7077else case e in #(
7078  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7079esac
7080fi
7081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7082esac
7083fi
7084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7085printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7086	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7087	CFLAGS="$xorg_testset_save_CFLAGS"
7088fi
7089
7090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7091	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7092		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7093	fi
7094	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7095	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7096printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7097if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7098then :
7099  printf %s "(cached) " >&6
7100else case e in #(
7101  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h.  */
7103int i;
7104_ACEOF
7105if ac_fn_c_try_compile "$LINENO"
7106then :
7107  xorg_cv_cc_flag_unused_command_line_argument=yes
7108else case e in #(
7109  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7110esac
7111fi
7112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7113esac
7114fi
7115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7116printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7117	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7118	CFLAGS="$xorg_testset_save_CFLAGS"
7119fi
7120
7121found="no"
7122
7123	if test $found = "no" ; then
7124		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7125			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7126		fi
7127
7128		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7129			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7130		fi
7131
7132		CFLAGS="$CFLAGS -Wmissing-noreturn"
7133
7134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7135printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7136		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7137		if eval test \${$cacheid+y}
7138then :
7139  printf %s "(cached) " >&6
7140else case e in #(
7141  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142/* end confdefs.h.  */
7143int i;
7144int
7145main (void)
7146{
7147
7148  ;
7149  return 0;
7150}
7151_ACEOF
7152if ac_fn_c_try_link "$LINENO"
7153then :
7154  eval $cacheid=yes
7155else case e in #(
7156  e) eval $cacheid=no ;;
7157esac
7158fi
7159rm -f core conftest.err conftest.$ac_objext conftest.beam \
7160    conftest$ac_exeext conftest.$ac_ext ;;
7161esac
7162fi
7163
7164
7165		CFLAGS="$xorg_testset_save_CFLAGS"
7166
7167		eval supported=\$$cacheid
7168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7169printf "%s\n" "$supported" >&6; }
7170		if test "$supported" = "yes" ; then
7171			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7172			found="yes"
7173		fi
7174	fi
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190xorg_testset_save_CFLAGS="$CFLAGS"
7191
7192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7194	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7195printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7196if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7197then :
7198  printf %s "(cached) " >&6
7199else case e in #(
7200  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201/* end confdefs.h.  */
7202int i;
7203_ACEOF
7204if ac_fn_c_try_compile "$LINENO"
7205then :
7206  xorg_cv_cc_flag_unknown_warning_option=yes
7207else case e in #(
7208  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7209esac
7210fi
7211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7212esac
7213fi
7214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7217	CFLAGS="$xorg_testset_save_CFLAGS"
7218fi
7219
7220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7223	fi
7224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7227if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7228then :
7229  printf %s "(cached) " >&6
7230else case e in #(
7231  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233int i;
7234_ACEOF
7235if ac_fn_c_try_compile "$LINENO"
7236then :
7237  xorg_cv_cc_flag_unused_command_line_argument=yes
7238else case e in #(
7239  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7240esac
7241fi
7242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7243esac
7244fi
7245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7248	CFLAGS="$xorg_testset_save_CFLAGS"
7249fi
7250
7251found="no"
7252
7253	if test $found = "no" ; then
7254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7256		fi
7257
7258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7260		fi
7261
7262		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7263
7264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7265printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7266		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7267		if eval test \${$cacheid+y}
7268then :
7269  printf %s "(cached) " >&6
7270else case e in #(
7271  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272/* end confdefs.h.  */
7273int i;
7274int
7275main (void)
7276{
7277
7278  ;
7279  return 0;
7280}
7281_ACEOF
7282if ac_fn_c_try_link "$LINENO"
7283then :
7284  eval $cacheid=yes
7285else case e in #(
7286  e) eval $cacheid=no ;;
7287esac
7288fi
7289rm -f core conftest.err conftest.$ac_objext conftest.beam \
7290    conftest$ac_exeext conftest.$ac_ext ;;
7291esac
7292fi
7293
7294
7295		CFLAGS="$xorg_testset_save_CFLAGS"
7296
7297		eval supported=\$$cacheid
7298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7299printf "%s\n" "$supported" >&6; }
7300		if test "$supported" = "yes" ; then
7301			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7302			found="yes"
7303		fi
7304	fi
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320xorg_testset_save_CFLAGS="$CFLAGS"
7321
7322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7324	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7326if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7327then :
7328  printf %s "(cached) " >&6
7329else case e in #(
7330  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h.  */
7332int i;
7333_ACEOF
7334if ac_fn_c_try_compile "$LINENO"
7335then :
7336  xorg_cv_cc_flag_unknown_warning_option=yes
7337else case e in #(
7338  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7339esac
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7342esac
7343fi
7344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7345printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7347	CFLAGS="$xorg_testset_save_CFLAGS"
7348fi
7349
7350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7353	fi
7354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7356printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7357if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7358then :
7359  printf %s "(cached) " >&6
7360else case e in #(
7361  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362/* end confdefs.h.  */
7363int i;
7364_ACEOF
7365if ac_fn_c_try_compile "$LINENO"
7366then :
7367  xorg_cv_cc_flag_unused_command_line_argument=yes
7368else case e in #(
7369  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7370esac
7371fi
7372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7373esac
7374fi
7375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7376printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7378	CFLAGS="$xorg_testset_save_CFLAGS"
7379fi
7380
7381found="no"
7382
7383	if test $found = "no" ; then
7384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7386		fi
7387
7388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7390		fi
7391
7392		CFLAGS="$CFLAGS -Wredundant-decls"
7393
7394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7395printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7396		cacheid=xorg_cv_cc_flag__Wredundant_decls
7397		if eval test \${$cacheid+y}
7398then :
7399  printf %s "(cached) " >&6
7400else case e in #(
7401  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h.  */
7403int i;
7404int
7405main (void)
7406{
7407
7408  ;
7409  return 0;
7410}
7411_ACEOF
7412if ac_fn_c_try_link "$LINENO"
7413then :
7414  eval $cacheid=yes
7415else case e in #(
7416  e) eval $cacheid=no ;;
7417esac
7418fi
7419rm -f core conftest.err conftest.$ac_objext conftest.beam \
7420    conftest$ac_exeext conftest.$ac_ext ;;
7421esac
7422fi
7423
7424
7425		CFLAGS="$xorg_testset_save_CFLAGS"
7426
7427		eval supported=\$$cacheid
7428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7429printf "%s\n" "$supported" >&6; }
7430		if test "$supported" = "yes" ; then
7431			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7432			found="yes"
7433		fi
7434	fi
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450xorg_testset_save_CFLAGS="$CFLAGS"
7451
7452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7455printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7456if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7457then :
7458  printf %s "(cached) " >&6
7459else case e in #(
7460  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h.  */
7462int i;
7463_ACEOF
7464if ac_fn_c_try_compile "$LINENO"
7465then :
7466  xorg_cv_cc_flag_unknown_warning_option=yes
7467else case e in #(
7468  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7469esac
7470fi
7471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7472esac
7473fi
7474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7475printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7476	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7477	CFLAGS="$xorg_testset_save_CFLAGS"
7478fi
7479
7480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7481	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7482		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7483	fi
7484	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7486printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7487if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7488then :
7489  printf %s "(cached) " >&6
7490else case e in #(
7491  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492/* end confdefs.h.  */
7493int i;
7494_ACEOF
7495if ac_fn_c_try_compile "$LINENO"
7496then :
7497  xorg_cv_cc_flag_unused_command_line_argument=yes
7498else case e in #(
7499  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7500esac
7501fi
7502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7503esac
7504fi
7505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7506printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7507	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7508	CFLAGS="$xorg_testset_save_CFLAGS"
7509fi
7510
7511found="no"
7512
7513	if test $found = "no" ; then
7514		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7516		fi
7517
7518		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7520		fi
7521
7522		CFLAGS="$CFLAGS -Wlogical-op"
7523
7524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7525printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7526		cacheid=xorg_cv_cc_flag__Wlogical_op
7527		if eval test \${$cacheid+y}
7528then :
7529  printf %s "(cached) " >&6
7530else case e in #(
7531  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532/* end confdefs.h.  */
7533int i;
7534int
7535main (void)
7536{
7537
7538  ;
7539  return 0;
7540}
7541_ACEOF
7542if ac_fn_c_try_link "$LINENO"
7543then :
7544  eval $cacheid=yes
7545else case e in #(
7546  e) eval $cacheid=no ;;
7547esac
7548fi
7549rm -f core conftest.err conftest.$ac_objext conftest.beam \
7550    conftest$ac_exeext conftest.$ac_ext ;;
7551esac
7552fi
7553
7554
7555		CFLAGS="$xorg_testset_save_CFLAGS"
7556
7557		eval supported=\$$cacheid
7558		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7559printf "%s\n" "$supported" >&6; }
7560		if test "$supported" = "yes" ; then
7561			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7562			found="yes"
7563		fi
7564	fi
7565
7566
7567
7568# These are currently disabled because they are noisy.  They will be enabled
7569# in the future once the codebase is sufficiently modernized to silence
7570# them.  For now, I don't want them to drown out the other warnings.
7571# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7572# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7573# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7574
7575# Turn some warnings into errors, so we don't accidentally get successful builds
7576# when there are problems that should be fixed.
7577
7578if test "x$SELECTIVE_WERROR" = "xyes" ; then
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592xorg_testset_save_CFLAGS="$CFLAGS"
7593
7594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7595	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7596	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7597printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7598if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7599then :
7600  printf %s "(cached) " >&6
7601else case e in #(
7602  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h.  */
7604int i;
7605_ACEOF
7606if ac_fn_c_try_compile "$LINENO"
7607then :
7608  xorg_cv_cc_flag_unknown_warning_option=yes
7609else case e in #(
7610  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7611esac
7612fi
7613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7614esac
7615fi
7616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7618	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7619	CFLAGS="$xorg_testset_save_CFLAGS"
7620fi
7621
7622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7623	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7624		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7625	fi
7626	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7629if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7630then :
7631  printf %s "(cached) " >&6
7632else case e in #(
7633  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634/* end confdefs.h.  */
7635int i;
7636_ACEOF
7637if ac_fn_c_try_compile "$LINENO"
7638then :
7639  xorg_cv_cc_flag_unused_command_line_argument=yes
7640else case e in #(
7641  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7642esac
7643fi
7644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7645esac
7646fi
7647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7648printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7649	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7650	CFLAGS="$xorg_testset_save_CFLAGS"
7651fi
7652
7653found="no"
7654
7655	if test $found = "no" ; then
7656		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7657			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7658		fi
7659
7660		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7661			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7662		fi
7663
7664		CFLAGS="$CFLAGS -Werror=implicit"
7665
7666		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7667printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7668		cacheid=xorg_cv_cc_flag__Werror_implicit
7669		if eval test \${$cacheid+y}
7670then :
7671  printf %s "(cached) " >&6
7672else case e in #(
7673  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674/* end confdefs.h.  */
7675int i;
7676int
7677main (void)
7678{
7679
7680  ;
7681  return 0;
7682}
7683_ACEOF
7684if ac_fn_c_try_link "$LINENO"
7685then :
7686  eval $cacheid=yes
7687else case e in #(
7688  e) eval $cacheid=no ;;
7689esac
7690fi
7691rm -f core conftest.err conftest.$ac_objext conftest.beam \
7692    conftest$ac_exeext conftest.$ac_ext ;;
7693esac
7694fi
7695
7696
7697		CFLAGS="$xorg_testset_save_CFLAGS"
7698
7699		eval supported=\$$cacheid
7700		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7701printf "%s\n" "$supported" >&6; }
7702		if test "$supported" = "yes" ; then
7703			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7704			found="yes"
7705		fi
7706	fi
7707
7708	if test $found = "no" ; then
7709		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711		fi
7712
7713		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7715		fi
7716
7717		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7718
7719		{ 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
7720printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7721		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7722		if eval test \${$cacheid+y}
7723then :
7724  printf %s "(cached) " >&6
7725else case e in #(
7726  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727/* end confdefs.h.  */
7728int i;
7729int
7730main (void)
7731{
7732
7733  ;
7734  return 0;
7735}
7736_ACEOF
7737if ac_fn_c_try_link "$LINENO"
7738then :
7739  eval $cacheid=yes
7740else case e in #(
7741  e) eval $cacheid=no ;;
7742esac
7743fi
7744rm -f core conftest.err conftest.$ac_objext conftest.beam \
7745    conftest$ac_exeext conftest.$ac_ext ;;
7746esac
7747fi
7748
7749
7750		CFLAGS="$xorg_testset_save_CFLAGS"
7751
7752		eval supported=\$$cacheid
7753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7754printf "%s\n" "$supported" >&6; }
7755		if test "$supported" = "yes" ; then
7756			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7757			found="yes"
7758		fi
7759	fi
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775xorg_testset_save_CFLAGS="$CFLAGS"
7776
7777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7780printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7781if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7782then :
7783  printf %s "(cached) " >&6
7784else case e in #(
7785  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h.  */
7787int i;
7788_ACEOF
7789if ac_fn_c_try_compile "$LINENO"
7790then :
7791  xorg_cv_cc_flag_unknown_warning_option=yes
7792else case e in #(
7793  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7794esac
7795fi
7796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7797esac
7798fi
7799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7800printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7802	CFLAGS="$xorg_testset_save_CFLAGS"
7803fi
7804
7805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7808	fi
7809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7810	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7811printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7812if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7813then :
7814  printf %s "(cached) " >&6
7815else case e in #(
7816  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817/* end confdefs.h.  */
7818int i;
7819_ACEOF
7820if ac_fn_c_try_compile "$LINENO"
7821then :
7822  xorg_cv_cc_flag_unused_command_line_argument=yes
7823else case e in #(
7824  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7825esac
7826fi
7827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7828esac
7829fi
7830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7831printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7832	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7833	CFLAGS="$xorg_testset_save_CFLAGS"
7834fi
7835
7836found="no"
7837
7838	if test $found = "no" ; then
7839		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7840			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7841		fi
7842
7843		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7844			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7845		fi
7846
7847		CFLAGS="$CFLAGS -Werror=nonnull"
7848
7849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7850printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7851		cacheid=xorg_cv_cc_flag__Werror_nonnull
7852		if eval test \${$cacheid+y}
7853then :
7854  printf %s "(cached) " >&6
7855else case e in #(
7856  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857/* end confdefs.h.  */
7858int i;
7859int
7860main (void)
7861{
7862
7863  ;
7864  return 0;
7865}
7866_ACEOF
7867if ac_fn_c_try_link "$LINENO"
7868then :
7869  eval $cacheid=yes
7870else case e in #(
7871  e) eval $cacheid=no ;;
7872esac
7873fi
7874rm -f core conftest.err conftest.$ac_objext conftest.beam \
7875    conftest$ac_exeext conftest.$ac_ext ;;
7876esac
7877fi
7878
7879
7880		CFLAGS="$xorg_testset_save_CFLAGS"
7881
7882		eval supported=\$$cacheid
7883		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7884printf "%s\n" "$supported" >&6; }
7885		if test "$supported" = "yes" ; then
7886			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7887			found="yes"
7888		fi
7889	fi
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905xorg_testset_save_CFLAGS="$CFLAGS"
7906
7907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7908	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7909	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7910printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7911if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7912then :
7913  printf %s "(cached) " >&6
7914else case e in #(
7915  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916/* end confdefs.h.  */
7917int i;
7918_ACEOF
7919if ac_fn_c_try_compile "$LINENO"
7920then :
7921  xorg_cv_cc_flag_unknown_warning_option=yes
7922else case e in #(
7923  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7924esac
7925fi
7926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7927esac
7928fi
7929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7930printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7931	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7932	CFLAGS="$xorg_testset_save_CFLAGS"
7933fi
7934
7935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7936	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7937		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7938	fi
7939	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7941printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7942if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7943then :
7944  printf %s "(cached) " >&6
7945else case e in #(
7946  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h.  */
7948int i;
7949_ACEOF
7950if ac_fn_c_try_compile "$LINENO"
7951then :
7952  xorg_cv_cc_flag_unused_command_line_argument=yes
7953else case e in #(
7954  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7955esac
7956fi
7957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7958esac
7959fi
7960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7961printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7962	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7963	CFLAGS="$xorg_testset_save_CFLAGS"
7964fi
7965
7966found="no"
7967
7968	if test $found = "no" ; then
7969		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7971		fi
7972
7973		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7975		fi
7976
7977		CFLAGS="$CFLAGS -Werror=init-self"
7978
7979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7980printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7981		cacheid=xorg_cv_cc_flag__Werror_init_self
7982		if eval test \${$cacheid+y}
7983then :
7984  printf %s "(cached) " >&6
7985else case e in #(
7986  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987/* end confdefs.h.  */
7988int i;
7989int
7990main (void)
7991{
7992
7993  ;
7994  return 0;
7995}
7996_ACEOF
7997if ac_fn_c_try_link "$LINENO"
7998then :
7999  eval $cacheid=yes
8000else case e in #(
8001  e) eval $cacheid=no ;;
8002esac
8003fi
8004rm -f core conftest.err conftest.$ac_objext conftest.beam \
8005    conftest$ac_exeext conftest.$ac_ext ;;
8006esac
8007fi
8008
8009
8010		CFLAGS="$xorg_testset_save_CFLAGS"
8011
8012		eval supported=\$$cacheid
8013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8014printf "%s\n" "$supported" >&6; }
8015		if test "$supported" = "yes" ; then
8016			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8017			found="yes"
8018		fi
8019	fi
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035xorg_testset_save_CFLAGS="$CFLAGS"
8036
8037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8040printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8041if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8042then :
8043  printf %s "(cached) " >&6
8044else case e in #(
8045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h.  */
8047int i;
8048_ACEOF
8049if ac_fn_c_try_compile "$LINENO"
8050then :
8051  xorg_cv_cc_flag_unknown_warning_option=yes
8052else case e in #(
8053  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8054esac
8055fi
8056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8057esac
8058fi
8059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8060printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8062	CFLAGS="$xorg_testset_save_CFLAGS"
8063fi
8064
8065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8068	fi
8069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8071printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8072if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8073then :
8074  printf %s "(cached) " >&6
8075else case e in #(
8076  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077/* end confdefs.h.  */
8078int i;
8079_ACEOF
8080if ac_fn_c_try_compile "$LINENO"
8081then :
8082  xorg_cv_cc_flag_unused_command_line_argument=yes
8083else case e in #(
8084  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8085esac
8086fi
8087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8088esac
8089fi
8090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8093	CFLAGS="$xorg_testset_save_CFLAGS"
8094fi
8095
8096found="no"
8097
8098	if test $found = "no" ; then
8099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8101		fi
8102
8103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8105		fi
8106
8107		CFLAGS="$CFLAGS -Werror=main"
8108
8109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8110printf %s "checking if $CC supports -Werror=main... " >&6; }
8111		cacheid=xorg_cv_cc_flag__Werror_main
8112		if eval test \${$cacheid+y}
8113then :
8114  printf %s "(cached) " >&6
8115else case e in #(
8116  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117/* end confdefs.h.  */
8118int i;
8119int
8120main (void)
8121{
8122
8123  ;
8124  return 0;
8125}
8126_ACEOF
8127if ac_fn_c_try_link "$LINENO"
8128then :
8129  eval $cacheid=yes
8130else case e in #(
8131  e) eval $cacheid=no ;;
8132esac
8133fi
8134rm -f core conftest.err conftest.$ac_objext conftest.beam \
8135    conftest$ac_exeext conftest.$ac_ext ;;
8136esac
8137fi
8138
8139
8140		CFLAGS="$xorg_testset_save_CFLAGS"
8141
8142		eval supported=\$$cacheid
8143		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8144printf "%s\n" "$supported" >&6; }
8145		if test "$supported" = "yes" ; then
8146			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8147			found="yes"
8148		fi
8149	fi
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165xorg_testset_save_CFLAGS="$CFLAGS"
8166
8167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8168	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8169	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8170printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8171if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8172then :
8173  printf %s "(cached) " >&6
8174else case e in #(
8175  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176/* end confdefs.h.  */
8177int i;
8178_ACEOF
8179if ac_fn_c_try_compile "$LINENO"
8180then :
8181  xorg_cv_cc_flag_unknown_warning_option=yes
8182else case e in #(
8183  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8184esac
8185fi
8186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8187esac
8188fi
8189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8190printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8192	CFLAGS="$xorg_testset_save_CFLAGS"
8193fi
8194
8195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8198	fi
8199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8200	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8201printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8202if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8203then :
8204  printf %s "(cached) " >&6
8205else case e in #(
8206  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207/* end confdefs.h.  */
8208int i;
8209_ACEOF
8210if ac_fn_c_try_compile "$LINENO"
8211then :
8212  xorg_cv_cc_flag_unused_command_line_argument=yes
8213else case e in #(
8214  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8215esac
8216fi
8217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8218esac
8219fi
8220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8221printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8223	CFLAGS="$xorg_testset_save_CFLAGS"
8224fi
8225
8226found="no"
8227
8228	if test $found = "no" ; then
8229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8231		fi
8232
8233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8235		fi
8236
8237		CFLAGS="$CFLAGS -Werror=missing-braces"
8238
8239		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8240printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8241		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8242		if eval test \${$cacheid+y}
8243then :
8244  printf %s "(cached) " >&6
8245else case e in #(
8246  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h.  */
8248int i;
8249int
8250main (void)
8251{
8252
8253  ;
8254  return 0;
8255}
8256_ACEOF
8257if ac_fn_c_try_link "$LINENO"
8258then :
8259  eval $cacheid=yes
8260else case e in #(
8261  e) eval $cacheid=no ;;
8262esac
8263fi
8264rm -f core conftest.err conftest.$ac_objext conftest.beam \
8265    conftest$ac_exeext conftest.$ac_ext ;;
8266esac
8267fi
8268
8269
8270		CFLAGS="$xorg_testset_save_CFLAGS"
8271
8272		eval supported=\$$cacheid
8273		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8274printf "%s\n" "$supported" >&6; }
8275		if test "$supported" = "yes" ; then
8276			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8277			found="yes"
8278		fi
8279	fi
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295xorg_testset_save_CFLAGS="$CFLAGS"
8296
8297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8299	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8300printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8301if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8302then :
8303  printf %s "(cached) " >&6
8304else case e in #(
8305  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306/* end confdefs.h.  */
8307int i;
8308_ACEOF
8309if ac_fn_c_try_compile "$LINENO"
8310then :
8311  xorg_cv_cc_flag_unknown_warning_option=yes
8312else case e in #(
8313  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8314esac
8315fi
8316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8317esac
8318fi
8319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8321	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8322	CFLAGS="$xorg_testset_save_CFLAGS"
8323fi
8324
8325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8326	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8328	fi
8329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8332if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8333then :
8334  printf %s "(cached) " >&6
8335else case e in #(
8336  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h.  */
8338int i;
8339_ACEOF
8340if ac_fn_c_try_compile "$LINENO"
8341then :
8342  xorg_cv_cc_flag_unused_command_line_argument=yes
8343else case e in #(
8344  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8345esac
8346fi
8347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8348esac
8349fi
8350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8351printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8352	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8353	CFLAGS="$xorg_testset_save_CFLAGS"
8354fi
8355
8356found="no"
8357
8358	if test $found = "no" ; then
8359		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8360			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8361		fi
8362
8363		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8364			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8365		fi
8366
8367		CFLAGS="$CFLAGS -Werror=sequence-point"
8368
8369		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8370printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8371		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8372		if eval test \${$cacheid+y}
8373then :
8374  printf %s "(cached) " >&6
8375else case e in #(
8376  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377/* end confdefs.h.  */
8378int i;
8379int
8380main (void)
8381{
8382
8383  ;
8384  return 0;
8385}
8386_ACEOF
8387if ac_fn_c_try_link "$LINENO"
8388then :
8389  eval $cacheid=yes
8390else case e in #(
8391  e) eval $cacheid=no ;;
8392esac
8393fi
8394rm -f core conftest.err conftest.$ac_objext conftest.beam \
8395    conftest$ac_exeext conftest.$ac_ext ;;
8396esac
8397fi
8398
8399
8400		CFLAGS="$xorg_testset_save_CFLAGS"
8401
8402		eval supported=\$$cacheid
8403		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8404printf "%s\n" "$supported" >&6; }
8405		if test "$supported" = "yes" ; then
8406			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8407			found="yes"
8408		fi
8409	fi
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425xorg_testset_save_CFLAGS="$CFLAGS"
8426
8427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8428	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8429	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8430printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8431if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8432then :
8433  printf %s "(cached) " >&6
8434else case e in #(
8435  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436/* end confdefs.h.  */
8437int i;
8438_ACEOF
8439if ac_fn_c_try_compile "$LINENO"
8440then :
8441  xorg_cv_cc_flag_unknown_warning_option=yes
8442else case e in #(
8443  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8444esac
8445fi
8446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8447esac
8448fi
8449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8450printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8451	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8452	CFLAGS="$xorg_testset_save_CFLAGS"
8453fi
8454
8455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8456	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8457		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8458	fi
8459	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8460	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8461printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8462if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8463then :
8464  printf %s "(cached) " >&6
8465else case e in #(
8466  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467/* end confdefs.h.  */
8468int i;
8469_ACEOF
8470if ac_fn_c_try_compile "$LINENO"
8471then :
8472  xorg_cv_cc_flag_unused_command_line_argument=yes
8473else case e in #(
8474  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8475esac
8476fi
8477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8478esac
8479fi
8480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8481printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8482	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8483	CFLAGS="$xorg_testset_save_CFLAGS"
8484fi
8485
8486found="no"
8487
8488	if test $found = "no" ; then
8489		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8491		fi
8492
8493		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8495		fi
8496
8497		CFLAGS="$CFLAGS -Werror=return-type"
8498
8499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8500printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8501		cacheid=xorg_cv_cc_flag__Werror_return_type
8502		if eval test \${$cacheid+y}
8503then :
8504  printf %s "(cached) " >&6
8505else case e in #(
8506  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507/* end confdefs.h.  */
8508int i;
8509int
8510main (void)
8511{
8512
8513  ;
8514  return 0;
8515}
8516_ACEOF
8517if ac_fn_c_try_link "$LINENO"
8518then :
8519  eval $cacheid=yes
8520else case e in #(
8521  e) eval $cacheid=no ;;
8522esac
8523fi
8524rm -f core conftest.err conftest.$ac_objext conftest.beam \
8525    conftest$ac_exeext conftest.$ac_ext ;;
8526esac
8527fi
8528
8529
8530		CFLAGS="$xorg_testset_save_CFLAGS"
8531
8532		eval supported=\$$cacheid
8533		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8534printf "%s\n" "$supported" >&6; }
8535		if test "$supported" = "yes" ; then
8536			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8537			found="yes"
8538		fi
8539	fi
8540
8541	if test $found = "no" ; then
8542		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544		fi
8545
8546		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8548		fi
8549
8550		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8551
8552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8553printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8554		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8555		if eval test \${$cacheid+y}
8556then :
8557  printf %s "(cached) " >&6
8558else case e in #(
8559  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560/* end confdefs.h.  */
8561int i;
8562int
8563main (void)
8564{
8565
8566  ;
8567  return 0;
8568}
8569_ACEOF
8570if ac_fn_c_try_link "$LINENO"
8571then :
8572  eval $cacheid=yes
8573else case e in #(
8574  e) eval $cacheid=no ;;
8575esac
8576fi
8577rm -f core conftest.err conftest.$ac_objext conftest.beam \
8578    conftest$ac_exeext conftest.$ac_ext ;;
8579esac
8580fi
8581
8582
8583		CFLAGS="$xorg_testset_save_CFLAGS"
8584
8585		eval supported=\$$cacheid
8586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8587printf "%s\n" "$supported" >&6; }
8588		if test "$supported" = "yes" ; then
8589			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8590			found="yes"
8591		fi
8592	fi
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608xorg_testset_save_CFLAGS="$CFLAGS"
8609
8610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8613printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8614if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8615then :
8616  printf %s "(cached) " >&6
8617else case e in #(
8618  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619/* end confdefs.h.  */
8620int i;
8621_ACEOF
8622if ac_fn_c_try_compile "$LINENO"
8623then :
8624  xorg_cv_cc_flag_unknown_warning_option=yes
8625else case e in #(
8626  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8627esac
8628fi
8629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8630esac
8631fi
8632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8635	CFLAGS="$xorg_testset_save_CFLAGS"
8636fi
8637
8638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641	fi
8642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8645if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8646then :
8647  printf %s "(cached) " >&6
8648else case e in #(
8649  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650/* end confdefs.h.  */
8651int i;
8652_ACEOF
8653if ac_fn_c_try_compile "$LINENO"
8654then :
8655  xorg_cv_cc_flag_unused_command_line_argument=yes
8656else case e in #(
8657  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8658esac
8659fi
8660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8661esac
8662fi
8663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8664printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8666	CFLAGS="$xorg_testset_save_CFLAGS"
8667fi
8668
8669found="no"
8670
8671	if test $found = "no" ; then
8672		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674		fi
8675
8676		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8678		fi
8679
8680		CFLAGS="$CFLAGS -Werror=trigraphs"
8681
8682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8683printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8684		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8685		if eval test \${$cacheid+y}
8686then :
8687  printf %s "(cached) " >&6
8688else case e in #(
8689  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h.  */
8691int i;
8692int
8693main (void)
8694{
8695
8696  ;
8697  return 0;
8698}
8699_ACEOF
8700if ac_fn_c_try_link "$LINENO"
8701then :
8702  eval $cacheid=yes
8703else case e in #(
8704  e) eval $cacheid=no ;;
8705esac
8706fi
8707rm -f core conftest.err conftest.$ac_objext conftest.beam \
8708    conftest$ac_exeext conftest.$ac_ext ;;
8709esac
8710fi
8711
8712
8713		CFLAGS="$xorg_testset_save_CFLAGS"
8714
8715		eval supported=\$$cacheid
8716		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8717printf "%s\n" "$supported" >&6; }
8718		if test "$supported" = "yes" ; then
8719			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8720			found="yes"
8721		fi
8722	fi
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738xorg_testset_save_CFLAGS="$CFLAGS"
8739
8740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8743printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8744if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8745then :
8746  printf %s "(cached) " >&6
8747else case e in #(
8748  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h.  */
8750int i;
8751_ACEOF
8752if ac_fn_c_try_compile "$LINENO"
8753then :
8754  xorg_cv_cc_flag_unknown_warning_option=yes
8755else case e in #(
8756  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8757esac
8758fi
8759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8760esac
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 case e in #(
8779  e) 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 case e in #(
8787  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8788esac
8789fi
8790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8791esac
8792fi
8793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8796	CFLAGS="$xorg_testset_save_CFLAGS"
8797fi
8798
8799found="no"
8800
8801	if test $found = "no" ; then
8802		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8804		fi
8805
8806		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8808		fi
8809
8810		CFLAGS="$CFLAGS -Werror=array-bounds"
8811
8812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8813printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8814		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8815		if eval test \${$cacheid+y}
8816then :
8817  printf %s "(cached) " >&6
8818else case e in #(
8819  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820/* end confdefs.h.  */
8821int i;
8822int
8823main (void)
8824{
8825
8826  ;
8827  return 0;
8828}
8829_ACEOF
8830if ac_fn_c_try_link "$LINENO"
8831then :
8832  eval $cacheid=yes
8833else case e in #(
8834  e) eval $cacheid=no ;;
8835esac
8836fi
8837rm -f core conftest.err conftest.$ac_objext conftest.beam \
8838    conftest$ac_exeext conftest.$ac_ext ;;
8839esac
8840fi
8841
8842
8843		CFLAGS="$xorg_testset_save_CFLAGS"
8844
8845		eval supported=\$$cacheid
8846		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8847printf "%s\n" "$supported" >&6; }
8848		if test "$supported" = "yes" ; then
8849			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8850			found="yes"
8851		fi
8852	fi
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868xorg_testset_save_CFLAGS="$CFLAGS"
8869
8870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8873printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8874if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8875then :
8876  printf %s "(cached) " >&6
8877else case e in #(
8878  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879/* end confdefs.h.  */
8880int i;
8881_ACEOF
8882if ac_fn_c_try_compile "$LINENO"
8883then :
8884  xorg_cv_cc_flag_unknown_warning_option=yes
8885else case e in #(
8886  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8887esac
8888fi
8889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8890esac
8891fi
8892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8893printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8895	CFLAGS="$xorg_testset_save_CFLAGS"
8896fi
8897
8898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901	fi
8902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8904printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8905if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8906then :
8907  printf %s "(cached) " >&6
8908else case e in #(
8909  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910/* end confdefs.h.  */
8911int i;
8912_ACEOF
8913if ac_fn_c_try_compile "$LINENO"
8914then :
8915  xorg_cv_cc_flag_unused_command_line_argument=yes
8916else case e in #(
8917  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8918esac
8919fi
8920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8921esac
8922fi
8923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8924printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8925	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8926	CFLAGS="$xorg_testset_save_CFLAGS"
8927fi
8928
8929found="no"
8930
8931	if test $found = "no" ; then
8932		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8933			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8934		fi
8935
8936		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8937			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8938		fi
8939
8940		CFLAGS="$CFLAGS -Werror=write-strings"
8941
8942		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8943printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8944		cacheid=xorg_cv_cc_flag__Werror_write_strings
8945		if eval test \${$cacheid+y}
8946then :
8947  printf %s "(cached) " >&6
8948else case e in #(
8949  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950/* end confdefs.h.  */
8951int i;
8952int
8953main (void)
8954{
8955
8956  ;
8957  return 0;
8958}
8959_ACEOF
8960if ac_fn_c_try_link "$LINENO"
8961then :
8962  eval $cacheid=yes
8963else case e in #(
8964  e) eval $cacheid=no ;;
8965esac
8966fi
8967rm -f core conftest.err conftest.$ac_objext conftest.beam \
8968    conftest$ac_exeext conftest.$ac_ext ;;
8969esac
8970fi
8971
8972
8973		CFLAGS="$xorg_testset_save_CFLAGS"
8974
8975		eval supported=\$$cacheid
8976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8977printf "%s\n" "$supported" >&6; }
8978		if test "$supported" = "yes" ; then
8979			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8980			found="yes"
8981		fi
8982	fi
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998xorg_testset_save_CFLAGS="$CFLAGS"
8999
9000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9001	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9002	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9003printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9004if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9005then :
9006  printf %s "(cached) " >&6
9007else case e in #(
9008  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009/* end confdefs.h.  */
9010int i;
9011_ACEOF
9012if ac_fn_c_try_compile "$LINENO"
9013then :
9014  xorg_cv_cc_flag_unknown_warning_option=yes
9015else case e in #(
9016  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9017esac
9018fi
9019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9020esac
9021fi
9022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9023printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9025	CFLAGS="$xorg_testset_save_CFLAGS"
9026fi
9027
9028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9031	fi
9032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9033	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9034printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9035if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9036then :
9037  printf %s "(cached) " >&6
9038else case e in #(
9039  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040/* end confdefs.h.  */
9041int i;
9042_ACEOF
9043if ac_fn_c_try_compile "$LINENO"
9044then :
9045  xorg_cv_cc_flag_unused_command_line_argument=yes
9046else case e in #(
9047  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9048esac
9049fi
9050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9051esac
9052fi
9053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9054printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9055	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9056	CFLAGS="$xorg_testset_save_CFLAGS"
9057fi
9058
9059found="no"
9060
9061	if test $found = "no" ; then
9062		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9063			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9064		fi
9065
9066		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9067			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9068		fi
9069
9070		CFLAGS="$CFLAGS -Werror=address"
9071
9072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9073printf %s "checking if $CC supports -Werror=address... " >&6; }
9074		cacheid=xorg_cv_cc_flag__Werror_address
9075		if eval test \${$cacheid+y}
9076then :
9077  printf %s "(cached) " >&6
9078else case e in #(
9079  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080/* end confdefs.h.  */
9081int i;
9082int
9083main (void)
9084{
9085
9086  ;
9087  return 0;
9088}
9089_ACEOF
9090if ac_fn_c_try_link "$LINENO"
9091then :
9092  eval $cacheid=yes
9093else case e in #(
9094  e) eval $cacheid=no ;;
9095esac
9096fi
9097rm -f core conftest.err conftest.$ac_objext conftest.beam \
9098    conftest$ac_exeext conftest.$ac_ext ;;
9099esac
9100fi
9101
9102
9103		CFLAGS="$xorg_testset_save_CFLAGS"
9104
9105		eval supported=\$$cacheid
9106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9107printf "%s\n" "$supported" >&6; }
9108		if test "$supported" = "yes" ; then
9109			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9110			found="yes"
9111		fi
9112	fi
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128xorg_testset_save_CFLAGS="$CFLAGS"
9129
9130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9131	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9133printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9134if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9135then :
9136  printf %s "(cached) " >&6
9137else case e in #(
9138  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139/* end confdefs.h.  */
9140int i;
9141_ACEOF
9142if ac_fn_c_try_compile "$LINENO"
9143then :
9144  xorg_cv_cc_flag_unknown_warning_option=yes
9145else case e in #(
9146  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9147esac
9148fi
9149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9150esac
9151fi
9152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9153printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9154	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9155	CFLAGS="$xorg_testset_save_CFLAGS"
9156fi
9157
9158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9159	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9160		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9161	fi
9162	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9163	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9164printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9165if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9166then :
9167  printf %s "(cached) " >&6
9168else case e in #(
9169  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170/* end confdefs.h.  */
9171int i;
9172_ACEOF
9173if ac_fn_c_try_compile "$LINENO"
9174then :
9175  xorg_cv_cc_flag_unused_command_line_argument=yes
9176else case e in #(
9177  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9178esac
9179fi
9180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9181esac
9182fi
9183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9184printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9185	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9186	CFLAGS="$xorg_testset_save_CFLAGS"
9187fi
9188
9189found="no"
9190
9191	if test $found = "no" ; then
9192		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9193			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194		fi
9195
9196		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9197			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9198		fi
9199
9200		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9201
9202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9203printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9204		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9205		if eval test \${$cacheid+y}
9206then :
9207  printf %s "(cached) " >&6
9208else case e in #(
9209  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210/* end confdefs.h.  */
9211int i;
9212int
9213main (void)
9214{
9215
9216  ;
9217  return 0;
9218}
9219_ACEOF
9220if ac_fn_c_try_link "$LINENO"
9221then :
9222  eval $cacheid=yes
9223else case e in #(
9224  e) eval $cacheid=no ;;
9225esac
9226fi
9227rm -f core conftest.err conftest.$ac_objext conftest.beam \
9228    conftest$ac_exeext conftest.$ac_ext ;;
9229esac
9230fi
9231
9232
9233		CFLAGS="$xorg_testset_save_CFLAGS"
9234
9235		eval supported=\$$cacheid
9236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9237printf "%s\n" "$supported" >&6; }
9238		if test "$supported" = "yes" ; then
9239			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9240			found="yes"
9241		fi
9242	fi
9243
9244	if test $found = "no" ; then
9245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247		fi
9248
9249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251		fi
9252
9253		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9254
9255		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9256printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9257		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9258		if eval test \${$cacheid+y}
9259then :
9260  printf %s "(cached) " >&6
9261else case e in #(
9262  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263/* end confdefs.h.  */
9264int i;
9265int
9266main (void)
9267{
9268
9269  ;
9270  return 0;
9271}
9272_ACEOF
9273if ac_fn_c_try_link "$LINENO"
9274then :
9275  eval $cacheid=yes
9276else case e in #(
9277  e) eval $cacheid=no ;;
9278esac
9279fi
9280rm -f core conftest.err conftest.$ac_objext conftest.beam \
9281    conftest$ac_exeext conftest.$ac_ext ;;
9282esac
9283fi
9284
9285
9286		CFLAGS="$xorg_testset_save_CFLAGS"
9287
9288		eval supported=\$$cacheid
9289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9290printf "%s\n" "$supported" >&6; }
9291		if test "$supported" = "yes" ; then
9292			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9293			found="yes"
9294		fi
9295	fi
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311xorg_testset_save_CFLAGS="$CFLAGS"
9312
9313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9317if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9318then :
9319  printf %s "(cached) " >&6
9320else case e in #(
9321  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323int i;
9324_ACEOF
9325if ac_fn_c_try_compile "$LINENO"
9326then :
9327  xorg_cv_cc_flag_unknown_warning_option=yes
9328else case e in #(
9329  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9330esac
9331fi
9332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9333esac
9334fi
9335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9336printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9338	CFLAGS="$xorg_testset_save_CFLAGS"
9339fi
9340
9341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344	fi
9345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9347printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9348if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9349then :
9350  printf %s "(cached) " >&6
9351else case e in #(
9352  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353/* end confdefs.h.  */
9354int i;
9355_ACEOF
9356if ac_fn_c_try_compile "$LINENO"
9357then :
9358  xorg_cv_cc_flag_unused_command_line_argument=yes
9359else case e in #(
9360  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9361esac
9362fi
9363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9364esac
9365fi
9366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9367printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9369	CFLAGS="$xorg_testset_save_CFLAGS"
9370fi
9371
9372found="no"
9373
9374	if test $found = "no" ; then
9375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9377		fi
9378
9379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9381		fi
9382
9383		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9384
9385		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9386printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9387		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9388		if eval test \${$cacheid+y}
9389then :
9390  printf %s "(cached) " >&6
9391else case e in #(
9392  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393/* end confdefs.h.  */
9394int i;
9395int
9396main (void)
9397{
9398
9399  ;
9400  return 0;
9401}
9402_ACEOF
9403if ac_fn_c_try_link "$LINENO"
9404then :
9405  eval $cacheid=yes
9406else case e in #(
9407  e) eval $cacheid=no ;;
9408esac
9409fi
9410rm -f core conftest.err conftest.$ac_objext conftest.beam \
9411    conftest$ac_exeext conftest.$ac_ext ;;
9412esac
9413fi
9414
9415
9416		CFLAGS="$xorg_testset_save_CFLAGS"
9417
9418		eval supported=\$$cacheid
9419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9420printf "%s\n" "$supported" >&6; }
9421		if test "$supported" = "yes" ; then
9422			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9423			found="yes"
9424		fi
9425	fi
9426
9427 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9428else
9429{ 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
9430printf "%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;}
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444xorg_testset_save_CFLAGS="$CFLAGS"
9445
9446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9448	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9449printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9450if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9451then :
9452  printf %s "(cached) " >&6
9453else case e in #(
9454  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h.  */
9456int i;
9457_ACEOF
9458if ac_fn_c_try_compile "$LINENO"
9459then :
9460  xorg_cv_cc_flag_unknown_warning_option=yes
9461else case e in #(
9462  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9463esac
9464fi
9465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9466esac
9467fi
9468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9469printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9471	CFLAGS="$xorg_testset_save_CFLAGS"
9472fi
9473
9474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9477	fi
9478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9480printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9481if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9482then :
9483  printf %s "(cached) " >&6
9484else case e in #(
9485  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486/* end confdefs.h.  */
9487int i;
9488_ACEOF
9489if ac_fn_c_try_compile "$LINENO"
9490then :
9491  xorg_cv_cc_flag_unused_command_line_argument=yes
9492else case e in #(
9493  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9494esac
9495fi
9496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9497esac
9498fi
9499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9500printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9502	CFLAGS="$xorg_testset_save_CFLAGS"
9503fi
9504
9505found="no"
9506
9507	if test $found = "no" ; then
9508		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510		fi
9511
9512		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9514		fi
9515
9516		CFLAGS="$CFLAGS -Wimplicit"
9517
9518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9519printf %s "checking if $CC supports -Wimplicit... " >&6; }
9520		cacheid=xorg_cv_cc_flag__Wimplicit
9521		if eval test \${$cacheid+y}
9522then :
9523  printf %s "(cached) " >&6
9524else case e in #(
9525  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526/* end confdefs.h.  */
9527int i;
9528int
9529main (void)
9530{
9531
9532  ;
9533  return 0;
9534}
9535_ACEOF
9536if ac_fn_c_try_link "$LINENO"
9537then :
9538  eval $cacheid=yes
9539else case e in #(
9540  e) eval $cacheid=no ;;
9541esac
9542fi
9543rm -f core conftest.err conftest.$ac_objext conftest.beam \
9544    conftest$ac_exeext conftest.$ac_ext ;;
9545esac
9546fi
9547
9548
9549		CFLAGS="$xorg_testset_save_CFLAGS"
9550
9551		eval supported=\$$cacheid
9552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9553printf "%s\n" "$supported" >&6; }
9554		if test "$supported" = "yes" ; then
9555			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9556			found="yes"
9557		fi
9558	fi
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574xorg_testset_save_CFLAGS="$CFLAGS"
9575
9576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9578	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9579printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9580if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9581then :
9582  printf %s "(cached) " >&6
9583else case e in #(
9584  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h.  */
9586int i;
9587_ACEOF
9588if ac_fn_c_try_compile "$LINENO"
9589then :
9590  xorg_cv_cc_flag_unknown_warning_option=yes
9591else case e in #(
9592  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9593esac
9594fi
9595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9596esac
9597fi
9598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9599printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9601	CFLAGS="$xorg_testset_save_CFLAGS"
9602fi
9603
9604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9607	fi
9608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9609	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9610printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9611if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9612then :
9613  printf %s "(cached) " >&6
9614else case e in #(
9615  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616/* end confdefs.h.  */
9617int i;
9618_ACEOF
9619if ac_fn_c_try_compile "$LINENO"
9620then :
9621  xorg_cv_cc_flag_unused_command_line_argument=yes
9622else case e in #(
9623  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9624esac
9625fi
9626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9627esac
9628fi
9629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9630printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9632	CFLAGS="$xorg_testset_save_CFLAGS"
9633fi
9634
9635found="no"
9636
9637	if test $found = "no" ; then
9638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640		fi
9641
9642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9644		fi
9645
9646		CFLAGS="$CFLAGS -Wnonnull"
9647
9648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9649printf %s "checking if $CC supports -Wnonnull... " >&6; }
9650		cacheid=xorg_cv_cc_flag__Wnonnull
9651		if eval test \${$cacheid+y}
9652then :
9653  printf %s "(cached) " >&6
9654else case e in #(
9655  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656/* end confdefs.h.  */
9657int i;
9658int
9659main (void)
9660{
9661
9662  ;
9663  return 0;
9664}
9665_ACEOF
9666if ac_fn_c_try_link "$LINENO"
9667then :
9668  eval $cacheid=yes
9669else case e in #(
9670  e) eval $cacheid=no ;;
9671esac
9672fi
9673rm -f core conftest.err conftest.$ac_objext conftest.beam \
9674    conftest$ac_exeext conftest.$ac_ext ;;
9675esac
9676fi
9677
9678
9679		CFLAGS="$xorg_testset_save_CFLAGS"
9680
9681		eval supported=\$$cacheid
9682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9683printf "%s\n" "$supported" >&6; }
9684		if test "$supported" = "yes" ; then
9685			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9686			found="yes"
9687		fi
9688	fi
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704xorg_testset_save_CFLAGS="$CFLAGS"
9705
9706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9707	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9708	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9709printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9710if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9711then :
9712  printf %s "(cached) " >&6
9713else case e in #(
9714  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715/* end confdefs.h.  */
9716int i;
9717_ACEOF
9718if ac_fn_c_try_compile "$LINENO"
9719then :
9720  xorg_cv_cc_flag_unknown_warning_option=yes
9721else case e in #(
9722  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9723esac
9724fi
9725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9726esac
9727fi
9728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9729printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9730	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9731	CFLAGS="$xorg_testset_save_CFLAGS"
9732fi
9733
9734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9735	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9736		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9737	fi
9738	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9739	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9740printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9741if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9742then :
9743  printf %s "(cached) " >&6
9744else case e in #(
9745  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746/* end confdefs.h.  */
9747int i;
9748_ACEOF
9749if ac_fn_c_try_compile "$LINENO"
9750then :
9751  xorg_cv_cc_flag_unused_command_line_argument=yes
9752else case e in #(
9753  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9754esac
9755fi
9756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9757esac
9758fi
9759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9760printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9761	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9762	CFLAGS="$xorg_testset_save_CFLAGS"
9763fi
9764
9765found="no"
9766
9767	if test $found = "no" ; then
9768		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9769			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770		fi
9771
9772		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9773			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9774		fi
9775
9776		CFLAGS="$CFLAGS -Winit-self"
9777
9778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9779printf %s "checking if $CC supports -Winit-self... " >&6; }
9780		cacheid=xorg_cv_cc_flag__Winit_self
9781		if eval test \${$cacheid+y}
9782then :
9783  printf %s "(cached) " >&6
9784else case e in #(
9785  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786/* end confdefs.h.  */
9787int i;
9788int
9789main (void)
9790{
9791
9792  ;
9793  return 0;
9794}
9795_ACEOF
9796if ac_fn_c_try_link "$LINENO"
9797then :
9798  eval $cacheid=yes
9799else case e in #(
9800  e) eval $cacheid=no ;;
9801esac
9802fi
9803rm -f core conftest.err conftest.$ac_objext conftest.beam \
9804    conftest$ac_exeext conftest.$ac_ext ;;
9805esac
9806fi
9807
9808
9809		CFLAGS="$xorg_testset_save_CFLAGS"
9810
9811		eval supported=\$$cacheid
9812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9813printf "%s\n" "$supported" >&6; }
9814		if test "$supported" = "yes" ; then
9815			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9816			found="yes"
9817		fi
9818	fi
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834xorg_testset_save_CFLAGS="$CFLAGS"
9835
9836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9837	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9838	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9839printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9840if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9841then :
9842  printf %s "(cached) " >&6
9843else case e in #(
9844  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845/* end confdefs.h.  */
9846int i;
9847_ACEOF
9848if ac_fn_c_try_compile "$LINENO"
9849then :
9850  xorg_cv_cc_flag_unknown_warning_option=yes
9851else case e in #(
9852  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9853esac
9854fi
9855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9856esac
9857fi
9858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9861	CFLAGS="$xorg_testset_save_CFLAGS"
9862fi
9863
9864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9867	fi
9868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9869	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9871if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9872then :
9873  printf %s "(cached) " >&6
9874else case e in #(
9875  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876/* end confdefs.h.  */
9877int i;
9878_ACEOF
9879if ac_fn_c_try_compile "$LINENO"
9880then :
9881  xorg_cv_cc_flag_unused_command_line_argument=yes
9882else case e in #(
9883  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9884esac
9885fi
9886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9887esac
9888fi
9889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9892	CFLAGS="$xorg_testset_save_CFLAGS"
9893fi
9894
9895found="no"
9896
9897	if test $found = "no" ; then
9898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900		fi
9901
9902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9904		fi
9905
9906		CFLAGS="$CFLAGS -Wmain"
9907
9908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9909printf %s "checking if $CC supports -Wmain... " >&6; }
9910		cacheid=xorg_cv_cc_flag__Wmain
9911		if eval test \${$cacheid+y}
9912then :
9913  printf %s "(cached) " >&6
9914else case e in #(
9915  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916/* end confdefs.h.  */
9917int i;
9918int
9919main (void)
9920{
9921
9922  ;
9923  return 0;
9924}
9925_ACEOF
9926if ac_fn_c_try_link "$LINENO"
9927then :
9928  eval $cacheid=yes
9929else case e in #(
9930  e) eval $cacheid=no ;;
9931esac
9932fi
9933rm -f core conftest.err conftest.$ac_objext conftest.beam \
9934    conftest$ac_exeext conftest.$ac_ext ;;
9935esac
9936fi
9937
9938
9939		CFLAGS="$xorg_testset_save_CFLAGS"
9940
9941		eval supported=\$$cacheid
9942		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9943printf "%s\n" "$supported" >&6; }
9944		if test "$supported" = "yes" ; then
9945			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9946			found="yes"
9947		fi
9948	fi
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964xorg_testset_save_CFLAGS="$CFLAGS"
9965
9966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9968	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9969printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9970if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9971then :
9972  printf %s "(cached) " >&6
9973else case e in #(
9974  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975/* end confdefs.h.  */
9976int i;
9977_ACEOF
9978if ac_fn_c_try_compile "$LINENO"
9979then :
9980  xorg_cv_cc_flag_unknown_warning_option=yes
9981else case e in #(
9982  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9983esac
9984fi
9985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9986esac
9987fi
9988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9991	CFLAGS="$xorg_testset_save_CFLAGS"
9992fi
9993
9994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9997	fi
9998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10001if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10002then :
10003  printf %s "(cached) " >&6
10004else case e in #(
10005  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006/* end confdefs.h.  */
10007int i;
10008_ACEOF
10009if ac_fn_c_try_compile "$LINENO"
10010then :
10011  xorg_cv_cc_flag_unused_command_line_argument=yes
10012else case e in #(
10013  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10014esac
10015fi
10016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10017esac
10018fi
10019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10020printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10022	CFLAGS="$xorg_testset_save_CFLAGS"
10023fi
10024
10025found="no"
10026
10027	if test $found = "no" ; then
10028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10030		fi
10031
10032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10034		fi
10035
10036		CFLAGS="$CFLAGS -Wmissing-braces"
10037
10038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10039printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10040		cacheid=xorg_cv_cc_flag__Wmissing_braces
10041		if eval test \${$cacheid+y}
10042then :
10043  printf %s "(cached) " >&6
10044else case e in #(
10045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046/* end confdefs.h.  */
10047int i;
10048int
10049main (void)
10050{
10051
10052  ;
10053  return 0;
10054}
10055_ACEOF
10056if ac_fn_c_try_link "$LINENO"
10057then :
10058  eval $cacheid=yes
10059else case e in #(
10060  e) eval $cacheid=no ;;
10061esac
10062fi
10063rm -f core conftest.err conftest.$ac_objext conftest.beam \
10064    conftest$ac_exeext conftest.$ac_ext ;;
10065esac
10066fi
10067
10068
10069		CFLAGS="$xorg_testset_save_CFLAGS"
10070
10071		eval supported=\$$cacheid
10072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10073printf "%s\n" "$supported" >&6; }
10074		if test "$supported" = "yes" ; then
10075			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10076			found="yes"
10077		fi
10078	fi
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094xorg_testset_save_CFLAGS="$CFLAGS"
10095
10096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10100if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10101then :
10102  printf %s "(cached) " >&6
10103else case e in #(
10104  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105/* end confdefs.h.  */
10106int i;
10107_ACEOF
10108if ac_fn_c_try_compile "$LINENO"
10109then :
10110  xorg_cv_cc_flag_unknown_warning_option=yes
10111else case e in #(
10112  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10113esac
10114fi
10115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10116esac
10117fi
10118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10119printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10121	CFLAGS="$xorg_testset_save_CFLAGS"
10122fi
10123
10124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10127	fi
10128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10129	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10130printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10131if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10132then :
10133  printf %s "(cached) " >&6
10134else case e in #(
10135  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136/* end confdefs.h.  */
10137int i;
10138_ACEOF
10139if ac_fn_c_try_compile "$LINENO"
10140then :
10141  xorg_cv_cc_flag_unused_command_line_argument=yes
10142else case e in #(
10143  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10144esac
10145fi
10146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10147esac
10148fi
10149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10152	CFLAGS="$xorg_testset_save_CFLAGS"
10153fi
10154
10155found="no"
10156
10157	if test $found = "no" ; then
10158		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10160		fi
10161
10162		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10164		fi
10165
10166		CFLAGS="$CFLAGS -Wsequence-point"
10167
10168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10169printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10170		cacheid=xorg_cv_cc_flag__Wsequence_point
10171		if eval test \${$cacheid+y}
10172then :
10173  printf %s "(cached) " >&6
10174else case e in #(
10175  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176/* end confdefs.h.  */
10177int i;
10178int
10179main (void)
10180{
10181
10182  ;
10183  return 0;
10184}
10185_ACEOF
10186if ac_fn_c_try_link "$LINENO"
10187then :
10188  eval $cacheid=yes
10189else case e in #(
10190  e) eval $cacheid=no ;;
10191esac
10192fi
10193rm -f core conftest.err conftest.$ac_objext conftest.beam \
10194    conftest$ac_exeext conftest.$ac_ext ;;
10195esac
10196fi
10197
10198
10199		CFLAGS="$xorg_testset_save_CFLAGS"
10200
10201		eval supported=\$$cacheid
10202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10203printf "%s\n" "$supported" >&6; }
10204		if test "$supported" = "yes" ; then
10205			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10206			found="yes"
10207		fi
10208	fi
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224xorg_testset_save_CFLAGS="$CFLAGS"
10225
10226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10227	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10230if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10231then :
10232  printf %s "(cached) " >&6
10233else case e in #(
10234  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235/* end confdefs.h.  */
10236int i;
10237_ACEOF
10238if ac_fn_c_try_compile "$LINENO"
10239then :
10240  xorg_cv_cc_flag_unknown_warning_option=yes
10241else case e in #(
10242  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10243esac
10244fi
10245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10246esac
10247fi
10248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10250	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10251	CFLAGS="$xorg_testset_save_CFLAGS"
10252fi
10253
10254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10255	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10256		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10257	fi
10258	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10259	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10261if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10262then :
10263  printf %s "(cached) " >&6
10264else case e in #(
10265  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266/* end confdefs.h.  */
10267int i;
10268_ACEOF
10269if ac_fn_c_try_compile "$LINENO"
10270then :
10271  xorg_cv_cc_flag_unused_command_line_argument=yes
10272else case e in #(
10273  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10274esac
10275fi
10276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10277esac
10278fi
10279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10280printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10281	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10282	CFLAGS="$xorg_testset_save_CFLAGS"
10283fi
10284
10285found="no"
10286
10287	if test $found = "no" ; then
10288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10290		fi
10291
10292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10294		fi
10295
10296		CFLAGS="$CFLAGS -Wreturn-type"
10297
10298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10299printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10300		cacheid=xorg_cv_cc_flag__Wreturn_type
10301		if eval test \${$cacheid+y}
10302then :
10303  printf %s "(cached) " >&6
10304else case e in #(
10305  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306/* end confdefs.h.  */
10307int i;
10308int
10309main (void)
10310{
10311
10312  ;
10313  return 0;
10314}
10315_ACEOF
10316if ac_fn_c_try_link "$LINENO"
10317then :
10318  eval $cacheid=yes
10319else case e in #(
10320  e) eval $cacheid=no ;;
10321esac
10322fi
10323rm -f core conftest.err conftest.$ac_objext conftest.beam \
10324    conftest$ac_exeext conftest.$ac_ext ;;
10325esac
10326fi
10327
10328
10329		CFLAGS="$xorg_testset_save_CFLAGS"
10330
10331		eval supported=\$$cacheid
10332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10333printf "%s\n" "$supported" >&6; }
10334		if test "$supported" = "yes" ; then
10335			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10336			found="yes"
10337		fi
10338	fi
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354xorg_testset_save_CFLAGS="$CFLAGS"
10355
10356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10360if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10361then :
10362  printf %s "(cached) " >&6
10363else case e in #(
10364  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366int i;
10367_ACEOF
10368if ac_fn_c_try_compile "$LINENO"
10369then :
10370  xorg_cv_cc_flag_unknown_warning_option=yes
10371else case e in #(
10372  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10373esac
10374fi
10375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10376esac
10377fi
10378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10380	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10381	CFLAGS="$xorg_testset_save_CFLAGS"
10382fi
10383
10384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10385	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10386		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10387	fi
10388	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10389	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10391if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10392then :
10393  printf %s "(cached) " >&6
10394else case e in #(
10395  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396/* end confdefs.h.  */
10397int i;
10398_ACEOF
10399if ac_fn_c_try_compile "$LINENO"
10400then :
10401  xorg_cv_cc_flag_unused_command_line_argument=yes
10402else case e in #(
10403  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10404esac
10405fi
10406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10407esac
10408fi
10409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10410printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10411	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10412	CFLAGS="$xorg_testset_save_CFLAGS"
10413fi
10414
10415found="no"
10416
10417	if test $found = "no" ; then
10418		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10420		fi
10421
10422		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10424		fi
10425
10426		CFLAGS="$CFLAGS -Wtrigraphs"
10427
10428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10429printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10430		cacheid=xorg_cv_cc_flag__Wtrigraphs
10431		if eval test \${$cacheid+y}
10432then :
10433  printf %s "(cached) " >&6
10434else case e in #(
10435  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h.  */
10437int i;
10438int
10439main (void)
10440{
10441
10442  ;
10443  return 0;
10444}
10445_ACEOF
10446if ac_fn_c_try_link "$LINENO"
10447then :
10448  eval $cacheid=yes
10449else case e in #(
10450  e) eval $cacheid=no ;;
10451esac
10452fi
10453rm -f core conftest.err conftest.$ac_objext conftest.beam \
10454    conftest$ac_exeext conftest.$ac_ext ;;
10455esac
10456fi
10457
10458
10459		CFLAGS="$xorg_testset_save_CFLAGS"
10460
10461		eval supported=\$$cacheid
10462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10463printf "%s\n" "$supported" >&6; }
10464		if test "$supported" = "yes" ; then
10465			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10466			found="yes"
10467		fi
10468	fi
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484xorg_testset_save_CFLAGS="$CFLAGS"
10485
10486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10489printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10490if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10491then :
10492  printf %s "(cached) " >&6
10493else case e in #(
10494  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495/* end confdefs.h.  */
10496int i;
10497_ACEOF
10498if ac_fn_c_try_compile "$LINENO"
10499then :
10500  xorg_cv_cc_flag_unknown_warning_option=yes
10501else case e in #(
10502  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10503esac
10504fi
10505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10506esac
10507fi
10508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10511	CFLAGS="$xorg_testset_save_CFLAGS"
10512fi
10513
10514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10517	fi
10518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10521if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10522then :
10523  printf %s "(cached) " >&6
10524else case e in #(
10525  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526/* end confdefs.h.  */
10527int i;
10528_ACEOF
10529if ac_fn_c_try_compile "$LINENO"
10530then :
10531  xorg_cv_cc_flag_unused_command_line_argument=yes
10532else case e in #(
10533  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10534esac
10535fi
10536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10537esac
10538fi
10539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10540printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10541	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10542	CFLAGS="$xorg_testset_save_CFLAGS"
10543fi
10544
10545found="no"
10546
10547	if test $found = "no" ; then
10548		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10549			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10550		fi
10551
10552		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10553			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10554		fi
10555
10556		CFLAGS="$CFLAGS -Warray-bounds"
10557
10558		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10559printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10560		cacheid=xorg_cv_cc_flag__Warray_bounds
10561		if eval test \${$cacheid+y}
10562then :
10563  printf %s "(cached) " >&6
10564else case e in #(
10565  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566/* end confdefs.h.  */
10567int i;
10568int
10569main (void)
10570{
10571
10572  ;
10573  return 0;
10574}
10575_ACEOF
10576if ac_fn_c_try_link "$LINENO"
10577then :
10578  eval $cacheid=yes
10579else case e in #(
10580  e) eval $cacheid=no ;;
10581esac
10582fi
10583rm -f core conftest.err conftest.$ac_objext conftest.beam \
10584    conftest$ac_exeext conftest.$ac_ext ;;
10585esac
10586fi
10587
10588
10589		CFLAGS="$xorg_testset_save_CFLAGS"
10590
10591		eval supported=\$$cacheid
10592		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10593printf "%s\n" "$supported" >&6; }
10594		if test "$supported" = "yes" ; then
10595			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10596			found="yes"
10597		fi
10598	fi
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614xorg_testset_save_CFLAGS="$CFLAGS"
10615
10616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10619printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10620if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10621then :
10622  printf %s "(cached) " >&6
10623else case e in #(
10624  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625/* end confdefs.h.  */
10626int i;
10627_ACEOF
10628if ac_fn_c_try_compile "$LINENO"
10629then :
10630  xorg_cv_cc_flag_unknown_warning_option=yes
10631else case e in #(
10632  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10633esac
10634fi
10635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10636esac
10637fi
10638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10641	CFLAGS="$xorg_testset_save_CFLAGS"
10642fi
10643
10644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10647	fi
10648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10651if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10652then :
10653  printf %s "(cached) " >&6
10654else case e in #(
10655  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656/* end confdefs.h.  */
10657int i;
10658_ACEOF
10659if ac_fn_c_try_compile "$LINENO"
10660then :
10661  xorg_cv_cc_flag_unused_command_line_argument=yes
10662else case e in #(
10663  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10664esac
10665fi
10666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10667esac
10668fi
10669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10670printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10671	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10672	CFLAGS="$xorg_testset_save_CFLAGS"
10673fi
10674
10675found="no"
10676
10677	if test $found = "no" ; then
10678		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10679			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10680		fi
10681
10682		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10683			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10684		fi
10685
10686		CFLAGS="$CFLAGS -Wwrite-strings"
10687
10688		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10689printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10690		cacheid=xorg_cv_cc_flag__Wwrite_strings
10691		if eval test \${$cacheid+y}
10692then :
10693  printf %s "(cached) " >&6
10694else case e in #(
10695  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696/* end confdefs.h.  */
10697int i;
10698int
10699main (void)
10700{
10701
10702  ;
10703  return 0;
10704}
10705_ACEOF
10706if ac_fn_c_try_link "$LINENO"
10707then :
10708  eval $cacheid=yes
10709else case e in #(
10710  e) eval $cacheid=no ;;
10711esac
10712fi
10713rm -f core conftest.err conftest.$ac_objext conftest.beam \
10714    conftest$ac_exeext conftest.$ac_ext ;;
10715esac
10716fi
10717
10718
10719		CFLAGS="$xorg_testset_save_CFLAGS"
10720
10721		eval supported=\$$cacheid
10722		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10723printf "%s\n" "$supported" >&6; }
10724		if test "$supported" = "yes" ; then
10725			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10726			found="yes"
10727		fi
10728	fi
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744xorg_testset_save_CFLAGS="$CFLAGS"
10745
10746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10747	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10748	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10749printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10750if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10751then :
10752  printf %s "(cached) " >&6
10753else case e in #(
10754  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755/* end confdefs.h.  */
10756int i;
10757_ACEOF
10758if ac_fn_c_try_compile "$LINENO"
10759then :
10760  xorg_cv_cc_flag_unknown_warning_option=yes
10761else case e in #(
10762  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10763esac
10764fi
10765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10766esac
10767fi
10768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10769printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10770	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10771	CFLAGS="$xorg_testset_save_CFLAGS"
10772fi
10773
10774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10775	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10776		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10777	fi
10778	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10780printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10781if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10782then :
10783  printf %s "(cached) " >&6
10784else case e in #(
10785  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786/* end confdefs.h.  */
10787int i;
10788_ACEOF
10789if ac_fn_c_try_compile "$LINENO"
10790then :
10791  xorg_cv_cc_flag_unused_command_line_argument=yes
10792else case e in #(
10793  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10794esac
10795fi
10796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10797esac
10798fi
10799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10800printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10801	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10802	CFLAGS="$xorg_testset_save_CFLAGS"
10803fi
10804
10805found="no"
10806
10807	if test $found = "no" ; then
10808		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10810		fi
10811
10812		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10814		fi
10815
10816		CFLAGS="$CFLAGS -Waddress"
10817
10818		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10819printf %s "checking if $CC supports -Waddress... " >&6; }
10820		cacheid=xorg_cv_cc_flag__Waddress
10821		if eval test \${$cacheid+y}
10822then :
10823  printf %s "(cached) " >&6
10824else case e in #(
10825  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826/* end confdefs.h.  */
10827int i;
10828int
10829main (void)
10830{
10831
10832  ;
10833  return 0;
10834}
10835_ACEOF
10836if ac_fn_c_try_link "$LINENO"
10837then :
10838  eval $cacheid=yes
10839else case e in #(
10840  e) eval $cacheid=no ;;
10841esac
10842fi
10843rm -f core conftest.err conftest.$ac_objext conftest.beam \
10844    conftest$ac_exeext conftest.$ac_ext ;;
10845esac
10846fi
10847
10848
10849		CFLAGS="$xorg_testset_save_CFLAGS"
10850
10851		eval supported=\$$cacheid
10852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10853printf "%s\n" "$supported" >&6; }
10854		if test "$supported" = "yes" ; then
10855			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10856			found="yes"
10857		fi
10858	fi
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874xorg_testset_save_CFLAGS="$CFLAGS"
10875
10876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10877	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10878	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10879printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10880if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10881then :
10882  printf %s "(cached) " >&6
10883else case e in #(
10884  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885/* end confdefs.h.  */
10886int i;
10887_ACEOF
10888if ac_fn_c_try_compile "$LINENO"
10889then :
10890  xorg_cv_cc_flag_unknown_warning_option=yes
10891else case e in #(
10892  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10893esac
10894fi
10895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10896esac
10897fi
10898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10899printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10900	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10901	CFLAGS="$xorg_testset_save_CFLAGS"
10902fi
10903
10904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10905	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10906		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10907	fi
10908	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10909	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10910printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10911if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10912then :
10913  printf %s "(cached) " >&6
10914else case e in #(
10915  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916/* end confdefs.h.  */
10917int i;
10918_ACEOF
10919if ac_fn_c_try_compile "$LINENO"
10920then :
10921  xorg_cv_cc_flag_unused_command_line_argument=yes
10922else case e in #(
10923  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10924esac
10925fi
10926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10927esac
10928fi
10929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10930printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10932	CFLAGS="$xorg_testset_save_CFLAGS"
10933fi
10934
10935found="no"
10936
10937	if test $found = "no" ; then
10938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10940		fi
10941
10942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10944		fi
10945
10946		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10947
10948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10949printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10950		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10951		if eval test \${$cacheid+y}
10952then :
10953  printf %s "(cached) " >&6
10954else case e in #(
10955  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956/* end confdefs.h.  */
10957int i;
10958int
10959main (void)
10960{
10961
10962  ;
10963  return 0;
10964}
10965_ACEOF
10966if ac_fn_c_try_link "$LINENO"
10967then :
10968  eval $cacheid=yes
10969else case e in #(
10970  e) eval $cacheid=no ;;
10971esac
10972fi
10973rm -f core conftest.err conftest.$ac_objext conftest.beam \
10974    conftest$ac_exeext conftest.$ac_ext ;;
10975esac
10976fi
10977
10978
10979		CFLAGS="$xorg_testset_save_CFLAGS"
10980
10981		eval supported=\$$cacheid
10982		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10983printf "%s\n" "$supported" >&6; }
10984		if test "$supported" = "yes" ; then
10985			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10986			found="yes"
10987		fi
10988	fi
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004xorg_testset_save_CFLAGS="$CFLAGS"
11005
11006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11007	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11009printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11010if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11011then :
11012  printf %s "(cached) " >&6
11013else case e in #(
11014  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015/* end confdefs.h.  */
11016int i;
11017_ACEOF
11018if ac_fn_c_try_compile "$LINENO"
11019then :
11020  xorg_cv_cc_flag_unknown_warning_option=yes
11021else case e in #(
11022  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11023esac
11024fi
11025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11026esac
11027fi
11028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11029printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11031	CFLAGS="$xorg_testset_save_CFLAGS"
11032fi
11033
11034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11037	fi
11038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11040printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11041if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11042then :
11043  printf %s "(cached) " >&6
11044else case e in #(
11045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046/* end confdefs.h.  */
11047int i;
11048_ACEOF
11049if ac_fn_c_try_compile "$LINENO"
11050then :
11051  xorg_cv_cc_flag_unused_command_line_argument=yes
11052else case e in #(
11053  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11054esac
11055fi
11056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11057esac
11058fi
11059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11060printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11061	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11062	CFLAGS="$xorg_testset_save_CFLAGS"
11063fi
11064
11065found="no"
11066
11067	if test $found = "no" ; then
11068		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11070		fi
11071
11072		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11074		fi
11075
11076		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11077
11078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11079printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11080		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11081		if eval test \${$cacheid+y}
11082then :
11083  printf %s "(cached) " >&6
11084else case e in #(
11085  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086/* end confdefs.h.  */
11087int i;
11088int
11089main (void)
11090{
11091
11092  ;
11093  return 0;
11094}
11095_ACEOF
11096if ac_fn_c_try_link "$LINENO"
11097then :
11098  eval $cacheid=yes
11099else case e in #(
11100  e) eval $cacheid=no ;;
11101esac
11102fi
11103rm -f core conftest.err conftest.$ac_objext conftest.beam \
11104    conftest$ac_exeext conftest.$ac_ext ;;
11105esac
11106fi
11107
11108
11109		CFLAGS="$xorg_testset_save_CFLAGS"
11110
11111		eval supported=\$$cacheid
11112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11113printf "%s\n" "$supported" >&6; }
11114		if test "$supported" = "yes" ; then
11115			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11116			found="yes"
11117		fi
11118	fi
11119
11120
11121fi
11122
11123
11124
11125
11126
11127
11128
11129		CWARNFLAGS="$BASE_CFLAGS"
11130		if  test "x$GCC" = xyes ; then
11131		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11132		fi
11133
11134
11135
11136
11137
11138
11139
11140
11141# Check whether --enable-strict-compilation was given.
11142if test ${enable_strict_compilation+y}
11143then :
11144  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11145else case e in #(
11146  e) STRICT_COMPILE=no ;;
11147esac
11148fi
11149
11150
11151
11152
11153
11154
11155STRICT_CFLAGS=""
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169xorg_testset_save_CFLAGS="$CFLAGS"
11170
11171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11173	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11174printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11175if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11176then :
11177  printf %s "(cached) " >&6
11178else case e in #(
11179  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180/* end confdefs.h.  */
11181int i;
11182_ACEOF
11183if ac_fn_c_try_compile "$LINENO"
11184then :
11185  xorg_cv_cc_flag_unknown_warning_option=yes
11186else case e in #(
11187  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11188esac
11189fi
11190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11191esac
11192fi
11193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11194printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11196	CFLAGS="$xorg_testset_save_CFLAGS"
11197fi
11198
11199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11202	fi
11203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11205printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11206if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11207then :
11208  printf %s "(cached) " >&6
11209else case e in #(
11210  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211/* end confdefs.h.  */
11212int i;
11213_ACEOF
11214if ac_fn_c_try_compile "$LINENO"
11215then :
11216  xorg_cv_cc_flag_unused_command_line_argument=yes
11217else case e in #(
11218  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11219esac
11220fi
11221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11222esac
11223fi
11224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11225printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11226	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11227	CFLAGS="$xorg_testset_save_CFLAGS"
11228fi
11229
11230found="no"
11231
11232	if test $found = "no" ; then
11233		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11235		fi
11236
11237		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11239		fi
11240
11241		CFLAGS="$CFLAGS -pedantic"
11242
11243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11244printf %s "checking if $CC supports -pedantic... " >&6; }
11245		cacheid=xorg_cv_cc_flag__pedantic
11246		if eval test \${$cacheid+y}
11247then :
11248  printf %s "(cached) " >&6
11249else case e in #(
11250  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251/* end confdefs.h.  */
11252int i;
11253int
11254main (void)
11255{
11256
11257  ;
11258  return 0;
11259}
11260_ACEOF
11261if ac_fn_c_try_link "$LINENO"
11262then :
11263  eval $cacheid=yes
11264else case e in #(
11265  e) eval $cacheid=no ;;
11266esac
11267fi
11268rm -f core conftest.err conftest.$ac_objext conftest.beam \
11269    conftest$ac_exeext conftest.$ac_ext ;;
11270esac
11271fi
11272
11273
11274		CFLAGS="$xorg_testset_save_CFLAGS"
11275
11276		eval supported=\$$cacheid
11277		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11278printf "%s\n" "$supported" >&6; }
11279		if test "$supported" = "yes" ; then
11280			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11281			found="yes"
11282		fi
11283	fi
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299xorg_testset_save_CFLAGS="$CFLAGS"
11300
11301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11302	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11303	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11304printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11305if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11306then :
11307  printf %s "(cached) " >&6
11308else case e in #(
11309  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310/* end confdefs.h.  */
11311int i;
11312_ACEOF
11313if ac_fn_c_try_compile "$LINENO"
11314then :
11315  xorg_cv_cc_flag_unknown_warning_option=yes
11316else case e in #(
11317  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11318esac
11319fi
11320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11321esac
11322fi
11323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11324printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11325	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11326	CFLAGS="$xorg_testset_save_CFLAGS"
11327fi
11328
11329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11330	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11331		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11332	fi
11333	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11334	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11335printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11336if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11337then :
11338  printf %s "(cached) " >&6
11339else case e in #(
11340  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341/* end confdefs.h.  */
11342int i;
11343_ACEOF
11344if ac_fn_c_try_compile "$LINENO"
11345then :
11346  xorg_cv_cc_flag_unused_command_line_argument=yes
11347else case e in #(
11348  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11349esac
11350fi
11351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11352esac
11353fi
11354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11355printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11357	CFLAGS="$xorg_testset_save_CFLAGS"
11358fi
11359
11360found="no"
11361
11362	if test $found = "no" ; then
11363		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11365		fi
11366
11367		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11369		fi
11370
11371		CFLAGS="$CFLAGS -Werror"
11372
11373		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11374printf %s "checking if $CC supports -Werror... " >&6; }
11375		cacheid=xorg_cv_cc_flag__Werror
11376		if eval test \${$cacheid+y}
11377then :
11378  printf %s "(cached) " >&6
11379else case e in #(
11380  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381/* end confdefs.h.  */
11382int i;
11383int
11384main (void)
11385{
11386
11387  ;
11388  return 0;
11389}
11390_ACEOF
11391if ac_fn_c_try_link "$LINENO"
11392then :
11393  eval $cacheid=yes
11394else case e in #(
11395  e) eval $cacheid=no ;;
11396esac
11397fi
11398rm -f core conftest.err conftest.$ac_objext conftest.beam \
11399    conftest$ac_exeext conftest.$ac_ext ;;
11400esac
11401fi
11402
11403
11404		CFLAGS="$xorg_testset_save_CFLAGS"
11405
11406		eval supported=\$$cacheid
11407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11408printf "%s\n" "$supported" >&6; }
11409		if test "$supported" = "yes" ; then
11410			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11411			found="yes"
11412		fi
11413	fi
11414
11415	if test $found = "no" ; then
11416		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11418		fi
11419
11420		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11422		fi
11423
11424		CFLAGS="$CFLAGS -errwarn"
11425
11426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11427printf %s "checking if $CC supports -errwarn... " >&6; }
11428		cacheid=xorg_cv_cc_flag__errwarn
11429		if eval test \${$cacheid+y}
11430then :
11431  printf %s "(cached) " >&6
11432else case e in #(
11433  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434/* end confdefs.h.  */
11435int i;
11436int
11437main (void)
11438{
11439
11440  ;
11441  return 0;
11442}
11443_ACEOF
11444if ac_fn_c_try_link "$LINENO"
11445then :
11446  eval $cacheid=yes
11447else case e in #(
11448  e) eval $cacheid=no ;;
11449esac
11450fi
11451rm -f core conftest.err conftest.$ac_objext conftest.beam \
11452    conftest$ac_exeext conftest.$ac_ext ;;
11453esac
11454fi
11455
11456
11457		CFLAGS="$xorg_testset_save_CFLAGS"
11458
11459		eval supported=\$$cacheid
11460		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11461printf "%s\n" "$supported" >&6; }
11462		if test "$supported" = "yes" ; then
11463			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11464			found="yes"
11465		fi
11466	fi
11467
11468
11469
11470# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11471# activate it with -Werror, so we add it here explicitly.
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485xorg_testset_save_CFLAGS="$CFLAGS"
11486
11487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11489	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11490printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11491if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11492then :
11493  printf %s "(cached) " >&6
11494else case e in #(
11495  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496/* end confdefs.h.  */
11497int i;
11498_ACEOF
11499if ac_fn_c_try_compile "$LINENO"
11500then :
11501  xorg_cv_cc_flag_unknown_warning_option=yes
11502else case e in #(
11503  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11504esac
11505fi
11506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11507esac
11508fi
11509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11510printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11512	CFLAGS="$xorg_testset_save_CFLAGS"
11513fi
11514
11515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11518	fi
11519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11521printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11522if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11523then :
11524  printf %s "(cached) " >&6
11525else case e in #(
11526  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527/* end confdefs.h.  */
11528int i;
11529_ACEOF
11530if ac_fn_c_try_compile "$LINENO"
11531then :
11532  xorg_cv_cc_flag_unused_command_line_argument=yes
11533else case e in #(
11534  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11535esac
11536fi
11537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11538esac
11539fi
11540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11543	CFLAGS="$xorg_testset_save_CFLAGS"
11544fi
11545
11546found="no"
11547
11548	if test $found = "no" ; then
11549		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11551		fi
11552
11553		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11555		fi
11556
11557		CFLAGS="$CFLAGS -Werror=attributes"
11558
11559		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11560printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11561		cacheid=xorg_cv_cc_flag__Werror_attributes
11562		if eval test \${$cacheid+y}
11563then :
11564  printf %s "(cached) " >&6
11565else case e in #(
11566  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567/* end confdefs.h.  */
11568int i;
11569int
11570main (void)
11571{
11572
11573  ;
11574  return 0;
11575}
11576_ACEOF
11577if ac_fn_c_try_link "$LINENO"
11578then :
11579  eval $cacheid=yes
11580else case e in #(
11581  e) eval $cacheid=no ;;
11582esac
11583fi
11584rm -f core conftest.err conftest.$ac_objext conftest.beam \
11585    conftest$ac_exeext conftest.$ac_ext ;;
11586esac
11587fi
11588
11589
11590		CFLAGS="$xorg_testset_save_CFLAGS"
11591
11592		eval supported=\$$cacheid
11593		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11594printf "%s\n" "$supported" >&6; }
11595		if test "$supported" = "yes" ; then
11596			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11597			found="yes"
11598		fi
11599	fi
11600
11601
11602
11603if test "x$STRICT_COMPILE" = "xyes"; then
11604    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11605    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11606fi
11607
11608
11609
11610
11611
11612
11613
11614
11615cat >>confdefs.h <<_ACEOF
11616#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11617_ACEOF
11618
11619	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11620	if test "x$PVM" = "x"; then
11621		PVM="0"
11622	fi
11623
11624printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11625
11626	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11627	if test "x$PVP" = "x"; then
11628		PVP="0"
11629	fi
11630
11631printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11632
11633
11634
11635CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11636mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11637|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11638touch \$(top_srcdir)/ChangeLog; \
11639echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11640
11641
11642
11643
11644macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11645INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11646mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11647|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11648touch \$(top_srcdir)/INSTALL; \
11649echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11650
11651
11652
11653
11654
11655
11656case $host_os in
11657    solaris*)
11658        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11659        # check for a man page file found in later versions that use
11660        # traditional section numbers instead
11661        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11662printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11663if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11664then :
11665  printf %s "(cached) " >&6
11666else case e in #(
11667  e) test "$cross_compiling" = yes &&
11668  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11669if test -r "/usr/share/man/man7/attributes.7"; then
11670  ac_cv_file__usr_share_man_man7_attributes_7=yes
11671else
11672  ac_cv_file__usr_share_man_man7_attributes_7=no
11673fi ;;
11674esac
11675fi
11676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11677printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11678if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11679then :
11680  SYSV_MAN_SECTIONS=false
11681else case e in #(
11682  e) SYSV_MAN_SECTIONS=true ;;
11683esac
11684fi
11685
11686        ;;
11687    *) SYSV_MAN_SECTIONS=false ;;
11688esac
11689
11690if test x$APP_MAN_SUFFIX = x    ; then
11691    APP_MAN_SUFFIX=1
11692fi
11693if test x$APP_MAN_DIR = x    ; then
11694    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11695fi
11696
11697if test x$LIB_MAN_SUFFIX = x    ; then
11698    LIB_MAN_SUFFIX=3
11699fi
11700if test x$LIB_MAN_DIR = x    ; then
11701    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11702fi
11703
11704if test x$FILE_MAN_SUFFIX = x    ; then
11705    case $SYSV_MAN_SECTIONS in
11706	true)				FILE_MAN_SUFFIX=4  ;;
11707	*)				FILE_MAN_SUFFIX=5  ;;
11708    esac
11709fi
11710if test x$FILE_MAN_DIR = x    ; then
11711    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11712fi
11713
11714if test x$MISC_MAN_SUFFIX = x    ; then
11715    case $SYSV_MAN_SECTIONS in
11716	true)				MISC_MAN_SUFFIX=5  ;;
11717	*)				MISC_MAN_SUFFIX=7  ;;
11718    esac
11719fi
11720if test x$MISC_MAN_DIR = x    ; then
11721    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11722fi
11723
11724if test x$DRIVER_MAN_SUFFIX = x    ; then
11725    case $SYSV_MAN_SECTIONS in
11726	true)				DRIVER_MAN_SUFFIX=7  ;;
11727	*)				DRIVER_MAN_SUFFIX=4  ;;
11728    esac
11729fi
11730if test x$DRIVER_MAN_DIR = x    ; then
11731    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11732fi
11733
11734if test x$ADMIN_MAN_SUFFIX = x    ; then
11735    case $SYSV_MAN_SECTIONS in
11736	true)				ADMIN_MAN_SUFFIX=1m ;;
11737	*)				ADMIN_MAN_SUFFIX=8  ;;
11738    esac
11739fi
11740if test x$ADMIN_MAN_DIR = x    ; then
11741    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11742fi
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758XORG_MAN_PAGE="X Version 11"
11759
11760MAN_SUBSTS="\
11761	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11762	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11763	-e 's|__xservername__|Xorg|g' \
11764	-e 's|__xconfigfile__|xorg.conf|g' \
11765	-e 's|__projectroot__|\$(prefix)|g' \
11766	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11767	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11768	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11769	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11770	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11771	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11772	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11773
11774
11775
11776# Check whether --enable-silent-rules was given.
11777if test ${enable_silent_rules+y}
11778then :
11779  enableval=$enable_silent_rules;
11780fi
11781
11782case $enable_silent_rules in # (((
11783  yes) AM_DEFAULT_VERBOSITY=0;;
11784   no) AM_DEFAULT_VERBOSITY=1;;
11785    *) AM_DEFAULT_VERBOSITY=0;;
11786esac
11787am_make=${MAKE-make}
11788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11789printf %s "checking whether $am_make supports nested variables... " >&6; }
11790if test ${am_cv_make_support_nested_variables+y}
11791then :
11792  printf %s "(cached) " >&6
11793else case e in #(
11794  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11795BAR0=false
11796BAR1=true
11797V=1
11798am__doit:
11799	@$(TRUE)
11800.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11801  am_cv_make_support_nested_variables=yes
11802else
11803  am_cv_make_support_nested_variables=no
11804fi ;;
11805esac
11806fi
11807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11808printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11809if test $am_cv_make_support_nested_variables = yes; then
11810    AM_V='$(V)'
11811  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11812else
11813  AM_V=$AM_DEFAULT_VERBOSITY
11814  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11815fi
11816AM_BACKSLASH='\'
11817
11818
11819
11820
11821# Checks for header files.
11822ac_fn_c_check_header_compile "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
11823if test "x$ac_cv_header_net_errno_h" = xyes
11824then :
11825  printf "%s\n" "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
11826
11827fi
11828
11829
11830# Checks for typedefs, structures, and compiler characteristics.
11831# Check whether --enable-largefile was given.
11832if test ${enable_largefile+y}
11833then :
11834  enableval=$enable_largefile;
11835fi
11836if test "$enable_largefile,$enable_year2038" != no,no
11837then :
11838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11839printf %s "checking for $CC option to enable large file support... " >&6; }
11840if test ${ac_cv_sys_largefile_opts+y}
11841then :
11842  printf %s "(cached) " >&6
11843else case e in #(
11844  e) ac_save_CC="$CC"
11845  ac_opt_found=no
11846  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11847    if test x"$ac_opt" != x"none needed"
11848then :
11849  CC="$ac_save_CC $ac_opt"
11850fi
11851    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852/* end confdefs.h.  */
11853#include <sys/types.h>
11854#ifndef FTYPE
11855# define FTYPE off_t
11856#endif
11857 /* Check that FTYPE can represent 2**63 - 1 correctly.
11858    We can't simply define LARGE_FTYPE to be 9223372036854775807,
11859    since some C++ compilers masquerading as C compilers
11860    incorrectly reject 9223372036854775807.  */
11861#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11862  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11863		       && LARGE_FTYPE % 2147483647 == 1)
11864		      ? 1 : -1];
11865int
11866main (void)
11867{
11868
11869  ;
11870  return 0;
11871}
11872_ACEOF
11873if ac_fn_c_try_compile "$LINENO"
11874then :
11875  if test x"$ac_opt" = x"none needed"
11876then :
11877  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11878	 CC="$CC -DFTYPE=ino_t"
11879	 if ac_fn_c_try_compile "$LINENO"
11880then :
11881
11882else case e in #(
11883  e) CC="$CC -D_FILE_OFFSET_BITS=64"
11884	    if ac_fn_c_try_compile "$LINENO"
11885then :
11886  ac_opt='-D_FILE_OFFSET_BITS=64'
11887fi
11888rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11889esac
11890fi
11891rm -f core conftest.err conftest.$ac_objext conftest.beam
11892fi
11893      ac_cv_sys_largefile_opts=$ac_opt
11894      ac_opt_found=yes
11895fi
11896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11897    test $ac_opt_found = no || break
11898  done
11899  CC="$ac_save_CC"
11900
11901  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11902esac
11903fi
11904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11905printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11906
11907ac_have_largefile=yes
11908case $ac_cv_sys_largefile_opts in #(
11909  "none needed") :
11910     ;; #(
11911  "supported through gnulib") :
11912     ;; #(
11913  "support not detected") :
11914    ac_have_largefile=no ;; #(
11915  "-D_FILE_OFFSET_BITS=64") :
11916
11917printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11918 ;; #(
11919  "-D_LARGE_FILES=1") :
11920
11921printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11922 ;; #(
11923  "-n32") :
11924    CC="$CC -n32" ;; #(
11925  *) :
11926    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11927esac
11928
11929if test "$enable_year2038" != no
11930then :
11931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11932printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11933if test ${ac_cv_sys_year2038_opts+y}
11934then :
11935  printf %s "(cached) " >&6
11936else case e in #(
11937  e) ac_save_CPPFLAGS="$CPPFLAGS"
11938  ac_opt_found=no
11939  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11940    if test x"$ac_opt" != x"none needed"
11941then :
11942  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11943fi
11944    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945/* end confdefs.h.  */
11946
11947  #include <time.h>
11948  /* Check that time_t can represent 2**32 - 1 correctly.  */
11949  #define LARGE_TIME_T \\
11950    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11951  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11952                           && LARGE_TIME_T % 65537 == 0)
11953                          ? 1 : -1];
11954
11955int
11956main (void)
11957{
11958
11959  ;
11960  return 0;
11961}
11962_ACEOF
11963if ac_fn_c_try_compile "$LINENO"
11964then :
11965  ac_cv_sys_year2038_opts="$ac_opt"
11966      ac_opt_found=yes
11967fi
11968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11969    test $ac_opt_found = no || break
11970  done
11971  CPPFLAGS="$ac_save_CPPFLAGS"
11972  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11973esac
11974fi
11975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11976printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11977
11978ac_have_year2038=yes
11979case $ac_cv_sys_year2038_opts in #(
11980  "none needed") :
11981     ;; #(
11982  "support not detected") :
11983    ac_have_year2038=no ;; #(
11984  "-D_TIME_BITS=64") :
11985
11986printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11987 ;; #(
11988  "-D__MINGW_USE_VC2005_COMPAT") :
11989
11990printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11991 ;; #(
11992  "-U_USE_32_BIT_TIME_T"*) :
11993    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11994printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11995as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11996will stop working after mid-January 2038. Remove
11997_USE_32BIT_TIME_T from the compiler flags.
11998See 'config.log' for more details" "$LINENO" 5; } ;; #(
11999  *) :
12000    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
12001esac
12002
12003fi
12004
12005fi
12006
12007# Checks for library functions.
12008ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
12009if test "x$ac_cv_func_reallocarray" = xyes
12010then :
12011  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
12012
12013fi
12014ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
12015if test "x$ac_cv_func_strlcpy" = xyes
12016then :
12017  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
12018
12019fi
12020
12021
12022# Checks for pkg-config packages
12023
12024pkg_failed=no
12025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
12026printf %s "checking for XAUTH... " >&6; }
12027
12028if test -n "$XAUTH_CFLAGS"; then
12029    pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
12030 elif test -n "$PKG_CONFIG"; then
12031    if test -n "$PKG_CONFIG" && \
12032    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
12033  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
12034  ac_status=$?
12035  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12036  test $ac_status = 0; }; then
12037  pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
12038		      test "x$?" != "x0" && pkg_failed=yes
12039else
12040  pkg_failed=yes
12041fi
12042 else
12043    pkg_failed=untried
12044fi
12045if test -n "$XAUTH_LIBS"; then
12046    pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
12047 elif test -n "$PKG_CONFIG"; then
12048    if test -n "$PKG_CONFIG" && \
12049    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
12050  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
12051  ac_status=$?
12052  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12053  test $ac_status = 0; }; then
12054  pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
12055		      test "x$?" != "x0" && pkg_failed=yes
12056else
12057  pkg_failed=yes
12058fi
12059 else
12060    pkg_failed=untried
12061fi
12062
12063
12064
12065if test $pkg_failed = yes; then
12066   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067printf "%s\n" "no" >&6; }
12068
12069if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12070        _pkg_short_errors_supported=yes
12071else
12072        _pkg_short_errors_supported=no
12073fi
12074        if test $_pkg_short_errors_supported = yes; then
12075	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
12076        else
12077	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
12078        fi
12079	# Put the nasty error message in config.log where it belongs
12080	echo "$XAUTH_PKG_ERRORS" >&5
12081
12082	as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
12083
12084$XAUTH_PKG_ERRORS
12085
12086Consider adjusting the PKG_CONFIG_PATH environment variable if you
12087installed software in a non-standard prefix.
12088
12089Alternatively, you may set the environment variables XAUTH_CFLAGS
12090and XAUTH_LIBS to avoid the need to call pkg-config.
12091See the pkg-config man page for more details." "$LINENO" 5
12092elif test $pkg_failed = untried; then
12093     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094printf "%s\n" "no" >&6; }
12095	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12096printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12097as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12098is in your PATH or set the PKG_CONFIG environment variable to the full
12099path to pkg-config.
12100
12101Alternatively, you may set the environment variables XAUTH_CFLAGS
12102and XAUTH_LIBS to avoid the need to call pkg-config.
12103See the pkg-config man page for more details.
12104
12105To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12106See 'config.log' for more details" "$LINENO" 5; }
12107else
12108	XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
12109	XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
12110        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12111printf "%s\n" "yes" >&6; }
12112
12113fi
12114
12115# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
12116# was not expanded, since xauth with no address support is rather broken.
12117#
12118# If you're seeing an error here, be sure you installed the lib/xtrans module
12119# first and if it's not in the default location, that you set the ACLOCAL
12120# environment variable to find it, such as:
12121#       ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
12122
12123
12124# Transport selection macro from xtrans.m4
12125# Needed to set *CONN defines for gethost.c & parsedpy.c
12126
12127
12128 case $host_os in
12129	mingw*)	unixdef="no"   ;;
12130	*)	unixdef="yes"  ;;
12131 esac
12132 # Check whether --enable-unix-transport was given.
12133if test ${enable_unix_transport+y}
12134then :
12135  enableval=$enable_unix_transport; UNIXCONN=$enableval
12136else case e in #(
12137  e) UNIXCONN=$unixdef ;;
12138esac
12139fi
12140
12141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
12142printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
12143 if test "$UNIXCONN" = "yes"; then
12144
12145printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
12146
12147 fi
12148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
12149printf "%s\n" "$UNIXCONN" >&6; }
12150 # Check whether --enable-tcp-transport was given.
12151if test ${enable_tcp_transport+y}
12152then :
12153  enableval=$enable_tcp_transport; TCPCONN=$enableval
12154else case e in #(
12155  e) TCPCONN=yes ;;
12156esac
12157fi
12158
12159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
12160printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
12162printf "%s\n" "$TCPCONN" >&6; }
12163 if test "$TCPCONN" = "yes"; then
12164
12165printf "%s\n" "#define TCPCONN 1" >>confdefs.h
12166
12167
12168 # SVR4 hides these in libraries other than libc
12169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12170printf %s "checking for library containing socket... " >&6; }
12171if test ${ac_cv_search_socket+y}
12172then :
12173  printf %s "(cached) " >&6
12174else case e in #(
12175  e) ac_func_search_save_LIBS=$LIBS
12176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177/* end confdefs.h.  */
12178
12179/* Override any GCC internal prototype to avoid an error.
12180   Use char because int might match the return type of a GCC
12181   builtin and then its argument prototype would still apply.
12182   The 'extern "C"' is for builds by C++ compilers;
12183   although this is not generally supported in C code supporting it here
12184   has little cost and some practical benefit (sr 110532).  */
12185#ifdef __cplusplus
12186extern "C"
12187#endif
12188char socket (void);
12189int
12190main (void)
12191{
12192return socket ();
12193  ;
12194  return 0;
12195}
12196_ACEOF
12197for ac_lib in '' socket
12198do
12199  if test -z "$ac_lib"; then
12200    ac_res="none required"
12201  else
12202    ac_res=-l$ac_lib
12203    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12204  fi
12205  if ac_fn_c_try_link "$LINENO"
12206then :
12207  ac_cv_search_socket=$ac_res
12208fi
12209rm -f core conftest.err conftest.$ac_objext conftest.beam \
12210    conftest$ac_exeext
12211  if test ${ac_cv_search_socket+y}
12212then :
12213  break
12214fi
12215done
12216if test ${ac_cv_search_socket+y}
12217then :
12218
12219else case e in #(
12220  e) ac_cv_search_socket=no ;;
12221esac
12222fi
12223rm conftest.$ac_ext
12224LIBS=$ac_func_search_save_LIBS ;;
12225esac
12226fi
12227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12228printf "%s\n" "$ac_cv_search_socket" >&6; }
12229ac_res=$ac_cv_search_socket
12230if test "$ac_res" != no
12231then :
12232  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12233
12234fi
12235
12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12237printf %s "checking for library containing gethostbyname... " >&6; }
12238if test ${ac_cv_search_gethostbyname+y}
12239then :
12240  printf %s "(cached) " >&6
12241else case e in #(
12242  e) ac_func_search_save_LIBS=$LIBS
12243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244/* end confdefs.h.  */
12245
12246/* Override any GCC internal prototype to avoid an error.
12247   Use char because int might match the return type of a GCC
12248   builtin and then its argument prototype would still apply.
12249   The 'extern "C"' is for builds by C++ compilers;
12250   although this is not generally supported in C code supporting it here
12251   has little cost and some practical benefit (sr 110532).  */
12252#ifdef __cplusplus
12253extern "C"
12254#endif
12255char gethostbyname (void);
12256int
12257main (void)
12258{
12259return gethostbyname ();
12260  ;
12261  return 0;
12262}
12263_ACEOF
12264for ac_lib in '' nsl
12265do
12266  if test -z "$ac_lib"; then
12267    ac_res="none required"
12268  else
12269    ac_res=-l$ac_lib
12270    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12271  fi
12272  if ac_fn_c_try_link "$LINENO"
12273then :
12274  ac_cv_search_gethostbyname=$ac_res
12275fi
12276rm -f core conftest.err conftest.$ac_objext conftest.beam \
12277    conftest$ac_exeext
12278  if test ${ac_cv_search_gethostbyname+y}
12279then :
12280  break
12281fi
12282done
12283if test ${ac_cv_search_gethostbyname+y}
12284then :
12285
12286else case e in #(
12287  e) ac_cv_search_gethostbyname=no ;;
12288esac
12289fi
12290rm conftest.$ac_ext
12291LIBS=$ac_func_search_save_LIBS ;;
12292esac
12293fi
12294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12295printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
12296ac_res=$ac_cv_search_gethostbyname
12297if test "$ac_res" != no
12298then :
12299  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12300
12301fi
12302
12303 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
12304   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12305printf %s "checking for main in -lws2_32... " >&6; }
12306if test ${ac_cv_lib_ws2_32_main+y}
12307then :
12308  printf %s "(cached) " >&6
12309else case e in #(
12310  e) ac_check_lib_save_LIBS=$LIBS
12311LIBS="-lws2_32  $LIBS"
12312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313/* end confdefs.h.  */
12314
12315
12316int
12317main (void)
12318{
12319return main ();
12320  ;
12321  return 0;
12322}
12323_ACEOF
12324if ac_fn_c_try_link "$LINENO"
12325then :
12326  ac_cv_lib_ws2_32_main=yes
12327else case e in #(
12328  e) ac_cv_lib_ws2_32_main=no ;;
12329esac
12330fi
12331rm -f core conftest.err conftest.$ac_objext conftest.beam \
12332    conftest$ac_exeext conftest.$ac_ext
12333LIBS=$ac_check_lib_save_LIBS ;;
12334esac
12335fi
12336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12337printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
12338if test "x$ac_cv_lib_ws2_32_main" = xyes
12339then :
12340  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
12341
12342  LIBS="-lws2_32 $LIBS"
12343
12344fi
12345
12346 fi
12347
12348 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
12349 # Check whether --enable-ipv6 was given.
12350if test ${enable_ipv6+y}
12351then :
12352  enableval=$enable_ipv6; IPV6CONN=$enableval
12353else case e in #(
12354  e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12355if test "x$ac_cv_func_getaddrinfo" = xyes
12356then :
12357  IPV6CONN=yes
12358else case e in #(
12359  e) IPV6CONN=no ;;
12360esac
12361fi
12362 ;;
12363esac
12364fi
12365
12366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
12367printf %s "checking if IPv6 support should be built... " >&6; }
12368 if test "$IPV6CONN" = "yes"; then
12369
12370printf "%s\n" "#define IPv6 1" >>confdefs.h
12371
12372 fi
12373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
12374printf "%s\n" "$IPV6CONN" >&6; }
12375
12376 # 4.3BSD-Reno added a new member to struct sockaddr_in
12377 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
12378#include <sys/types.h>
12379#include <sys/socket.h>
12380#include <netinet/in.h>
12381
12382"
12383if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
12384then :
12385
12386printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
12387
12388fi
12389
12390
12391 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
12392 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
12393$ac_includes_default
12394#include <sys/socket.h>
12395"
12396if test "x$ac_cv_type_socklen_t" = xyes
12397then :
12398
12399printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
12400
12401
12402fi
12403
12404
12405 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
12406 # _XOPEN_SOURCE to get it (such as on Solaris)
12407 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12408$ac_includes_default
12409#include <sys/socket.h>
12410
12411"
12412if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
12413then :
12414
12415fi
12416
12417 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
12418 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
12419     unset ac_cv_member_struct_msghdr_msg_control
12420     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
12421printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
12422     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12423#define _XOPEN_SOURCE 600
12424$ac_includes_default
12425#include <sys/socket.h>
12426
12427"
12428if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
12429then :
12430
12431printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
12432
12433
12434fi
12435
12436 fi
12437 # If that didn't work, fall back to XPG5/UNIX98 with C89
12438 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
12439     unset ac_cv_member_struct_msghdr_msg_control
12440     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
12441printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
12442     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12443#define _XOPEN_SOURCE 500
12444$ac_includes_default
12445#include <sys/socket.h>
12446
12447"
12448if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
12449then :
12450
12451printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
12452
12453
12454fi
12455
12456 fi
12457
12458
12459
12460 fi
12461 case $host_os in
12462	solaris*)		localdef="yes" ;;
12463	*)			localdef="no"  ;;
12464 esac
12465 # Check whether --enable-local-transport was given.
12466if test ${enable_local_transport+y}
12467then :
12468  enableval=$enable_local_transport; LOCALCONN=$enableval
12469else case e in #(
12470  e) LOCALCONN=$localdef ;;
12471esac
12472fi
12473
12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
12475printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
12476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
12477printf "%s\n" "$LOCALCONN" >&6; }
12478 if test "$LOCALCONN" = "yes"; then
12479
12480printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
12481
12482 fi
12483
12484 # Other functions Xtrans may need
12485 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
12486if test "x$ac_cv_func_strcasecmp" = xyes
12487then :
12488  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
12489
12490fi
12491ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
12492if test "x$ac_cv_func_strlcpy" = xyes
12493then :
12494  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
12495
12496fi
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506# Check whether --with-lint was given.
12507if test ${with_lint+y}
12508then :
12509  withval=$with_lint; use_lint=$withval
12510else case e in #(
12511  e) use_lint=no ;;
12512esac
12513fi
12514
12515
12516# Obtain platform specific info like program name and options
12517# The lint program on FreeBSD and NetBSD is different from the one on Solaris
12518case $host_os in
12519  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12520	lint_name=splint
12521	lint_options="-badflag"
12522	;;
12523  *freebsd* | *netbsd*)
12524	lint_name=lint
12525	lint_options="-u -b"
12526	;;
12527  *solaris*)
12528	lint_name=lint
12529	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12530	;;
12531esac
12532
12533# Test for the presence of the program (either guessed by the code or spelled out by the user)
12534if test "x$use_lint" = x"yes" ; then
12535   # Extract the first word of "$lint_name", so it can be a program name with args.
12536set dummy $lint_name; ac_word=$2
12537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538printf %s "checking for $ac_word... " >&6; }
12539if test ${ac_cv_path_LINT+y}
12540then :
12541  printf %s "(cached) " >&6
12542else case e in #(
12543  e) case $LINT in
12544  [\\/]* | ?:[\\/]*)
12545  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12546  ;;
12547  *)
12548  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549for as_dir in $PATH
12550do
12551  IFS=$as_save_IFS
12552  case $as_dir in #(((
12553    '') as_dir=./ ;;
12554    */) ;;
12555    *) as_dir=$as_dir/ ;;
12556  esac
12557    for ac_exec_ext in '' $ac_executable_extensions; do
12558  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12559    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
12560    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12561    break 2
12562  fi
12563done
12564  done
12565IFS=$as_save_IFS
12566
12567  ;;
12568esac ;;
12569esac
12570fi
12571LINT=$ac_cv_path_LINT
12572if test -n "$LINT"; then
12573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12574printf "%s\n" "$LINT" >&6; }
12575else
12576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577printf "%s\n" "no" >&6; }
12578fi
12579
12580
12581   if test "x$LINT" = "x"; then
12582        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12583   fi
12584elif test "x$use_lint" = x"no" ; then
12585   if test "x$LINT" != "x"; then
12586      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12587printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12588   fi
12589else
12590   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12591fi
12592
12593# User supplied flags override default flags
12594if test "x$LINT_FLAGS" != "x"; then
12595   lint_options=$LINT_FLAGS
12596fi
12597
12598LINT_FLAGS=$lint_options
12599
12600 if test "x$LINT" != x; then
12601  LINT_TRUE=
12602  LINT_FALSE='#'
12603else
12604  LINT_TRUE='#'
12605  LINT_FALSE=
12606fi
12607
12608
12609
12610
12611ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
12612
12613cat >confcache <<\_ACEOF
12614# This file is a shell script that caches the results of configure
12615# tests run on this system so they can be shared between configure
12616# scripts and configure runs, see configure's option --config-cache.
12617# It is not useful on other systems.  If it contains results you don't
12618# want to keep, you may remove or edit it.
12619#
12620# config.status only pays attention to the cache file if you give it
12621# the --recheck option to rerun configure.
12622#
12623# 'ac_cv_env_foo' variables (set or unset) will be overridden when
12624# loading this file, other *unset* 'ac_cv_foo' will be assigned the
12625# following values.
12626
12627_ACEOF
12628
12629# The following way of writing the cache mishandles newlines in values,
12630# but we know of no workaround that is simple, portable, and efficient.
12631# So, we kill variables containing newlines.
12632# Ultrix sh set writes to stderr and can't be redirected directly,
12633# and sets the high bit in the cache file unless we assign to the vars.
12634(
12635  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12636    eval ac_val=\$$ac_var
12637    case $ac_val in #(
12638    *${as_nl}*)
12639      case $ac_var in #(
12640      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12641printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12642      esac
12643      case $ac_var in #(
12644      _ | IFS | as_nl) ;; #(
12645      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12646      *) { eval $ac_var=; unset $ac_var;} ;;
12647      esac ;;
12648    esac
12649  done
12650
12651  (set) 2>&1 |
12652    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12653    *${as_nl}ac_space=\ *)
12654      # 'set' does not quote correctly, so add quotes: double-quote
12655      # substitution turns \\\\ into \\, and sed turns \\ into \.
12656      sed -n \
12657	"s/'/'\\\\''/g;
12658	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12659      ;; #(
12660    *)
12661      # 'set' quotes correctly as required by POSIX, so do not add quotes.
12662      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12663      ;;
12664    esac |
12665    sort
12666) |
12667  sed '
12668     /^ac_cv_env_/b end
12669     t clear
12670     :clear
12671     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12672     t end
12673     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12674     :end' >>confcache
12675if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12676  if test -w "$cache_file"; then
12677    if test "x$cache_file" != "x/dev/null"; then
12678      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12679printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12680      if test ! -f "$cache_file" || test -h "$cache_file"; then
12681	cat confcache >"$cache_file"
12682      else
12683        case $cache_file in #(
12684        */* | ?:*)
12685	  mv -f confcache "$cache_file"$$ &&
12686	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12687        *)
12688	  mv -f confcache "$cache_file" ;;
12689	esac
12690      fi
12691    fi
12692  else
12693    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12694printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12695  fi
12696fi
12697rm -f confcache
12698
12699test "x$prefix" = xNONE && prefix=$ac_default_prefix
12700# Let make expand exec_prefix.
12701test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12702
12703DEFS=-DHAVE_CONFIG_H
12704
12705ac_libobjs=
12706ac_ltlibobjs=
12707U=
12708for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12709  # 1. Remove the extension, and $U if already installed.
12710  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12711  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12712  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12713  #    will be set to the directory where LIBOBJS objects are built.
12714  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12715  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12716done
12717LIBOBJS=$ac_libobjs
12718
12719LTLIBOBJS=$ac_ltlibobjs
12720
12721
12722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12723printf %s "checking that generated files are newer than configure... " >&6; }
12724   if test -n "$am_sleep_pid"; then
12725     # Hide warnings about reused PIDs.
12726     wait $am_sleep_pid 2>/dev/null
12727   fi
12728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12729printf "%s\n" "done" >&6; }
12730if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12731  as_fn_error $? "conditional \"AMDEP\" was never defined.
12732Usually this means the macro was only invoked conditionally." "$LINENO" 5
12733fi
12734if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12735  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12736Usually this means the macro was only invoked conditionally." "$LINENO" 5
12737fi
12738 if test -n "$EXEEXT"; then
12739  am__EXEEXT_TRUE=
12740  am__EXEEXT_FALSE='#'
12741else
12742  am__EXEEXT_TRUE='#'
12743  am__EXEEXT_FALSE=
12744fi
12745
12746# Check whether --enable-year2038 was given.
12747if test ${enable_year2038+y}
12748then :
12749  enableval=$enable_year2038;
12750fi
12751
12752if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12753  as_fn_error $? "conditional \"LINT\" was never defined.
12754Usually this means the macro was only invoked conditionally." "$LINENO" 5
12755fi
12756
12757: "${CONFIG_STATUS=./config.status}"
12758ac_write_fail=0
12759ac_clean_files_save=$ac_clean_files
12760ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12762printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12763as_write_fail=0
12764cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12765#! $SHELL
12766# Generated by $as_me.
12767# Run this file to recreate the current configuration.
12768# Compiler output produced by configure, useful for debugging
12769# configure, is in config.log if it exists.
12770
12771debug=false
12772ac_cs_recheck=false
12773ac_cs_silent=false
12774
12775SHELL=\${CONFIG_SHELL-$SHELL}
12776export SHELL
12777_ASEOF
12778cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12779## -------------------- ##
12780## M4sh Initialization. ##
12781## -------------------- ##
12782
12783# Be more Bourne compatible
12784DUALCASE=1; export DUALCASE # for MKS sh
12785if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12786then :
12787  emulate sh
12788  NULLCMD=:
12789  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12790  # is contrary to our usage.  Disable this feature.
12791  alias -g '${1+"$@"}'='"$@"'
12792  setopt NO_GLOB_SUBST
12793else case e in #(
12794  e) case `(set -o) 2>/dev/null` in #(
12795  *posix*) :
12796    set -o posix ;; #(
12797  *) :
12798     ;;
12799esac ;;
12800esac
12801fi
12802
12803
12804
12805# Reset variables that may have inherited troublesome values from
12806# the environment.
12807
12808# IFS needs to be set, to space, tab, and newline, in precisely that order.
12809# (If _AS_PATH_WALK were called with IFS unset, it would have the
12810# side effect of setting IFS to empty, thus disabling word splitting.)
12811# Quoting is to prevent editors from complaining about space-tab.
12812as_nl='
12813'
12814export as_nl
12815IFS=" ""	$as_nl"
12816
12817PS1='$ '
12818PS2='> '
12819PS4='+ '
12820
12821# Ensure predictable behavior from utilities with locale-dependent output.
12822LC_ALL=C
12823export LC_ALL
12824LANGUAGE=C
12825export LANGUAGE
12826
12827# We cannot yet rely on "unset" to work, but we need these variables
12828# to be unset--not just set to an empty or harmless value--now, to
12829# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12830# also avoids known problems related to "unset" and subshell syntax
12831# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12832for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12833do eval test \${$as_var+y} \
12834  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12835done
12836
12837# Ensure that fds 0, 1, and 2 are open.
12838if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12839if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12840if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12841
12842# The user is always right.
12843if ${PATH_SEPARATOR+false} :; then
12844  PATH_SEPARATOR=:
12845  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12846    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12847      PATH_SEPARATOR=';'
12848  }
12849fi
12850
12851
12852# Find who we are.  Look in the path if we contain no directory separator.
12853as_myself=
12854case $0 in #((
12855  *[\\/]* ) as_myself=$0 ;;
12856  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857for as_dir in $PATH
12858do
12859  IFS=$as_save_IFS
12860  case $as_dir in #(((
12861    '') as_dir=./ ;;
12862    */) ;;
12863    *) as_dir=$as_dir/ ;;
12864  esac
12865    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12866  done
12867IFS=$as_save_IFS
12868
12869     ;;
12870esac
12871# We did not find ourselves, most probably we were run as 'sh COMMAND'
12872# in which case we are not to be found in the path.
12873if test "x$as_myself" = x; then
12874  as_myself=$0
12875fi
12876if test ! -f "$as_myself"; then
12877  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12878  exit 1
12879fi
12880
12881
12882
12883# as_fn_error STATUS ERROR [LINENO LOG_FD]
12884# ----------------------------------------
12885# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12886# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12887# script with STATUS, using 1 if that was 0.
12888as_fn_error ()
12889{
12890  as_status=$1; test $as_status -eq 0 && as_status=1
12891  if test "$4"; then
12892    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12893    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12894  fi
12895  printf "%s\n" "$as_me: error: $2" >&2
12896  as_fn_exit $as_status
12897} # as_fn_error
12898
12899
12900# as_fn_set_status STATUS
12901# -----------------------
12902# Set $? to STATUS, without forking.
12903as_fn_set_status ()
12904{
12905  return $1
12906} # as_fn_set_status
12907
12908# as_fn_exit STATUS
12909# -----------------
12910# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12911as_fn_exit ()
12912{
12913  set +e
12914  as_fn_set_status $1
12915  exit $1
12916} # as_fn_exit
12917
12918# as_fn_unset VAR
12919# ---------------
12920# Portably unset VAR.
12921as_fn_unset ()
12922{
12923  { eval $1=; unset $1;}
12924}
12925as_unset=as_fn_unset
12926
12927# as_fn_append VAR VALUE
12928# ----------------------
12929# Append the text in VALUE to the end of the definition contained in VAR. Take
12930# advantage of any shell optimizations that allow amortized linear growth over
12931# repeated appends, instead of the typical quadratic growth present in naive
12932# implementations.
12933if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12934then :
12935  eval 'as_fn_append ()
12936  {
12937    eval $1+=\$2
12938  }'
12939else case e in #(
12940  e) as_fn_append ()
12941  {
12942    eval $1=\$$1\$2
12943  } ;;
12944esac
12945fi # as_fn_append
12946
12947# as_fn_arith ARG...
12948# ------------------
12949# Perform arithmetic evaluation on the ARGs, and store the result in the
12950# global $as_val. Take advantage of shells that can avoid forks. The arguments
12951# must be portable across $(()) and expr.
12952if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12953then :
12954  eval 'as_fn_arith ()
12955  {
12956    as_val=$(( $* ))
12957  }'
12958else case e in #(
12959  e) as_fn_arith ()
12960  {
12961    as_val=`expr "$@" || test $? -eq 1`
12962  } ;;
12963esac
12964fi # as_fn_arith
12965
12966
12967if expr a : '\(a\)' >/dev/null 2>&1 &&
12968   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12969  as_expr=expr
12970else
12971  as_expr=false
12972fi
12973
12974if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12975  as_basename=basename
12976else
12977  as_basename=false
12978fi
12979
12980if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12981  as_dirname=dirname
12982else
12983  as_dirname=false
12984fi
12985
12986as_me=`$as_basename -- "$0" ||
12987$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12988	 X"$0" : 'X\(//\)$' \| \
12989	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12990printf "%s\n" X/"$0" |
12991    sed '/^.*\/\([^/][^/]*\)\/*$/{
12992	    s//\1/
12993	    q
12994	  }
12995	  /^X\/\(\/\/\)$/{
12996	    s//\1/
12997	    q
12998	  }
12999	  /^X\/\(\/\).*/{
13000	    s//\1/
13001	    q
13002	  }
13003	  s/.*/./; q'`
13004
13005# Avoid depending upon Character Ranges.
13006as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13007as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13008as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13009as_cr_digits='0123456789'
13010as_cr_alnum=$as_cr_Letters$as_cr_digits
13011
13012
13013# Determine whether it's possible to make 'echo' print without a newline.
13014# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13015# for compatibility with existing Makefiles.
13016ECHO_C= ECHO_N= ECHO_T=
13017case `echo -n x` in #(((((
13018-n*)
13019  case `echo 'xy\c'` in
13020  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13021  xy)  ECHO_C='\c';;
13022  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13023       ECHO_T='	';;
13024  esac;;
13025*)
13026  ECHO_N='-n';;
13027esac
13028
13029# For backward compatibility with old third-party macros, we provide
13030# the shell variables $as_echo and $as_echo_n.  New code should use
13031# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13032as_echo='printf %s\n'
13033as_echo_n='printf %s'
13034
13035rm -f conf$$ conf$$.exe conf$$.file
13036if test -d conf$$.dir; then
13037  rm -f conf$$.dir/conf$$.file
13038else
13039  rm -f conf$$.dir
13040  mkdir conf$$.dir 2>/dev/null
13041fi
13042if (echo >conf$$.file) 2>/dev/null; then
13043  if ln -s conf$$.file conf$$ 2>/dev/null; then
13044    as_ln_s='ln -s'
13045    # ... but there are two gotchas:
13046    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
13047    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
13048    # In both cases, we have to default to 'cp -pR'.
13049    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13050      as_ln_s='cp -pR'
13051  elif ln conf$$.file conf$$ 2>/dev/null; then
13052    as_ln_s=ln
13053  else
13054    as_ln_s='cp -pR'
13055  fi
13056else
13057  as_ln_s='cp -pR'
13058fi
13059rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13060rmdir conf$$.dir 2>/dev/null
13061
13062
13063# as_fn_mkdir_p
13064# -------------
13065# Create "$as_dir" as a directory, including parents if necessary.
13066as_fn_mkdir_p ()
13067{
13068
13069  case $as_dir in #(
13070  -*) as_dir=./$as_dir;;
13071  esac
13072  test -d "$as_dir" || eval $as_mkdir_p || {
13073    as_dirs=
13074    while :; do
13075      case $as_dir in #(
13076      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13077      *) as_qdir=$as_dir;;
13078      esac
13079      as_dirs="'$as_qdir' $as_dirs"
13080      as_dir=`$as_dirname -- "$as_dir" ||
13081$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13082	 X"$as_dir" : 'X\(//\)[^/]' \| \
13083	 X"$as_dir" : 'X\(//\)$' \| \
13084	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13085printf "%s\n" X"$as_dir" |
13086    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13087	    s//\1/
13088	    q
13089	  }
13090	  /^X\(\/\/\)[^/].*/{
13091	    s//\1/
13092	    q
13093	  }
13094	  /^X\(\/\/\)$/{
13095	    s//\1/
13096	    q
13097	  }
13098	  /^X\(\/\).*/{
13099	    s//\1/
13100	    q
13101	  }
13102	  s/.*/./; q'`
13103      test -d "$as_dir" && break
13104    done
13105    test -z "$as_dirs" || eval "mkdir $as_dirs"
13106  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13107
13108
13109} # as_fn_mkdir_p
13110if mkdir -p . 2>/dev/null; then
13111  as_mkdir_p='mkdir -p "$as_dir"'
13112else
13113  test -d ./-p && rmdir ./-p
13114  as_mkdir_p=false
13115fi
13116
13117
13118# as_fn_executable_p FILE
13119# -----------------------
13120# Test if FILE is an executable regular file.
13121as_fn_executable_p ()
13122{
13123  test -f "$1" && test -x "$1"
13124} # as_fn_executable_p
13125as_test_x='test -x'
13126as_executable_p=as_fn_executable_p
13127
13128# Sed expression to map a string onto a valid CPP name.
13129as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13130as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
13131
13132# Sed expression to map a string onto a valid variable name.
13133as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13134as_tr_sh="eval sed '$as_sed_sh'" # deprecated
13135
13136
13137exec 6>&1
13138## ----------------------------------- ##
13139## Main body of $CONFIG_STATUS script. ##
13140## ----------------------------------- ##
13141_ASEOF
13142test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13143
13144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13145# Save the log message, to keep $0 and so on meaningful, and to
13146# report actual input values of CONFIG_FILES etc. instead of their
13147# values after options handling.
13148ac_log="
13149This file was extended by xauth $as_me 1.1.3, which was
13150generated by GNU Autoconf 2.72.  Invocation command line was
13151
13152  CONFIG_FILES    = $CONFIG_FILES
13153  CONFIG_HEADERS  = $CONFIG_HEADERS
13154  CONFIG_LINKS    = $CONFIG_LINKS
13155  CONFIG_COMMANDS = $CONFIG_COMMANDS
13156  $ $0 $@
13157
13158on `(hostname || uname -n) 2>/dev/null | sed 1q`
13159"
13160
13161_ACEOF
13162
13163case $ac_config_files in *"
13164"*) set x $ac_config_files; shift; ac_config_files=$*;;
13165esac
13166
13167case $ac_config_headers in *"
13168"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13169esac
13170
13171
13172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13173# Files that config.status was made for.
13174config_files="$ac_config_files"
13175config_headers="$ac_config_headers"
13176config_commands="$ac_config_commands"
13177
13178_ACEOF
13179
13180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13181ac_cs_usage="\
13182'$as_me' instantiates files and other configuration actions
13183from templates according to the current configuration.  Unless the files
13184and actions are specified as TAGs, all are instantiated by default.
13185
13186Usage: $0 [OPTION]... [TAG]...
13187
13188  -h, --help       print this help, then exit
13189  -V, --version    print version number and configuration settings, then exit
13190      --config     print configuration, then exit
13191  -q, --quiet, --silent
13192                   do not print progress messages
13193  -d, --debug      don't remove temporary files
13194      --recheck    update $as_me by reconfiguring in the same conditions
13195      --file=FILE[:TEMPLATE]
13196                   instantiate the configuration file FILE
13197      --header=FILE[:TEMPLATE]
13198                   instantiate the configuration header FILE
13199
13200Configuration files:
13201$config_files
13202
13203Configuration headers:
13204$config_headers
13205
13206Configuration commands:
13207$config_commands
13208
13209Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>."
13210
13211_ACEOF
13212ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13213ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13215ac_cs_config='$ac_cs_config_escaped'
13216ac_cs_version="\\
13217xauth config.status 1.1.3
13218configured by $0, generated by GNU Autoconf 2.72,
13219  with options \\"\$ac_cs_config\\"
13220
13221Copyright (C) 2023 Free Software Foundation, Inc.
13222This config.status script is free software; the Free Software Foundation
13223gives unlimited permission to copy, distribute and modify it."
13224
13225ac_pwd='$ac_pwd'
13226srcdir='$srcdir'
13227INSTALL='$INSTALL'
13228MKDIR_P='$MKDIR_P'
13229AWK='$AWK'
13230test -n "\$AWK" || AWK=awk
13231_ACEOF
13232
13233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13234# The default lists apply if the user does not specify any file.
13235ac_need_defaults=:
13236while test $# != 0
13237do
13238  case $1 in
13239  --*=?*)
13240    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13241    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13242    ac_shift=:
13243    ;;
13244  --*=)
13245    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13246    ac_optarg=
13247    ac_shift=:
13248    ;;
13249  *)
13250    ac_option=$1
13251    ac_optarg=$2
13252    ac_shift=shift
13253    ;;
13254  esac
13255
13256  case $ac_option in
13257  # Handling of the options.
13258  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13259    ac_cs_recheck=: ;;
13260  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13261    printf "%s\n" "$ac_cs_version"; exit ;;
13262  --config | --confi | --conf | --con | --co | --c )
13263    printf "%s\n" "$ac_cs_config"; exit ;;
13264  --debug | --debu | --deb | --de | --d | -d )
13265    debug=: ;;
13266  --file | --fil | --fi | --f )
13267    $ac_shift
13268    case $ac_optarg in
13269    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13270    '') as_fn_error $? "missing file argument" ;;
13271    esac
13272    as_fn_append CONFIG_FILES " '$ac_optarg'"
13273    ac_need_defaults=false;;
13274  --header | --heade | --head | --hea )
13275    $ac_shift
13276    case $ac_optarg in
13277    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13278    esac
13279    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13280    ac_need_defaults=false;;
13281  --he | --h)
13282    # Conflict between --help and --header
13283    as_fn_error $? "ambiguous option: '$1'
13284Try '$0 --help' for more information.";;
13285  --help | --hel | -h )
13286    printf "%s\n" "$ac_cs_usage"; exit ;;
13287  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13288  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13289    ac_cs_silent=: ;;
13290
13291  # This is an error.
13292  -*) as_fn_error $? "unrecognized option: '$1'
13293Try '$0 --help' for more information." ;;
13294
13295  *) as_fn_append ac_config_targets " $1"
13296     ac_need_defaults=false ;;
13297
13298  esac
13299  shift
13300done
13301
13302ac_configure_extra_args=
13303
13304if $ac_cs_silent; then
13305  exec 6>/dev/null
13306  ac_configure_extra_args="$ac_configure_extra_args --silent"
13307fi
13308
13309_ACEOF
13310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13311if \$ac_cs_recheck; then
13312  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13313  shift
13314  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13315  CONFIG_SHELL='$SHELL'
13316  export CONFIG_SHELL
13317  exec "\$@"
13318fi
13319
13320_ACEOF
13321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13322exec 5>>config.log
13323{
13324  echo
13325  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13326## Running $as_me. ##
13327_ASBOX
13328  printf "%s\n" "$ac_log"
13329} >&5
13330
13331_ACEOF
13332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13333#
13334# INIT-COMMANDS
13335#
13336AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13337
13338_ACEOF
13339
13340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13341
13342# Handling of arguments.
13343for ac_config_target in $ac_config_targets
13344do
13345  case $ac_config_target in
13346    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13347    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13348    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13349    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13350    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13351
13352  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
13353  esac
13354done
13355
13356
13357# If the user did not use the arguments to specify the items to instantiate,
13358# then the envvar interface is used.  Set only those that are not.
13359# We use the long form for the default assignment because of an extremely
13360# bizarre bug on SunOS 4.1.3.
13361if $ac_need_defaults; then
13362  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13363  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13364  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13365fi
13366
13367# Have a temporary directory for convenience.  Make it in the build tree
13368# simply because there is no reason against having it here, and in addition,
13369# creating and moving files from /tmp can sometimes cause problems.
13370# Hook for its removal unless debugging.
13371# Note that there is a small window in which the directory will not be cleaned:
13372# after its creation but before its name has been assigned to '$tmp'.
13373$debug ||
13374{
13375  tmp= ac_tmp=
13376  trap 'exit_status=$?
13377  : "${ac_tmp:=$tmp}"
13378  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13379' 0
13380  trap 'as_fn_exit 1' 1 2 13 15
13381}
13382# Create a (secure) tmp directory for tmp files.
13383
13384{
13385  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13386  test -d "$tmp"
13387}  ||
13388{
13389  tmp=./conf$$-$RANDOM
13390  (umask 077 && mkdir "$tmp")
13391} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13392ac_tmp=$tmp
13393
13394# Set up the scripts for CONFIG_FILES section.
13395# No need to generate them if there are no CONFIG_FILES.
13396# This happens for instance with './config.status config.h'.
13397if test -n "$CONFIG_FILES"; then
13398
13399
13400ac_cr=`echo X | tr X '\015'`
13401# On cygwin, bash can eat \r inside `` if the user requested igncr.
13402# But we know of no other shell where ac_cr would be empty at this
13403# point, so we can use a bashism as a fallback.
13404if test "x$ac_cr" = x; then
13405  eval ac_cr=\$\'\\r\'
13406fi
13407ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13408if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13409  ac_cs_awk_cr='\\r'
13410else
13411  ac_cs_awk_cr=$ac_cr
13412fi
13413
13414echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13415_ACEOF
13416
13417
13418{
13419  echo "cat >conf$$subs.awk <<_ACEOF" &&
13420  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13421  echo "_ACEOF"
13422} >conf$$subs.sh ||
13423  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13424ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13425ac_delim='%!_!# '
13426for ac_last_try in false false false false false :; do
13427  . ./conf$$subs.sh ||
13428    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13429
13430  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13431  if test $ac_delim_n = $ac_delim_num; then
13432    break
13433  elif $ac_last_try; then
13434    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13435  else
13436    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13437  fi
13438done
13439rm -f conf$$subs.sh
13440
13441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13442cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13443_ACEOF
13444sed -n '
13445h
13446s/^/S["/; s/!.*/"]=/
13447p
13448g
13449s/^[^!]*!//
13450:repl
13451t repl
13452s/'"$ac_delim"'$//
13453t delim
13454:nl
13455h
13456s/\(.\{148\}\)..*/\1/
13457t more1
13458s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13459p
13460n
13461b repl
13462:more1
13463s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13464p
13465g
13466s/.\{148\}//
13467t nl
13468:delim
13469h
13470s/\(.\{148\}\)..*/\1/
13471t more2
13472s/["\\]/\\&/g; s/^/"/; s/$/"/
13473p
13474b
13475:more2
13476s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13477p
13478g
13479s/.\{148\}//
13480t delim
13481' <conf$$subs.awk | sed '
13482/^[^""]/{
13483  N
13484  s/\n//
13485}
13486' >>$CONFIG_STATUS || ac_write_fail=1
13487rm -f conf$$subs.awk
13488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489_ACAWK
13490cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13491  for (key in S) S_is_set[key] = 1
13492  FS = ""
13493
13494}
13495{
13496  line = $ 0
13497  nfields = split(line, field, "@")
13498  substed = 0
13499  len = length(field[1])
13500  for (i = 2; i < nfields; i++) {
13501    key = field[i]
13502    keylen = length(key)
13503    if (S_is_set[key]) {
13504      value = S[key]
13505      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13506      len += length(value) + length(field[++i])
13507      substed = 1
13508    } else
13509      len += 1 + keylen
13510  }
13511
13512  print line
13513}
13514
13515_ACAWK
13516_ACEOF
13517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13518if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13519  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13520else
13521  cat
13522fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13523  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13524_ACEOF
13525
13526# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13527# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13528# trailing colons and then remove the whole line if VPATH becomes empty
13529# (actually we leave an empty line to preserve line numbers).
13530if test "x$srcdir" = x.; then
13531  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13532h
13533s///
13534s/^/:/
13535s/[	 ]*$/:/
13536s/:\$(srcdir):/:/g
13537s/:\${srcdir}:/:/g
13538s/:@srcdir@:/:/g
13539s/^:*//
13540s/:*$//
13541x
13542s/\(=[	 ]*\).*/\1/
13543G
13544s/\n//
13545s/^[^=]*=[	 ]*$//
13546}'
13547fi
13548
13549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13550fi # test -n "$CONFIG_FILES"
13551
13552# Set up the scripts for CONFIG_HEADERS section.
13553# No need to generate them if there are no CONFIG_HEADERS.
13554# This happens for instance with './config.status Makefile'.
13555if test -n "$CONFIG_HEADERS"; then
13556cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13557BEGIN {
13558_ACEOF
13559
13560# Transform confdefs.h into an awk script 'defines.awk', embedded as
13561# here-document in config.status, that substitutes the proper values into
13562# config.h.in to produce config.h.
13563
13564# Create a delimiter string that does not exist in confdefs.h, to ease
13565# handling of long lines.
13566ac_delim='%!_!# '
13567for ac_last_try in false false :; do
13568  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13569  if test -z "$ac_tt"; then
13570    break
13571  elif $ac_last_try; then
13572    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13573  else
13574    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13575  fi
13576done
13577
13578# For the awk script, D is an array of macro values keyed by name,
13579# likewise P contains macro parameters if any.  Preserve backslash
13580# newline sequences.
13581
13582ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13583sed -n '
13584s/.\{148\}/&'"$ac_delim"'/g
13585t rset
13586:rset
13587s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13588t def
13589d
13590:def
13591s/\\$//
13592t bsnl
13593s/["\\]/\\&/g
13594s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13595D["\1"]=" \3"/p
13596s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13597d
13598:bsnl
13599s/["\\]/\\&/g
13600s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13601D["\1"]=" \3\\\\\\n"\\/p
13602t cont
13603s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13604t cont
13605d
13606:cont
13607n
13608s/.\{148\}/&'"$ac_delim"'/g
13609t clear
13610:clear
13611s/\\$//
13612t bsnlc
13613s/["\\]/\\&/g; s/^/"/; s/$/"/p
13614d
13615:bsnlc
13616s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13617b cont
13618' <confdefs.h | sed '
13619s/'"$ac_delim"'/"\\\
13620"/g' >>$CONFIG_STATUS || ac_write_fail=1
13621
13622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13623  for (key in D) D_is_set[key] = 1
13624  FS = ""
13625}
13626/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13627  line = \$ 0
13628  split(line, arg, " ")
13629  if (arg[1] == "#") {
13630    defundef = arg[2]
13631    mac1 = arg[3]
13632  } else {
13633    defundef = substr(arg[1], 2)
13634    mac1 = arg[2]
13635  }
13636  split(mac1, mac2, "(") #)
13637  macro = mac2[1]
13638  prefix = substr(line, 1, index(line, defundef) - 1)
13639  if (D_is_set[macro]) {
13640    # Preserve the white space surrounding the "#".
13641    print prefix "define", macro P[macro] D[macro]
13642    next
13643  } else {
13644    # Replace #undef with comments.  This is necessary, for example,
13645    # in the case of _POSIX_SOURCE, which is predefined and required
13646    # on some systems where configure will not decide to define it.
13647    if (defundef == "undef") {
13648      print "/*", prefix defundef, macro, "*/"
13649      next
13650    }
13651  }
13652}
13653{ print }
13654_ACAWK
13655_ACEOF
13656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13657  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13658fi # test -n "$CONFIG_HEADERS"
13659
13660
13661eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13662shift
13663for ac_tag
13664do
13665  case $ac_tag in
13666  :[FHLC]) ac_mode=$ac_tag; continue;;
13667  esac
13668  case $ac_mode$ac_tag in
13669  :[FHL]*:*);;
13670  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13671  :[FH]-) ac_tag=-:-;;
13672  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13673  esac
13674  ac_save_IFS=$IFS
13675  IFS=:
13676  set x $ac_tag
13677  IFS=$ac_save_IFS
13678  shift
13679  ac_file=$1
13680  shift
13681
13682  case $ac_mode in
13683  :L) ac_source=$1;;
13684  :[FH])
13685    ac_file_inputs=
13686    for ac_f
13687    do
13688      case $ac_f in
13689      -) ac_f="$ac_tmp/stdin";;
13690      *) # Look for the file first in the build tree, then in the source tree
13691	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13692	 # because $ac_f cannot contain ':'.
13693	 test -f "$ac_f" ||
13694	   case $ac_f in
13695	   [\\/$]*) false;;
13696	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13697	   esac ||
13698	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13699      esac
13700      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13701      as_fn_append ac_file_inputs " '$ac_f'"
13702    done
13703
13704    # Let's still pretend it is 'configure' which instantiates (i.e., don't
13705    # use $as_me), people would be surprised to read:
13706    #    /* config.h.  Generated by config.status.  */
13707    configure_input='Generated from '`
13708	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13709	`' by configure.'
13710    if test x"$ac_file" != x-; then
13711      configure_input="$ac_file.  $configure_input"
13712      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13713printf "%s\n" "$as_me: creating $ac_file" >&6;}
13714    fi
13715    # Neutralize special characters interpreted by sed in replacement strings.
13716    case $configure_input in #(
13717    *\&* | *\|* | *\\* )
13718       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13719       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13720    *) ac_sed_conf_input=$configure_input;;
13721    esac
13722
13723    case $ac_tag in
13724    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13725      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13726    esac
13727    ;;
13728  esac
13729
13730  ac_dir=`$as_dirname -- "$ac_file" ||
13731$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13732	 X"$ac_file" : 'X\(//\)[^/]' \| \
13733	 X"$ac_file" : 'X\(//\)$' \| \
13734	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13735printf "%s\n" X"$ac_file" |
13736    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13737	    s//\1/
13738	    q
13739	  }
13740	  /^X\(\/\/\)[^/].*/{
13741	    s//\1/
13742	    q
13743	  }
13744	  /^X\(\/\/\)$/{
13745	    s//\1/
13746	    q
13747	  }
13748	  /^X\(\/\).*/{
13749	    s//\1/
13750	    q
13751	  }
13752	  s/.*/./; q'`
13753  as_dir="$ac_dir"; as_fn_mkdir_p
13754  ac_builddir=.
13755
13756case "$ac_dir" in
13757.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13758*)
13759  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13760  # A ".." for each directory in $ac_dir_suffix.
13761  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13762  case $ac_top_builddir_sub in
13763  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13764  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13765  esac ;;
13766esac
13767ac_abs_top_builddir=$ac_pwd
13768ac_abs_builddir=$ac_pwd$ac_dir_suffix
13769# for backward compatibility:
13770ac_top_builddir=$ac_top_build_prefix
13771
13772case $srcdir in
13773  .)  # We are building in place.
13774    ac_srcdir=.
13775    ac_top_srcdir=$ac_top_builddir_sub
13776    ac_abs_top_srcdir=$ac_pwd ;;
13777  [\\/]* | ?:[\\/]* )  # Absolute name.
13778    ac_srcdir=$srcdir$ac_dir_suffix;
13779    ac_top_srcdir=$srcdir
13780    ac_abs_top_srcdir=$srcdir ;;
13781  *) # Relative name.
13782    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13783    ac_top_srcdir=$ac_top_build_prefix$srcdir
13784    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13785esac
13786ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13787
13788
13789  case $ac_mode in
13790  :F)
13791  #
13792  # CONFIG_FILE
13793  #
13794
13795  case $INSTALL in
13796  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13797  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13798  esac
13799  ac_MKDIR_P=$MKDIR_P
13800  case $MKDIR_P in
13801  [\\/$]* | ?:[\\/]* ) ;;
13802  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13803  esac
13804_ACEOF
13805
13806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13807# If the template does not know about datarootdir, expand it.
13808# FIXME: This hack should be removed a few years after 2.60.
13809ac_datarootdir_hack=; ac_datarootdir_seen=
13810ac_sed_dataroot='
13811/datarootdir/ {
13812  p
13813  q
13814}
13815/@datadir@/p
13816/@docdir@/p
13817/@infodir@/p
13818/@localedir@/p
13819/@mandir@/p'
13820case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13821*datarootdir*) ac_datarootdir_seen=yes;;
13822*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13824printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13825_ACEOF
13826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827  ac_datarootdir_hack='
13828  s&@datadir@&$datadir&g
13829  s&@docdir@&$docdir&g
13830  s&@infodir@&$infodir&g
13831  s&@localedir@&$localedir&g
13832  s&@mandir@&$mandir&g
13833  s&\\\${datarootdir}&$datarootdir&g' ;;
13834esac
13835_ACEOF
13836
13837# Neutralize VPATH when '$srcdir' = '.'.
13838# Shell code in configure.ac might set extrasub.
13839# FIXME: do we really want to maintain this feature?
13840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13841ac_sed_extra="$ac_vpsub
13842$extrasub
13843_ACEOF
13844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13845:t
13846/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13847s|@configure_input@|$ac_sed_conf_input|;t t
13848s&@top_builddir@&$ac_top_builddir_sub&;t t
13849s&@top_build_prefix@&$ac_top_build_prefix&;t t
13850s&@srcdir@&$ac_srcdir&;t t
13851s&@abs_srcdir@&$ac_abs_srcdir&;t t
13852s&@top_srcdir@&$ac_top_srcdir&;t t
13853s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13854s&@builddir@&$ac_builddir&;t t
13855s&@abs_builddir@&$ac_abs_builddir&;t t
13856s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13857s&@INSTALL@&$ac_INSTALL&;t t
13858s&@MKDIR_P@&$ac_MKDIR_P&;t t
13859$ac_datarootdir_hack
13860"
13861eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13862  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13863
13864test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13865  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13866  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13867      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13869which seems to be undefined.  Please make sure it is defined" >&5
13870printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13871which seems to be undefined.  Please make sure it is defined" >&2;}
13872
13873  rm -f "$ac_tmp/stdin"
13874  case $ac_file in
13875  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13876  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13877  esac \
13878  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13879 ;;
13880  :H)
13881  #
13882  # CONFIG_HEADER
13883  #
13884  if test x"$ac_file" != x-; then
13885    {
13886      printf "%s\n" "/* $configure_input  */" >&1 \
13887      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13888    } >"$ac_tmp/config.h" \
13889      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13890    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13891      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13892printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13893    else
13894      rm -f "$ac_file"
13895      mv "$ac_tmp/config.h" "$ac_file" \
13896	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13897    fi
13898  else
13899    printf "%s\n" "/* $configure_input  */" >&1 \
13900      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13901      || as_fn_error $? "could not create -" "$LINENO" 5
13902  fi
13903# Compute "$ac_file"'s index in $config_headers.
13904_am_arg="$ac_file"
13905_am_stamp_count=1
13906for _am_header in $config_headers :; do
13907  case $_am_header in
13908    $_am_arg | $_am_arg:* )
13909      break ;;
13910    * )
13911      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13912  esac
13913done
13914echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13915$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13916	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13917	 X"$_am_arg" : 'X\(//\)$' \| \
13918	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13919printf "%s\n" X"$_am_arg" |
13920    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13921	    s//\1/
13922	    q
13923	  }
13924	  /^X\(\/\/\)[^/].*/{
13925	    s//\1/
13926	    q
13927	  }
13928	  /^X\(\/\/\)$/{
13929	    s//\1/
13930	    q
13931	  }
13932	  /^X\(\/\).*/{
13933	    s//\1/
13934	    q
13935	  }
13936	  s/.*/./; q'`/stamp-h$_am_stamp_count
13937 ;;
13938
13939  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13940printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13941 ;;
13942  esac
13943
13944
13945  case $ac_file$ac_mode in
13946    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13947  # Older Autoconf quotes --file arguments for eval, but not when files
13948  # are listed without --file.  Let's play safe and only enable the eval
13949  # if we detect the quoting.
13950  # TODO: see whether this extra hack can be removed once we start
13951  # requiring Autoconf 2.70 or later.
13952  case $CONFIG_FILES in #(
13953  *\'*) :
13954    eval set x "$CONFIG_FILES" ;; #(
13955  *) :
13956    set x $CONFIG_FILES ;; #(
13957  *) :
13958     ;;
13959esac
13960  shift
13961  # Used to flag and report bootstrapping failures.
13962  am_rc=0
13963  for am_mf
13964  do
13965    # Strip MF so we end up with the name of the file.
13966    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13967    # Check whether this is an Automake generated Makefile which includes
13968    # dependency-tracking related rules and includes.
13969    # Grep'ing the whole file directly is not great: AIX grep has a line
13970    # limit of 2048, but all sed's we know have understand at least 4000.
13971    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13972      || continue
13973    am_dirpart=`$as_dirname -- "$am_mf" ||
13974$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13975	 X"$am_mf" : 'X\(//\)[^/]' \| \
13976	 X"$am_mf" : 'X\(//\)$' \| \
13977	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13978printf "%s\n" X"$am_mf" |
13979    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13980	    s//\1/
13981	    q
13982	  }
13983	  /^X\(\/\/\)[^/].*/{
13984	    s//\1/
13985	    q
13986	  }
13987	  /^X\(\/\/\)$/{
13988	    s//\1/
13989	    q
13990	  }
13991	  /^X\(\/\).*/{
13992	    s//\1/
13993	    q
13994	  }
13995	  s/.*/./; q'`
13996    am_filepart=`$as_basename -- "$am_mf" ||
13997$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13998	 X"$am_mf" : 'X\(//\)$' \| \
13999	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14000printf "%s\n" X/"$am_mf" |
14001    sed '/^.*\/\([^/][^/]*\)\/*$/{
14002	    s//\1/
14003	    q
14004	  }
14005	  /^X\/\(\/\/\)$/{
14006	    s//\1/
14007	    q
14008	  }
14009	  /^X\/\(\/\).*/{
14010	    s//\1/
14011	    q
14012	  }
14013	  s/.*/./; q'`
14014    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14015      && sed -e '/# am--include-marker/d' "$am_filepart" \
14016        | $MAKE -f - am--depfiles" >&5
14017   (cd "$am_dirpart" \
14018      && sed -e '/# am--include-marker/d' "$am_filepart" \
14019        | $MAKE -f - am--depfiles) >&5 2>&5
14020   ac_status=$?
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); } || am_rc=$?
14023  done
14024  if test $am_rc -ne 0; then
14025    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14026printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14027as_fn_error $? "Something went wrong bootstrapping makefile fragments
14028    for automatic dependency tracking.  If GNU make was not used, consider
14029    re-running the configure script with MAKE=\"gmake\" (or whatever is
14030    necessary).  You can also try re-running configure with the
14031    '--disable-dependency-tracking' option to at least be able to build
14032    the package (albeit without support for automatic dependency tracking).
14033See 'config.log' for more details" "$LINENO" 5; }
14034  fi
14035  { am_dirpart=; unset am_dirpart;}
14036  { am_filepart=; unset am_filepart;}
14037  { am_mf=; unset am_mf;}
14038  { am_rc=; unset am_rc;}
14039  rm -f conftest-deps.mk
14040}
14041 ;;
14042
14043  esac
14044done # for ac_tag
14045
14046
14047as_fn_exit 0
14048_ACEOF
14049ac_clean_files=$ac_clean_files_save
14050
14051test $ac_write_fail = 0 ||
14052  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14053
14054
14055# configure is writing to config.log, and then calls config.status.
14056# config.status does its own redirection, appending to config.log.
14057# Unfortunately, on DOS this fails, as config.log is still kept open
14058# by configure, so config.status won't be able to write to it; its
14059# output is simply discarded.  So we exec the FD to /dev/null,
14060# effectively closing config.log, so it can be properly (re)opened and
14061# appended to by config.status.  When coming back to configure, we
14062# need to make the FD available again.
14063if test "$no_create" != yes; then
14064  ac_cs_success=:
14065  ac_config_status_args=
14066  test "$silent" = yes &&
14067    ac_config_status_args="$ac_config_status_args --quiet"
14068  exec 5>/dev/null
14069  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14070  exec 5>>config.log
14071  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14072  # would make configure fail if this is the last instruction.
14073  $ac_cs_success || as_fn_exit 1
14074fi
14075if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14077printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14078fi
14079
14080
14081