configure revision 7ed541ca
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xgamma 1.0.7.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1"
187  if (eval "$as_required") 2>/dev/null
188then :
189  as_have_required=yes
190else $as_nop
191  as_have_required=no
192fi
193  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
195
196else $as_nop
197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201  IFS=$as_save_IFS
202  case $as_dir in #(((
203    '') as_dir=./ ;;
204    */) ;;
205    *) as_dir=$as_dir/ ;;
206  esac
207  as_found=:
208  case $as_dir in #(
209	 /*)
210	   for as_base in sh bash ksh sh5; do
211	     # Try only shells that exist, to save several forks.
212	     as_shell=$as_dir$as_base
213	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215then :
216  CONFIG_SHELL=$as_shell as_have_required=yes
217		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218then :
219  break 2
220fi
221fi
222	   done;;
223       esac
224  as_found=false
225done
226IFS=$as_save_IFS
227if $as_found
228then :
229
230else $as_nop
231  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi
236fi
237
238
239      if test "x$CONFIG_SHELL" != x
240then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno
263then :
264  printf "%s\n" "$0: This script requires a shell more modern than all"
265  printf "%s\n" "$0: the shells that I found on your system."
266  if test ${ZSH_VERSION+y} ; then
267    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271$0: https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues
272$0: about your system, including any error possibly output
273$0: before this message. Then install a modern shell, or
274$0: manually run the script under such a shell if you do
275$0: have one."
276  fi
277  exit 1
278fi
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295  { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
299
300# as_fn_set_status STATUS
301# -----------------------
302# Set $? to STATUS, without forking.
303as_fn_set_status ()
304{
305  return $1
306} # as_fn_set_status
307
308# as_fn_exit STATUS
309# -----------------
310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311as_fn_exit ()
312{
313  set +e
314  as_fn_set_status $1
315  exit $1
316} # as_fn_exit
317# as_fn_nop
318# ---------
319# Do nothing but, unlike ":", preserve the value of $?.
320as_fn_nop ()
321{
322  return $?
323}
324as_nop=as_fn_nop
325
326# as_fn_mkdir_p
327# -------------
328# Create "$as_dir" as a directory, including parents if necessary.
329as_fn_mkdir_p ()
330{
331
332  case $as_dir in #(
333  -*) as_dir=./$as_dir;;
334  esac
335  test -d "$as_dir" || eval $as_mkdir_p || {
336    as_dirs=
337    while :; do
338      case $as_dir in #(
339      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340      *) as_qdir=$as_dir;;
341      esac
342      as_dirs="'$as_qdir' $as_dirs"
343      as_dir=`$as_dirname -- "$as_dir" ||
344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345	 X"$as_dir" : 'X\(//\)[^/]' \| \
346	 X"$as_dir" : 'X\(//\)$' \| \
347	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348printf "%s\n" X"$as_dir" |
349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)[^/].*/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\).*/{
362	    s//\1/
363	    q
364	  }
365	  s/.*/./; q'`
366      test -d "$as_dir" && break
367    done
368    test -z "$as_dirs" || eval "mkdir $as_dirs"
369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372} # as_fn_mkdir_p
373
374# as_fn_executable_p FILE
375# -----------------------
376# Test if FILE is an executable regular file.
377as_fn_executable_p ()
378{
379  test -f "$1" && test -x "$1"
380} # as_fn_executable_p
381# as_fn_append VAR VALUE
382# ----------------------
383# Append the text in VALUE to the end of the definition contained in VAR. Take
384# advantage of any shell optimizations that allow amortized linear growth over
385# repeated appends, instead of the typical quadratic growth present in naive
386# implementations.
387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388then :
389  eval 'as_fn_append ()
390  {
391    eval $1+=\$2
392  }'
393else $as_nop
394  as_fn_append ()
395  {
396    eval $1=\$$1\$2
397  }
398fi # as_fn_append
399
400# as_fn_arith ARG...
401# ------------------
402# Perform arithmetic evaluation on the ARGs, and store the result in the
403# global $as_val. Take advantage of shells that can avoid forks. The arguments
404# must be portable across $(()) and expr.
405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406then :
407  eval 'as_fn_arith ()
408  {
409    as_val=$(( $* ))
410  }'
411else $as_nop
412  as_fn_arith ()
413  {
414    as_val=`expr "$@" || test $? -eq 1`
415  }
416fi # as_fn_arith
417
418# as_fn_nop
419# ---------
420# Do nothing but, unlike ":", preserve the value of $?.
421as_fn_nop ()
422{
423  return $?
424}
425as_nop=as_fn_nop
426
427# as_fn_error STATUS ERROR [LINENO LOG_FD]
428# ----------------------------------------
429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431# script with STATUS, using 1 if that was 0.
432as_fn_error ()
433{
434  as_status=$1; test $as_status -eq 0 && as_status=1
435  if test "$4"; then
436    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438  fi
439  printf "%s\n" "$as_me: error: $2" >&2
440  as_fn_exit $as_status
441} # as_fn_error
442
443if expr a : '\(a\)' >/dev/null 2>&1 &&
444   test "X`expr 00001 : '.*\(...\)'`" = X001; then
445  as_expr=expr
446else
447  as_expr=false
448fi
449
450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451  as_basename=basename
452else
453  as_basename=false
454fi
455
456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457  as_dirname=dirname
458else
459  as_dirname=false
460fi
461
462as_me=`$as_basename -- "$0" ||
463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464	 X"$0" : 'X\(//\)$' \| \
465	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466printf "%s\n" X/"$0" |
467    sed '/^.*\/\([^/][^/]*\)\/*$/{
468	    s//\1/
469	    q
470	  }
471	  /^X\/\(\/\/\)$/{
472	    s//\1/
473	    q
474	  }
475	  /^X\/\(\/\).*/{
476	    s//\1/
477	    q
478	  }
479	  s/.*/./; q'`
480
481# Avoid depending upon Character Ranges.
482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485as_cr_digits='0123456789'
486as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494  sed -n '
495    p
496    /[$]LINENO/=
497  ' <$as_myself |
498    sed '
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547
548rm -f conf$$ conf$$.exe conf$$.file
549if test -d conf$$.dir; then
550  rm -f conf$$.dir/conf$$.file
551else
552  rm -f conf$$.dir
553  mkdir conf$$.dir 2>/dev/null
554fi
555if (echo >conf$$.file) 2>/dev/null; then
556  if ln -s conf$$.file conf$$ 2>/dev/null; then
557    as_ln_s='ln -s'
558    # ... but there are two gotchas:
559    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561    # In both cases, we have to default to `cp -pR'.
562    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563      as_ln_s='cp -pR'
564  elif ln conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s=ln
566  else
567    as_ln_s='cp -pR'
568  fi
569else
570  as_ln_s='cp -pR'
571fi
572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573rmdir conf$$.dir 2>/dev/null
574
575if mkdir -p . 2>/dev/null; then
576  as_mkdir_p='mkdir -p "$as_dir"'
577else
578  test -d ./-p && rmdir ./-p
579  as_mkdir_p=false
580fi
581
582as_test_x='test -x'
583as_executable_p=as_fn_executable_p
584
585# Sed expression to map a string onto a valid CPP name.
586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588# Sed expression to map a string onto a valid variable name.
589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592test -n "$DJDIR" || exec 7<&0 </dev/null
593exec 6>&1
594
595# Name of the host.
596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597# so uname gets run too.
598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600#
601# Initializations.
602#
603ac_default_prefix=/usr/local
604ac_clean_files=
605ac_config_libobj_dir=.
606LIBOBJS=
607cross_compiling=no
608subdirs=
609MFLAGS=
610MAKEFLAGS=
611
612# Identity of this package.
613PACKAGE_NAME='xgamma'
614PACKAGE_TARNAME='xgamma'
615PACKAGE_VERSION='1.0.7'
616PACKAGE_STRING='xgamma 1.0.7'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657XGAMMA_LIBS
658XGAMMA_CFLAGS
659MAN_SUBSTS
660XORG_MAN_PAGE
661ADMIN_MAN_DIR
662DRIVER_MAN_DIR
663MISC_MAN_DIR
664FILE_MAN_DIR
665LIB_MAN_DIR
666APP_MAN_DIR
667ADMIN_MAN_SUFFIX
668DRIVER_MAN_SUFFIX
669MISC_MAN_SUFFIX
670FILE_MAN_SUFFIX
671LIB_MAN_SUFFIX
672APP_MAN_SUFFIX
673SED
674host_os
675host_vendor
676host_cpu
677host
678build_os
679build_vendor
680build_cpu
681build
682INSTALL_CMD
683PKG_CONFIG_LIBDIR
684PKG_CONFIG_PATH
685PKG_CONFIG
686CHANGELOG_CMD
687STRICT_CFLAGS
688CWARNFLAGS
689BASE_CFLAGS
690am__fastdepCC_FALSE
691am__fastdepCC_TRUE
692CCDEPMODE
693am__nodep
694AMDEPBACKSLASH
695AMDEP_FALSE
696AMDEP_TRUE
697am__include
698DEPDIR
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
706AM_BACKSLASH
707AM_DEFAULT_VERBOSITY
708AM_DEFAULT_V
709AM_V
710CSCOPE
711ETAGS
712CTAGS
713am__untar
714am__tar
715AMTAR
716am__leading_dot
717SET_MAKE
718AWK
719mkdir_p
720MKDIR_P
721INSTALL_STRIP_PROGRAM
722STRIP
723install_sh
724MAKEINFO
725AUTOHEADER
726AUTOMAKE
727AUTOCONF
728ACLOCAL
729VERSION
730PACKAGE
731CYGPATH_W
732am__isrc
733INSTALL_DATA
734INSTALL_SCRIPT
735INSTALL_PROGRAM
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755runstatedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL
775am__quote'
776ac_subst_files=''
777ac_user_opts='
778enable_option_checking
779enable_silent_rules
780enable_dependency_tracking
781enable_selective_werror
782enable_strict_compilation
783'
784      ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792PKG_CONFIG
793PKG_CONFIG_PATH
794PKG_CONFIG_LIBDIR
795XGAMMA_CFLAGS
796XGAMMA_LIBS'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835runstatedir='${localstatedir}/run'
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
847
848ac_prev=
849ac_dashdash=
850for ac_option
851do
852  # If the previous option needs an argument, assign it.
853  if test -n "$ac_prev"; then
854    eval $ac_prev=\$ac_option
855    ac_prev=
856    continue
857  fi
858
859  case $ac_option in
860  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861  *=)   ac_optarg= ;;
862  *)    ac_optarg=yes ;;
863  esac
864
865  case $ac_dashdash$ac_option in
866  --)
867    ac_dashdash=yes ;;
868
869  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870    ac_prev=bindir ;;
871  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872    bindir=$ac_optarg ;;
873
874  -build | --build | --buil | --bui | --bu)
875    ac_prev=build_alias ;;
876  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877    build_alias=$ac_optarg ;;
878
879  -cache-file | --cache-file | --cache-fil | --cache-fi \
880  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881    ac_prev=cache_file ;;
882  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884    cache_file=$ac_optarg ;;
885
886  --config-cache | -C)
887    cache_file=config.cache ;;
888
889  -datadir | --datadir | --datadi | --datad)
890    ac_prev=datadir ;;
891  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892    datadir=$ac_optarg ;;
893
894  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895  | --dataroo | --dataro | --datar)
896    ac_prev=datarootdir ;;
897  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899    datarootdir=$ac_optarg ;;
900
901  -disable-* | --disable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: \`$ac_useropt'"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=no ;;
916
917  -docdir | --docdir | --docdi | --doc | --do)
918    ac_prev=docdir ;;
919  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920    docdir=$ac_optarg ;;
921
922  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923    ac_prev=dvidir ;;
924  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925    dvidir=$ac_optarg ;;
926
927  -enable-* | --enable-*)
928    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929    # Reject names that are not valid shell variable names.
930    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931      as_fn_error $? "invalid feature name: \`$ac_useropt'"
932    ac_useropt_orig=$ac_useropt
933    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934    case $ac_user_opts in
935      *"
936"enable_$ac_useropt"
937"*) ;;
938      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939	 ac_unrecognized_sep=', ';;
940    esac
941    eval enable_$ac_useropt=\$ac_optarg ;;
942
943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945  | --exec | --exe | --ex)
946    ac_prev=exec_prefix ;;
947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949  | --exec=* | --exe=* | --ex=*)
950    exec_prefix=$ac_optarg ;;
951
952  -gas | --gas | --ga | --g)
953    # Obsolete; use --with-gas.
954    with_gas=yes ;;
955
956  -help | --help | --hel | --he | -h)
957    ac_init_help=long ;;
958  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959    ac_init_help=recursive ;;
960  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961    ac_init_help=short ;;
962
963  -host | --host | --hos | --ho)
964    ac_prev=host_alias ;;
965  -host=* | --host=* | --hos=* | --ho=*)
966    host_alias=$ac_optarg ;;
967
968  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969    ac_prev=htmldir ;;
970  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971  | --ht=*)
972    htmldir=$ac_optarg ;;
973
974  -includedir | --includedir | --includedi | --included | --include \
975  | --includ | --inclu | --incl | --inc)
976    ac_prev=includedir ;;
977  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978  | --includ=* | --inclu=* | --incl=* | --inc=*)
979    includedir=$ac_optarg ;;
980
981  -infodir | --infodir | --infodi | --infod | --info | --inf)
982    ac_prev=infodir ;;
983  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984    infodir=$ac_optarg ;;
985
986  -libdir | --libdir | --libdi | --libd)
987    ac_prev=libdir ;;
988  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989    libdir=$ac_optarg ;;
990
991  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992  | --libexe | --libex | --libe)
993    ac_prev=libexecdir ;;
994  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995  | --libexe=* | --libex=* | --libe=*)
996    libexecdir=$ac_optarg ;;
997
998  -localedir | --localedir | --localedi | --localed | --locale)
999    ac_prev=localedir ;;
1000  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001    localedir=$ac_optarg ;;
1002
1003  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004  | --localstate | --localstat | --localsta | --localst | --locals)
1005    ac_prev=localstatedir ;;
1006  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008    localstatedir=$ac_optarg ;;
1009
1010  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011    ac_prev=mandir ;;
1012  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013    mandir=$ac_optarg ;;
1014
1015  -nfp | --nfp | --nf)
1016    # Obsolete; use --without-fp.
1017    with_fp=no ;;
1018
1019  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020  | --no-cr | --no-c | -n)
1021    no_create=yes ;;
1022
1023  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025    no_recursion=yes ;;
1026
1027  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029  | --oldin | --oldi | --old | --ol | --o)
1030    ac_prev=oldincludedir ;;
1031  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034    oldincludedir=$ac_optarg ;;
1035
1036  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037    ac_prev=prefix ;;
1038  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039    prefix=$ac_optarg ;;
1040
1041  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042  | --program-pre | --program-pr | --program-p)
1043    ac_prev=program_prefix ;;
1044  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046    program_prefix=$ac_optarg ;;
1047
1048  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049  | --program-suf | --program-su | --program-s)
1050    ac_prev=program_suffix ;;
1051  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053    program_suffix=$ac_optarg ;;
1054
1055  -program-transform-name | --program-transform-name \
1056  | --program-transform-nam | --program-transform-na \
1057  | --program-transform-n | --program-transform- \
1058  | --program-transform | --program-transfor \
1059  | --program-transfo | --program-transf \
1060  | --program-trans | --program-tran \
1061  | --progr-tra | --program-tr | --program-t)
1062    ac_prev=program_transform_name ;;
1063  -program-transform-name=* | --program-transform-name=* \
1064  | --program-transform-nam=* | --program-transform-na=* \
1065  | --program-transform-n=* | --program-transform-=* \
1066  | --program-transform=* | --program-transfor=* \
1067  | --program-transfo=* | --program-transf=* \
1068  | --program-trans=* | --program-tran=* \
1069  | --progr-tra=* | --program-tr=* | --program-t=*)
1070    program_transform_name=$ac_optarg ;;
1071
1072  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073    ac_prev=pdfdir ;;
1074  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075    pdfdir=$ac_optarg ;;
1076
1077  -psdir | --psdir | --psdi | --psd | --ps)
1078    ac_prev=psdir ;;
1079  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080    psdir=$ac_optarg ;;
1081
1082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083  | -silent | --silent | --silen | --sile | --sil)
1084    silent=yes ;;
1085
1086  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087  | --runstate | --runstat | --runsta | --runst | --runs \
1088  | --run | --ru | --r)
1089    ac_prev=runstatedir ;;
1090  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092  | --run=* | --ru=* | --r=*)
1093    runstatedir=$ac_optarg ;;
1094
1095  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096    ac_prev=sbindir ;;
1097  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098  | --sbi=* | --sb=*)
1099    sbindir=$ac_optarg ;;
1100
1101  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103  | --sharedst | --shareds | --shared | --share | --shar \
1104  | --sha | --sh)
1105    ac_prev=sharedstatedir ;;
1106  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109  | --sha=* | --sh=*)
1110    sharedstatedir=$ac_optarg ;;
1111
1112  -site | --site | --sit)
1113    ac_prev=site ;;
1114  -site=* | --site=* | --sit=*)
1115    site=$ac_optarg ;;
1116
1117  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118    ac_prev=srcdir ;;
1119  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120    srcdir=$ac_optarg ;;
1121
1122  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123  | --syscon | --sysco | --sysc | --sys | --sy)
1124    ac_prev=sysconfdir ;;
1125  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127    sysconfdir=$ac_optarg ;;
1128
1129  -target | --target | --targe | --targ | --tar | --ta | --t)
1130    ac_prev=target_alias ;;
1131  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132    target_alias=$ac_optarg ;;
1133
1134  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135    verbose=yes ;;
1136
1137  -version | --version | --versio | --versi | --vers | -V)
1138    ac_init_version=: ;;
1139
1140  -with-* | --with-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: \`$ac_useropt'"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=\$ac_optarg ;;
1155
1156  -without-* | --without-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: \`$ac_useropt'"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=no ;;
1171
1172  --x)
1173    # Obsolete; use --with-x.
1174    with_x=yes ;;
1175
1176  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177  | --x-incl | --x-inc | --x-in | --x-i)
1178    ac_prev=x_includes ;;
1179  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181    x_includes=$ac_optarg ;;
1182
1183  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185    ac_prev=x_libraries ;;
1186  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188    x_libraries=$ac_optarg ;;
1189
1190  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191Try \`$0 --help' for more information"
1192    ;;
1193
1194  *=*)
1195    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196    # Reject names that are not valid shell variable names.
1197    case $ac_envvar in #(
1198      '' | [0-9]* | *[!_$as_cr_alnum]* )
1199      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200    esac
1201    eval $ac_envvar=\$ac_optarg
1202    export $ac_envvar ;;
1203
1204  *)
1205    # FIXME: should be removed in autoconf 3.0.
1206    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210    ;;
1211
1212  esac
1213done
1214
1215if test -n "$ac_prev"; then
1216  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217  as_fn_error $? "missing argument to $ac_option"
1218fi
1219
1220if test -n "$ac_unrecognized_opts"; then
1221  case $enable_option_checking in
1222    no) ;;
1223    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225  esac
1226fi
1227
1228# Check all directory arguments for consistency.
1229for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230		datadir sysconfdir sharedstatedir localstatedir includedir \
1231		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232		libdir localedir mandir runstatedir
1233do
1234  eval ac_val=\$$ac_var
1235  # Remove trailing slashes.
1236  case $ac_val in
1237    */ )
1238      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239      eval $ac_var=\$ac_val;;
1240  esac
1241  # Be sure to have absolute directory names.
1242  case $ac_val in
1243    [\\/$]* | ?:[\\/]* )  continue;;
1244    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245  esac
1246  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247done
1248
1249# There might be people who depend on the old broken behavior: `$host'
1250# used to hold the argument of --host etc.
1251# FIXME: To remove some day.
1252build=$build_alias
1253host=$host_alias
1254target=$target_alias
1255
1256# FIXME: To remove some day.
1257if test "x$host_alias" != x; then
1258  if test "x$build_alias" = x; then
1259    cross_compiling=maybe
1260  elif test "x$build_alias" != "x$host_alias"; then
1261    cross_compiling=yes
1262  fi
1263fi
1264
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
1269
1270
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274  as_fn_error $? "working directory cannot be determined"
1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276  as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279# Find the source files, if location was not specified.
1280if test -z "$srcdir"; then
1281  ac_srcdir_defaulted=yes
1282  # Try the directory containing this script, then the parent directory.
1283  ac_confdir=`$as_dirname -- "$as_myself" ||
1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286	 X"$as_myself" : 'X\(//\)$' \| \
1287	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288printf "%s\n" X"$as_myself" |
1289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\/\)[^/].*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\).*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  s/.*/./; q'`
1306  srcdir=$ac_confdir
1307  if test ! -r "$srcdir/$ac_unique_file"; then
1308    srcdir=..
1309  fi
1310else
1311  ac_srcdir_defaulted=no
1312fi
1313if test ! -r "$srcdir/$ac_unique_file"; then
1314  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316fi
1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318ac_abs_confdir=`(
1319	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320	pwd)`
1321# When building in place, set srcdir=.
1322if test "$ac_abs_confdir" = "$ac_pwd"; then
1323  srcdir=.
1324fi
1325# Remove unnecessary trailing slashes from srcdir.
1326# Double slashes in file names in object file debugging info
1327# mess up M-x gdb in Emacs.
1328case $srcdir in
1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330esac
1331for ac_var in $ac_precious_vars; do
1332  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_env_${ac_var}_value=\$${ac_var}
1334  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336done
1337
1338#
1339# Report the --help message.
1340#
1341if test "$ac_init_help" = "long"; then
1342  # Omit some internal or obsolete options to make the list less imposing.
1343  # This message is too long to be a string in the A/UX 3.1 sh.
1344  cat <<_ACEOF
1345\`configure' configures xgamma 1.0.7 to adapt to many kinds of systems.
1346
1347Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352Defaults for the options are specified in brackets.
1353
1354Configuration:
1355  -h, --help              display this help and exit
1356      --help=short        display options specific to this package
1357      --help=recursive    display the short help of all the included packages
1358  -V, --version           display version information and exit
1359  -q, --quiet, --silent   do not print \`checking ...' messages
1360      --cache-file=FILE   cache test results in FILE [disabled]
1361  -C, --config-cache      alias for \`--cache-file=config.cache'
1362  -n, --no-create         do not create output files
1363      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364
1365Installation directories:
1366  --prefix=PREFIX         install architecture-independent files in PREFIX
1367                          [$ac_default_prefix]
1368  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                          [PREFIX]
1370
1371By default, \`make install' will install all the files in
1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374for instance \`--prefix=\$HOME'.
1375
1376For better control, use the options below.
1377
1378Fine tuning of the installation directories:
1379  --bindir=DIR            user executables [EPREFIX/bin]
1380  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1386  --libdir=DIR            object code libraries [EPREFIX/lib]
1387  --includedir=DIR        C header files [PREFIX/include]
1388  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394  --docdir=DIR            documentation root [DATAROOTDIR/doc/xgamma]
1395  --htmldir=DIR           html documentation [DOCDIR]
1396  --dvidir=DIR            dvi documentation [DOCDIR]
1397  --pdfdir=DIR            pdf documentation [DOCDIR]
1398  --psdir=DIR             ps documentation [DOCDIR]
1399_ACEOF
1400
1401  cat <<\_ACEOF
1402
1403Program names:
1404  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408System types:
1409  --build=BUILD     configure for building on BUILD [guessed]
1410  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415  case $ac_init_help in
1416     short | recursive ) echo "Configuration of xgamma 1.0.7:";;
1417   esac
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --enable-silent-rules   less verbose build output (undo: "make V=1")
1425  --disable-silent-rules  verbose build output (undo: "make V=0")
1426  --enable-dependency-tracking
1427                          do not reject slow dependency extractors
1428  --disable-dependency-tracking
1429                          speeds up one-time build
1430  --disable-selective-werror
1431                          Turn off selective compiler errors. (default:
1432                          enabled)
1433  --enable-strict-compilation
1434                          Enable all warnings from compiler and make them
1435                          errors (default: disabled)
1436
1437Some influential environment variables:
1438  CC          C compiler command
1439  CFLAGS      C compiler flags
1440  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441              nonstandard directory <lib dir>
1442  LIBS        libraries to pass to the linker, e.g. -l<library>
1443  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444              you have headers in a nonstandard directory <include dir>
1445  PKG_CONFIG  path to pkg-config utility
1446  PKG_CONFIG_PATH
1447              directories to add to pkg-config's search path
1448  PKG_CONFIG_LIBDIR
1449              path overriding pkg-config's built-in search path
1450  XGAMMA_CFLAGS
1451              C compiler flags for XGAMMA, overriding pkg-config
1452  XGAMMA_LIBS linker flags for XGAMMA, overriding pkg-config
1453
1454Use these variables to override the choices made by `configure' or to help
1455it to find libraries and programs with nonstandard names/locations.
1456
1457Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues>.
1458_ACEOF
1459ac_status=$?
1460fi
1461
1462if test "$ac_init_help" = "recursive"; then
1463  # If there are subdirs, report their specific --help.
1464  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465    test -d "$ac_dir" ||
1466      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467      continue
1468    ac_builddir=.
1469
1470case "$ac_dir" in
1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472*)
1473  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1474  # A ".." for each directory in $ac_dir_suffix.
1475  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476  case $ac_top_builddir_sub in
1477  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479  esac ;;
1480esac
1481ac_abs_top_builddir=$ac_pwd
1482ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483# for backward compatibility:
1484ac_top_builddir=$ac_top_build_prefix
1485
1486case $srcdir in
1487  .)  # We are building in place.
1488    ac_srcdir=.
1489    ac_top_srcdir=$ac_top_builddir_sub
1490    ac_abs_top_srcdir=$ac_pwd ;;
1491  [\\/]* | ?:[\\/]* )  # Absolute name.
1492    ac_srcdir=$srcdir$ac_dir_suffix;
1493    ac_top_srcdir=$srcdir
1494    ac_abs_top_srcdir=$srcdir ;;
1495  *) # Relative name.
1496    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497    ac_top_srcdir=$ac_top_build_prefix$srcdir
1498    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499esac
1500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502    cd "$ac_dir" || { ac_status=$?; continue; }
1503    # Check for configure.gnu first; this name is used for a wrapper for
1504    # Metaconfig's "Configure" on case-insensitive file systems.
1505    if test -f "$ac_srcdir/configure.gnu"; then
1506      echo &&
1507      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508    elif test -f "$ac_srcdir/configure"; then
1509      echo &&
1510      $SHELL "$ac_srcdir/configure" --help=recursive
1511    else
1512      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513    fi || ac_status=$?
1514    cd "$ac_pwd" || { ac_status=$?; break; }
1515  done
1516fi
1517
1518test -n "$ac_init_help" && exit $ac_status
1519if $ac_init_version; then
1520  cat <<\_ACEOF
1521xgamma configure 1.0.7
1522generated by GNU Autoconf 2.71
1523
1524Copyright (C) 2021 Free Software Foundation, Inc.
1525This configure script is free software; the Free Software Foundation
1526gives unlimited permission to copy, distribute and modify it.
1527_ACEOF
1528  exit
1529fi
1530
1531## ------------------------ ##
1532## Autoconf initialization. ##
1533## ------------------------ ##
1534
1535# ac_fn_c_try_compile LINENO
1536# --------------------------
1537# Try to compile conftest.$ac_ext, and return whether this succeeded.
1538ac_fn_c_try_compile ()
1539{
1540  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541  rm -f conftest.$ac_objext conftest.beam
1542  if { { ac_try="$ac_compile"
1543case "(($ac_try" in
1544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545  *) ac_try_echo=$ac_try;;
1546esac
1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548printf "%s\n" "$ac_try_echo"; } >&5
1549  (eval "$ac_compile") 2>conftest.err
1550  ac_status=$?
1551  if test -s conftest.err; then
1552    grep -v '^ *+' conftest.err >conftest.er1
1553    cat conftest.er1 >&5
1554    mv -f conftest.er1 conftest.err
1555  fi
1556  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557  test $ac_status = 0; } && {
1558	 test -z "$ac_c_werror_flag" ||
1559	 test ! -s conftest.err
1560       } && test -s conftest.$ac_objext
1561then :
1562  ac_retval=0
1563else $as_nop
1564  printf "%s\n" "$as_me: failed program was:" >&5
1565sed 's/^/| /' conftest.$ac_ext >&5
1566
1567	ac_retval=1
1568fi
1569  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570  as_fn_set_status $ac_retval
1571
1572} # ac_fn_c_try_compile
1573
1574# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1575# ------------------------------------------------------------------
1576# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1577# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1578ac_fn_check_decl ()
1579{
1580  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581  as_decl_name=`echo $2|sed 's/ *(.*//'`
1582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1583printf %s "checking whether $as_decl_name is declared... " >&6; }
1584if eval test \${$3+y}
1585then :
1586  printf %s "(cached) " >&6
1587else $as_nop
1588  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1589  eval ac_save_FLAGS=\$$6
1590  as_fn_append $6 " $5"
1591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592/* end confdefs.h.  */
1593$4
1594int
1595main (void)
1596{
1597#ifndef $as_decl_name
1598#ifdef __cplusplus
1599  (void) $as_decl_use;
1600#else
1601  (void) $as_decl_name;
1602#endif
1603#endif
1604
1605  ;
1606  return 0;
1607}
1608_ACEOF
1609if ac_fn_c_try_compile "$LINENO"
1610then :
1611  eval "$3=yes"
1612else $as_nop
1613  eval "$3=no"
1614fi
1615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1616  eval $6=\$ac_save_FLAGS
1617
1618fi
1619eval ac_res=\$$3
1620	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621printf "%s\n" "$ac_res" >&6; }
1622  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623
1624} # ac_fn_check_decl
1625
1626# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1627# -------------------------------------------------------
1628# Tests whether HEADER exists and can be compiled using the include files in
1629# INCLUDES, setting the cache variable VAR accordingly.
1630ac_fn_c_check_header_compile ()
1631{
1632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634printf %s "checking for $2... " >&6; }
1635if eval test \${$3+y}
1636then :
1637  printf %s "(cached) " >&6
1638else $as_nop
1639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640/* end confdefs.h.  */
1641$4
1642#include <$2>
1643_ACEOF
1644if ac_fn_c_try_compile "$LINENO"
1645then :
1646  eval "$3=yes"
1647else $as_nop
1648  eval "$3=no"
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1651fi
1652eval ac_res=\$$3
1653	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654printf "%s\n" "$ac_res" >&6; }
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657} # ac_fn_c_check_header_compile
1658
1659# ac_fn_c_try_link LINENO
1660# -----------------------
1661# Try to link conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_link ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1666  if { { ac_try="$ac_link"
1667case "(($ac_try" in
1668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669  *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672printf "%s\n" "$ac_try_echo"; } >&5
1673  (eval "$ac_link") 2>conftest.err
1674  ac_status=$?
1675  if test -s conftest.err; then
1676    grep -v '^ *+' conftest.err >conftest.er1
1677    cat conftest.er1 >&5
1678    mv -f conftest.er1 conftest.err
1679  fi
1680  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681  test $ac_status = 0; } && {
1682	 test -z "$ac_c_werror_flag" ||
1683	 test ! -s conftest.err
1684       } && test -s conftest$ac_exeext && {
1685	 test "$cross_compiling" = yes ||
1686	 test -x conftest$ac_exeext
1687       }
1688then :
1689  ac_retval=0
1690else $as_nop
1691  printf "%s\n" "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694	ac_retval=1
1695fi
1696  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698  # interfere with the next link command; also delete a directory that is
1699  # left behind by Apple's compiler.  We do this before executing the actions.
1700  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702  as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_link
1705
1706# ac_fn_c_check_func LINENO FUNC VAR
1707# ----------------------------------
1708# Tests whether FUNC exists, setting the cache variable VAR accordingly
1709ac_fn_c_check_func ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713printf %s "checking for $2... " >&6; }
1714if eval test \${$3+y}
1715then :
1716  printf %s "(cached) " >&6
1717else $as_nop
1718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h.  */
1720/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1721   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1722#define $2 innocuous_$2
1723
1724/* System header to define __stub macros and hopefully few prototypes,
1725   which can conflict with char $2 (); below.  */
1726
1727#include <limits.h>
1728#undef $2
1729
1730/* Override any GCC internal prototype to avoid an error.
1731   Use char because int might match the return type of a GCC
1732   builtin and then its argument prototype would still apply.  */
1733#ifdef __cplusplus
1734extern "C"
1735#endif
1736char $2 ();
1737/* The GNU C library defines this for functions which it implements
1738    to always fail with ENOSYS.  Some functions are actually named
1739    something starting with __ and the normal name is an alias.  */
1740#if defined __stub_$2 || defined __stub___$2
1741choke me
1742#endif
1743
1744int
1745main (void)
1746{
1747return $2 ();
1748  ;
1749  return 0;
1750}
1751_ACEOF
1752if ac_fn_c_try_link "$LINENO"
1753then :
1754  eval "$3=yes"
1755else $as_nop
1756  eval "$3=no"
1757fi
1758rm -f core conftest.err conftest.$ac_objext conftest.beam \
1759    conftest$ac_exeext conftest.$ac_ext
1760fi
1761eval ac_res=\$$3
1762	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763printf "%s\n" "$ac_res" >&6; }
1764  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766} # ac_fn_c_check_func
1767ac_configure_args_raw=
1768for ac_arg
1769do
1770  case $ac_arg in
1771  *\'*)
1772    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773  esac
1774  as_fn_append ac_configure_args_raw " '$ac_arg'"
1775done
1776
1777case $ac_configure_args_raw in
1778  *$as_nl*)
1779    ac_safe_unquote= ;;
1780  *)
1781    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1782    ac_unsafe_a="$ac_unsafe_z#~"
1783    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1784    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1785esac
1786
1787cat >config.log <<_ACEOF
1788This file contains any messages produced by compilers while
1789running configure, to aid debugging if configure makes a mistake.
1790
1791It was created by xgamma $as_me 1.0.7, which was
1792generated by GNU Autoconf 2.71.  Invocation command line was
1793
1794  $ $0$ac_configure_args_raw
1795
1796_ACEOF
1797exec 5>>config.log
1798{
1799cat <<_ASUNAME
1800## --------- ##
1801## Platform. ##
1802## --------- ##
1803
1804hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1805uname -m = `(uname -m) 2>/dev/null || echo unknown`
1806uname -r = `(uname -r) 2>/dev/null || echo unknown`
1807uname -s = `(uname -s) 2>/dev/null || echo unknown`
1808uname -v = `(uname -v) 2>/dev/null || echo unknown`
1809
1810/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1811/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1812
1813/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1814/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1815/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1816/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1817/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1818/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1819/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1820
1821_ASUNAME
1822
1823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824for as_dir in $PATH
1825do
1826  IFS=$as_save_IFS
1827  case $as_dir in #(((
1828    '') as_dir=./ ;;
1829    */) ;;
1830    *) as_dir=$as_dir/ ;;
1831  esac
1832    printf "%s\n" "PATH: $as_dir"
1833  done
1834IFS=$as_save_IFS
1835
1836} >&5
1837
1838cat >&5 <<_ACEOF
1839
1840
1841## ----------- ##
1842## Core tests. ##
1843## ----------- ##
1844
1845_ACEOF
1846
1847
1848# Keep a trace of the command line.
1849# Strip out --no-create and --no-recursion so they do not pile up.
1850# Strip out --silent because we don't want to record it for future runs.
1851# Also quote any args containing shell meta-characters.
1852# Make two passes to allow for proper duplicate-argument suppression.
1853ac_configure_args=
1854ac_configure_args0=
1855ac_configure_args1=
1856ac_must_keep_next=false
1857for ac_pass in 1 2
1858do
1859  for ac_arg
1860  do
1861    case $ac_arg in
1862    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864    | -silent | --silent | --silen | --sile | --sil)
1865      continue ;;
1866    *\'*)
1867      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868    esac
1869    case $ac_pass in
1870    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1871    2)
1872      as_fn_append ac_configure_args1 " '$ac_arg'"
1873      if test $ac_must_keep_next = true; then
1874	ac_must_keep_next=false # Got value, back to normal.
1875      else
1876	case $ac_arg in
1877	  *=* | --config-cache | -C | -disable-* | --disable-* \
1878	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880	  | -with-* | --with-* | -without-* | --without-* | --x)
1881	    case "$ac_configure_args0 " in
1882	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1883	    esac
1884	    ;;
1885	  -* ) ac_must_keep_next=true ;;
1886	esac
1887      fi
1888      as_fn_append ac_configure_args " '$ac_arg'"
1889      ;;
1890    esac
1891  done
1892done
1893{ ac_configure_args0=; unset ac_configure_args0;}
1894{ ac_configure_args1=; unset ac_configure_args1;}
1895
1896# When interrupted or exit'd, cleanup temporary files, and complete
1897# config.log.  We remove comments because anyway the quotes in there
1898# would cause problems or look ugly.
1899# WARNING: Use '\'' to represent an apostrophe within the trap.
1900# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901trap 'exit_status=$?
1902  # Sanitize IFS.
1903  IFS=" ""	$as_nl"
1904  # Save into config.log some information that might help in debugging.
1905  {
1906    echo
1907
1908    printf "%s\n" "## ---------------- ##
1909## Cache variables. ##
1910## ---------------- ##"
1911    echo
1912    # The following way of writing the cache mishandles newlines in values,
1913(
1914  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1915    eval ac_val=\$$ac_var
1916    case $ac_val in #(
1917    *${as_nl}*)
1918      case $ac_var in #(
1919      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1920printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1921      esac
1922      case $ac_var in #(
1923      _ | IFS | as_nl) ;; #(
1924      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1925      *) { eval $ac_var=; unset $ac_var;} ;;
1926      esac ;;
1927    esac
1928  done
1929  (set) 2>&1 |
1930    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1931    *${as_nl}ac_space=\ *)
1932      sed -n \
1933	"s/'\''/'\''\\\\'\'''\''/g;
1934	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1935      ;; #(
1936    *)
1937      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1938      ;;
1939    esac |
1940    sort
1941)
1942    echo
1943
1944    printf "%s\n" "## ----------------- ##
1945## Output variables. ##
1946## ----------------- ##"
1947    echo
1948    for ac_var in $ac_subst_vars
1949    do
1950      eval ac_val=\$$ac_var
1951      case $ac_val in
1952      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953      esac
1954      printf "%s\n" "$ac_var='\''$ac_val'\''"
1955    done | sort
1956    echo
1957
1958    if test -n "$ac_subst_files"; then
1959      printf "%s\n" "## ------------------- ##
1960## File substitutions. ##
1961## ------------------- ##"
1962      echo
1963      for ac_var in $ac_subst_files
1964      do
1965	eval ac_val=\$$ac_var
1966	case $ac_val in
1967	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1968	esac
1969	printf "%s\n" "$ac_var='\''$ac_val'\''"
1970      done | sort
1971      echo
1972    fi
1973
1974    if test -s confdefs.h; then
1975      printf "%s\n" "## ----------- ##
1976## confdefs.h. ##
1977## ----------- ##"
1978      echo
1979      cat confdefs.h
1980      echo
1981    fi
1982    test "$ac_signal" != 0 &&
1983      printf "%s\n" "$as_me: caught signal $ac_signal"
1984    printf "%s\n" "$as_me: exit $exit_status"
1985  } >&5
1986  rm -f core *.core core.conftest.* &&
1987    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988    exit $exit_status
1989' 0
1990for ac_signal in 1 2 13 15; do
1991  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1992done
1993ac_signal=0
1994
1995# confdefs.h avoids OS command line length limits that DEFS can exceed.
1996rm -f -r conftest* confdefs.h
1997
1998printf "%s\n" "/* confdefs.h */" > confdefs.h
1999
2000# Predefined preprocessor variables.
2001
2002printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2003
2004printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2005
2006printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2007
2008printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2009
2010printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2011
2012printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2013
2014
2015# Let the site file select an alternate cache file if it wants to.
2016# Prefer an explicitly selected file to automatically selected ones.
2017if test -n "$CONFIG_SITE"; then
2018  ac_site_files="$CONFIG_SITE"
2019elif test "x$prefix" != xNONE; then
2020  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2021else
2022  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2023fi
2024
2025for ac_site_file in $ac_site_files
2026do
2027  case $ac_site_file in #(
2028  */*) :
2029     ;; #(
2030  *) :
2031    ac_site_file=./$ac_site_file ;;
2032esac
2033  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2034    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2035printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2036    sed 's/^/| /' "$ac_site_file" >&5
2037    . "$ac_site_file" \
2038      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2039printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2040as_fn_error $? "failed to load site script $ac_site_file
2041See \`config.log' for more details" "$LINENO" 5; }
2042  fi
2043done
2044
2045if test -r "$cache_file"; then
2046  # Some versions of bash will fail to source /dev/null (special files
2047  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2048  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2049    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2050printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2051    case $cache_file in
2052      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2053      *)                      . "./$cache_file";;
2054    esac
2055  fi
2056else
2057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2058printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2059  >$cache_file
2060fi
2061
2062# Test code for whether the C compiler supports C89 (global declarations)
2063ac_c_conftest_c89_globals='
2064/* Does the compiler advertise C89 conformance?
2065   Do not test the value of __STDC__, because some compilers set it to 0
2066   while being otherwise adequately conformant. */
2067#if !defined __STDC__
2068# error "Compiler does not advertise C89 conformance"
2069#endif
2070
2071#include <stddef.h>
2072#include <stdarg.h>
2073struct stat;
2074/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2075struct buf { int x; };
2076struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2077static char *e (p, i)
2078     char **p;
2079     int i;
2080{
2081  return p[i];
2082}
2083static char *f (char * (*g) (char **, int), char **p, ...)
2084{
2085  char *s;
2086  va_list v;
2087  va_start (v,p);
2088  s = g (p, va_arg (v,int));
2089  va_end (v);
2090  return s;
2091}
2092
2093/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2094   function prototypes and stuff, but not \xHH hex character constants.
2095   These do not provoke an error unfortunately, instead are silently treated
2096   as an "x".  The following induces an error, until -std is added to get
2097   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2098   array size at least.  It is necessary to write \x00 == 0 to get something
2099   that is true only with -std.  */
2100int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2101
2102/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2103   inside strings and character constants.  */
2104#define FOO(x) '\''x'\''
2105int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2106
2107int test (int i, double x);
2108struct s1 {int (*f) (int a);};
2109struct s2 {int (*f) (double a);};
2110int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2111               int, int);'
2112
2113# Test code for whether the C compiler supports C89 (body of main).
2114ac_c_conftest_c89_main='
2115ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2116'
2117
2118# Test code for whether the C compiler supports C99 (global declarations)
2119ac_c_conftest_c99_globals='
2120// Does the compiler advertise C99 conformance?
2121#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2122# error "Compiler does not advertise C99 conformance"
2123#endif
2124
2125#include <stdbool.h>
2126extern int puts (const char *);
2127extern int printf (const char *, ...);
2128extern int dprintf (int, const char *, ...);
2129extern void *malloc (size_t);
2130
2131// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2132// dprintf is used instead of fprintf to avoid needing to declare
2133// FILE and stderr.
2134#define debug(...) dprintf (2, __VA_ARGS__)
2135#define showlist(...) puts (#__VA_ARGS__)
2136#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2137static void
2138test_varargs_macros (void)
2139{
2140  int x = 1234;
2141  int y = 5678;
2142  debug ("Flag");
2143  debug ("X = %d\n", x);
2144  showlist (The first, second, and third items.);
2145  report (x>y, "x is %d but y is %d", x, y);
2146}
2147
2148// Check long long types.
2149#define BIG64 18446744073709551615ull
2150#define BIG32 4294967295ul
2151#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2152#if !BIG_OK
2153  #error "your preprocessor is broken"
2154#endif
2155#if BIG_OK
2156#else
2157  #error "your preprocessor is broken"
2158#endif
2159static long long int bignum = -9223372036854775807LL;
2160static unsigned long long int ubignum = BIG64;
2161
2162struct incomplete_array
2163{
2164  int datasize;
2165  double data[];
2166};
2167
2168struct named_init {
2169  int number;
2170  const wchar_t *name;
2171  double average;
2172};
2173
2174typedef const char *ccp;
2175
2176static inline int
2177test_restrict (ccp restrict text)
2178{
2179  // See if C++-style comments work.
2180  // Iterate through items via the restricted pointer.
2181  // Also check for declarations in for loops.
2182  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2183    continue;
2184  return 0;
2185}
2186
2187// Check varargs and va_copy.
2188static bool
2189test_varargs (const char *format, ...)
2190{
2191  va_list args;
2192  va_start (args, format);
2193  va_list args_copy;
2194  va_copy (args_copy, args);
2195
2196  const char *str = "";
2197  int number = 0;
2198  float fnumber = 0;
2199
2200  while (*format)
2201    {
2202      switch (*format++)
2203	{
2204	case '\''s'\'': // string
2205	  str = va_arg (args_copy, const char *);
2206	  break;
2207	case '\''d'\'': // int
2208	  number = va_arg (args_copy, int);
2209	  break;
2210	case '\''f'\'': // float
2211	  fnumber = va_arg (args_copy, double);
2212	  break;
2213	default:
2214	  break;
2215	}
2216    }
2217  va_end (args_copy);
2218  va_end (args);
2219
2220  return *str && number && fnumber;
2221}
2222'
2223
2224# Test code for whether the C compiler supports C99 (body of main).
2225ac_c_conftest_c99_main='
2226  // Check bool.
2227  _Bool success = false;
2228  success |= (argc != 0);
2229
2230  // Check restrict.
2231  if (test_restrict ("String literal") == 0)
2232    success = true;
2233  char *restrict newvar = "Another string";
2234
2235  // Check varargs.
2236  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2237  test_varargs_macros ();
2238
2239  // Check flexible array members.
2240  struct incomplete_array *ia =
2241    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2242  ia->datasize = 10;
2243  for (int i = 0; i < ia->datasize; ++i)
2244    ia->data[i] = i * 1.234;
2245
2246  // Check named initializers.
2247  struct named_init ni = {
2248    .number = 34,
2249    .name = L"Test wide string",
2250    .average = 543.34343,
2251  };
2252
2253  ni.number = 58;
2254
2255  int dynamic_array[ni.number];
2256  dynamic_array[0] = argv[0][0];
2257  dynamic_array[ni.number - 1] = 543;
2258
2259  // work around unused variable warnings
2260  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2261	 || dynamic_array[ni.number - 1] != 543);
2262'
2263
2264# Test code for whether the C compiler supports C11 (global declarations)
2265ac_c_conftest_c11_globals='
2266// Does the compiler advertise C11 conformance?
2267#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2268# error "Compiler does not advertise C11 conformance"
2269#endif
2270
2271// Check _Alignas.
2272char _Alignas (double) aligned_as_double;
2273char _Alignas (0) no_special_alignment;
2274extern char aligned_as_int;
2275char _Alignas (0) _Alignas (int) aligned_as_int;
2276
2277// Check _Alignof.
2278enum
2279{
2280  int_alignment = _Alignof (int),
2281  int_array_alignment = _Alignof (int[100]),
2282  char_alignment = _Alignof (char)
2283};
2284_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2285
2286// Check _Noreturn.
2287int _Noreturn does_not_return (void) { for (;;) continue; }
2288
2289// Check _Static_assert.
2290struct test_static_assert
2291{
2292  int x;
2293  _Static_assert (sizeof (int) <= sizeof (long int),
2294                  "_Static_assert does not work in struct");
2295  long int y;
2296};
2297
2298// Check UTF-8 literals.
2299#define u8 syntax error!
2300char const utf8_literal[] = u8"happens to be ASCII" "another string";
2301
2302// Check duplicate typedefs.
2303typedef long *long_ptr;
2304typedef long int *long_ptr;
2305typedef long_ptr long_ptr;
2306
2307// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2308struct anonymous
2309{
2310  union {
2311    struct { int i; int j; };
2312    struct { int k; long int l; } w;
2313  };
2314  int m;
2315} v1;
2316'
2317
2318# Test code for whether the C compiler supports C11 (body of main).
2319ac_c_conftest_c11_main='
2320  _Static_assert ((offsetof (struct anonymous, i)
2321		   == offsetof (struct anonymous, w.k)),
2322		  "Anonymous union alignment botch");
2323  v1.i = 2;
2324  v1.w.k = 5;
2325  ok |= v1.i != 5;
2326'
2327
2328# Test code for whether the C compiler supports C11 (complete).
2329ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2330${ac_c_conftest_c99_globals}
2331${ac_c_conftest_c11_globals}
2332
2333int
2334main (int argc, char **argv)
2335{
2336  int ok = 0;
2337  ${ac_c_conftest_c89_main}
2338  ${ac_c_conftest_c99_main}
2339  ${ac_c_conftest_c11_main}
2340  return ok;
2341}
2342"
2343
2344# Test code for whether the C compiler supports C99 (complete).
2345ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2346${ac_c_conftest_c99_globals}
2347
2348int
2349main (int argc, char **argv)
2350{
2351  int ok = 0;
2352  ${ac_c_conftest_c89_main}
2353  ${ac_c_conftest_c99_main}
2354  return ok;
2355}
2356"
2357
2358# Test code for whether the C compiler supports C89 (complete).
2359ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2360
2361int
2362main (int argc, char **argv)
2363{
2364  int ok = 0;
2365  ${ac_c_conftest_c89_main}
2366  return ok;
2367}
2368"
2369
2370as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2371as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2372as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2373as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2374as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2375as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2376as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2377as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2378as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2379
2380# Auxiliary files required by this configure script.
2381ac_aux_files="config.guess config.sub compile missing install-sh"
2382
2383# Locations in which to look for auxiliary files.
2384ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2385
2386# Search for a directory containing all of the required auxiliary files,
2387# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2388# If we don't find one directory that contains all the files we need,
2389# we report the set of missing files from the *first* directory in
2390# $ac_aux_dir_candidates and give up.
2391ac_missing_aux_files=""
2392ac_first_candidate=:
2393printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395as_found=false
2396for as_dir in $ac_aux_dir_candidates
2397do
2398  IFS=$as_save_IFS
2399  case $as_dir in #(((
2400    '') as_dir=./ ;;
2401    */) ;;
2402    *) as_dir=$as_dir/ ;;
2403  esac
2404  as_found=:
2405
2406  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2407  ac_aux_dir_found=yes
2408  ac_install_sh=
2409  for ac_aux in $ac_aux_files
2410  do
2411    # As a special case, if "install-sh" is required, that requirement
2412    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2413    # and $ac_install_sh is set appropriately for whichever one is found.
2414    if test x"$ac_aux" = x"install-sh"
2415    then
2416      if test -f "${as_dir}install-sh"; then
2417        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2418        ac_install_sh="${as_dir}install-sh -c"
2419      elif test -f "${as_dir}install.sh"; then
2420        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2421        ac_install_sh="${as_dir}install.sh -c"
2422      elif test -f "${as_dir}shtool"; then
2423        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2424        ac_install_sh="${as_dir}shtool install -c"
2425      else
2426        ac_aux_dir_found=no
2427        if $ac_first_candidate; then
2428          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2429        else
2430          break
2431        fi
2432      fi
2433    else
2434      if test -f "${as_dir}${ac_aux}"; then
2435        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2436      else
2437        ac_aux_dir_found=no
2438        if $ac_first_candidate; then
2439          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2440        else
2441          break
2442        fi
2443      fi
2444    fi
2445  done
2446  if test "$ac_aux_dir_found" = yes; then
2447    ac_aux_dir="$as_dir"
2448    break
2449  fi
2450  ac_first_candidate=false
2451
2452  as_found=false
2453done
2454IFS=$as_save_IFS
2455if $as_found
2456then :
2457
2458else $as_nop
2459  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2460fi
2461
2462
2463# These three variables are undocumented and unsupported,
2464# and are intended to be withdrawn in a future Autoconf release.
2465# They can cause serious problems if a builder's source tree is in a directory
2466# whose full name contains unusual characters.
2467if test -f "${ac_aux_dir}config.guess"; then
2468  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2469fi
2470if test -f "${ac_aux_dir}config.sub"; then
2471  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2472fi
2473if test -f "$ac_aux_dir/configure"; then
2474  ac_configure="$SHELL ${ac_aux_dir}configure"
2475fi
2476
2477# Check that the precious variables saved in the cache have kept the same
2478# value.
2479ac_cache_corrupted=false
2480for ac_var in $ac_precious_vars; do
2481  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2482  eval ac_new_set=\$ac_env_${ac_var}_set
2483  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2484  eval ac_new_val=\$ac_env_${ac_var}_value
2485  case $ac_old_set,$ac_new_set in
2486    set,)
2487      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2488printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2489      ac_cache_corrupted=: ;;
2490    ,set)
2491      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2492printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2493      ac_cache_corrupted=: ;;
2494    ,);;
2495    *)
2496      if test "x$ac_old_val" != "x$ac_new_val"; then
2497	# differences in whitespace do not lead to failure.
2498	ac_old_val_w=`echo x $ac_old_val`
2499	ac_new_val_w=`echo x $ac_new_val`
2500	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2501	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2502printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2503	  ac_cache_corrupted=:
2504	else
2505	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2506printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2507	  eval $ac_var=\$ac_old_val
2508	fi
2509	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2510printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2511	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2512printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2513      fi;;
2514  esac
2515  # Pass precious variables to config.status.
2516  if test "$ac_new_set" = set; then
2517    case $ac_new_val in
2518    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2519    *) ac_arg=$ac_var=$ac_new_val ;;
2520    esac
2521    case " $ac_configure_args " in
2522      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2523      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2524    esac
2525  fi
2526done
2527if $ac_cache_corrupted; then
2528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2529printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2531printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2532  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2533	    and start over" "$LINENO" 5
2534fi
2535## -------------------- ##
2536## Main body of script. ##
2537## -------------------- ##
2538
2539ac_ext=c
2540ac_cpp='$CPP $CPPFLAGS'
2541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544
2545
2546
2547ac_config_headers="$ac_config_headers config.h"
2548
2549
2550# Initialize Automake
2551am__api_version='1.16'
2552
2553
2554
2555  # Find a good install program.  We prefer a C program (faster),
2556# so one script is as good as another.  But avoid the broken or
2557# incompatible versions:
2558# SysV /etc/install, /usr/sbin/install
2559# SunOS /usr/etc/install
2560# IRIX /sbin/install
2561# AIX /bin/install
2562# AmigaOS /C/install, which installs bootblocks on floppy discs
2563# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2564# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2565# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2566# OS/2's system install, which has a completely different semantic
2567# ./install, which can be erroneously created by make from ./install.sh.
2568# Reject install programs that cannot install multiple files.
2569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2570printf %s "checking for a BSD-compatible install... " >&6; }
2571if test -z "$INSTALL"; then
2572if test ${ac_cv_path_install+y}
2573then :
2574  printf %s "(cached) " >&6
2575else $as_nop
2576  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579  IFS=$as_save_IFS
2580  case $as_dir in #(((
2581    '') as_dir=./ ;;
2582    */) ;;
2583    *) as_dir=$as_dir/ ;;
2584  esac
2585    # Account for fact that we put trailing slashes in our PATH walk.
2586case $as_dir in #((
2587  ./ | /[cC]/* | \
2588  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2589  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2590  /usr/ucb/* ) ;;
2591  *)
2592    # OSF1 and SCO ODT 3.0 have their own names for install.
2593    # Don't use installbsd from OSF since it installs stuff as root
2594    # by default.
2595    for ac_prog in ginstall scoinst install; do
2596      for ac_exec_ext in '' $ac_executable_extensions; do
2597	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2598	  if test $ac_prog = install &&
2599	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2600	    # AIX install.  It has an incompatible calling convention.
2601	    :
2602	  elif test $ac_prog = install &&
2603	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2604	    # program-specific install script used by HP pwplus--don't use.
2605	    :
2606	  else
2607	    rm -rf conftest.one conftest.two conftest.dir
2608	    echo one > conftest.one
2609	    echo two > conftest.two
2610	    mkdir conftest.dir
2611	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2612	      test -s conftest.one && test -s conftest.two &&
2613	      test -s conftest.dir/conftest.one &&
2614	      test -s conftest.dir/conftest.two
2615	    then
2616	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2617	      break 3
2618	    fi
2619	  fi
2620	fi
2621      done
2622    done
2623    ;;
2624esac
2625
2626  done
2627IFS=$as_save_IFS
2628
2629rm -rf conftest.one conftest.two conftest.dir
2630
2631fi
2632  if test ${ac_cv_path_install+y}; then
2633    INSTALL=$ac_cv_path_install
2634  else
2635    # As a last resort, use the slow shell script.  Don't cache a
2636    # value for INSTALL within a source directory, because that will
2637    # break other packages using the cache if that directory is
2638    # removed, or if the value is a relative name.
2639    INSTALL=$ac_install_sh
2640  fi
2641fi
2642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2643printf "%s\n" "$INSTALL" >&6; }
2644
2645# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2646# It thinks the first close brace ends the variable substitution.
2647test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2648
2649test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2650
2651test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2652
2653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2654printf %s "checking whether build environment is sane... " >&6; }
2655# Reject unsafe characters in $srcdir or the absolute working directory
2656# name.  Accept space and tab only in the latter.
2657am_lf='
2658'
2659case `pwd` in
2660  *[\\\"\#\$\&\'\`$am_lf]*)
2661    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2662esac
2663case $srcdir in
2664  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2665    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2666esac
2667
2668# Do 'set' in a subshell so we don't clobber the current shell's
2669# arguments.  Must try -L first in case configure is actually a
2670# symlink; some systems play weird games with the mod time of symlinks
2671# (eg FreeBSD returns the mod time of the symlink's containing
2672# directory).
2673if (
2674   am_has_slept=no
2675   for am_try in 1 2; do
2676     echo "timestamp, slept: $am_has_slept" > conftest.file
2677     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2678     if test "$*" = "X"; then
2679	# -L didn't work.
2680	set X `ls -t "$srcdir/configure" conftest.file`
2681     fi
2682     if test "$*" != "X $srcdir/configure conftest.file" \
2683	&& test "$*" != "X conftest.file $srcdir/configure"; then
2684
2685	# If neither matched, then we have a broken ls.  This can happen
2686	# if, for instance, CONFIG_SHELL is bash and it inherits a
2687	# broken ls alias from the environment.  This has actually
2688	# happened.  Such a system could not be considered "sane".
2689	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2690  alias in your environment" "$LINENO" 5
2691     fi
2692     if test "$2" = conftest.file || test $am_try -eq 2; then
2693       break
2694     fi
2695     # Just in case.
2696     sleep 1
2697     am_has_slept=yes
2698   done
2699   test "$2" = conftest.file
2700   )
2701then
2702   # Ok.
2703   :
2704else
2705   as_fn_error $? "newly created file is older than distributed files!
2706Check your system clock" "$LINENO" 5
2707fi
2708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2709printf "%s\n" "yes" >&6; }
2710# If we didn't sleep, we still need to ensure time stamps of config.status and
2711# generated files are strictly newer.
2712am_sleep_pid=
2713if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2714  ( sleep 1 ) &
2715  am_sleep_pid=$!
2716fi
2717
2718rm -f conftest.file
2719
2720test "$program_prefix" != NONE &&
2721  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2722# Use a double $ so make ignores it.
2723test "$program_suffix" != NONE &&
2724  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2725# Double any \ or $.
2726# By default was `s,x,x', remove it if useless.
2727ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2728program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2729
2730
2731# Expand $ac_aux_dir to an absolute path.
2732am_aux_dir=`cd "$ac_aux_dir" && pwd`
2733
2734
2735  if test x"${MISSING+set}" != xset; then
2736  MISSING="\${SHELL} '$am_aux_dir/missing'"
2737fi
2738# Use eval to expand $SHELL
2739if eval "$MISSING --is-lightweight"; then
2740  am_missing_run="$MISSING "
2741else
2742  am_missing_run=
2743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2744printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2745fi
2746
2747if test x"${install_sh+set}" != xset; then
2748  case $am_aux_dir in
2749  *\ * | *\	*)
2750    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2751  *)
2752    install_sh="\${SHELL} $am_aux_dir/install-sh"
2753  esac
2754fi
2755
2756# Installed binaries are usually stripped using 'strip' when the user
2757# run "make install-strip".  However 'strip' might not be the right
2758# tool to use in cross-compilation environments, therefore Automake
2759# will honor the 'STRIP' environment variable to overrule this program.
2760if test "$cross_compiling" != no; then
2761  if test -n "$ac_tool_prefix"; then
2762  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2763set dummy ${ac_tool_prefix}strip; ac_word=$2
2764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765printf %s "checking for $ac_word... " >&6; }
2766if test ${ac_cv_prog_STRIP+y}
2767then :
2768  printf %s "(cached) " >&6
2769else $as_nop
2770  if test -n "$STRIP"; then
2771  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2772else
2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH
2775do
2776  IFS=$as_save_IFS
2777  case $as_dir in #(((
2778    '') as_dir=./ ;;
2779    */) ;;
2780    *) as_dir=$as_dir/ ;;
2781  esac
2782    for ac_exec_ext in '' $ac_executable_extensions; do
2783  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2784    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2785    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2786    break 2
2787  fi
2788done
2789  done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794STRIP=$ac_cv_prog_STRIP
2795if test -n "$STRIP"; then
2796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2797printf "%s\n" "$STRIP" >&6; }
2798else
2799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800printf "%s\n" "no" >&6; }
2801fi
2802
2803
2804fi
2805if test -z "$ac_cv_prog_STRIP"; then
2806  ac_ct_STRIP=$STRIP
2807  # Extract the first word of "strip", so it can be a program name with args.
2808set dummy strip; ac_word=$2
2809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810printf %s "checking for $ac_word... " >&6; }
2811if test ${ac_cv_prog_ac_ct_STRIP+y}
2812then :
2813  printf %s "(cached) " >&6
2814else $as_nop
2815  if test -n "$ac_ct_STRIP"; then
2816  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821  IFS=$as_save_IFS
2822  case $as_dir in #(((
2823    '') as_dir=./ ;;
2824    */) ;;
2825    *) as_dir=$as_dir/ ;;
2826  esac
2827    for ac_exec_ext in '' $ac_executable_extensions; do
2828  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2829    ac_cv_prog_ac_ct_STRIP="strip"
2830    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2831    break 2
2832  fi
2833done
2834  done
2835IFS=$as_save_IFS
2836
2837fi
2838fi
2839ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2840if test -n "$ac_ct_STRIP"; then
2841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2842printf "%s\n" "$ac_ct_STRIP" >&6; }
2843else
2844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845printf "%s\n" "no" >&6; }
2846fi
2847
2848  if test "x$ac_ct_STRIP" = x; then
2849    STRIP=":"
2850  else
2851    case $cross_compiling:$ac_tool_warned in
2852yes:)
2853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2854printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2855ac_tool_warned=yes ;;
2856esac
2857    STRIP=$ac_ct_STRIP
2858  fi
2859else
2860  STRIP="$ac_cv_prog_STRIP"
2861fi
2862
2863fi
2864INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2865
2866
2867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2868printf %s "checking for a race-free mkdir -p... " >&6; }
2869if test -z "$MKDIR_P"; then
2870  if test ${ac_cv_path_mkdir+y}
2871then :
2872  printf %s "(cached) " >&6
2873else $as_nop
2874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2876do
2877  IFS=$as_save_IFS
2878  case $as_dir in #(((
2879    '') as_dir=./ ;;
2880    */) ;;
2881    *) as_dir=$as_dir/ ;;
2882  esac
2883    for ac_prog in mkdir gmkdir; do
2884	 for ac_exec_ext in '' $ac_executable_extensions; do
2885	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2886	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2887	     'mkdir ('*'coreutils) '* | \
2888	     'BusyBox '* | \
2889	     'mkdir (fileutils) '4.1*)
2890	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2891	       break 3;;
2892	   esac
2893	 done
2894       done
2895  done
2896IFS=$as_save_IFS
2897
2898fi
2899
2900  test -d ./--version && rmdir ./--version
2901  if test ${ac_cv_path_mkdir+y}; then
2902    MKDIR_P="$ac_cv_path_mkdir -p"
2903  else
2904    # As a last resort, use the slow shell script.  Don't cache a
2905    # value for MKDIR_P within a source directory, because that will
2906    # break other packages using the cache if that directory is
2907    # removed, or if the value is a relative name.
2908    MKDIR_P="$ac_install_sh -d"
2909  fi
2910fi
2911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2912printf "%s\n" "$MKDIR_P" >&6; }
2913
2914for ac_prog in gawk mawk nawk awk
2915do
2916  # Extract the first word of "$ac_prog", so it can be a program name with args.
2917set dummy $ac_prog; ac_word=$2
2918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919printf %s "checking for $ac_word... " >&6; }
2920if test ${ac_cv_prog_AWK+y}
2921then :
2922  printf %s "(cached) " >&6
2923else $as_nop
2924  if test -n "$AWK"; then
2925  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2926else
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930  IFS=$as_save_IFS
2931  case $as_dir in #(((
2932    '') as_dir=./ ;;
2933    */) ;;
2934    *) as_dir=$as_dir/ ;;
2935  esac
2936    for ac_exec_ext in '' $ac_executable_extensions; do
2937  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2938    ac_cv_prog_AWK="$ac_prog"
2939    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2940    break 2
2941  fi
2942done
2943  done
2944IFS=$as_save_IFS
2945
2946fi
2947fi
2948AWK=$ac_cv_prog_AWK
2949if test -n "$AWK"; then
2950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2951printf "%s\n" "$AWK" >&6; }
2952else
2953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954printf "%s\n" "no" >&6; }
2955fi
2956
2957
2958  test -n "$AWK" && break
2959done
2960
2961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2962printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2963set x ${MAKE-make}
2964ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2965if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2966then :
2967  printf %s "(cached) " >&6
2968else $as_nop
2969  cat >conftest.make <<\_ACEOF
2970SHELL = /bin/sh
2971all:
2972	@echo '@@@%%%=$(MAKE)=@@@%%%'
2973_ACEOF
2974# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2975case `${MAKE-make} -f conftest.make 2>/dev/null` in
2976  *@@@%%%=?*=@@@%%%*)
2977    eval ac_cv_prog_make_${ac_make}_set=yes;;
2978  *)
2979    eval ac_cv_prog_make_${ac_make}_set=no;;
2980esac
2981rm -f conftest.make
2982fi
2983if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985printf "%s\n" "yes" >&6; }
2986  SET_MAKE=
2987else
2988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989printf "%s\n" "no" >&6; }
2990  SET_MAKE="MAKE=${MAKE-make}"
2991fi
2992
2993rm -rf .tst 2>/dev/null
2994mkdir .tst 2>/dev/null
2995if test -d .tst; then
2996  am__leading_dot=.
2997else
2998  am__leading_dot=_
2999fi
3000rmdir .tst 2>/dev/null
3001
3002# Check whether --enable-silent-rules was given.
3003if test ${enable_silent_rules+y}
3004then :
3005  enableval=$enable_silent_rules;
3006fi
3007
3008case $enable_silent_rules in # (((
3009  yes) AM_DEFAULT_VERBOSITY=0;;
3010   no) AM_DEFAULT_VERBOSITY=1;;
3011    *) AM_DEFAULT_VERBOSITY=1;;
3012esac
3013am_make=${MAKE-make}
3014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3015printf %s "checking whether $am_make supports nested variables... " >&6; }
3016if test ${am_cv_make_support_nested_variables+y}
3017then :
3018  printf %s "(cached) " >&6
3019else $as_nop
3020  if printf "%s\n" 'TRUE=$(BAR$(V))
3021BAR0=false
3022BAR1=true
3023V=1
3024am__doit:
3025	@$(TRUE)
3026.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3027  am_cv_make_support_nested_variables=yes
3028else
3029  am_cv_make_support_nested_variables=no
3030fi
3031fi
3032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3033printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3034if test $am_cv_make_support_nested_variables = yes; then
3035    AM_V='$(V)'
3036  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3037else
3038  AM_V=$AM_DEFAULT_VERBOSITY
3039  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3040fi
3041AM_BACKSLASH='\'
3042
3043if test "`cd $srcdir && pwd`" != "`pwd`"; then
3044  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3045  # is not polluted with repeated "-I."
3046  am__isrc=' -I$(srcdir)'
3047  # test to see if srcdir already configured
3048  if test -f $srcdir/config.status; then
3049    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3050  fi
3051fi
3052
3053# test whether we have cygpath
3054if test -z "$CYGPATH_W"; then
3055  if (cygpath --version) >/dev/null 2>/dev/null; then
3056    CYGPATH_W='cygpath -w'
3057  else
3058    CYGPATH_W=echo
3059  fi
3060fi
3061
3062
3063# Define the identity of the package.
3064 PACKAGE='xgamma'
3065 VERSION='1.0.7'
3066
3067
3068printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3069
3070
3071printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3072
3073# Some tools Automake needs.
3074
3075ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3076
3077
3078AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3079
3080
3081AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3082
3083
3084AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3085
3086
3087MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3088
3089# For better backward compatibility.  To be removed once Automake 1.9.x
3090# dies out for good.  For more background, see:
3091# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3092# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3093mkdir_p='$(MKDIR_P)'
3094
3095# We need awk for the "check" target (and possibly the TAP driver).  The
3096# system "awk" is bad on some platforms.
3097# Always define AMTAR for backward compatibility.  Yes, it's still used
3098# in the wild :-(  We should find a proper way to deprecate it ...
3099AMTAR='$${TAR-tar}'
3100
3101
3102# We'll loop over all known methods to create a tar archive until one works.
3103_am_tools='gnutar  pax cpio none'
3104
3105am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3106
3107
3108
3109
3110
3111# Variables for tags utilities; see am/tags.am
3112if test -z "$CTAGS"; then
3113  CTAGS=ctags
3114fi
3115
3116if test -z "$ETAGS"; then
3117  ETAGS=etags
3118fi
3119
3120if test -z "$CSCOPE"; then
3121  CSCOPE=cscope
3122fi
3123
3124
3125
3126# POSIX will say in a future version that running "rm -f" with no argument
3127# is OK; and we want to be able to make that assumption in our Makefile
3128# recipes.  So use an aggressive probe to check that the usage we want is
3129# actually supported "in the wild" to an acceptable degree.
3130# See automake bug#10828.
3131# To make any issue more visible, cause the running configure to be aborted
3132# by default if the 'rm' program in use doesn't match our expectations; the
3133# user can still override this though.
3134if rm -f && rm -fr && rm -rf; then : OK; else
3135  cat >&2 <<'END'
3136Oops!
3137
3138Your 'rm' program seems unable to run without file operands specified
3139on the command line, even when the '-f' option is present.  This is contrary
3140to the behaviour of most rm programs out there, and not conforming with
3141the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3142
3143Please tell bug-automake@gnu.org about your system, including the value
3144of your $PATH and any error possibly output before this message.  This
3145can help us improve future automake versions.
3146
3147END
3148  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3149    echo 'Configuration will proceed anyway, since you have set the' >&2
3150    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3151    echo >&2
3152  else
3153    cat >&2 <<'END'
3154Aborting the configuration process, to ensure you take notice of the issue.
3155
3156You can download and install GNU coreutils to get an 'rm' implementation
3157that behaves properly: <https://www.gnu.org/software/coreutils/>.
3158
3159If you want to complete the configuration process using your problematic
3160'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3161to "yes", and re-run configure.
3162
3163END
3164    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3165  fi
3166fi
3167
3168
3169# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190DEPDIR="${am__leading_dot}deps"
3191
3192ac_config_commands="$ac_config_commands depfiles"
3193
3194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3195printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3196cat > confinc.mk << 'END'
3197am__doit:
3198	@echo this is the am__doit target >confinc.out
3199.PHONY: am__doit
3200END
3201am__include="#"
3202am__quote=
3203# BSD make does it like this.
3204echo '.include "confinc.mk" # ignored' > confmf.BSD
3205# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3206echo 'include confinc.mk # ignored' > confmf.GNU
3207_am_result=no
3208for s in GNU BSD; do
3209  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3210   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }
3214  case $?:`cat confinc.out 2>/dev/null` in #(
3215  '0:this is the am__doit target') :
3216    case $s in #(
3217  BSD) :
3218    am__include='.include' am__quote='"' ;; #(
3219  *) :
3220    am__include='include' am__quote='' ;;
3221esac ;; #(
3222  *) :
3223     ;;
3224esac
3225  if test "$am__include" != "#"; then
3226    _am_result="yes ($s style)"
3227    break
3228  fi
3229done
3230rm -f confinc.* confmf.*
3231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3232printf "%s\n" "${_am_result}" >&6; }
3233
3234# Check whether --enable-dependency-tracking was given.
3235if test ${enable_dependency_tracking+y}
3236then :
3237  enableval=$enable_dependency_tracking;
3238fi
3239
3240if test "x$enable_dependency_tracking" != xno; then
3241  am_depcomp="$ac_aux_dir/depcomp"
3242  AMDEPBACKSLASH='\'
3243  am__nodep='_no'
3244fi
3245 if test "x$enable_dependency_tracking" != xno; then
3246  AMDEP_TRUE=
3247  AMDEP_FALSE='#'
3248else
3249  AMDEP_TRUE='#'
3250  AMDEP_FALSE=
3251fi
3252
3253
3254ac_ext=c
3255ac_cpp='$CPP $CPPFLAGS'
3256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259if test -n "$ac_tool_prefix"; then
3260  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3261set dummy ${ac_tool_prefix}gcc; ac_word=$2
3262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263printf %s "checking for $ac_word... " >&6; }
3264if test ${ac_cv_prog_CC+y}
3265then :
3266  printf %s "(cached) " >&6
3267else $as_nop
3268  if test -n "$CC"; then
3269  ac_cv_prog_CC="$CC" # Let the user override the test.
3270else
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274  IFS=$as_save_IFS
3275  case $as_dir in #(((
3276    '') as_dir=./ ;;
3277    */) ;;
3278    *) as_dir=$as_dir/ ;;
3279  esac
3280    for ac_exec_ext in '' $ac_executable_extensions; do
3281  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3282    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3283    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3284    break 2
3285  fi
3286done
3287  done
3288IFS=$as_save_IFS
3289
3290fi
3291fi
3292CC=$ac_cv_prog_CC
3293if test -n "$CC"; then
3294  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295printf "%s\n" "$CC" >&6; }
3296else
3297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298printf "%s\n" "no" >&6; }
3299fi
3300
3301
3302fi
3303if test -z "$ac_cv_prog_CC"; then
3304  ac_ct_CC=$CC
3305  # Extract the first word of "gcc", so it can be a program name with args.
3306set dummy gcc; ac_word=$2
3307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308printf %s "checking for $ac_word... " >&6; }
3309if test ${ac_cv_prog_ac_ct_CC+y}
3310then :
3311  printf %s "(cached) " >&6
3312else $as_nop
3313  if test -n "$ac_ct_CC"; then
3314  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3315else
3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317for as_dir in $PATH
3318do
3319  IFS=$as_save_IFS
3320  case $as_dir in #(((
3321    '') as_dir=./ ;;
3322    */) ;;
3323    *) as_dir=$as_dir/ ;;
3324  esac
3325    for ac_exec_ext in '' $ac_executable_extensions; do
3326  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3327    ac_cv_prog_ac_ct_CC="gcc"
3328    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3329    break 2
3330  fi
3331done
3332  done
3333IFS=$as_save_IFS
3334
3335fi
3336fi
3337ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338if test -n "$ac_ct_CC"; then
3339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340printf "%s\n" "$ac_ct_CC" >&6; }
3341else
3342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343printf "%s\n" "no" >&6; }
3344fi
3345
3346  if test "x$ac_ct_CC" = x; then
3347    CC=""
3348  else
3349    case $cross_compiling:$ac_tool_warned in
3350yes:)
3351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3352printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3353ac_tool_warned=yes ;;
3354esac
3355    CC=$ac_ct_CC
3356  fi
3357else
3358  CC="$ac_cv_prog_CC"
3359fi
3360
3361if test -z "$CC"; then
3362          if test -n "$ac_tool_prefix"; then
3363    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3364set dummy ${ac_tool_prefix}cc; ac_word=$2
3365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366printf %s "checking for $ac_word... " >&6; }
3367if test ${ac_cv_prog_CC+y}
3368then :
3369  printf %s "(cached) " >&6
3370else $as_nop
3371  if test -n "$CC"; then
3372  ac_cv_prog_CC="$CC" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  case $as_dir in #(((
3379    '') as_dir=./ ;;
3380    */) ;;
3381    *) as_dir=$as_dir/ ;;
3382  esac
3383    for ac_exec_ext in '' $ac_executable_extensions; do
3384  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3385    ac_cv_prog_CC="${ac_tool_prefix}cc"
3386    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3387    break 2
3388  fi
3389done
3390  done
3391IFS=$as_save_IFS
3392
3393fi
3394fi
3395CC=$ac_cv_prog_CC
3396if test -n "$CC"; then
3397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398printf "%s\n" "$CC" >&6; }
3399else
3400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401printf "%s\n" "no" >&6; }
3402fi
3403
3404
3405  fi
3406fi
3407if test -z "$CC"; then
3408  # Extract the first word of "cc", so it can be a program name with args.
3409set dummy cc; ac_word=$2
3410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411printf %s "checking for $ac_word... " >&6; }
3412if test ${ac_cv_prog_CC+y}
3413then :
3414  printf %s "(cached) " >&6
3415else $as_nop
3416  if test -n "$CC"; then
3417  ac_cv_prog_CC="$CC" # Let the user override the test.
3418else
3419  ac_prog_rejected=no
3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH
3422do
3423  IFS=$as_save_IFS
3424  case $as_dir in #(((
3425    '') as_dir=./ ;;
3426    */) ;;
3427    *) as_dir=$as_dir/ ;;
3428  esac
3429    for ac_exec_ext in '' $ac_executable_extensions; do
3430  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3431    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3432       ac_prog_rejected=yes
3433       continue
3434     fi
3435    ac_cv_prog_CC="cc"
3436    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3437    break 2
3438  fi
3439done
3440  done
3441IFS=$as_save_IFS
3442
3443if test $ac_prog_rejected = yes; then
3444  # We found a bogon in the path, so make sure we never use it.
3445  set dummy $ac_cv_prog_CC
3446  shift
3447  if test $# != 0; then
3448    # We chose a different compiler from the bogus one.
3449    # However, it has the same basename, so the bogon will be chosen
3450    # first if we set CC to just the basename; use the full file name.
3451    shift
3452    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3453  fi
3454fi
3455fi
3456fi
3457CC=$ac_cv_prog_CC
3458if test -n "$CC"; then
3459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460printf "%s\n" "$CC" >&6; }
3461else
3462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463printf "%s\n" "no" >&6; }
3464fi
3465
3466
3467fi
3468if test -z "$CC"; then
3469  if test -n "$ac_tool_prefix"; then
3470  for ac_prog in cl.exe
3471  do
3472    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3473set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475printf %s "checking for $ac_word... " >&6; }
3476if test ${ac_cv_prog_CC+y}
3477then :
3478  printf %s "(cached) " >&6
3479else $as_nop
3480  if test -n "$CC"; then
3481  ac_cv_prog_CC="$CC" # Let the user override the test.
3482else
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486  IFS=$as_save_IFS
3487  case $as_dir in #(((
3488    '') as_dir=./ ;;
3489    */) ;;
3490    *) as_dir=$as_dir/ ;;
3491  esac
3492    for ac_exec_ext in '' $ac_executable_extensions; do
3493  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3494    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3495    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3496    break 2
3497  fi
3498done
3499  done
3500IFS=$as_save_IFS
3501
3502fi
3503fi
3504CC=$ac_cv_prog_CC
3505if test -n "$CC"; then
3506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507printf "%s\n" "$CC" >&6; }
3508else
3509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510printf "%s\n" "no" >&6; }
3511fi
3512
3513
3514    test -n "$CC" && break
3515  done
3516fi
3517if test -z "$CC"; then
3518  ac_ct_CC=$CC
3519  for ac_prog in cl.exe
3520do
3521  # Extract the first word of "$ac_prog", so it can be a program name with args.
3522set dummy $ac_prog; ac_word=$2
3523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524printf %s "checking for $ac_word... " >&6; }
3525if test ${ac_cv_prog_ac_ct_CC+y}
3526then :
3527  printf %s "(cached) " >&6
3528else $as_nop
3529  if test -n "$ac_ct_CC"; then
3530  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3531else
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535  IFS=$as_save_IFS
3536  case $as_dir in #(((
3537    '') as_dir=./ ;;
3538    */) ;;
3539    *) as_dir=$as_dir/ ;;
3540  esac
3541    for ac_exec_ext in '' $ac_executable_extensions; do
3542  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3543    ac_cv_prog_ac_ct_CC="$ac_prog"
3544    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3545    break 2
3546  fi
3547done
3548  done
3549IFS=$as_save_IFS
3550
3551fi
3552fi
3553ac_ct_CC=$ac_cv_prog_ac_ct_CC
3554if test -n "$ac_ct_CC"; then
3555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3556printf "%s\n" "$ac_ct_CC" >&6; }
3557else
3558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559printf "%s\n" "no" >&6; }
3560fi
3561
3562
3563  test -n "$ac_ct_CC" && break
3564done
3565
3566  if test "x$ac_ct_CC" = x; then
3567    CC=""
3568  else
3569    case $cross_compiling:$ac_tool_warned in
3570yes:)
3571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3572printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573ac_tool_warned=yes ;;
3574esac
3575    CC=$ac_ct_CC
3576  fi
3577fi
3578
3579fi
3580if test -z "$CC"; then
3581  if test -n "$ac_tool_prefix"; then
3582  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3583set dummy ${ac_tool_prefix}clang; ac_word=$2
3584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585printf %s "checking for $ac_word... " >&6; }
3586if test ${ac_cv_prog_CC+y}
3587then :
3588  printf %s "(cached) " >&6
3589else $as_nop
3590  if test -n "$CC"; then
3591  ac_cv_prog_CC="$CC" # Let the user override the test.
3592else
3593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594for as_dir in $PATH
3595do
3596  IFS=$as_save_IFS
3597  case $as_dir in #(((
3598    '') as_dir=./ ;;
3599    */) ;;
3600    *) as_dir=$as_dir/ ;;
3601  esac
3602    for ac_exec_ext in '' $ac_executable_extensions; do
3603  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3604    ac_cv_prog_CC="${ac_tool_prefix}clang"
3605    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3606    break 2
3607  fi
3608done
3609  done
3610IFS=$as_save_IFS
3611
3612fi
3613fi
3614CC=$ac_cv_prog_CC
3615if test -n "$CC"; then
3616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617printf "%s\n" "$CC" >&6; }
3618else
3619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620printf "%s\n" "no" >&6; }
3621fi
3622
3623
3624fi
3625if test -z "$ac_cv_prog_CC"; then
3626  ac_ct_CC=$CC
3627  # Extract the first word of "clang", so it can be a program name with args.
3628set dummy clang; ac_word=$2
3629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630printf %s "checking for $ac_word... " >&6; }
3631if test ${ac_cv_prog_ac_ct_CC+y}
3632then :
3633  printf %s "(cached) " >&6
3634else $as_nop
3635  if test -n "$ac_ct_CC"; then
3636  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3637else
3638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639for as_dir in $PATH
3640do
3641  IFS=$as_save_IFS
3642  case $as_dir in #(((
3643    '') as_dir=./ ;;
3644    */) ;;
3645    *) as_dir=$as_dir/ ;;
3646  esac
3647    for ac_exec_ext in '' $ac_executable_extensions; do
3648  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3649    ac_cv_prog_ac_ct_CC="clang"
3650    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3651    break 2
3652  fi
3653done
3654  done
3655IFS=$as_save_IFS
3656
3657fi
3658fi
3659ac_ct_CC=$ac_cv_prog_ac_ct_CC
3660if test -n "$ac_ct_CC"; then
3661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3662printf "%s\n" "$ac_ct_CC" >&6; }
3663else
3664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665printf "%s\n" "no" >&6; }
3666fi
3667
3668  if test "x$ac_ct_CC" = x; then
3669    CC=""
3670  else
3671    case $cross_compiling:$ac_tool_warned in
3672yes:)
3673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3674printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3675ac_tool_warned=yes ;;
3676esac
3677    CC=$ac_ct_CC
3678  fi
3679else
3680  CC="$ac_cv_prog_CC"
3681fi
3682
3683fi
3684
3685
3686test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3688as_fn_error $? "no acceptable C compiler found in \$PATH
3689See \`config.log' for more details" "$LINENO" 5; }
3690
3691# Provide some information about the compiler.
3692printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3693set X $ac_compile
3694ac_compiler=$2
3695for ac_option in --version -v -V -qversion -version; do
3696  { { ac_try="$ac_compiler $ac_option >&5"
3697case "(($ac_try" in
3698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699  *) ac_try_echo=$ac_try;;
3700esac
3701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702printf "%s\n" "$ac_try_echo"; } >&5
3703  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3704  ac_status=$?
3705  if test -s conftest.err; then
3706    sed '10a\
3707... rest of stderr output deleted ...
3708         10q' conftest.err >conftest.er1
3709    cat conftest.er1 >&5
3710  fi
3711  rm -f conftest.er1 conftest.err
3712  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713  test $ac_status = 0; }
3714done
3715
3716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717/* end confdefs.h.  */
3718
3719int
3720main (void)
3721{
3722
3723  ;
3724  return 0;
3725}
3726_ACEOF
3727ac_clean_files_save=$ac_clean_files
3728ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3729# Try to create an executable without -o first, disregard a.out.
3730# It will help us diagnose broken compilers, and finding out an intuition
3731# of exeext.
3732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3733printf %s "checking whether the C compiler works... " >&6; }
3734ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3735
3736# The possible output files:
3737ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3738
3739ac_rmfiles=
3740for ac_file in $ac_files
3741do
3742  case $ac_file in
3743    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3744    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3745  esac
3746done
3747rm -f $ac_rmfiles
3748
3749if { { ac_try="$ac_link_default"
3750case "(($ac_try" in
3751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752  *) ac_try_echo=$ac_try;;
3753esac
3754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755printf "%s\n" "$ac_try_echo"; } >&5
3756  (eval "$ac_link_default") 2>&5
3757  ac_status=$?
3758  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759  test $ac_status = 0; }
3760then :
3761  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3762# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3763# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3764# so that the user can short-circuit this test for compilers unknown to
3765# Autoconf.
3766for ac_file in $ac_files ''
3767do
3768  test -f "$ac_file" || continue
3769  case $ac_file in
3770    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3771	;;
3772    [ab].out )
3773	# We found the default executable, but exeext='' is most
3774	# certainly right.
3775	break;;
3776    *.* )
3777	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3778	then :; else
3779	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3780	fi
3781	# We set ac_cv_exeext here because the later test for it is not
3782	# safe: cross compilers may not add the suffix if given an `-o'
3783	# argument, so we may need to know it at that point already.
3784	# Even if this section looks crufty: it has the advantage of
3785	# actually working.
3786	break;;
3787    * )
3788	break;;
3789  esac
3790done
3791test "$ac_cv_exeext" = no && ac_cv_exeext=
3792
3793else $as_nop
3794  ac_file=''
3795fi
3796if test -z "$ac_file"
3797then :
3798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799printf "%s\n" "no" >&6; }
3800printf "%s\n" "$as_me: failed program was:" >&5
3801sed 's/^/| /' conftest.$ac_ext >&5
3802
3803{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3805as_fn_error 77 "C compiler cannot create executables
3806See \`config.log' for more details" "$LINENO" 5; }
3807else $as_nop
3808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3809printf "%s\n" "yes" >&6; }
3810fi
3811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3812printf %s "checking for C compiler default output file name... " >&6; }
3813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3814printf "%s\n" "$ac_file" >&6; }
3815ac_exeext=$ac_cv_exeext
3816
3817rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3818ac_clean_files=$ac_clean_files_save
3819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3820printf %s "checking for suffix of executables... " >&6; }
3821if { { ac_try="$ac_link"
3822case "(($ac_try" in
3823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824  *) ac_try_echo=$ac_try;;
3825esac
3826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827printf "%s\n" "$ac_try_echo"; } >&5
3828  (eval "$ac_link") 2>&5
3829  ac_status=$?
3830  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831  test $ac_status = 0; }
3832then :
3833  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3834# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3835# work properly (i.e., refer to `conftest.exe'), while it won't with
3836# `rm'.
3837for ac_file in conftest.exe conftest conftest.*; do
3838  test -f "$ac_file" || continue
3839  case $ac_file in
3840    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3842	  break;;
3843    * ) break;;
3844  esac
3845done
3846else $as_nop
3847  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3849as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3850See \`config.log' for more details" "$LINENO" 5; }
3851fi
3852rm -f conftest conftest$ac_cv_exeext
3853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3854printf "%s\n" "$ac_cv_exeext" >&6; }
3855
3856rm -f conftest.$ac_ext
3857EXEEXT=$ac_cv_exeext
3858ac_exeext=$EXEEXT
3859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861#include <stdio.h>
3862int
3863main (void)
3864{
3865FILE *f = fopen ("conftest.out", "w");
3866 return ferror (f) || fclose (f) != 0;
3867
3868  ;
3869  return 0;
3870}
3871_ACEOF
3872ac_clean_files="$ac_clean_files conftest.out"
3873# Check that the compiler produces executables we can run.  If not, either
3874# the compiler is broken, or we cross compile.
3875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3876printf %s "checking whether we are cross compiling... " >&6; }
3877if test "$cross_compiling" != yes; then
3878  { { ac_try="$ac_link"
3879case "(($ac_try" in
3880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881  *) ac_try_echo=$ac_try;;
3882esac
3883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884printf "%s\n" "$ac_try_echo"; } >&5
3885  (eval "$ac_link") 2>&5
3886  ac_status=$?
3887  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888  test $ac_status = 0; }
3889  if { ac_try='./conftest$ac_cv_exeext'
3890  { { case "(($ac_try" in
3891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892  *) ac_try_echo=$ac_try;;
3893esac
3894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895printf "%s\n" "$ac_try_echo"; } >&5
3896  (eval "$ac_try") 2>&5
3897  ac_status=$?
3898  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899  test $ac_status = 0; }; }; then
3900    cross_compiling=no
3901  else
3902    if test "$cross_compiling" = maybe; then
3903	cross_compiling=yes
3904    else
3905	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3907as_fn_error 77 "cannot run C compiled programs.
3908If you meant to cross compile, use \`--host'.
3909See \`config.log' for more details" "$LINENO" 5; }
3910    fi
3911  fi
3912fi
3913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3914printf "%s\n" "$cross_compiling" >&6; }
3915
3916rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3917ac_clean_files=$ac_clean_files_save
3918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3919printf %s "checking for suffix of object files... " >&6; }
3920if test ${ac_cv_objext+y}
3921then :
3922  printf %s "(cached) " >&6
3923else $as_nop
3924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925/* end confdefs.h.  */
3926
3927int
3928main (void)
3929{
3930
3931  ;
3932  return 0;
3933}
3934_ACEOF
3935rm -f conftest.o conftest.obj
3936if { { ac_try="$ac_compile"
3937case "(($ac_try" in
3938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939  *) ac_try_echo=$ac_try;;
3940esac
3941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942printf "%s\n" "$ac_try_echo"; } >&5
3943  (eval "$ac_compile") 2>&5
3944  ac_status=$?
3945  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946  test $ac_status = 0; }
3947then :
3948  for ac_file in conftest.o conftest.obj conftest.*; do
3949  test -f "$ac_file" || continue;
3950  case $ac_file in
3951    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3952    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3953       break;;
3954  esac
3955done
3956else $as_nop
3957  printf "%s\n" "$as_me: failed program was:" >&5
3958sed 's/^/| /' conftest.$ac_ext >&5
3959
3960{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3962as_fn_error $? "cannot compute suffix of object files: cannot compile
3963See \`config.log' for more details" "$LINENO" 5; }
3964fi
3965rm -f conftest.$ac_cv_objext conftest.$ac_ext
3966fi
3967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3968printf "%s\n" "$ac_cv_objext" >&6; }
3969OBJEXT=$ac_cv_objext
3970ac_objext=$OBJEXT
3971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3972printf %s "checking whether the compiler supports GNU C... " >&6; }
3973if test ${ac_cv_c_compiler_gnu+y}
3974then :
3975  printf %s "(cached) " >&6
3976else $as_nop
3977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978/* end confdefs.h.  */
3979
3980int
3981main (void)
3982{
3983#ifndef __GNUC__
3984       choke me
3985#endif
3986
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991if ac_fn_c_try_compile "$LINENO"
3992then :
3993  ac_compiler_gnu=yes
3994else $as_nop
3995  ac_compiler_gnu=no
3996fi
3997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3998ac_cv_c_compiler_gnu=$ac_compiler_gnu
3999
4000fi
4001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4002printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4003ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004
4005if test $ac_compiler_gnu = yes; then
4006  GCC=yes
4007else
4008  GCC=
4009fi
4010ac_test_CFLAGS=${CFLAGS+y}
4011ac_save_CFLAGS=$CFLAGS
4012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4013printf %s "checking whether $CC accepts -g... " >&6; }
4014if test ${ac_cv_prog_cc_g+y}
4015then :
4016  printf %s "(cached) " >&6
4017else $as_nop
4018  ac_save_c_werror_flag=$ac_c_werror_flag
4019   ac_c_werror_flag=yes
4020   ac_cv_prog_cc_g=no
4021   CFLAGS="-g"
4022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023/* end confdefs.h.  */
4024
4025int
4026main (void)
4027{
4028
4029  ;
4030  return 0;
4031}
4032_ACEOF
4033if ac_fn_c_try_compile "$LINENO"
4034then :
4035  ac_cv_prog_cc_g=yes
4036else $as_nop
4037  CFLAGS=""
4038      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039/* end confdefs.h.  */
4040
4041int
4042main (void)
4043{
4044
4045  ;
4046  return 0;
4047}
4048_ACEOF
4049if ac_fn_c_try_compile "$LINENO"
4050then :
4051
4052else $as_nop
4053  ac_c_werror_flag=$ac_save_c_werror_flag
4054	 CFLAGS="-g"
4055	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057
4058int
4059main (void)
4060{
4061
4062  ;
4063  return 0;
4064}
4065_ACEOF
4066if ac_fn_c_try_compile "$LINENO"
4067then :
4068  ac_cv_prog_cc_g=yes
4069fi
4070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4071fi
4072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4073fi
4074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4075   ac_c_werror_flag=$ac_save_c_werror_flag
4076fi
4077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4078printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4079if test $ac_test_CFLAGS; then
4080  CFLAGS=$ac_save_CFLAGS
4081elif test $ac_cv_prog_cc_g = yes; then
4082  if test "$GCC" = yes; then
4083    CFLAGS="-g -O2"
4084  else
4085    CFLAGS="-g"
4086  fi
4087else
4088  if test "$GCC" = yes; then
4089    CFLAGS="-O2"
4090  else
4091    CFLAGS=
4092  fi
4093fi
4094ac_prog_cc_stdc=no
4095if test x$ac_prog_cc_stdc = xno
4096then :
4097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4098printf %s "checking for $CC option to enable C11 features... " >&6; }
4099if test ${ac_cv_prog_cc_c11+y}
4100then :
4101  printf %s "(cached) " >&6
4102else $as_nop
4103  ac_cv_prog_cc_c11=no
4104ac_save_CC=$CC
4105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106/* end confdefs.h.  */
4107$ac_c_conftest_c11_program
4108_ACEOF
4109for ac_arg in '' -std=gnu11
4110do
4111  CC="$ac_save_CC $ac_arg"
4112  if ac_fn_c_try_compile "$LINENO"
4113then :
4114  ac_cv_prog_cc_c11=$ac_arg
4115fi
4116rm -f core conftest.err conftest.$ac_objext conftest.beam
4117  test "x$ac_cv_prog_cc_c11" != "xno" && break
4118done
4119rm -f conftest.$ac_ext
4120CC=$ac_save_CC
4121fi
4122
4123if test "x$ac_cv_prog_cc_c11" = xno
4124then :
4125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4126printf "%s\n" "unsupported" >&6; }
4127else $as_nop
4128  if test "x$ac_cv_prog_cc_c11" = x
4129then :
4130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4131printf "%s\n" "none needed" >&6; }
4132else $as_nop
4133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4134printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4135     CC="$CC $ac_cv_prog_cc_c11"
4136fi
4137  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4138  ac_prog_cc_stdc=c11
4139fi
4140fi
4141if test x$ac_prog_cc_stdc = xno
4142then :
4143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4144printf %s "checking for $CC option to enable C99 features... " >&6; }
4145if test ${ac_cv_prog_cc_c99+y}
4146then :
4147  printf %s "(cached) " >&6
4148else $as_nop
4149  ac_cv_prog_cc_c99=no
4150ac_save_CC=$CC
4151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152/* end confdefs.h.  */
4153$ac_c_conftest_c99_program
4154_ACEOF
4155for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4156do
4157  CC="$ac_save_CC $ac_arg"
4158  if ac_fn_c_try_compile "$LINENO"
4159then :
4160  ac_cv_prog_cc_c99=$ac_arg
4161fi
4162rm -f core conftest.err conftest.$ac_objext conftest.beam
4163  test "x$ac_cv_prog_cc_c99" != "xno" && break
4164done
4165rm -f conftest.$ac_ext
4166CC=$ac_save_CC
4167fi
4168
4169if test "x$ac_cv_prog_cc_c99" = xno
4170then :
4171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4172printf "%s\n" "unsupported" >&6; }
4173else $as_nop
4174  if test "x$ac_cv_prog_cc_c99" = x
4175then :
4176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4177printf "%s\n" "none needed" >&6; }
4178else $as_nop
4179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4180printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4181     CC="$CC $ac_cv_prog_cc_c99"
4182fi
4183  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4184  ac_prog_cc_stdc=c99
4185fi
4186fi
4187if test x$ac_prog_cc_stdc = xno
4188then :
4189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4190printf %s "checking for $CC option to enable C89 features... " >&6; }
4191if test ${ac_cv_prog_cc_c89+y}
4192then :
4193  printf %s "(cached) " >&6
4194else $as_nop
4195  ac_cv_prog_cc_c89=no
4196ac_save_CC=$CC
4197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198/* end confdefs.h.  */
4199$ac_c_conftest_c89_program
4200_ACEOF
4201for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4202do
4203  CC="$ac_save_CC $ac_arg"
4204  if ac_fn_c_try_compile "$LINENO"
4205then :
4206  ac_cv_prog_cc_c89=$ac_arg
4207fi
4208rm -f core conftest.err conftest.$ac_objext conftest.beam
4209  test "x$ac_cv_prog_cc_c89" != "xno" && break
4210done
4211rm -f conftest.$ac_ext
4212CC=$ac_save_CC
4213fi
4214
4215if test "x$ac_cv_prog_cc_c89" = xno
4216then :
4217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4218printf "%s\n" "unsupported" >&6; }
4219else $as_nop
4220  if test "x$ac_cv_prog_cc_c89" = x
4221then :
4222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223printf "%s\n" "none needed" >&6; }
4224else $as_nop
4225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4226printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4227     CC="$CC $ac_cv_prog_cc_c89"
4228fi
4229  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4230  ac_prog_cc_stdc=c89
4231fi
4232fi
4233
4234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
4241  ac_ext=c
4242ac_cpp='$CPP $CPPFLAGS'
4243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4247printf %s "checking whether $CC understands -c and -o together... " >&6; }
4248if test ${am_cv_prog_cc_c_o+y}
4249then :
4250  printf %s "(cached) " >&6
4251else $as_nop
4252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253/* end confdefs.h.  */
4254
4255int
4256main (void)
4257{
4258
4259  ;
4260  return 0;
4261}
4262_ACEOF
4263  # Make sure it works both with $CC and with simple cc.
4264  # Following AC_PROG_CC_C_O, we do the test twice because some
4265  # compilers refuse to overwrite an existing .o file with -o,
4266  # though they will create one.
4267  am_cv_prog_cc_c_o=yes
4268  for am_i in 1 2; do
4269    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4270   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } \
4274         && test -f conftest2.$ac_objext; then
4275      : OK
4276    else
4277      am_cv_prog_cc_c_o=no
4278      break
4279    fi
4280  done
4281  rm -f core conftest*
4282  unset am_i
4283fi
4284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4285printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4286if test "$am_cv_prog_cc_c_o" != yes; then
4287   # Losing compiler, so override with the script.
4288   # FIXME: It is wrong to rewrite CC.
4289   # But if we don't then we get into trouble of one sort or another.
4290   # A longer-term fix would be to have automake use am__CC in this case,
4291   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4292   CC="$am_aux_dir/compile $CC"
4293fi
4294ac_ext=c
4295ac_cpp='$CPP $CPPFLAGS'
4296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299
4300
4301depcc="$CC"   am_compiler_list=
4302
4303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4304printf %s "checking dependency style of $depcc... " >&6; }
4305if test ${am_cv_CC_dependencies_compiler_type+y}
4306then :
4307  printf %s "(cached) " >&6
4308else $as_nop
4309  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4310  # We make a subdir and do the tests there.  Otherwise we can end up
4311  # making bogus files that we don't know about and never remove.  For
4312  # instance it was reported that on HP-UX the gcc test will end up
4313  # making a dummy file named 'D' -- because '-MD' means "put the output
4314  # in D".
4315  rm -rf conftest.dir
4316  mkdir conftest.dir
4317  # Copy depcomp to subdir because otherwise we won't find it if we're
4318  # using a relative directory.
4319  cp "$am_depcomp" conftest.dir
4320  cd conftest.dir
4321  # We will build objects and dependencies in a subdirectory because
4322  # it helps to detect inapplicable dependency modes.  For instance
4323  # both Tru64's cc and ICC support -MD to output dependencies as a
4324  # side effect of compilation, but ICC will put the dependencies in
4325  # the current directory while Tru64 will put them in the object
4326  # directory.
4327  mkdir sub
4328
4329  am_cv_CC_dependencies_compiler_type=none
4330  if test "$am_compiler_list" = ""; then
4331     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4332  fi
4333  am__universal=false
4334  case " $depcc " in #(
4335     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4336     esac
4337
4338  for depmode in $am_compiler_list; do
4339    # Setup a source with many dependencies, because some compilers
4340    # like to wrap large dependency lists on column 80 (with \), and
4341    # we should not choose a depcomp mode which is confused by this.
4342    #
4343    # We need to recreate these files for each test, as the compiler may
4344    # overwrite some of them when testing with obscure command lines.
4345    # This happens at least with the AIX C compiler.
4346    : > sub/conftest.c
4347    for i in 1 2 3 4 5 6; do
4348      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4349      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4350      # Solaris 10 /bin/sh.
4351      echo '/* dummy */' > sub/conftst$i.h
4352    done
4353    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4354
4355    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4356    # mode.  It turns out that the SunPro C++ compiler does not properly
4357    # handle '-M -o', and we need to detect this.  Also, some Intel
4358    # versions had trouble with output in subdirs.
4359    am__obj=sub/conftest.${OBJEXT-o}
4360    am__minus_obj="-o $am__obj"
4361    case $depmode in
4362    gcc)
4363      # This depmode causes a compiler race in universal mode.
4364      test "$am__universal" = false || continue
4365      ;;
4366    nosideeffect)
4367      # After this tag, mechanisms are not by side-effect, so they'll
4368      # only be used when explicitly requested.
4369      if test "x$enable_dependency_tracking" = xyes; then
4370	continue
4371      else
4372	break
4373      fi
4374      ;;
4375    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4376      # This compiler won't grok '-c -o', but also, the minuso test has
4377      # not run yet.  These depmodes are late enough in the game, and
4378      # so weak that their functioning should not be impacted.
4379      am__obj=conftest.${OBJEXT-o}
4380      am__minus_obj=
4381      ;;
4382    none) break ;;
4383    esac
4384    if depmode=$depmode \
4385       source=sub/conftest.c object=$am__obj \
4386       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4387       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4388         >/dev/null 2>conftest.err &&
4389       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4390       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4391       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4392       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4393      # icc doesn't choke on unknown options, it will just issue warnings
4394      # or remarks (even with -Werror).  So we grep stderr for any message
4395      # that says an option was ignored or not supported.
4396      # When given -MP, icc 7.0 and 7.1 complain thusly:
4397      #   icc: Command line warning: ignoring option '-M'; no argument required
4398      # The diagnosis changed in icc 8.0:
4399      #   icc: Command line remark: option '-MP' not supported
4400      if (grep 'ignoring option' conftest.err ||
4401          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4402        am_cv_CC_dependencies_compiler_type=$depmode
4403        break
4404      fi
4405    fi
4406  done
4407
4408  cd ..
4409  rm -rf conftest.dir
4410else
4411  am_cv_CC_dependencies_compiler_type=none
4412fi
4413
4414fi
4415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4416printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4417CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4418
4419 if
4420  test "x$enable_dependency_tracking" != xno \
4421  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4422  am__fastdepCC_TRUE=
4423  am__fastdepCC_FALSE='#'
4424else
4425  am__fastdepCC_TRUE='#'
4426  am__fastdepCC_FALSE=
4427fi
4428
4429
4430
4431
4432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4433printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4434if test ${ac_cv_c_undeclared_builtin_options+y}
4435then :
4436  printf %s "(cached) " >&6
4437else $as_nop
4438  ac_save_CFLAGS=$CFLAGS
4439   ac_cv_c_undeclared_builtin_options='cannot detect'
4440   for ac_arg in '' -fno-builtin; do
4441     CFLAGS="$ac_save_CFLAGS $ac_arg"
4442     # This test program should *not* compile successfully.
4443     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h.  */
4445
4446int
4447main (void)
4448{
4449(void) strchr;
4450  ;
4451  return 0;
4452}
4453_ACEOF
4454if ac_fn_c_try_compile "$LINENO"
4455then :
4456
4457else $as_nop
4458  # This test program should compile successfully.
4459        # No library function is consistently available on
4460        # freestanding implementations, so test against a dummy
4461        # declaration.  Include always-available headers on the
4462        # off chance that they somehow elicit warnings.
4463        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464/* end confdefs.h.  */
4465#include <float.h>
4466#include <limits.h>
4467#include <stdarg.h>
4468#include <stddef.h>
4469extern void ac_decl (int, char *);
4470
4471int
4472main (void)
4473{
4474(void) ac_decl (0, (char *) 0);
4475  (void) ac_decl;
4476
4477  ;
4478  return 0;
4479}
4480_ACEOF
4481if ac_fn_c_try_compile "$LINENO"
4482then :
4483  if test x"$ac_arg" = x
4484then :
4485  ac_cv_c_undeclared_builtin_options='none needed'
4486else $as_nop
4487  ac_cv_c_undeclared_builtin_options=$ac_arg
4488fi
4489          break
4490fi
4491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4492fi
4493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4494    done
4495    CFLAGS=$ac_save_CFLAGS
4496
4497fi
4498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4499printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4500  case $ac_cv_c_undeclared_builtin_options in #(
4501  'cannot detect') :
4502    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4503printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4504as_fn_error $? "cannot make $CC report undeclared builtins
4505See \`config.log' for more details" "$LINENO" 5; } ;; #(
4506  'none needed') :
4507    ac_c_undeclared_builtin_options='' ;; #(
4508  *) :
4509    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4510esac
4511
4512ac_header= ac_cache=
4513for ac_item in $ac_header_c_list
4514do
4515  if test $ac_cache; then
4516    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4517    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4518      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4519    fi
4520    ac_header= ac_cache=
4521  elif test $ac_header; then
4522    ac_cache=$ac_item
4523  else
4524    ac_header=$ac_item
4525  fi
4526done
4527
4528
4529
4530
4531
4532
4533
4534
4535if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4536then :
4537
4538printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4539
4540fi
4541
4542
4543
4544
4545ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4546if test "x$ac_cv_have_decl___clang__" = xyes
4547then :
4548  CLANGCC="yes"
4549else $as_nop
4550  CLANGCC="no"
4551fi
4552ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4553if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4554then :
4555  INTELCC="yes"
4556else $as_nop
4557  INTELCC="no"
4558fi
4559ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4560if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4561then :
4562  SUNCC="yes"
4563else $as_nop
4564  SUNCC="no"
4565fi
4566
4567
4568
4569
4570
4571
4572
4573
4574if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4575	if test -n "$ac_tool_prefix"; then
4576  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4577set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579printf %s "checking for $ac_word... " >&6; }
4580if test ${ac_cv_path_PKG_CONFIG+y}
4581then :
4582  printf %s "(cached) " >&6
4583else $as_nop
4584  case $PKG_CONFIG in
4585  [\\/]* | ?:[\\/]*)
4586  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4587  ;;
4588  *)
4589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH
4591do
4592  IFS=$as_save_IFS
4593  case $as_dir in #(((
4594    '') as_dir=./ ;;
4595    */) ;;
4596    *) as_dir=$as_dir/ ;;
4597  esac
4598    for ac_exec_ext in '' $ac_executable_extensions; do
4599  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4600    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4601    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4602    break 2
4603  fi
4604done
4605  done
4606IFS=$as_save_IFS
4607
4608  ;;
4609esac
4610fi
4611PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4612if test -n "$PKG_CONFIG"; then
4613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4614printf "%s\n" "$PKG_CONFIG" >&6; }
4615else
4616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617printf "%s\n" "no" >&6; }
4618fi
4619
4620
4621fi
4622if test -z "$ac_cv_path_PKG_CONFIG"; then
4623  ac_pt_PKG_CONFIG=$PKG_CONFIG
4624  # Extract the first word of "pkg-config", so it can be a program name with args.
4625set dummy pkg-config; ac_word=$2
4626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627printf %s "checking for $ac_word... " >&6; }
4628if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4629then :
4630  printf %s "(cached) " >&6
4631else $as_nop
4632  case $ac_pt_PKG_CONFIG in
4633  [\\/]* | ?:[\\/]*)
4634  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4635  ;;
4636  *)
4637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640  IFS=$as_save_IFS
4641  case $as_dir in #(((
4642    '') as_dir=./ ;;
4643    */) ;;
4644    *) as_dir=$as_dir/ ;;
4645  esac
4646    for ac_exec_ext in '' $ac_executable_extensions; do
4647  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4648    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4649    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4650    break 2
4651  fi
4652done
4653  done
4654IFS=$as_save_IFS
4655
4656  ;;
4657esac
4658fi
4659ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4660if test -n "$ac_pt_PKG_CONFIG"; then
4661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4662printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4663else
4664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665printf "%s\n" "no" >&6; }
4666fi
4667
4668  if test "x$ac_pt_PKG_CONFIG" = x; then
4669    PKG_CONFIG=""
4670  else
4671    case $cross_compiling:$ac_tool_warned in
4672yes:)
4673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675ac_tool_warned=yes ;;
4676esac
4677    PKG_CONFIG=$ac_pt_PKG_CONFIG
4678  fi
4679else
4680  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4681fi
4682
4683fi
4684if test -n "$PKG_CONFIG"; then
4685	_pkg_min_version=0.9.0
4686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4687printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4688	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4690printf "%s\n" "yes" >&6; }
4691	else
4692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693printf "%s\n" "no" >&6; }
4694		PKG_CONFIG=""
4695	fi
4696fi
4697
4698
4699  # Make sure we can run config.sub.
4700$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4701  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4702
4703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4704printf %s "checking build system type... " >&6; }
4705if test ${ac_cv_build+y}
4706then :
4707  printf %s "(cached) " >&6
4708else $as_nop
4709  ac_build_alias=$build_alias
4710test "x$ac_build_alias" = x &&
4711  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4712test "x$ac_build_alias" = x &&
4713  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4714ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4715  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4716
4717fi
4718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4719printf "%s\n" "$ac_cv_build" >&6; }
4720case $ac_cv_build in
4721*-*-*) ;;
4722*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4723esac
4724build=$ac_cv_build
4725ac_save_IFS=$IFS; IFS='-'
4726set x $ac_cv_build
4727shift
4728build_cpu=$1
4729build_vendor=$2
4730shift; shift
4731# Remember, the first character of IFS is used to create $*,
4732# except with old shells:
4733build_os=$*
4734IFS=$ac_save_IFS
4735case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4736
4737
4738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4739printf %s "checking host system type... " >&6; }
4740if test ${ac_cv_host+y}
4741then :
4742  printf %s "(cached) " >&6
4743else $as_nop
4744  if test "x$host_alias" = x; then
4745  ac_cv_host=$ac_cv_build
4746else
4747  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4748    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4749fi
4750
4751fi
4752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4753printf "%s\n" "$ac_cv_host" >&6; }
4754case $ac_cv_host in
4755*-*-*) ;;
4756*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4757esac
4758host=$ac_cv_host
4759ac_save_IFS=$IFS; IFS='-'
4760set x $ac_cv_host
4761shift
4762host_cpu=$1
4763host_vendor=$2
4764shift; shift
4765# Remember, the first character of IFS is used to create $*,
4766# except with old shells:
4767host_os=$*
4768IFS=$ac_save_IFS
4769case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4770
4771
4772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4773printf %s "checking for a sed that does not truncate output... " >&6; }
4774if test ${ac_cv_path_SED+y}
4775then :
4776  printf %s "(cached) " >&6
4777else $as_nop
4778            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4779     for ac_i in 1 2 3 4 5 6 7; do
4780       ac_script="$ac_script$as_nl$ac_script"
4781     done
4782     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4783     { ac_script=; unset ac_script;}
4784     if test -z "$SED"; then
4785  ac_path_SED_found=false
4786  # Loop through the user's path and test for each of PROGNAME-LIST
4787  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790  IFS=$as_save_IFS
4791  case $as_dir in #(((
4792    '') as_dir=./ ;;
4793    */) ;;
4794    *) as_dir=$as_dir/ ;;
4795  esac
4796    for ac_prog in sed gsed
4797   do
4798    for ac_exec_ext in '' $ac_executable_extensions; do
4799      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4800      as_fn_executable_p "$ac_path_SED" || continue
4801# Check for GNU ac_path_SED and select it if it is found.
4802  # Check for GNU $ac_path_SED
4803case `"$ac_path_SED" --version 2>&1` in
4804*GNU*)
4805  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4806*)
4807  ac_count=0
4808  printf %s 0123456789 >"conftest.in"
4809  while :
4810  do
4811    cat "conftest.in" "conftest.in" >"conftest.tmp"
4812    mv "conftest.tmp" "conftest.in"
4813    cp "conftest.in" "conftest.nl"
4814    printf "%s\n" '' >> "conftest.nl"
4815    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4816    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4817    as_fn_arith $ac_count + 1 && ac_count=$as_val
4818    if test $ac_count -gt ${ac_path_SED_max-0}; then
4819      # Best one so far, save it but keep looking for a better one
4820      ac_cv_path_SED="$ac_path_SED"
4821      ac_path_SED_max=$ac_count
4822    fi
4823    # 10*(2^10) chars as input seems more than enough
4824    test $ac_count -gt 10 && break
4825  done
4826  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4827esac
4828
4829      $ac_path_SED_found && break 3
4830    done
4831  done
4832  done
4833IFS=$as_save_IFS
4834  if test -z "$ac_cv_path_SED"; then
4835    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4836  fi
4837else
4838  ac_cv_path_SED=$SED
4839fi
4840
4841fi
4842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4843printf "%s\n" "$ac_cv_path_SED" >&6; }
4844 SED="$ac_cv_path_SED"
4845  rm -f conftest.sed
4846
4847
4848
4849
4850
4851
4852# Check whether --enable-selective-werror was given.
4853if test ${enable_selective_werror+y}
4854then :
4855  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4856else $as_nop
4857  SELECTIVE_WERROR=yes
4858fi
4859
4860
4861
4862
4863
4864# -v is too short to test reliably with XORG_TESTSET_CFLAG
4865if test "x$SUNCC" = "xyes"; then
4866    BASE_CFLAGS="-v"
4867else
4868    BASE_CFLAGS=""
4869fi
4870
4871# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885xorg_testset_save_CFLAGS="$CFLAGS"
4886
4887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4888	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4889	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4890printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4891if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4892then :
4893  printf %s "(cached) " >&6
4894else $as_nop
4895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h.  */
4897int i;
4898_ACEOF
4899if ac_fn_c_try_compile "$LINENO"
4900then :
4901  xorg_cv_cc_flag_unknown_warning_option=yes
4902else $as_nop
4903  xorg_cv_cc_flag_unknown_warning_option=no
4904fi
4905rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4906fi
4907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4908printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4909	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4910	CFLAGS="$xorg_testset_save_CFLAGS"
4911fi
4912
4913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4914	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4915		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4916	fi
4917	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4918	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4919printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4920if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4921then :
4922  printf %s "(cached) " >&6
4923else $as_nop
4924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925/* end confdefs.h.  */
4926int i;
4927_ACEOF
4928if ac_fn_c_try_compile "$LINENO"
4929then :
4930  xorg_cv_cc_flag_unused_command_line_argument=yes
4931else $as_nop
4932  xorg_cv_cc_flag_unused_command_line_argument=no
4933fi
4934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4935fi
4936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4937printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4939	CFLAGS="$xorg_testset_save_CFLAGS"
4940fi
4941
4942found="no"
4943
4944	if test $found = "no" ; then
4945		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4947		fi
4948
4949		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4951		fi
4952
4953		CFLAGS="$CFLAGS -Wall"
4954
4955		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4956printf %s "checking if $CC supports -Wall... " >&6; }
4957		cacheid=xorg_cv_cc_flag__Wall
4958		if eval test \${$cacheid+y}
4959then :
4960  printf %s "(cached) " >&6
4961else $as_nop
4962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963/* end confdefs.h.  */
4964int i;
4965int
4966main (void)
4967{
4968
4969  ;
4970  return 0;
4971}
4972_ACEOF
4973if ac_fn_c_try_link "$LINENO"
4974then :
4975  eval $cacheid=yes
4976else $as_nop
4977  eval $cacheid=no
4978fi
4979rm -f core conftest.err conftest.$ac_objext conftest.beam \
4980    conftest$ac_exeext conftest.$ac_ext
4981fi
4982
4983
4984		CFLAGS="$xorg_testset_save_CFLAGS"
4985
4986		eval supported=\$$cacheid
4987		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4988printf "%s\n" "$supported" >&6; }
4989		if test "$supported" = "yes" ; then
4990			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4991			found="yes"
4992		fi
4993	fi
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009xorg_testset_save_CFLAGS="$CFLAGS"
5010
5011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5014printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5015if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5016then :
5017  printf %s "(cached) " >&6
5018else $as_nop
5019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020/* end confdefs.h.  */
5021int i;
5022_ACEOF
5023if ac_fn_c_try_compile "$LINENO"
5024then :
5025  xorg_cv_cc_flag_unknown_warning_option=yes
5026else $as_nop
5027  xorg_cv_cc_flag_unknown_warning_option=no
5028fi
5029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5030fi
5031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5032printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5034	CFLAGS="$xorg_testset_save_CFLAGS"
5035fi
5036
5037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5040	fi
5041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5042	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5043printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5044if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5045then :
5046  printf %s "(cached) " >&6
5047else $as_nop
5048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049/* end confdefs.h.  */
5050int i;
5051_ACEOF
5052if ac_fn_c_try_compile "$LINENO"
5053then :
5054  xorg_cv_cc_flag_unused_command_line_argument=yes
5055else $as_nop
5056  xorg_cv_cc_flag_unused_command_line_argument=no
5057fi
5058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5059fi
5060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5061printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5063	CFLAGS="$xorg_testset_save_CFLAGS"
5064fi
5065
5066found="no"
5067
5068	if test $found = "no" ; then
5069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5071		fi
5072
5073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5075		fi
5076
5077		CFLAGS="$CFLAGS -Wpointer-arith"
5078
5079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5080printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5081		cacheid=xorg_cv_cc_flag__Wpointer_arith
5082		if eval test \${$cacheid+y}
5083then :
5084  printf %s "(cached) " >&6
5085else $as_nop
5086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h.  */
5088int i;
5089int
5090main (void)
5091{
5092
5093  ;
5094  return 0;
5095}
5096_ACEOF
5097if ac_fn_c_try_link "$LINENO"
5098then :
5099  eval $cacheid=yes
5100else $as_nop
5101  eval $cacheid=no
5102fi
5103rm -f core conftest.err conftest.$ac_objext conftest.beam \
5104    conftest$ac_exeext conftest.$ac_ext
5105fi
5106
5107
5108		CFLAGS="$xorg_testset_save_CFLAGS"
5109
5110		eval supported=\$$cacheid
5111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5112printf "%s\n" "$supported" >&6; }
5113		if test "$supported" = "yes" ; then
5114			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5115			found="yes"
5116		fi
5117	fi
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133xorg_testset_save_CFLAGS="$CFLAGS"
5134
5135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5136	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5138printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5139if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5140then :
5141  printf %s "(cached) " >&6
5142else $as_nop
5143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h.  */
5145int i;
5146_ACEOF
5147if ac_fn_c_try_compile "$LINENO"
5148then :
5149  xorg_cv_cc_flag_unknown_warning_option=yes
5150else $as_nop
5151  xorg_cv_cc_flag_unknown_warning_option=no
5152fi
5153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5154fi
5155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5156printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5158	CFLAGS="$xorg_testset_save_CFLAGS"
5159fi
5160
5161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5164	fi
5165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5167printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5168if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5169then :
5170  printf %s "(cached) " >&6
5171else $as_nop
5172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h.  */
5174int i;
5175_ACEOF
5176if ac_fn_c_try_compile "$LINENO"
5177then :
5178  xorg_cv_cc_flag_unused_command_line_argument=yes
5179else $as_nop
5180  xorg_cv_cc_flag_unused_command_line_argument=no
5181fi
5182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5183fi
5184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5185printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5186	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5187	CFLAGS="$xorg_testset_save_CFLAGS"
5188fi
5189
5190found="no"
5191
5192	if test $found = "no" ; then
5193		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5195		fi
5196
5197		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5199		fi
5200
5201		CFLAGS="$CFLAGS -Wmissing-declarations"
5202
5203		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5204printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5205		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5206		if eval test \${$cacheid+y}
5207then :
5208  printf %s "(cached) " >&6
5209else $as_nop
5210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211/* end confdefs.h.  */
5212int i;
5213int
5214main (void)
5215{
5216
5217  ;
5218  return 0;
5219}
5220_ACEOF
5221if ac_fn_c_try_link "$LINENO"
5222then :
5223  eval $cacheid=yes
5224else $as_nop
5225  eval $cacheid=no
5226fi
5227rm -f core conftest.err conftest.$ac_objext conftest.beam \
5228    conftest$ac_exeext conftest.$ac_ext
5229fi
5230
5231
5232		CFLAGS="$xorg_testset_save_CFLAGS"
5233
5234		eval supported=\$$cacheid
5235		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5236printf "%s\n" "$supported" >&6; }
5237		if test "$supported" = "yes" ; then
5238			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5239			found="yes"
5240		fi
5241	fi
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257xorg_testset_save_CFLAGS="$CFLAGS"
5258
5259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5260	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5261	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5262printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5263if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5264then :
5265  printf %s "(cached) " >&6
5266else $as_nop
5267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268/* end confdefs.h.  */
5269int i;
5270_ACEOF
5271if ac_fn_c_try_compile "$LINENO"
5272then :
5273  xorg_cv_cc_flag_unknown_warning_option=yes
5274else $as_nop
5275  xorg_cv_cc_flag_unknown_warning_option=no
5276fi
5277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5278fi
5279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5280printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5281	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5282	CFLAGS="$xorg_testset_save_CFLAGS"
5283fi
5284
5285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5286	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5287		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5288	fi
5289	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5290	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5291printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5292if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5293then :
5294  printf %s "(cached) " >&6
5295else $as_nop
5296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h.  */
5298int i;
5299_ACEOF
5300if ac_fn_c_try_compile "$LINENO"
5301then :
5302  xorg_cv_cc_flag_unused_command_line_argument=yes
5303else $as_nop
5304  xorg_cv_cc_flag_unused_command_line_argument=no
5305fi
5306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5307fi
5308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5309printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5310	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5311	CFLAGS="$xorg_testset_save_CFLAGS"
5312fi
5313
5314found="no"
5315
5316	if test $found = "no" ; then
5317		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5318			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5319		fi
5320
5321		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5322			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5323		fi
5324
5325		CFLAGS="$CFLAGS -Wformat=2"
5326
5327		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5328printf %s "checking if $CC supports -Wformat=2... " >&6; }
5329		cacheid=xorg_cv_cc_flag__Wformat_2
5330		if eval test \${$cacheid+y}
5331then :
5332  printf %s "(cached) " >&6
5333else $as_nop
5334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h.  */
5336int i;
5337int
5338main (void)
5339{
5340
5341  ;
5342  return 0;
5343}
5344_ACEOF
5345if ac_fn_c_try_link "$LINENO"
5346then :
5347  eval $cacheid=yes
5348else $as_nop
5349  eval $cacheid=no
5350fi
5351rm -f core conftest.err conftest.$ac_objext conftest.beam \
5352    conftest$ac_exeext conftest.$ac_ext
5353fi
5354
5355
5356		CFLAGS="$xorg_testset_save_CFLAGS"
5357
5358		eval supported=\$$cacheid
5359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5360printf "%s\n" "$supported" >&6; }
5361		if test "$supported" = "yes" ; then
5362			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5363			found="yes"
5364		fi
5365	fi
5366
5367	if test $found = "no" ; then
5368		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370		fi
5371
5372		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5374		fi
5375
5376		CFLAGS="$CFLAGS -Wformat"
5377
5378		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5379printf %s "checking if $CC supports -Wformat... " >&6; }
5380		cacheid=xorg_cv_cc_flag__Wformat
5381		if eval test \${$cacheid+y}
5382then :
5383  printf %s "(cached) " >&6
5384else $as_nop
5385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386/* end confdefs.h.  */
5387int i;
5388int
5389main (void)
5390{
5391
5392  ;
5393  return 0;
5394}
5395_ACEOF
5396if ac_fn_c_try_link "$LINENO"
5397then :
5398  eval $cacheid=yes
5399else $as_nop
5400  eval $cacheid=no
5401fi
5402rm -f core conftest.err conftest.$ac_objext conftest.beam \
5403    conftest$ac_exeext conftest.$ac_ext
5404fi
5405
5406
5407		CFLAGS="$xorg_testset_save_CFLAGS"
5408
5409		eval supported=\$$cacheid
5410		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5411printf "%s\n" "$supported" >&6; }
5412		if test "$supported" = "yes" ; then
5413			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5414			found="yes"
5415		fi
5416	fi
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434xorg_testset_save_CFLAGS="$CFLAGS"
5435
5436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5437	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5438	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5439printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5440if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5441then :
5442  printf %s "(cached) " >&6
5443else $as_nop
5444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445/* end confdefs.h.  */
5446int i;
5447_ACEOF
5448if ac_fn_c_try_compile "$LINENO"
5449then :
5450  xorg_cv_cc_flag_unknown_warning_option=yes
5451else $as_nop
5452  xorg_cv_cc_flag_unknown_warning_option=no
5453fi
5454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5455fi
5456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5457printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5459	CFLAGS="$xorg_testset_save_CFLAGS"
5460fi
5461
5462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5465	fi
5466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5467	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5468printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5469if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5470then :
5471  printf %s "(cached) " >&6
5472else $as_nop
5473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474/* end confdefs.h.  */
5475int i;
5476_ACEOF
5477if ac_fn_c_try_compile "$LINENO"
5478then :
5479  xorg_cv_cc_flag_unused_command_line_argument=yes
5480else $as_nop
5481  xorg_cv_cc_flag_unused_command_line_argument=no
5482fi
5483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5484fi
5485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5486printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5487	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5488	CFLAGS="$xorg_testset_save_CFLAGS"
5489fi
5490
5491found="no"
5492
5493	if test $found = "no" ; then
5494		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5496		fi
5497
5498		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5500		fi
5501
5502		CFLAGS="$CFLAGS -Wstrict-prototypes"
5503
5504		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5505printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5506		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5507		if eval test \${$cacheid+y}
5508then :
5509  printf %s "(cached) " >&6
5510else $as_nop
5511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512/* end confdefs.h.  */
5513int i;
5514int
5515main (void)
5516{
5517
5518  ;
5519  return 0;
5520}
5521_ACEOF
5522if ac_fn_c_try_link "$LINENO"
5523then :
5524  eval $cacheid=yes
5525else $as_nop
5526  eval $cacheid=no
5527fi
5528rm -f core conftest.err conftest.$ac_objext conftest.beam \
5529    conftest$ac_exeext conftest.$ac_ext
5530fi
5531
5532
5533		CFLAGS="$xorg_testset_save_CFLAGS"
5534
5535		eval supported=\$$cacheid
5536		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5537printf "%s\n" "$supported" >&6; }
5538		if test "$supported" = "yes" ; then
5539			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5540			found="yes"
5541		fi
5542	fi
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558xorg_testset_save_CFLAGS="$CFLAGS"
5559
5560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5561	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5562	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5563printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5564if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5565then :
5566  printf %s "(cached) " >&6
5567else $as_nop
5568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569/* end confdefs.h.  */
5570int i;
5571_ACEOF
5572if ac_fn_c_try_compile "$LINENO"
5573then :
5574  xorg_cv_cc_flag_unknown_warning_option=yes
5575else $as_nop
5576  xorg_cv_cc_flag_unknown_warning_option=no
5577fi
5578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5579fi
5580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5581printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5583	CFLAGS="$xorg_testset_save_CFLAGS"
5584fi
5585
5586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589	fi
5590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5591	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5592printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5593if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5594then :
5595  printf %s "(cached) " >&6
5596else $as_nop
5597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h.  */
5599int i;
5600_ACEOF
5601if ac_fn_c_try_compile "$LINENO"
5602then :
5603  xorg_cv_cc_flag_unused_command_line_argument=yes
5604else $as_nop
5605  xorg_cv_cc_flag_unused_command_line_argument=no
5606fi
5607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5608fi
5609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5610printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5611	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5612	CFLAGS="$xorg_testset_save_CFLAGS"
5613fi
5614
5615found="no"
5616
5617	if test $found = "no" ; then
5618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5620		fi
5621
5622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5624		fi
5625
5626		CFLAGS="$CFLAGS -Wmissing-prototypes"
5627
5628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5629printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5630		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5631		if eval test \${$cacheid+y}
5632then :
5633  printf %s "(cached) " >&6
5634else $as_nop
5635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h.  */
5637int i;
5638int
5639main (void)
5640{
5641
5642  ;
5643  return 0;
5644}
5645_ACEOF
5646if ac_fn_c_try_link "$LINENO"
5647then :
5648  eval $cacheid=yes
5649else $as_nop
5650  eval $cacheid=no
5651fi
5652rm -f core conftest.err conftest.$ac_objext conftest.beam \
5653    conftest$ac_exeext conftest.$ac_ext
5654fi
5655
5656
5657		CFLAGS="$xorg_testset_save_CFLAGS"
5658
5659		eval supported=\$$cacheid
5660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5661printf "%s\n" "$supported" >&6; }
5662		if test "$supported" = "yes" ; then
5663			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5664			found="yes"
5665		fi
5666	fi
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682xorg_testset_save_CFLAGS="$CFLAGS"
5683
5684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5685	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5687printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5688if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5689then :
5690  printf %s "(cached) " >&6
5691else $as_nop
5692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h.  */
5694int i;
5695_ACEOF
5696if ac_fn_c_try_compile "$LINENO"
5697then :
5698  xorg_cv_cc_flag_unknown_warning_option=yes
5699else $as_nop
5700  xorg_cv_cc_flag_unknown_warning_option=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5703fi
5704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5705printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5706	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5707	CFLAGS="$xorg_testset_save_CFLAGS"
5708fi
5709
5710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5711	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5712		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5713	fi
5714	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5715	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5716printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5717if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5718then :
5719  printf %s "(cached) " >&6
5720else $as_nop
5721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h.  */
5723int i;
5724_ACEOF
5725if ac_fn_c_try_compile "$LINENO"
5726then :
5727  xorg_cv_cc_flag_unused_command_line_argument=yes
5728else $as_nop
5729  xorg_cv_cc_flag_unused_command_line_argument=no
5730fi
5731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5732fi
5733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5734printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5736	CFLAGS="$xorg_testset_save_CFLAGS"
5737fi
5738
5739found="no"
5740
5741	if test $found = "no" ; then
5742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744		fi
5745
5746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5748		fi
5749
5750		CFLAGS="$CFLAGS -Wnested-externs"
5751
5752		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5753printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5754		cacheid=xorg_cv_cc_flag__Wnested_externs
5755		if eval test \${$cacheid+y}
5756then :
5757  printf %s "(cached) " >&6
5758else $as_nop
5759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761int i;
5762int
5763main (void)
5764{
5765
5766  ;
5767  return 0;
5768}
5769_ACEOF
5770if ac_fn_c_try_link "$LINENO"
5771then :
5772  eval $cacheid=yes
5773else $as_nop
5774  eval $cacheid=no
5775fi
5776rm -f core conftest.err conftest.$ac_objext conftest.beam \
5777    conftest$ac_exeext conftest.$ac_ext
5778fi
5779
5780
5781		CFLAGS="$xorg_testset_save_CFLAGS"
5782
5783		eval supported=\$$cacheid
5784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5785printf "%s\n" "$supported" >&6; }
5786		if test "$supported" = "yes" ; then
5787			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5788			found="yes"
5789		fi
5790	fi
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806xorg_testset_save_CFLAGS="$CFLAGS"
5807
5808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5809	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5811printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5812if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5813then :
5814  printf %s "(cached) " >&6
5815else $as_nop
5816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817/* end confdefs.h.  */
5818int i;
5819_ACEOF
5820if ac_fn_c_try_compile "$LINENO"
5821then :
5822  xorg_cv_cc_flag_unknown_warning_option=yes
5823else $as_nop
5824  xorg_cv_cc_flag_unknown_warning_option=no
5825fi
5826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5827fi
5828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5829printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5830	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5831	CFLAGS="$xorg_testset_save_CFLAGS"
5832fi
5833
5834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5835	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5836		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5837	fi
5838	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5839	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5840printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5841if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5842then :
5843  printf %s "(cached) " >&6
5844else $as_nop
5845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846/* end confdefs.h.  */
5847int i;
5848_ACEOF
5849if ac_fn_c_try_compile "$LINENO"
5850then :
5851  xorg_cv_cc_flag_unused_command_line_argument=yes
5852else $as_nop
5853  xorg_cv_cc_flag_unused_command_line_argument=no
5854fi
5855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5856fi
5857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5858printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5859	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5860	CFLAGS="$xorg_testset_save_CFLAGS"
5861fi
5862
5863found="no"
5864
5865	if test $found = "no" ; then
5866		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5868		fi
5869
5870		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5872		fi
5873
5874		CFLAGS="$CFLAGS -Wbad-function-cast"
5875
5876		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5877printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5878		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5879		if eval test \${$cacheid+y}
5880then :
5881  printf %s "(cached) " >&6
5882else $as_nop
5883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884/* end confdefs.h.  */
5885int i;
5886int
5887main (void)
5888{
5889
5890  ;
5891  return 0;
5892}
5893_ACEOF
5894if ac_fn_c_try_link "$LINENO"
5895then :
5896  eval $cacheid=yes
5897else $as_nop
5898  eval $cacheid=no
5899fi
5900rm -f core conftest.err conftest.$ac_objext conftest.beam \
5901    conftest$ac_exeext conftest.$ac_ext
5902fi
5903
5904
5905		CFLAGS="$xorg_testset_save_CFLAGS"
5906
5907		eval supported=\$$cacheid
5908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5909printf "%s\n" "$supported" >&6; }
5910		if test "$supported" = "yes" ; then
5911			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5912			found="yes"
5913		fi
5914	fi
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930xorg_testset_save_CFLAGS="$CFLAGS"
5931
5932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5933	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5936if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5937then :
5938  printf %s "(cached) " >&6
5939else $as_nop
5940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h.  */
5942int i;
5943_ACEOF
5944if ac_fn_c_try_compile "$LINENO"
5945then :
5946  xorg_cv_cc_flag_unknown_warning_option=yes
5947else $as_nop
5948  xorg_cv_cc_flag_unknown_warning_option=no
5949fi
5950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5951fi
5952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5953printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5955	CFLAGS="$xorg_testset_save_CFLAGS"
5956fi
5957
5958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5961	fi
5962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5963	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5964printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5965if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5966then :
5967  printf %s "(cached) " >&6
5968else $as_nop
5969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970/* end confdefs.h.  */
5971int i;
5972_ACEOF
5973if ac_fn_c_try_compile "$LINENO"
5974then :
5975  xorg_cv_cc_flag_unused_command_line_argument=yes
5976else $as_nop
5977  xorg_cv_cc_flag_unused_command_line_argument=no
5978fi
5979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5980fi
5981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5982printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5984	CFLAGS="$xorg_testset_save_CFLAGS"
5985fi
5986
5987found="no"
5988
5989	if test $found = "no" ; then
5990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5992		fi
5993
5994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996		fi
5997
5998		CFLAGS="$CFLAGS -Wold-style-definition"
5999
6000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6001printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6002		cacheid=xorg_cv_cc_flag__Wold_style_definition
6003		if eval test \${$cacheid+y}
6004then :
6005  printf %s "(cached) " >&6
6006else $as_nop
6007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h.  */
6009int i;
6010int
6011main (void)
6012{
6013
6014  ;
6015  return 0;
6016}
6017_ACEOF
6018if ac_fn_c_try_link "$LINENO"
6019then :
6020  eval $cacheid=yes
6021else $as_nop
6022  eval $cacheid=no
6023fi
6024rm -f core conftest.err conftest.$ac_objext conftest.beam \
6025    conftest$ac_exeext conftest.$ac_ext
6026fi
6027
6028
6029		CFLAGS="$xorg_testset_save_CFLAGS"
6030
6031		eval supported=\$$cacheid
6032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6033printf "%s\n" "$supported" >&6; }
6034		if test "$supported" = "yes" ; then
6035			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6036			found="yes"
6037		fi
6038	fi
6039
6040	if test $found = "no" ; then
6041		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6042			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043		fi
6044
6045		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6046			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6047		fi
6048
6049		CFLAGS="$CFLAGS -fd"
6050
6051		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6052printf %s "checking if $CC supports -fd... " >&6; }
6053		cacheid=xorg_cv_cc_flag__fd
6054		if eval test \${$cacheid+y}
6055then :
6056  printf %s "(cached) " >&6
6057else $as_nop
6058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059/* end confdefs.h.  */
6060int i;
6061int
6062main (void)
6063{
6064
6065  ;
6066  return 0;
6067}
6068_ACEOF
6069if ac_fn_c_try_link "$LINENO"
6070then :
6071  eval $cacheid=yes
6072else $as_nop
6073  eval $cacheid=no
6074fi
6075rm -f core conftest.err conftest.$ac_objext conftest.beam \
6076    conftest$ac_exeext conftest.$ac_ext
6077fi
6078
6079
6080		CFLAGS="$xorg_testset_save_CFLAGS"
6081
6082		eval supported=\$$cacheid
6083		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6084printf "%s\n" "$supported" >&6; }
6085		if test "$supported" = "yes" ; then
6086			BASE_CFLAGS="$BASE_CFLAGS -fd"
6087			found="yes"
6088		fi
6089	fi
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105xorg_testset_save_CFLAGS="$CFLAGS"
6106
6107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6110printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6111if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6112then :
6113  printf %s "(cached) " >&6
6114else $as_nop
6115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h.  */
6117int i;
6118_ACEOF
6119if ac_fn_c_try_compile "$LINENO"
6120then :
6121  xorg_cv_cc_flag_unknown_warning_option=yes
6122else $as_nop
6123  xorg_cv_cc_flag_unknown_warning_option=no
6124fi
6125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6126fi
6127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6128printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6130	CFLAGS="$xorg_testset_save_CFLAGS"
6131fi
6132
6133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136	fi
6137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6139printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6140if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6141then :
6142  printf %s "(cached) " >&6
6143else $as_nop
6144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145/* end confdefs.h.  */
6146int i;
6147_ACEOF
6148if ac_fn_c_try_compile "$LINENO"
6149then :
6150  xorg_cv_cc_flag_unused_command_line_argument=yes
6151else $as_nop
6152  xorg_cv_cc_flag_unused_command_line_argument=no
6153fi
6154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6155fi
6156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6159	CFLAGS="$xorg_testset_save_CFLAGS"
6160fi
6161
6162found="no"
6163
6164	if test $found = "no" ; then
6165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6167		fi
6168
6169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6171		fi
6172
6173		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6174
6175		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6176printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6177		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6178		if eval test \${$cacheid+y}
6179then :
6180  printf %s "(cached) " >&6
6181else $as_nop
6182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h.  */
6184int i;
6185int
6186main (void)
6187{
6188
6189  ;
6190  return 0;
6191}
6192_ACEOF
6193if ac_fn_c_try_link "$LINENO"
6194then :
6195  eval $cacheid=yes
6196else $as_nop
6197  eval $cacheid=no
6198fi
6199rm -f core conftest.err conftest.$ac_objext conftest.beam \
6200    conftest$ac_exeext conftest.$ac_ext
6201fi
6202
6203
6204		CFLAGS="$xorg_testset_save_CFLAGS"
6205
6206		eval supported=\$$cacheid
6207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6208printf "%s\n" "$supported" >&6; }
6209		if test "$supported" = "yes" ; then
6210			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6211			found="yes"
6212		fi
6213	fi
6214
6215
6216
6217
6218
6219# This chunk adds additional warnings that could catch undesired effects.
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233xorg_testset_save_CFLAGS="$CFLAGS"
6234
6235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6239if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6240then :
6241  printf %s "(cached) " >&6
6242else $as_nop
6243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h.  */
6245int i;
6246_ACEOF
6247if ac_fn_c_try_compile "$LINENO"
6248then :
6249  xorg_cv_cc_flag_unknown_warning_option=yes
6250else $as_nop
6251  xorg_cv_cc_flag_unknown_warning_option=no
6252fi
6253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6254fi
6255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6257	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6258	CFLAGS="$xorg_testset_save_CFLAGS"
6259fi
6260
6261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6262	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6263		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264	fi
6265	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6268if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6269then :
6270  printf %s "(cached) " >&6
6271else $as_nop
6272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h.  */
6274int i;
6275_ACEOF
6276if ac_fn_c_try_compile "$LINENO"
6277then :
6278  xorg_cv_cc_flag_unused_command_line_argument=yes
6279else $as_nop
6280  xorg_cv_cc_flag_unused_command_line_argument=no
6281fi
6282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6283fi
6284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6287	CFLAGS="$xorg_testset_save_CFLAGS"
6288fi
6289
6290found="no"
6291
6292	if test $found = "no" ; then
6293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295		fi
6296
6297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6299		fi
6300
6301		CFLAGS="$CFLAGS -Wunused"
6302
6303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6304printf %s "checking if $CC supports -Wunused... " >&6; }
6305		cacheid=xorg_cv_cc_flag__Wunused
6306		if eval test \${$cacheid+y}
6307then :
6308  printf %s "(cached) " >&6
6309else $as_nop
6310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h.  */
6312int i;
6313int
6314main (void)
6315{
6316
6317  ;
6318  return 0;
6319}
6320_ACEOF
6321if ac_fn_c_try_link "$LINENO"
6322then :
6323  eval $cacheid=yes
6324else $as_nop
6325  eval $cacheid=no
6326fi
6327rm -f core conftest.err conftest.$ac_objext conftest.beam \
6328    conftest$ac_exeext conftest.$ac_ext
6329fi
6330
6331
6332		CFLAGS="$xorg_testset_save_CFLAGS"
6333
6334		eval supported=\$$cacheid
6335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6336printf "%s\n" "$supported" >&6; }
6337		if test "$supported" = "yes" ; then
6338			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6339			found="yes"
6340		fi
6341	fi
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357xorg_testset_save_CFLAGS="$CFLAGS"
6358
6359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6360	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6361	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6363if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6364then :
6365  printf %s "(cached) " >&6
6366else $as_nop
6367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368/* end confdefs.h.  */
6369int i;
6370_ACEOF
6371if ac_fn_c_try_compile "$LINENO"
6372then :
6373  xorg_cv_cc_flag_unknown_warning_option=yes
6374else $as_nop
6375  xorg_cv_cc_flag_unknown_warning_option=no
6376fi
6377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6378fi
6379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6382	CFLAGS="$xorg_testset_save_CFLAGS"
6383fi
6384
6385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6388	fi
6389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6392if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6393then :
6394  printf %s "(cached) " >&6
6395else $as_nop
6396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397/* end confdefs.h.  */
6398int i;
6399_ACEOF
6400if ac_fn_c_try_compile "$LINENO"
6401then :
6402  xorg_cv_cc_flag_unused_command_line_argument=yes
6403else $as_nop
6404  xorg_cv_cc_flag_unused_command_line_argument=no
6405fi
6406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 -Wuninitialized"
6426
6427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6428printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6429		cacheid=xorg_cv_cc_flag__Wuninitialized
6430		if eval test \${$cacheid+y}
6431then :
6432  printf %s "(cached) " >&6
6433else $as_nop
6434  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 $as_nop
6449  eval $cacheid=no
6450fi
6451rm -f core conftest.err conftest.$ac_objext conftest.beam \
6452    conftest$ac_exeext conftest.$ac_ext
6453fi
6454
6455
6456		CFLAGS="$xorg_testset_save_CFLAGS"
6457
6458		eval supported=\$$cacheid
6459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6460printf "%s\n" "$supported" >&6; }
6461		if test "$supported" = "yes" ; then
6462			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6463			found="yes"
6464		fi
6465	fi
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481xorg_testset_save_CFLAGS="$CFLAGS"
6482
6483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6487if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6488then :
6489  printf %s "(cached) " >&6
6490else $as_nop
6491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492/* end confdefs.h.  */
6493int i;
6494_ACEOF
6495if ac_fn_c_try_compile "$LINENO"
6496then :
6497  xorg_cv_cc_flag_unknown_warning_option=yes
6498else $as_nop
6499  xorg_cv_cc_flag_unknown_warning_option=no
6500fi
6501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6502fi
6503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6505	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6506	CFLAGS="$xorg_testset_save_CFLAGS"
6507fi
6508
6509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6510	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6511		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6512	fi
6513	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6514	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6516if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6517then :
6518  printf %s "(cached) " >&6
6519else $as_nop
6520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521/* end confdefs.h.  */
6522int i;
6523_ACEOF
6524if ac_fn_c_try_compile "$LINENO"
6525then :
6526  xorg_cv_cc_flag_unused_command_line_argument=yes
6527else $as_nop
6528  xorg_cv_cc_flag_unused_command_line_argument=no
6529fi
6530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6531fi
6532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6533printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6535	CFLAGS="$xorg_testset_save_CFLAGS"
6536fi
6537
6538found="no"
6539
6540	if test $found = "no" ; then
6541		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6543		fi
6544
6545		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6547		fi
6548
6549		CFLAGS="$CFLAGS -Wshadow"
6550
6551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6552printf %s "checking if $CC supports -Wshadow... " >&6; }
6553		cacheid=xorg_cv_cc_flag__Wshadow
6554		if eval test \${$cacheid+y}
6555then :
6556  printf %s "(cached) " >&6
6557else $as_nop
6558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559/* end confdefs.h.  */
6560int i;
6561int
6562main (void)
6563{
6564
6565  ;
6566  return 0;
6567}
6568_ACEOF
6569if ac_fn_c_try_link "$LINENO"
6570then :
6571  eval $cacheid=yes
6572else $as_nop
6573  eval $cacheid=no
6574fi
6575rm -f core conftest.err conftest.$ac_objext conftest.beam \
6576    conftest$ac_exeext conftest.$ac_ext
6577fi
6578
6579
6580		CFLAGS="$xorg_testset_save_CFLAGS"
6581
6582		eval supported=\$$cacheid
6583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6584printf "%s\n" "$supported" >&6; }
6585		if test "$supported" = "yes" ; then
6586			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6587			found="yes"
6588		fi
6589	fi
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605xorg_testset_save_CFLAGS="$CFLAGS"
6606
6607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6608	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6609	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6610printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6611if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6612then :
6613  printf %s "(cached) " >&6
6614else $as_nop
6615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616/* end confdefs.h.  */
6617int i;
6618_ACEOF
6619if ac_fn_c_try_compile "$LINENO"
6620then :
6621  xorg_cv_cc_flag_unknown_warning_option=yes
6622else $as_nop
6623  xorg_cv_cc_flag_unknown_warning_option=no
6624fi
6625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6626fi
6627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6628printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6629	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6630	CFLAGS="$xorg_testset_save_CFLAGS"
6631fi
6632
6633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6634	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6635		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6636	fi
6637	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6638	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6639printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6640if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6641then :
6642  printf %s "(cached) " >&6
6643else $as_nop
6644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645/* end confdefs.h.  */
6646int i;
6647_ACEOF
6648if ac_fn_c_try_compile "$LINENO"
6649then :
6650  xorg_cv_cc_flag_unused_command_line_argument=yes
6651else $as_nop
6652  xorg_cv_cc_flag_unused_command_line_argument=no
6653fi
6654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6655fi
6656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6657printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6658	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6659	CFLAGS="$xorg_testset_save_CFLAGS"
6660fi
6661
6662found="no"
6663
6664	if test $found = "no" ; then
6665		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6666			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6667		fi
6668
6669		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6670			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6671		fi
6672
6673		CFLAGS="$CFLAGS -Wmissing-noreturn"
6674
6675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6676printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6677		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6678		if eval test \${$cacheid+y}
6679then :
6680  printf %s "(cached) " >&6
6681else $as_nop
6682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h.  */
6684int i;
6685int
6686main (void)
6687{
6688
6689  ;
6690  return 0;
6691}
6692_ACEOF
6693if ac_fn_c_try_link "$LINENO"
6694then :
6695  eval $cacheid=yes
6696else $as_nop
6697  eval $cacheid=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.beam \
6700    conftest$ac_exeext conftest.$ac_ext
6701fi
6702
6703
6704		CFLAGS="$xorg_testset_save_CFLAGS"
6705
6706		eval supported=\$$cacheid
6707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6708printf "%s\n" "$supported" >&6; }
6709		if test "$supported" = "yes" ; then
6710			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6711			found="yes"
6712		fi
6713	fi
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729xorg_testset_save_CFLAGS="$CFLAGS"
6730
6731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6734printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6735if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6736then :
6737  printf %s "(cached) " >&6
6738else $as_nop
6739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740/* end confdefs.h.  */
6741int i;
6742_ACEOF
6743if ac_fn_c_try_compile "$LINENO"
6744then :
6745  xorg_cv_cc_flag_unknown_warning_option=yes
6746else $as_nop
6747  xorg_cv_cc_flag_unknown_warning_option=no
6748fi
6749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6750fi
6751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6752printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6753	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6754	CFLAGS="$xorg_testset_save_CFLAGS"
6755fi
6756
6757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6758	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6759		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6760	fi
6761	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6762	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6763printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6764if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6765then :
6766  printf %s "(cached) " >&6
6767else $as_nop
6768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769/* end confdefs.h.  */
6770int i;
6771_ACEOF
6772if ac_fn_c_try_compile "$LINENO"
6773then :
6774  xorg_cv_cc_flag_unused_command_line_argument=yes
6775else $as_nop
6776  xorg_cv_cc_flag_unused_command_line_argument=no
6777fi
6778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6779fi
6780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6781printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6783	CFLAGS="$xorg_testset_save_CFLAGS"
6784fi
6785
6786found="no"
6787
6788	if test $found = "no" ; then
6789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791		fi
6792
6793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6795		fi
6796
6797		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6798
6799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6800printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6801		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6802		if eval test \${$cacheid+y}
6803then :
6804  printf %s "(cached) " >&6
6805else $as_nop
6806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807/* end confdefs.h.  */
6808int i;
6809int
6810main (void)
6811{
6812
6813  ;
6814  return 0;
6815}
6816_ACEOF
6817if ac_fn_c_try_link "$LINENO"
6818then :
6819  eval $cacheid=yes
6820else $as_nop
6821  eval $cacheid=no
6822fi
6823rm -f core conftest.err conftest.$ac_objext conftest.beam \
6824    conftest$ac_exeext conftest.$ac_ext
6825fi
6826
6827
6828		CFLAGS="$xorg_testset_save_CFLAGS"
6829
6830		eval supported=\$$cacheid
6831		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6832printf "%s\n" "$supported" >&6; }
6833		if test "$supported" = "yes" ; then
6834			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6835			found="yes"
6836		fi
6837	fi
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853xorg_testset_save_CFLAGS="$CFLAGS"
6854
6855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6856	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6858printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6859if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6860then :
6861  printf %s "(cached) " >&6
6862else $as_nop
6863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864/* end confdefs.h.  */
6865int i;
6866_ACEOF
6867if ac_fn_c_try_compile "$LINENO"
6868then :
6869  xorg_cv_cc_flag_unknown_warning_option=yes
6870else $as_nop
6871  xorg_cv_cc_flag_unknown_warning_option=no
6872fi
6873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6874fi
6875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6876printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6877	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6878	CFLAGS="$xorg_testset_save_CFLAGS"
6879fi
6880
6881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6882	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6883		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6884	fi
6885	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6886	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6887printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6888if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6889then :
6890  printf %s "(cached) " >&6
6891else $as_nop
6892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893/* end confdefs.h.  */
6894int i;
6895_ACEOF
6896if ac_fn_c_try_compile "$LINENO"
6897then :
6898  xorg_cv_cc_flag_unused_command_line_argument=yes
6899else $as_nop
6900  xorg_cv_cc_flag_unused_command_line_argument=no
6901fi
6902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6903fi
6904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6905printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6906	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6907	CFLAGS="$xorg_testset_save_CFLAGS"
6908fi
6909
6910found="no"
6911
6912	if test $found = "no" ; then
6913		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6914			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915		fi
6916
6917		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6918			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6919		fi
6920
6921		CFLAGS="$CFLAGS -Wredundant-decls"
6922
6923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6924printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6925		cacheid=xorg_cv_cc_flag__Wredundant_decls
6926		if eval test \${$cacheid+y}
6927then :
6928  printf %s "(cached) " >&6
6929else $as_nop
6930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931/* end confdefs.h.  */
6932int i;
6933int
6934main (void)
6935{
6936
6937  ;
6938  return 0;
6939}
6940_ACEOF
6941if ac_fn_c_try_link "$LINENO"
6942then :
6943  eval $cacheid=yes
6944else $as_nop
6945  eval $cacheid=no
6946fi
6947rm -f core conftest.err conftest.$ac_objext conftest.beam \
6948    conftest$ac_exeext conftest.$ac_ext
6949fi
6950
6951
6952		CFLAGS="$xorg_testset_save_CFLAGS"
6953
6954		eval supported=\$$cacheid
6955		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6956printf "%s\n" "$supported" >&6; }
6957		if test "$supported" = "yes" ; then
6958			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6959			found="yes"
6960		fi
6961	fi
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977xorg_testset_save_CFLAGS="$CFLAGS"
6978
6979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6982printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6983if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6984then :
6985  printf %s "(cached) " >&6
6986else $as_nop
6987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988/* end confdefs.h.  */
6989int i;
6990_ACEOF
6991if ac_fn_c_try_compile "$LINENO"
6992then :
6993  xorg_cv_cc_flag_unknown_warning_option=yes
6994else $as_nop
6995  xorg_cv_cc_flag_unknown_warning_option=no
6996fi
6997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6998fi
6999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7000printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7001	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7002	CFLAGS="$xorg_testset_save_CFLAGS"
7003fi
7004
7005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7006	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7007		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7008	fi
7009	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7010	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7011printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7012if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7013then :
7014  printf %s "(cached) " >&6
7015else $as_nop
7016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017/* end confdefs.h.  */
7018int i;
7019_ACEOF
7020if ac_fn_c_try_compile "$LINENO"
7021then :
7022  xorg_cv_cc_flag_unused_command_line_argument=yes
7023else $as_nop
7024  xorg_cv_cc_flag_unused_command_line_argument=no
7025fi
7026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7027fi
7028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7029printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7031	CFLAGS="$xorg_testset_save_CFLAGS"
7032fi
7033
7034found="no"
7035
7036	if test $found = "no" ; then
7037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7039		fi
7040
7041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7043		fi
7044
7045		CFLAGS="$CFLAGS -Wlogical-op"
7046
7047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7048printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7049		cacheid=xorg_cv_cc_flag__Wlogical_op
7050		if eval test \${$cacheid+y}
7051then :
7052  printf %s "(cached) " >&6
7053else $as_nop
7054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055/* end confdefs.h.  */
7056int i;
7057int
7058main (void)
7059{
7060
7061  ;
7062  return 0;
7063}
7064_ACEOF
7065if ac_fn_c_try_link "$LINENO"
7066then :
7067  eval $cacheid=yes
7068else $as_nop
7069  eval $cacheid=no
7070fi
7071rm -f core conftest.err conftest.$ac_objext conftest.beam \
7072    conftest$ac_exeext conftest.$ac_ext
7073fi
7074
7075
7076		CFLAGS="$xorg_testset_save_CFLAGS"
7077
7078		eval supported=\$$cacheid
7079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7080printf "%s\n" "$supported" >&6; }
7081		if test "$supported" = "yes" ; then
7082			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7083			found="yes"
7084		fi
7085	fi
7086
7087
7088
7089# These are currently disabled because they are noisy.  They will be enabled
7090# in the future once the codebase is sufficiently modernized to silence
7091# them.  For now, I don't want them to drown out the other warnings.
7092# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7093# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7094# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7095
7096# Turn some warnings into errors, so we don't accidently get successful builds
7097# when there are problems that should be fixed.
7098
7099if test "x$SELECTIVE_WERROR" = "xyes" ; then
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113xorg_testset_save_CFLAGS="$CFLAGS"
7114
7115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7118printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7119if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7120then :
7121  printf %s "(cached) " >&6
7122else $as_nop
7123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h.  */
7125int i;
7126_ACEOF
7127if ac_fn_c_try_compile "$LINENO"
7128then :
7129  xorg_cv_cc_flag_unknown_warning_option=yes
7130else $as_nop
7131  xorg_cv_cc_flag_unknown_warning_option=no
7132fi
7133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7134fi
7135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7136printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7137	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7138	CFLAGS="$xorg_testset_save_CFLAGS"
7139fi
7140
7141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7142	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7143		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7144	fi
7145	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7146	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7147printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7148if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7149then :
7150  printf %s "(cached) " >&6
7151else $as_nop
7152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153/* end confdefs.h.  */
7154int i;
7155_ACEOF
7156if ac_fn_c_try_compile "$LINENO"
7157then :
7158  xorg_cv_cc_flag_unused_command_line_argument=yes
7159else $as_nop
7160  xorg_cv_cc_flag_unused_command_line_argument=no
7161fi
7162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7163fi
7164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7165printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7166	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7167	CFLAGS="$xorg_testset_save_CFLAGS"
7168fi
7169
7170found="no"
7171
7172	if test $found = "no" ; then
7173		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7174			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7175		fi
7176
7177		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7178			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7179		fi
7180
7181		CFLAGS="$CFLAGS -Werror=implicit"
7182
7183		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7184printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7185		cacheid=xorg_cv_cc_flag__Werror_implicit
7186		if eval test \${$cacheid+y}
7187then :
7188  printf %s "(cached) " >&6
7189else $as_nop
7190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191/* end confdefs.h.  */
7192int i;
7193int
7194main (void)
7195{
7196
7197  ;
7198  return 0;
7199}
7200_ACEOF
7201if ac_fn_c_try_link "$LINENO"
7202then :
7203  eval $cacheid=yes
7204else $as_nop
7205  eval $cacheid=no
7206fi
7207rm -f core conftest.err conftest.$ac_objext conftest.beam \
7208    conftest$ac_exeext conftest.$ac_ext
7209fi
7210
7211
7212		CFLAGS="$xorg_testset_save_CFLAGS"
7213
7214		eval supported=\$$cacheid
7215		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7216printf "%s\n" "$supported" >&6; }
7217		if test "$supported" = "yes" ; then
7218			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7219			found="yes"
7220		fi
7221	fi
7222
7223	if test $found = "no" ; then
7224		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226		fi
7227
7228		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7230		fi
7231
7232		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7233
7234		{ 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
7235printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7236		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7237		if eval test \${$cacheid+y}
7238then :
7239  printf %s "(cached) " >&6
7240else $as_nop
7241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h.  */
7243int i;
7244int
7245main (void)
7246{
7247
7248  ;
7249  return 0;
7250}
7251_ACEOF
7252if ac_fn_c_try_link "$LINENO"
7253then :
7254  eval $cacheid=yes
7255else $as_nop
7256  eval $cacheid=no
7257fi
7258rm -f core conftest.err conftest.$ac_objext conftest.beam \
7259    conftest$ac_exeext conftest.$ac_ext
7260fi
7261
7262
7263		CFLAGS="$xorg_testset_save_CFLAGS"
7264
7265		eval supported=\$$cacheid
7266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7267printf "%s\n" "$supported" >&6; }
7268		if test "$supported" = "yes" ; then
7269			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7270			found="yes"
7271		fi
7272	fi
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288xorg_testset_save_CFLAGS="$CFLAGS"
7289
7290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7292	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7293printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7294if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7295then :
7296  printf %s "(cached) " >&6
7297else $as_nop
7298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299/* end confdefs.h.  */
7300int i;
7301_ACEOF
7302if ac_fn_c_try_compile "$LINENO"
7303then :
7304  xorg_cv_cc_flag_unknown_warning_option=yes
7305else $as_nop
7306  xorg_cv_cc_flag_unknown_warning_option=no
7307fi
7308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7309fi
7310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7311printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7313	CFLAGS="$xorg_testset_save_CFLAGS"
7314fi
7315
7316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7319	fi
7320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7321	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7322printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7323if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7324then :
7325  printf %s "(cached) " >&6
7326else $as_nop
7327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h.  */
7329int i;
7330_ACEOF
7331if ac_fn_c_try_compile "$LINENO"
7332then :
7333  xorg_cv_cc_flag_unused_command_line_argument=yes
7334else $as_nop
7335  xorg_cv_cc_flag_unused_command_line_argument=no
7336fi
7337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7338fi
7339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7340printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7342	CFLAGS="$xorg_testset_save_CFLAGS"
7343fi
7344
7345found="no"
7346
7347	if test $found = "no" ; then
7348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7350		fi
7351
7352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7354		fi
7355
7356		CFLAGS="$CFLAGS -Werror=nonnull"
7357
7358		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7359printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7360		cacheid=xorg_cv_cc_flag__Werror_nonnull
7361		if eval test \${$cacheid+y}
7362then :
7363  printf %s "(cached) " >&6
7364else $as_nop
7365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h.  */
7367int i;
7368int
7369main (void)
7370{
7371
7372  ;
7373  return 0;
7374}
7375_ACEOF
7376if ac_fn_c_try_link "$LINENO"
7377then :
7378  eval $cacheid=yes
7379else $as_nop
7380  eval $cacheid=no
7381fi
7382rm -f core conftest.err conftest.$ac_objext conftest.beam \
7383    conftest$ac_exeext conftest.$ac_ext
7384fi
7385
7386
7387		CFLAGS="$xorg_testset_save_CFLAGS"
7388
7389		eval supported=\$$cacheid
7390		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7391printf "%s\n" "$supported" >&6; }
7392		if test "$supported" = "yes" ; then
7393			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7394			found="yes"
7395		fi
7396	fi
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412xorg_testset_save_CFLAGS="$CFLAGS"
7413
7414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7416	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7417printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7418if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7419then :
7420  printf %s "(cached) " >&6
7421else $as_nop
7422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423/* end confdefs.h.  */
7424int i;
7425_ACEOF
7426if ac_fn_c_try_compile "$LINENO"
7427then :
7428  xorg_cv_cc_flag_unknown_warning_option=yes
7429else $as_nop
7430  xorg_cv_cc_flag_unknown_warning_option=no
7431fi
7432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7433fi
7434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7435printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7437	CFLAGS="$xorg_testset_save_CFLAGS"
7438fi
7439
7440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7443	fi
7444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7446printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7447if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7448then :
7449  printf %s "(cached) " >&6
7450else $as_nop
7451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452/* end confdefs.h.  */
7453int i;
7454_ACEOF
7455if ac_fn_c_try_compile "$LINENO"
7456then :
7457  xorg_cv_cc_flag_unused_command_line_argument=yes
7458else $as_nop
7459  xorg_cv_cc_flag_unused_command_line_argument=no
7460fi
7461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7462fi
7463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7464printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7465	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7466	CFLAGS="$xorg_testset_save_CFLAGS"
7467fi
7468
7469found="no"
7470
7471	if test $found = "no" ; then
7472		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7473			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7474		fi
7475
7476		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7477			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7478		fi
7479
7480		CFLAGS="$CFLAGS -Werror=init-self"
7481
7482		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7483printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7484		cacheid=xorg_cv_cc_flag__Werror_init_self
7485		if eval test \${$cacheid+y}
7486then :
7487  printf %s "(cached) " >&6
7488else $as_nop
7489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h.  */
7491int i;
7492int
7493main (void)
7494{
7495
7496  ;
7497  return 0;
7498}
7499_ACEOF
7500if ac_fn_c_try_link "$LINENO"
7501then :
7502  eval $cacheid=yes
7503else $as_nop
7504  eval $cacheid=no
7505fi
7506rm -f core conftest.err conftest.$ac_objext conftest.beam \
7507    conftest$ac_exeext conftest.$ac_ext
7508fi
7509
7510
7511		CFLAGS="$xorg_testset_save_CFLAGS"
7512
7513		eval supported=\$$cacheid
7514		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7515printf "%s\n" "$supported" >&6; }
7516		if test "$supported" = "yes" ; then
7517			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7518			found="yes"
7519		fi
7520	fi
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536xorg_testset_save_CFLAGS="$CFLAGS"
7537
7538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7540	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7541printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7542if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7543then :
7544  printf %s "(cached) " >&6
7545else $as_nop
7546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547/* end confdefs.h.  */
7548int i;
7549_ACEOF
7550if ac_fn_c_try_compile "$LINENO"
7551then :
7552  xorg_cv_cc_flag_unknown_warning_option=yes
7553else $as_nop
7554  xorg_cv_cc_flag_unknown_warning_option=no
7555fi
7556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7557fi
7558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7559printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7560	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7561	CFLAGS="$xorg_testset_save_CFLAGS"
7562fi
7563
7564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7565	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7566		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7567	fi
7568	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7570printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7571if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7572then :
7573  printf %s "(cached) " >&6
7574else $as_nop
7575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576/* end confdefs.h.  */
7577int i;
7578_ACEOF
7579if ac_fn_c_try_compile "$LINENO"
7580then :
7581  xorg_cv_cc_flag_unused_command_line_argument=yes
7582else $as_nop
7583  xorg_cv_cc_flag_unused_command_line_argument=no
7584fi
7585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7586fi
7587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7588printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7589	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7590	CFLAGS="$xorg_testset_save_CFLAGS"
7591fi
7592
7593found="no"
7594
7595	if test $found = "no" ; then
7596		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7597			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7598		fi
7599
7600		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7601			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7602		fi
7603
7604		CFLAGS="$CFLAGS -Werror=main"
7605
7606		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7607printf %s "checking if $CC supports -Werror=main... " >&6; }
7608		cacheid=xorg_cv_cc_flag__Werror_main
7609		if eval test \${$cacheid+y}
7610then :
7611  printf %s "(cached) " >&6
7612else $as_nop
7613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614/* end confdefs.h.  */
7615int i;
7616int
7617main (void)
7618{
7619
7620  ;
7621  return 0;
7622}
7623_ACEOF
7624if ac_fn_c_try_link "$LINENO"
7625then :
7626  eval $cacheid=yes
7627else $as_nop
7628  eval $cacheid=no
7629fi
7630rm -f core conftest.err conftest.$ac_objext conftest.beam \
7631    conftest$ac_exeext conftest.$ac_ext
7632fi
7633
7634
7635		CFLAGS="$xorg_testset_save_CFLAGS"
7636
7637		eval supported=\$$cacheid
7638		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7639printf "%s\n" "$supported" >&6; }
7640		if test "$supported" = "yes" ; then
7641			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7642			found="yes"
7643		fi
7644	fi
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660xorg_testset_save_CFLAGS="$CFLAGS"
7661
7662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7663	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7666if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7667then :
7668  printf %s "(cached) " >&6
7669else $as_nop
7670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h.  */
7672int i;
7673_ACEOF
7674if ac_fn_c_try_compile "$LINENO"
7675then :
7676  xorg_cv_cc_flag_unknown_warning_option=yes
7677else $as_nop
7678  xorg_cv_cc_flag_unknown_warning_option=no
7679fi
7680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7681fi
7682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7683printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7684	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7685	CFLAGS="$xorg_testset_save_CFLAGS"
7686fi
7687
7688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7689	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7690		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7691	fi
7692	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7693	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7694printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7695if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7696then :
7697  printf %s "(cached) " >&6
7698else $as_nop
7699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700/* end confdefs.h.  */
7701int i;
7702_ACEOF
7703if ac_fn_c_try_compile "$LINENO"
7704then :
7705  xorg_cv_cc_flag_unused_command_line_argument=yes
7706else $as_nop
7707  xorg_cv_cc_flag_unused_command_line_argument=no
7708fi
7709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7710fi
7711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7714	CFLAGS="$xorg_testset_save_CFLAGS"
7715fi
7716
7717found="no"
7718
7719	if test $found = "no" ; then
7720		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7722		fi
7723
7724		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7726		fi
7727
7728		CFLAGS="$CFLAGS -Werror=missing-braces"
7729
7730		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7731printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7732		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7733		if eval test \${$cacheid+y}
7734then :
7735  printf %s "(cached) " >&6
7736else $as_nop
7737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738/* end confdefs.h.  */
7739int i;
7740int
7741main (void)
7742{
7743
7744  ;
7745  return 0;
7746}
7747_ACEOF
7748if ac_fn_c_try_link "$LINENO"
7749then :
7750  eval $cacheid=yes
7751else $as_nop
7752  eval $cacheid=no
7753fi
7754rm -f core conftest.err conftest.$ac_objext conftest.beam \
7755    conftest$ac_exeext conftest.$ac_ext
7756fi
7757
7758
7759		CFLAGS="$xorg_testset_save_CFLAGS"
7760
7761		eval supported=\$$cacheid
7762		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7763printf "%s\n" "$supported" >&6; }
7764		if test "$supported" = "yes" ; then
7765			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7766			found="yes"
7767		fi
7768	fi
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784xorg_testset_save_CFLAGS="$CFLAGS"
7785
7786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7789printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7790if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7791then :
7792  printf %s "(cached) " >&6
7793else $as_nop
7794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795/* end confdefs.h.  */
7796int i;
7797_ACEOF
7798if ac_fn_c_try_compile "$LINENO"
7799then :
7800  xorg_cv_cc_flag_unknown_warning_option=yes
7801else $as_nop
7802  xorg_cv_cc_flag_unknown_warning_option=no
7803fi
7804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7805fi
7806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7807printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7809	CFLAGS="$xorg_testset_save_CFLAGS"
7810fi
7811
7812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7815	fi
7816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7818printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7819if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7820then :
7821  printf %s "(cached) " >&6
7822else $as_nop
7823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h.  */
7825int i;
7826_ACEOF
7827if ac_fn_c_try_compile "$LINENO"
7828then :
7829  xorg_cv_cc_flag_unused_command_line_argument=yes
7830else $as_nop
7831  xorg_cv_cc_flag_unused_command_line_argument=no
7832fi
7833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7834fi
7835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7836printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7837	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7838	CFLAGS="$xorg_testset_save_CFLAGS"
7839fi
7840
7841found="no"
7842
7843	if test $found = "no" ; then
7844		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846		fi
7847
7848		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7850		fi
7851
7852		CFLAGS="$CFLAGS -Werror=sequence-point"
7853
7854		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7855printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7856		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7857		if eval test \${$cacheid+y}
7858then :
7859  printf %s "(cached) " >&6
7860else $as_nop
7861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862/* end confdefs.h.  */
7863int i;
7864int
7865main (void)
7866{
7867
7868  ;
7869  return 0;
7870}
7871_ACEOF
7872if ac_fn_c_try_link "$LINENO"
7873then :
7874  eval $cacheid=yes
7875else $as_nop
7876  eval $cacheid=no
7877fi
7878rm -f core conftest.err conftest.$ac_objext conftest.beam \
7879    conftest$ac_exeext conftest.$ac_ext
7880fi
7881
7882
7883		CFLAGS="$xorg_testset_save_CFLAGS"
7884
7885		eval supported=\$$cacheid
7886		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7887printf "%s\n" "$supported" >&6; }
7888		if test "$supported" = "yes" ; then
7889			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7890			found="yes"
7891		fi
7892	fi
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908xorg_testset_save_CFLAGS="$CFLAGS"
7909
7910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7911	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7913printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7914if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7915then :
7916  printf %s "(cached) " >&6
7917else $as_nop
7918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h.  */
7920int i;
7921_ACEOF
7922if ac_fn_c_try_compile "$LINENO"
7923then :
7924  xorg_cv_cc_flag_unknown_warning_option=yes
7925else $as_nop
7926  xorg_cv_cc_flag_unknown_warning_option=no
7927fi
7928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7929fi
7930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7931printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7932	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7933	CFLAGS="$xorg_testset_save_CFLAGS"
7934fi
7935
7936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7937	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7938		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7939	fi
7940	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7941	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7942printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7943if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7944then :
7945  printf %s "(cached) " >&6
7946else $as_nop
7947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948/* end confdefs.h.  */
7949int i;
7950_ACEOF
7951if ac_fn_c_try_compile "$LINENO"
7952then :
7953  xorg_cv_cc_flag_unused_command_line_argument=yes
7954else $as_nop
7955  xorg_cv_cc_flag_unused_command_line_argument=no
7956fi
7957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7958fi
7959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7960printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7961	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7962	CFLAGS="$xorg_testset_save_CFLAGS"
7963fi
7964
7965found="no"
7966
7967	if test $found = "no" ; then
7968		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7969			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7970		fi
7971
7972		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7973			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7974		fi
7975
7976		CFLAGS="$CFLAGS -Werror=return-type"
7977
7978		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7979printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7980		cacheid=xorg_cv_cc_flag__Werror_return_type
7981		if eval test \${$cacheid+y}
7982then :
7983  printf %s "(cached) " >&6
7984else $as_nop
7985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h.  */
7987int i;
7988int
7989main (void)
7990{
7991
7992  ;
7993  return 0;
7994}
7995_ACEOF
7996if ac_fn_c_try_link "$LINENO"
7997then :
7998  eval $cacheid=yes
7999else $as_nop
8000  eval $cacheid=no
8001fi
8002rm -f core conftest.err conftest.$ac_objext conftest.beam \
8003    conftest$ac_exeext conftest.$ac_ext
8004fi
8005
8006
8007		CFLAGS="$xorg_testset_save_CFLAGS"
8008
8009		eval supported=\$$cacheid
8010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8011printf "%s\n" "$supported" >&6; }
8012		if test "$supported" = "yes" ; then
8013			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8014			found="yes"
8015		fi
8016	fi
8017
8018	if test $found = "no" ; then
8019		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021		fi
8022
8023		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8025		fi
8026
8027		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8028
8029		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8030printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8031		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8032		if eval test \${$cacheid+y}
8033then :
8034  printf %s "(cached) " >&6
8035else $as_nop
8036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037/* end confdefs.h.  */
8038int i;
8039int
8040main (void)
8041{
8042
8043  ;
8044  return 0;
8045}
8046_ACEOF
8047if ac_fn_c_try_link "$LINENO"
8048then :
8049  eval $cacheid=yes
8050else $as_nop
8051  eval $cacheid=no
8052fi
8053rm -f core conftest.err conftest.$ac_objext conftest.beam \
8054    conftest$ac_exeext conftest.$ac_ext
8055fi
8056
8057
8058		CFLAGS="$xorg_testset_save_CFLAGS"
8059
8060		eval supported=\$$cacheid
8061		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8062printf "%s\n" "$supported" >&6; }
8063		if test "$supported" = "yes" ; then
8064			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8065			found="yes"
8066		fi
8067	fi
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083xorg_testset_save_CFLAGS="$CFLAGS"
8084
8085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8088printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8089if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8090then :
8091  printf %s "(cached) " >&6
8092else $as_nop
8093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094/* end confdefs.h.  */
8095int i;
8096_ACEOF
8097if ac_fn_c_try_compile "$LINENO"
8098then :
8099  xorg_cv_cc_flag_unknown_warning_option=yes
8100else $as_nop
8101  xorg_cv_cc_flag_unknown_warning_option=no
8102fi
8103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8104fi
8105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8106printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8108	CFLAGS="$xorg_testset_save_CFLAGS"
8109fi
8110
8111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8114	fi
8115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8116	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8117printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8118if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8119then :
8120  printf %s "(cached) " >&6
8121else $as_nop
8122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h.  */
8124int i;
8125_ACEOF
8126if ac_fn_c_try_compile "$LINENO"
8127then :
8128  xorg_cv_cc_flag_unused_command_line_argument=yes
8129else $as_nop
8130  xorg_cv_cc_flag_unused_command_line_argument=no
8131fi
8132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8133fi
8134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8135printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8136	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8137	CFLAGS="$xorg_testset_save_CFLAGS"
8138fi
8139
8140found="no"
8141
8142	if test $found = "no" ; then
8143		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8144			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145		fi
8146
8147		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8148			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8149		fi
8150
8151		CFLAGS="$CFLAGS -Werror=trigraphs"
8152
8153		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8154printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8155		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8156		if eval test \${$cacheid+y}
8157then :
8158  printf %s "(cached) " >&6
8159else $as_nop
8160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161/* end confdefs.h.  */
8162int i;
8163int
8164main (void)
8165{
8166
8167  ;
8168  return 0;
8169}
8170_ACEOF
8171if ac_fn_c_try_link "$LINENO"
8172then :
8173  eval $cacheid=yes
8174else $as_nop
8175  eval $cacheid=no
8176fi
8177rm -f core conftest.err conftest.$ac_objext conftest.beam \
8178    conftest$ac_exeext conftest.$ac_ext
8179fi
8180
8181
8182		CFLAGS="$xorg_testset_save_CFLAGS"
8183
8184		eval supported=\$$cacheid
8185		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186printf "%s\n" "$supported" >&6; }
8187		if test "$supported" = "yes" ; then
8188			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8189			found="yes"
8190		fi
8191	fi
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207xorg_testset_save_CFLAGS="$CFLAGS"
8208
8209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8210	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8212printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8213if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8214then :
8215  printf %s "(cached) " >&6
8216else $as_nop
8217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218/* end confdefs.h.  */
8219int i;
8220_ACEOF
8221if ac_fn_c_try_compile "$LINENO"
8222then :
8223  xorg_cv_cc_flag_unknown_warning_option=yes
8224else $as_nop
8225  xorg_cv_cc_flag_unknown_warning_option=no
8226fi
8227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8228fi
8229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8230printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8232	CFLAGS="$xorg_testset_save_CFLAGS"
8233fi
8234
8235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238	fi
8239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8240	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8241printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8242if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8243then :
8244  printf %s "(cached) " >&6
8245else $as_nop
8246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h.  */
8248int i;
8249_ACEOF
8250if ac_fn_c_try_compile "$LINENO"
8251then :
8252  xorg_cv_cc_flag_unused_command_line_argument=yes
8253else $as_nop
8254  xorg_cv_cc_flag_unused_command_line_argument=no
8255fi
8256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8257fi
8258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8259printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8261	CFLAGS="$xorg_testset_save_CFLAGS"
8262fi
8263
8264found="no"
8265
8266	if test $found = "no" ; then
8267		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8269		fi
8270
8271		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8273		fi
8274
8275		CFLAGS="$CFLAGS -Werror=array-bounds"
8276
8277		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8278printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8279		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8280		if eval test \${$cacheid+y}
8281then :
8282  printf %s "(cached) " >&6
8283else $as_nop
8284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285/* end confdefs.h.  */
8286int i;
8287int
8288main (void)
8289{
8290
8291  ;
8292  return 0;
8293}
8294_ACEOF
8295if ac_fn_c_try_link "$LINENO"
8296then :
8297  eval $cacheid=yes
8298else $as_nop
8299  eval $cacheid=no
8300fi
8301rm -f core conftest.err conftest.$ac_objext conftest.beam \
8302    conftest$ac_exeext conftest.$ac_ext
8303fi
8304
8305
8306		CFLAGS="$xorg_testset_save_CFLAGS"
8307
8308		eval supported=\$$cacheid
8309		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8310printf "%s\n" "$supported" >&6; }
8311		if test "$supported" = "yes" ; then
8312			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8313			found="yes"
8314		fi
8315	fi
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331xorg_testset_save_CFLAGS="$CFLAGS"
8332
8333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8334	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8336printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8337if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8338then :
8339  printf %s "(cached) " >&6
8340else $as_nop
8341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h.  */
8343int i;
8344_ACEOF
8345if ac_fn_c_try_compile "$LINENO"
8346then :
8347  xorg_cv_cc_flag_unknown_warning_option=yes
8348else $as_nop
8349  xorg_cv_cc_flag_unknown_warning_option=no
8350fi
8351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8352fi
8353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8354printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8355	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8356	CFLAGS="$xorg_testset_save_CFLAGS"
8357fi
8358
8359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8360	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8361		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8362	fi
8363	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8364	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8365printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8366if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8367then :
8368  printf %s "(cached) " >&6
8369else $as_nop
8370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371/* end confdefs.h.  */
8372int i;
8373_ACEOF
8374if ac_fn_c_try_compile "$LINENO"
8375then :
8376  xorg_cv_cc_flag_unused_command_line_argument=yes
8377else $as_nop
8378  xorg_cv_cc_flag_unused_command_line_argument=no
8379fi
8380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8381fi
8382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8383printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8384	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8385	CFLAGS="$xorg_testset_save_CFLAGS"
8386fi
8387
8388found="no"
8389
8390	if test $found = "no" ; then
8391		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8392			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8393		fi
8394
8395		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8396			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8397		fi
8398
8399		CFLAGS="$CFLAGS -Werror=write-strings"
8400
8401		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8402printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8403		cacheid=xorg_cv_cc_flag__Werror_write_strings
8404		if eval test \${$cacheid+y}
8405then :
8406  printf %s "(cached) " >&6
8407else $as_nop
8408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409/* end confdefs.h.  */
8410int i;
8411int
8412main (void)
8413{
8414
8415  ;
8416  return 0;
8417}
8418_ACEOF
8419if ac_fn_c_try_link "$LINENO"
8420then :
8421  eval $cacheid=yes
8422else $as_nop
8423  eval $cacheid=no
8424fi
8425rm -f core conftest.err conftest.$ac_objext conftest.beam \
8426    conftest$ac_exeext conftest.$ac_ext
8427fi
8428
8429
8430		CFLAGS="$xorg_testset_save_CFLAGS"
8431
8432		eval supported=\$$cacheid
8433		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8434printf "%s\n" "$supported" >&6; }
8435		if test "$supported" = "yes" ; then
8436			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8437			found="yes"
8438		fi
8439	fi
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455xorg_testset_save_CFLAGS="$CFLAGS"
8456
8457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8458	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8459	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8460printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8461if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8462then :
8463  printf %s "(cached) " >&6
8464else $as_nop
8465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466/* end confdefs.h.  */
8467int i;
8468_ACEOF
8469if ac_fn_c_try_compile "$LINENO"
8470then :
8471  xorg_cv_cc_flag_unknown_warning_option=yes
8472else $as_nop
8473  xorg_cv_cc_flag_unknown_warning_option=no
8474fi
8475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8476fi
8477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8478printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8479	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8480	CFLAGS="$xorg_testset_save_CFLAGS"
8481fi
8482
8483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8484	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8485		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486	fi
8487	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8489printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8490if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8491then :
8492  printf %s "(cached) " >&6
8493else $as_nop
8494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495/* end confdefs.h.  */
8496int i;
8497_ACEOF
8498if ac_fn_c_try_compile "$LINENO"
8499then :
8500  xorg_cv_cc_flag_unused_command_line_argument=yes
8501else $as_nop
8502  xorg_cv_cc_flag_unused_command_line_argument=no
8503fi
8504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8505fi
8506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8507printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8508	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8509	CFLAGS="$xorg_testset_save_CFLAGS"
8510fi
8511
8512found="no"
8513
8514	if test $found = "no" ; then
8515		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8517		fi
8518
8519		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8521		fi
8522
8523		CFLAGS="$CFLAGS -Werror=address"
8524
8525		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8526printf %s "checking if $CC supports -Werror=address... " >&6; }
8527		cacheid=xorg_cv_cc_flag__Werror_address
8528		if eval test \${$cacheid+y}
8529then :
8530  printf %s "(cached) " >&6
8531else $as_nop
8532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533/* end confdefs.h.  */
8534int i;
8535int
8536main (void)
8537{
8538
8539  ;
8540  return 0;
8541}
8542_ACEOF
8543if ac_fn_c_try_link "$LINENO"
8544then :
8545  eval $cacheid=yes
8546else $as_nop
8547  eval $cacheid=no
8548fi
8549rm -f core conftest.err conftest.$ac_objext conftest.beam \
8550    conftest$ac_exeext conftest.$ac_ext
8551fi
8552
8553
8554		CFLAGS="$xorg_testset_save_CFLAGS"
8555
8556		eval supported=\$$cacheid
8557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8558printf "%s\n" "$supported" >&6; }
8559		if test "$supported" = "yes" ; then
8560			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8561			found="yes"
8562		fi
8563	fi
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579xorg_testset_save_CFLAGS="$CFLAGS"
8580
8581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8585if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8586then :
8587  printf %s "(cached) " >&6
8588else $as_nop
8589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590/* end confdefs.h.  */
8591int i;
8592_ACEOF
8593if ac_fn_c_try_compile "$LINENO"
8594then :
8595  xorg_cv_cc_flag_unknown_warning_option=yes
8596else $as_nop
8597  xorg_cv_cc_flag_unknown_warning_option=no
8598fi
8599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8600fi
8601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8604	CFLAGS="$xorg_testset_save_CFLAGS"
8605fi
8606
8607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610	fi
8611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8614if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8615then :
8616  printf %s "(cached) " >&6
8617else $as_nop
8618  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_unused_command_line_argument=yes
8625else $as_nop
8626  xorg_cv_cc_flag_unused_command_line_argument=no
8627fi
8628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8629fi
8630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8631printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8633	CFLAGS="$xorg_testset_save_CFLAGS"
8634fi
8635
8636found="no"
8637
8638	if test $found = "no" ; then
8639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641		fi
8642
8643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8645		fi
8646
8647		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8648
8649		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8650printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8651		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8652		if eval test \${$cacheid+y}
8653then :
8654  printf %s "(cached) " >&6
8655else $as_nop
8656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657/* end confdefs.h.  */
8658int i;
8659int
8660main (void)
8661{
8662
8663  ;
8664  return 0;
8665}
8666_ACEOF
8667if ac_fn_c_try_link "$LINENO"
8668then :
8669  eval $cacheid=yes
8670else $as_nop
8671  eval $cacheid=no
8672fi
8673rm -f core conftest.err conftest.$ac_objext conftest.beam \
8674    conftest$ac_exeext conftest.$ac_ext
8675fi
8676
8677
8678		CFLAGS="$xorg_testset_save_CFLAGS"
8679
8680		eval supported=\$$cacheid
8681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8682printf "%s\n" "$supported" >&6; }
8683		if test "$supported" = "yes" ; then
8684			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8685			found="yes"
8686		fi
8687	fi
8688
8689	if test $found = "no" ; then
8690		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8691			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692		fi
8693
8694		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8695			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8696		fi
8697
8698		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8699
8700		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8701printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8702		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8703		if eval test \${$cacheid+y}
8704then :
8705  printf %s "(cached) " >&6
8706else $as_nop
8707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h.  */
8709int i;
8710int
8711main (void)
8712{
8713
8714  ;
8715  return 0;
8716}
8717_ACEOF
8718if ac_fn_c_try_link "$LINENO"
8719then :
8720  eval $cacheid=yes
8721else $as_nop
8722  eval $cacheid=no
8723fi
8724rm -f core conftest.err conftest.$ac_objext conftest.beam \
8725    conftest$ac_exeext conftest.$ac_ext
8726fi
8727
8728
8729		CFLAGS="$xorg_testset_save_CFLAGS"
8730
8731		eval supported=\$$cacheid
8732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8733printf "%s\n" "$supported" >&6; }
8734		if test "$supported" = "yes" ; then
8735			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8736			found="yes"
8737		fi
8738	fi
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754xorg_testset_save_CFLAGS="$CFLAGS"
8755
8756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8757	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8758	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8759printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8760if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8761then :
8762  printf %s "(cached) " >&6
8763else $as_nop
8764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765/* end confdefs.h.  */
8766int i;
8767_ACEOF
8768if ac_fn_c_try_compile "$LINENO"
8769then :
8770  xorg_cv_cc_flag_unknown_warning_option=yes
8771else $as_nop
8772  xorg_cv_cc_flag_unknown_warning_option=no
8773fi
8774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8775fi
8776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8777printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8778	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8779	CFLAGS="$xorg_testset_save_CFLAGS"
8780fi
8781
8782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8783	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8784		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8785	fi
8786	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8787	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8788printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8789if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8790then :
8791  printf %s "(cached) " >&6
8792else $as_nop
8793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794/* end confdefs.h.  */
8795int i;
8796_ACEOF
8797if ac_fn_c_try_compile "$LINENO"
8798then :
8799  xorg_cv_cc_flag_unused_command_line_argument=yes
8800else $as_nop
8801  xorg_cv_cc_flag_unused_command_line_argument=no
8802fi
8803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8804fi
8805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8806printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8807	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8808	CFLAGS="$xorg_testset_save_CFLAGS"
8809fi
8810
8811found="no"
8812
8813	if test $found = "no" ; then
8814		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8816		fi
8817
8818		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8820		fi
8821
8822		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8823
8824		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8825printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8826		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8827		if eval test \${$cacheid+y}
8828then :
8829  printf %s "(cached) " >&6
8830else $as_nop
8831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832/* end confdefs.h.  */
8833int i;
8834int
8835main (void)
8836{
8837
8838  ;
8839  return 0;
8840}
8841_ACEOF
8842if ac_fn_c_try_link "$LINENO"
8843then :
8844  eval $cacheid=yes
8845else $as_nop
8846  eval $cacheid=no
8847fi
8848rm -f core conftest.err conftest.$ac_objext conftest.beam \
8849    conftest$ac_exeext conftest.$ac_ext
8850fi
8851
8852
8853		CFLAGS="$xorg_testset_save_CFLAGS"
8854
8855		eval supported=\$$cacheid
8856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8857printf "%s\n" "$supported" >&6; }
8858		if test "$supported" = "yes" ; then
8859			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8860			found="yes"
8861		fi
8862	fi
8863
8864 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8865else
8866{ 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
8867printf "%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;}
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881xorg_testset_save_CFLAGS="$CFLAGS"
8882
8883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8885	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8887if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8888then :
8889  printf %s "(cached) " >&6
8890else $as_nop
8891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892/* end confdefs.h.  */
8893int i;
8894_ACEOF
8895if ac_fn_c_try_compile "$LINENO"
8896then :
8897  xorg_cv_cc_flag_unknown_warning_option=yes
8898else $as_nop
8899  xorg_cv_cc_flag_unknown_warning_option=no
8900fi
8901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8902fi
8903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8905	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8906	CFLAGS="$xorg_testset_save_CFLAGS"
8907fi
8908
8909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8910	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8911		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8912	fi
8913	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8916if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8917then :
8918  printf %s "(cached) " >&6
8919else $as_nop
8920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h.  */
8922int i;
8923_ACEOF
8924if ac_fn_c_try_compile "$LINENO"
8925then :
8926  xorg_cv_cc_flag_unused_command_line_argument=yes
8927else $as_nop
8928  xorg_cv_cc_flag_unused_command_line_argument=no
8929fi
8930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8931fi
8932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8934	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8935	CFLAGS="$xorg_testset_save_CFLAGS"
8936fi
8937
8938found="no"
8939
8940	if test $found = "no" ; then
8941		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8942			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8943		fi
8944
8945		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8946			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8947		fi
8948
8949		CFLAGS="$CFLAGS -Wimplicit"
8950
8951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8952printf %s "checking if $CC supports -Wimplicit... " >&6; }
8953		cacheid=xorg_cv_cc_flag__Wimplicit
8954		if eval test \${$cacheid+y}
8955then :
8956  printf %s "(cached) " >&6
8957else $as_nop
8958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959/* end confdefs.h.  */
8960int i;
8961int
8962main (void)
8963{
8964
8965  ;
8966  return 0;
8967}
8968_ACEOF
8969if ac_fn_c_try_link "$LINENO"
8970then :
8971  eval $cacheid=yes
8972else $as_nop
8973  eval $cacheid=no
8974fi
8975rm -f core conftest.err conftest.$ac_objext conftest.beam \
8976    conftest$ac_exeext conftest.$ac_ext
8977fi
8978
8979
8980		CFLAGS="$xorg_testset_save_CFLAGS"
8981
8982		eval supported=\$$cacheid
8983		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8984printf "%s\n" "$supported" >&6; }
8985		if test "$supported" = "yes" ; then
8986			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8987			found="yes"
8988		fi
8989	fi
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005xorg_testset_save_CFLAGS="$CFLAGS"
9006
9007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9011if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9012then :
9013  printf %s "(cached) " >&6
9014else $as_nop
9015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016/* end confdefs.h.  */
9017int i;
9018_ACEOF
9019if ac_fn_c_try_compile "$LINENO"
9020then :
9021  xorg_cv_cc_flag_unknown_warning_option=yes
9022else $as_nop
9023  xorg_cv_cc_flag_unknown_warning_option=no
9024fi
9025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9026fi
9027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9029	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9030	CFLAGS="$xorg_testset_save_CFLAGS"
9031fi
9032
9033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9034	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9035		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9036	fi
9037	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9038	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9040if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9041then :
9042  printf %s "(cached) " >&6
9043else $as_nop
9044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045/* end confdefs.h.  */
9046int i;
9047_ACEOF
9048if ac_fn_c_try_compile "$LINENO"
9049then :
9050  xorg_cv_cc_flag_unused_command_line_argument=yes
9051else $as_nop
9052  xorg_cv_cc_flag_unused_command_line_argument=no
9053fi
9054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9055fi
9056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9059	CFLAGS="$xorg_testset_save_CFLAGS"
9060fi
9061
9062found="no"
9063
9064	if test $found = "no" ; then
9065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9067		fi
9068
9069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9071		fi
9072
9073		CFLAGS="$CFLAGS -Wnonnull"
9074
9075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9076printf %s "checking if $CC supports -Wnonnull... " >&6; }
9077		cacheid=xorg_cv_cc_flag__Wnonnull
9078		if eval test \${$cacheid+y}
9079then :
9080  printf %s "(cached) " >&6
9081else $as_nop
9082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h.  */
9084int i;
9085int
9086main (void)
9087{
9088
9089  ;
9090  return 0;
9091}
9092_ACEOF
9093if ac_fn_c_try_link "$LINENO"
9094then :
9095  eval $cacheid=yes
9096else $as_nop
9097  eval $cacheid=no
9098fi
9099rm -f core conftest.err conftest.$ac_objext conftest.beam \
9100    conftest$ac_exeext conftest.$ac_ext
9101fi
9102
9103
9104		CFLAGS="$xorg_testset_save_CFLAGS"
9105
9106		eval supported=\$$cacheid
9107		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9108printf "%s\n" "$supported" >&6; }
9109		if test "$supported" = "yes" ; then
9110			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9111			found="yes"
9112		fi
9113	fi
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129xorg_testset_save_CFLAGS="$CFLAGS"
9130
9131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9133	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9134printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9135if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9136then :
9137  printf %s "(cached) " >&6
9138else $as_nop
9139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140/* end confdefs.h.  */
9141int i;
9142_ACEOF
9143if ac_fn_c_try_compile "$LINENO"
9144then :
9145  xorg_cv_cc_flag_unknown_warning_option=yes
9146else $as_nop
9147  xorg_cv_cc_flag_unknown_warning_option=no
9148fi
9149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9150fi
9151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9152printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9153	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9154	CFLAGS="$xorg_testset_save_CFLAGS"
9155fi
9156
9157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9158	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9159		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9160	fi
9161	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9162	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9163printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9164if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9165then :
9166  printf %s "(cached) " >&6
9167else $as_nop
9168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169/* end confdefs.h.  */
9170int i;
9171_ACEOF
9172if ac_fn_c_try_compile "$LINENO"
9173then :
9174  xorg_cv_cc_flag_unused_command_line_argument=yes
9175else $as_nop
9176  xorg_cv_cc_flag_unused_command_line_argument=no
9177fi
9178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9179fi
9180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9181printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9182	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9183	CFLAGS="$xorg_testset_save_CFLAGS"
9184fi
9185
9186found="no"
9187
9188	if test $found = "no" ; then
9189		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9190			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9191		fi
9192
9193		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9194			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9195		fi
9196
9197		CFLAGS="$CFLAGS -Winit-self"
9198
9199		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9200printf %s "checking if $CC supports -Winit-self... " >&6; }
9201		cacheid=xorg_cv_cc_flag__Winit_self
9202		if eval test \${$cacheid+y}
9203then :
9204  printf %s "(cached) " >&6
9205else $as_nop
9206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207/* end confdefs.h.  */
9208int i;
9209int
9210main (void)
9211{
9212
9213  ;
9214  return 0;
9215}
9216_ACEOF
9217if ac_fn_c_try_link "$LINENO"
9218then :
9219  eval $cacheid=yes
9220else $as_nop
9221  eval $cacheid=no
9222fi
9223rm -f core conftest.err conftest.$ac_objext conftest.beam \
9224    conftest$ac_exeext conftest.$ac_ext
9225fi
9226
9227
9228		CFLAGS="$xorg_testset_save_CFLAGS"
9229
9230		eval supported=\$$cacheid
9231		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9232printf "%s\n" "$supported" >&6; }
9233		if test "$supported" = "yes" ; then
9234			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9235			found="yes"
9236		fi
9237	fi
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253xorg_testset_save_CFLAGS="$CFLAGS"
9254
9255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9256	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9257	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9258printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9259if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9260then :
9261  printf %s "(cached) " >&6
9262else $as_nop
9263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264/* end confdefs.h.  */
9265int i;
9266_ACEOF
9267if ac_fn_c_try_compile "$LINENO"
9268then :
9269  xorg_cv_cc_flag_unknown_warning_option=yes
9270else $as_nop
9271  xorg_cv_cc_flag_unknown_warning_option=no
9272fi
9273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9274fi
9275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9276printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9277	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9278	CFLAGS="$xorg_testset_save_CFLAGS"
9279fi
9280
9281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9282	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9283		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9284	fi
9285	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9286	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9287printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9288if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9289then :
9290  printf %s "(cached) " >&6
9291else $as_nop
9292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293/* end confdefs.h.  */
9294int i;
9295_ACEOF
9296if ac_fn_c_try_compile "$LINENO"
9297then :
9298  xorg_cv_cc_flag_unused_command_line_argument=yes
9299else $as_nop
9300  xorg_cv_cc_flag_unused_command_line_argument=no
9301fi
9302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9303fi
9304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9305printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9306	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9307	CFLAGS="$xorg_testset_save_CFLAGS"
9308fi
9309
9310found="no"
9311
9312	if test $found = "no" ; then
9313		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9315		fi
9316
9317		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9319		fi
9320
9321		CFLAGS="$CFLAGS -Wmain"
9322
9323		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9324printf %s "checking if $CC supports -Wmain... " >&6; }
9325		cacheid=xorg_cv_cc_flag__Wmain
9326		if eval test \${$cacheid+y}
9327then :
9328  printf %s "(cached) " >&6
9329else $as_nop
9330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h.  */
9332int i;
9333int
9334main (void)
9335{
9336
9337  ;
9338  return 0;
9339}
9340_ACEOF
9341if ac_fn_c_try_link "$LINENO"
9342then :
9343  eval $cacheid=yes
9344else $as_nop
9345  eval $cacheid=no
9346fi
9347rm -f core conftest.err conftest.$ac_objext conftest.beam \
9348    conftest$ac_exeext conftest.$ac_ext
9349fi
9350
9351
9352		CFLAGS="$xorg_testset_save_CFLAGS"
9353
9354		eval supported=\$$cacheid
9355		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9356printf "%s\n" "$supported" >&6; }
9357		if test "$supported" = "yes" ; then
9358			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9359			found="yes"
9360		fi
9361	fi
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377xorg_testset_save_CFLAGS="$CFLAGS"
9378
9379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9380	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9381	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9383if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9384then :
9385  printf %s "(cached) " >&6
9386else $as_nop
9387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388/* end confdefs.h.  */
9389int i;
9390_ACEOF
9391if ac_fn_c_try_compile "$LINENO"
9392then :
9393  xorg_cv_cc_flag_unknown_warning_option=yes
9394else $as_nop
9395  xorg_cv_cc_flag_unknown_warning_option=no
9396fi
9397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9398fi
9399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9401	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9402	CFLAGS="$xorg_testset_save_CFLAGS"
9403fi
9404
9405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9406	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9407		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9408	fi
9409	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9412if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9413then :
9414  printf %s "(cached) " >&6
9415else $as_nop
9416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417/* end confdefs.h.  */
9418int i;
9419_ACEOF
9420if ac_fn_c_try_compile "$LINENO"
9421then :
9422  xorg_cv_cc_flag_unused_command_line_argument=yes
9423else $as_nop
9424  xorg_cv_cc_flag_unused_command_line_argument=no
9425fi
9426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9427fi
9428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9429printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9430	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9431	CFLAGS="$xorg_testset_save_CFLAGS"
9432fi
9433
9434found="no"
9435
9436	if test $found = "no" ; then
9437		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9438			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9439		fi
9440
9441		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9442			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9443		fi
9444
9445		CFLAGS="$CFLAGS -Wmissing-braces"
9446
9447		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9448printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9449		cacheid=xorg_cv_cc_flag__Wmissing_braces
9450		if eval test \${$cacheid+y}
9451then :
9452  printf %s "(cached) " >&6
9453else $as_nop
9454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h.  */
9456int i;
9457int
9458main (void)
9459{
9460
9461  ;
9462  return 0;
9463}
9464_ACEOF
9465if ac_fn_c_try_link "$LINENO"
9466then :
9467  eval $cacheid=yes
9468else $as_nop
9469  eval $cacheid=no
9470fi
9471rm -f core conftest.err conftest.$ac_objext conftest.beam \
9472    conftest$ac_exeext conftest.$ac_ext
9473fi
9474
9475
9476		CFLAGS="$xorg_testset_save_CFLAGS"
9477
9478		eval supported=\$$cacheid
9479		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9480printf "%s\n" "$supported" >&6; }
9481		if test "$supported" = "yes" ; then
9482			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9483			found="yes"
9484		fi
9485	fi
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501xorg_testset_save_CFLAGS="$CFLAGS"
9502
9503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9506printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9507if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9508then :
9509  printf %s "(cached) " >&6
9510else $as_nop
9511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512/* end confdefs.h.  */
9513int i;
9514_ACEOF
9515if ac_fn_c_try_compile "$LINENO"
9516then :
9517  xorg_cv_cc_flag_unknown_warning_option=yes
9518else $as_nop
9519  xorg_cv_cc_flag_unknown_warning_option=no
9520fi
9521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9522fi
9523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9526	CFLAGS="$xorg_testset_save_CFLAGS"
9527fi
9528
9529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9532	fi
9533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9536if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9537then :
9538  printf %s "(cached) " >&6
9539else $as_nop
9540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541/* end confdefs.h.  */
9542int i;
9543_ACEOF
9544if ac_fn_c_try_compile "$LINENO"
9545then :
9546  xorg_cv_cc_flag_unused_command_line_argument=yes
9547else $as_nop
9548  xorg_cv_cc_flag_unused_command_line_argument=no
9549fi
9550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9551fi
9552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9553printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9555	CFLAGS="$xorg_testset_save_CFLAGS"
9556fi
9557
9558found="no"
9559
9560	if test $found = "no" ; then
9561		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563		fi
9564
9565		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9567		fi
9568
9569		CFLAGS="$CFLAGS -Wsequence-point"
9570
9571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9572printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9573		cacheid=xorg_cv_cc_flag__Wsequence_point
9574		if eval test \${$cacheid+y}
9575then :
9576  printf %s "(cached) " >&6
9577else $as_nop
9578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579/* end confdefs.h.  */
9580int i;
9581int
9582main (void)
9583{
9584
9585  ;
9586  return 0;
9587}
9588_ACEOF
9589if ac_fn_c_try_link "$LINENO"
9590then :
9591  eval $cacheid=yes
9592else $as_nop
9593  eval $cacheid=no
9594fi
9595rm -f core conftest.err conftest.$ac_objext conftest.beam \
9596    conftest$ac_exeext conftest.$ac_ext
9597fi
9598
9599
9600		CFLAGS="$xorg_testset_save_CFLAGS"
9601
9602		eval supported=\$$cacheid
9603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9604printf "%s\n" "$supported" >&6; }
9605		if test "$supported" = "yes" ; then
9606			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9607			found="yes"
9608		fi
9609	fi
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625xorg_testset_save_CFLAGS="$CFLAGS"
9626
9627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9631if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9632then :
9633  printf %s "(cached) " >&6
9634else $as_nop
9635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636/* end confdefs.h.  */
9637int i;
9638_ACEOF
9639if ac_fn_c_try_compile "$LINENO"
9640then :
9641  xorg_cv_cc_flag_unknown_warning_option=yes
9642else $as_nop
9643  xorg_cv_cc_flag_unknown_warning_option=no
9644fi
9645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9646fi
9647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9650	CFLAGS="$xorg_testset_save_CFLAGS"
9651fi
9652
9653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9656	fi
9657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9658	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9660if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9661then :
9662  printf %s "(cached) " >&6
9663else $as_nop
9664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665/* end confdefs.h.  */
9666int i;
9667_ACEOF
9668if ac_fn_c_try_compile "$LINENO"
9669then :
9670  xorg_cv_cc_flag_unused_command_line_argument=yes
9671else $as_nop
9672  xorg_cv_cc_flag_unused_command_line_argument=no
9673fi
9674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9675fi
9676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9679	CFLAGS="$xorg_testset_save_CFLAGS"
9680fi
9681
9682found="no"
9683
9684	if test $found = "no" ; then
9685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9687		fi
9688
9689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9691		fi
9692
9693		CFLAGS="$CFLAGS -Wreturn-type"
9694
9695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9696printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9697		cacheid=xorg_cv_cc_flag__Wreturn_type
9698		if eval test \${$cacheid+y}
9699then :
9700  printf %s "(cached) " >&6
9701else $as_nop
9702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h.  */
9704int i;
9705int
9706main (void)
9707{
9708
9709  ;
9710  return 0;
9711}
9712_ACEOF
9713if ac_fn_c_try_link "$LINENO"
9714then :
9715  eval $cacheid=yes
9716else $as_nop
9717  eval $cacheid=no
9718fi
9719rm -f core conftest.err conftest.$ac_objext conftest.beam \
9720    conftest$ac_exeext conftest.$ac_ext
9721fi
9722
9723
9724		CFLAGS="$xorg_testset_save_CFLAGS"
9725
9726		eval supported=\$$cacheid
9727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9728printf "%s\n" "$supported" >&6; }
9729		if test "$supported" = "yes" ; then
9730			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9731			found="yes"
9732		fi
9733	fi
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749xorg_testset_save_CFLAGS="$CFLAGS"
9750
9751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9755if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9756then :
9757  printf %s "(cached) " >&6
9758else $as_nop
9759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760/* end confdefs.h.  */
9761int i;
9762_ACEOF
9763if ac_fn_c_try_compile "$LINENO"
9764then :
9765  xorg_cv_cc_flag_unknown_warning_option=yes
9766else $as_nop
9767  xorg_cv_cc_flag_unknown_warning_option=no
9768fi
9769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9770fi
9771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9774	CFLAGS="$xorg_testset_save_CFLAGS"
9775fi
9776
9777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9780	fi
9781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9782	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9784if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9785then :
9786  printf %s "(cached) " >&6
9787else $as_nop
9788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789/* end confdefs.h.  */
9790int i;
9791_ACEOF
9792if ac_fn_c_try_compile "$LINENO"
9793then :
9794  xorg_cv_cc_flag_unused_command_line_argument=yes
9795else $as_nop
9796  xorg_cv_cc_flag_unused_command_line_argument=no
9797fi
9798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9799fi
9800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9803	CFLAGS="$xorg_testset_save_CFLAGS"
9804fi
9805
9806found="no"
9807
9808	if test $found = "no" ; then
9809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811		fi
9812
9813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9815		fi
9816
9817		CFLAGS="$CFLAGS -Wtrigraphs"
9818
9819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9820printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9821		cacheid=xorg_cv_cc_flag__Wtrigraphs
9822		if eval test \${$cacheid+y}
9823then :
9824  printf %s "(cached) " >&6
9825else $as_nop
9826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h.  */
9828int i;
9829int
9830main (void)
9831{
9832
9833  ;
9834  return 0;
9835}
9836_ACEOF
9837if ac_fn_c_try_link "$LINENO"
9838then :
9839  eval $cacheid=yes
9840else $as_nop
9841  eval $cacheid=no
9842fi
9843rm -f core conftest.err conftest.$ac_objext conftest.beam \
9844    conftest$ac_exeext conftest.$ac_ext
9845fi
9846
9847
9848		CFLAGS="$xorg_testset_save_CFLAGS"
9849
9850		eval supported=\$$cacheid
9851		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9852printf "%s\n" "$supported" >&6; }
9853		if test "$supported" = "yes" ; then
9854			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9855			found="yes"
9856		fi
9857	fi
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873xorg_testset_save_CFLAGS="$CFLAGS"
9874
9875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9879if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9880then :
9881  printf %s "(cached) " >&6
9882else $as_nop
9883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884/* end confdefs.h.  */
9885int i;
9886_ACEOF
9887if ac_fn_c_try_compile "$LINENO"
9888then :
9889  xorg_cv_cc_flag_unknown_warning_option=yes
9890else $as_nop
9891  xorg_cv_cc_flag_unknown_warning_option=no
9892fi
9893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9894fi
9895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9898	CFLAGS="$xorg_testset_save_CFLAGS"
9899fi
9900
9901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9904	fi
9905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9908if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9909then :
9910  printf %s "(cached) " >&6
9911else $as_nop
9912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913/* end confdefs.h.  */
9914int i;
9915_ACEOF
9916if ac_fn_c_try_compile "$LINENO"
9917then :
9918  xorg_cv_cc_flag_unused_command_line_argument=yes
9919else $as_nop
9920  xorg_cv_cc_flag_unused_command_line_argument=no
9921fi
9922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9923fi
9924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9927	CFLAGS="$xorg_testset_save_CFLAGS"
9928fi
9929
9930found="no"
9931
9932	if test $found = "no" ; then
9933		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935		fi
9936
9937		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9939		fi
9940
9941		CFLAGS="$CFLAGS -Warray-bounds"
9942
9943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9944printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9945		cacheid=xorg_cv_cc_flag__Warray_bounds
9946		if eval test \${$cacheid+y}
9947then :
9948  printf %s "(cached) " >&6
9949else $as_nop
9950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951/* end confdefs.h.  */
9952int i;
9953int
9954main (void)
9955{
9956
9957  ;
9958  return 0;
9959}
9960_ACEOF
9961if ac_fn_c_try_link "$LINENO"
9962then :
9963  eval $cacheid=yes
9964else $as_nop
9965  eval $cacheid=no
9966fi
9967rm -f core conftest.err conftest.$ac_objext conftest.beam \
9968    conftest$ac_exeext conftest.$ac_ext
9969fi
9970
9971
9972		CFLAGS="$xorg_testset_save_CFLAGS"
9973
9974		eval supported=\$$cacheid
9975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9976printf "%s\n" "$supported" >&6; }
9977		if test "$supported" = "yes" ; then
9978			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9979			found="yes"
9980		fi
9981	fi
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997xorg_testset_save_CFLAGS="$CFLAGS"
9998
9999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10003if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10004then :
10005  printf %s "(cached) " >&6
10006else $as_nop
10007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008/* end confdefs.h.  */
10009int i;
10010_ACEOF
10011if ac_fn_c_try_compile "$LINENO"
10012then :
10013  xorg_cv_cc_flag_unknown_warning_option=yes
10014else $as_nop
10015  xorg_cv_cc_flag_unknown_warning_option=no
10016fi
10017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10018fi
10019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10022	CFLAGS="$xorg_testset_save_CFLAGS"
10023fi
10024
10025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10028	fi
10029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10032if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10033then :
10034  printf %s "(cached) " >&6
10035else $as_nop
10036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037/* end confdefs.h.  */
10038int i;
10039_ACEOF
10040if ac_fn_c_try_compile "$LINENO"
10041then :
10042  xorg_cv_cc_flag_unused_command_line_argument=yes
10043else $as_nop
10044  xorg_cv_cc_flag_unused_command_line_argument=no
10045fi
10046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10047fi
10048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10051	CFLAGS="$xorg_testset_save_CFLAGS"
10052fi
10053
10054found="no"
10055
10056	if test $found = "no" ; then
10057		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10059		fi
10060
10061		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10063		fi
10064
10065		CFLAGS="$CFLAGS -Wwrite-strings"
10066
10067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10068printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10069		cacheid=xorg_cv_cc_flag__Wwrite_strings
10070		if eval test \${$cacheid+y}
10071then :
10072  printf %s "(cached) " >&6
10073else $as_nop
10074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h.  */
10076int i;
10077int
10078main (void)
10079{
10080
10081  ;
10082  return 0;
10083}
10084_ACEOF
10085if ac_fn_c_try_link "$LINENO"
10086then :
10087  eval $cacheid=yes
10088else $as_nop
10089  eval $cacheid=no
10090fi
10091rm -f core conftest.err conftest.$ac_objext conftest.beam \
10092    conftest$ac_exeext conftest.$ac_ext
10093fi
10094
10095
10096		CFLAGS="$xorg_testset_save_CFLAGS"
10097
10098		eval supported=\$$cacheid
10099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10100printf "%s\n" "$supported" >&6; }
10101		if test "$supported" = "yes" ; then
10102			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10103			found="yes"
10104		fi
10105	fi
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121xorg_testset_save_CFLAGS="$CFLAGS"
10122
10123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10127if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10128then :
10129  printf %s "(cached) " >&6
10130else $as_nop
10131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132/* end confdefs.h.  */
10133int i;
10134_ACEOF
10135if ac_fn_c_try_compile "$LINENO"
10136then :
10137  xorg_cv_cc_flag_unknown_warning_option=yes
10138else $as_nop
10139  xorg_cv_cc_flag_unknown_warning_option=no
10140fi
10141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10142fi
10143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10144printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10145	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10146	CFLAGS="$xorg_testset_save_CFLAGS"
10147fi
10148
10149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10150	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10151		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10152	fi
10153	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10155printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10156if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10157then :
10158  printf %s "(cached) " >&6
10159else $as_nop
10160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161/* end confdefs.h.  */
10162int i;
10163_ACEOF
10164if ac_fn_c_try_compile "$LINENO"
10165then :
10166  xorg_cv_cc_flag_unused_command_line_argument=yes
10167else $as_nop
10168  xorg_cv_cc_flag_unused_command_line_argument=no
10169fi
10170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10171fi
10172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10173printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10175	CFLAGS="$xorg_testset_save_CFLAGS"
10176fi
10177
10178found="no"
10179
10180	if test $found = "no" ; then
10181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10183		fi
10184
10185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10187		fi
10188
10189		CFLAGS="$CFLAGS -Waddress"
10190
10191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10192printf %s "checking if $CC supports -Waddress... " >&6; }
10193		cacheid=xorg_cv_cc_flag__Waddress
10194		if eval test \${$cacheid+y}
10195then :
10196  printf %s "(cached) " >&6
10197else $as_nop
10198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199/* end confdefs.h.  */
10200int i;
10201int
10202main (void)
10203{
10204
10205  ;
10206  return 0;
10207}
10208_ACEOF
10209if ac_fn_c_try_link "$LINENO"
10210then :
10211  eval $cacheid=yes
10212else $as_nop
10213  eval $cacheid=no
10214fi
10215rm -f core conftest.err conftest.$ac_objext conftest.beam \
10216    conftest$ac_exeext conftest.$ac_ext
10217fi
10218
10219
10220		CFLAGS="$xorg_testset_save_CFLAGS"
10221
10222		eval supported=\$$cacheid
10223		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10224printf "%s\n" "$supported" >&6; }
10225		if test "$supported" = "yes" ; then
10226			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10227			found="yes"
10228		fi
10229	fi
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245xorg_testset_save_CFLAGS="$CFLAGS"
10246
10247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10248	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10249	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10250printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10251if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10252then :
10253  printf %s "(cached) " >&6
10254else $as_nop
10255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h.  */
10257int i;
10258_ACEOF
10259if ac_fn_c_try_compile "$LINENO"
10260then :
10261  xorg_cv_cc_flag_unknown_warning_option=yes
10262else $as_nop
10263  xorg_cv_cc_flag_unknown_warning_option=no
10264fi
10265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10266fi
10267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10268printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10269	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10270	CFLAGS="$xorg_testset_save_CFLAGS"
10271fi
10272
10273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10274	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10275		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276	fi
10277	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10278	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10279printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10280if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10281then :
10282  printf %s "(cached) " >&6
10283else $as_nop
10284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285/* end confdefs.h.  */
10286int i;
10287_ACEOF
10288if ac_fn_c_try_compile "$LINENO"
10289then :
10290  xorg_cv_cc_flag_unused_command_line_argument=yes
10291else $as_nop
10292  xorg_cv_cc_flag_unused_command_line_argument=no
10293fi
10294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10295fi
10296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10297printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10298	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10299	CFLAGS="$xorg_testset_save_CFLAGS"
10300fi
10301
10302found="no"
10303
10304	if test $found = "no" ; then
10305		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10306			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10307		fi
10308
10309		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10310			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10311		fi
10312
10313		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10314
10315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10316printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10317		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10318		if eval test \${$cacheid+y}
10319then :
10320  printf %s "(cached) " >&6
10321else $as_nop
10322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323/* end confdefs.h.  */
10324int i;
10325int
10326main (void)
10327{
10328
10329  ;
10330  return 0;
10331}
10332_ACEOF
10333if ac_fn_c_try_link "$LINENO"
10334then :
10335  eval $cacheid=yes
10336else $as_nop
10337  eval $cacheid=no
10338fi
10339rm -f core conftest.err conftest.$ac_objext conftest.beam \
10340    conftest$ac_exeext conftest.$ac_ext
10341fi
10342
10343
10344		CFLAGS="$xorg_testset_save_CFLAGS"
10345
10346		eval supported=\$$cacheid
10347		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10348printf "%s\n" "$supported" >&6; }
10349		if test "$supported" = "yes" ; then
10350			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10351			found="yes"
10352		fi
10353	fi
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369xorg_testset_save_CFLAGS="$CFLAGS"
10370
10371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10372	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10373	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10375if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10376then :
10377  printf %s "(cached) " >&6
10378else $as_nop
10379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380/* end confdefs.h.  */
10381int i;
10382_ACEOF
10383if ac_fn_c_try_compile "$LINENO"
10384then :
10385  xorg_cv_cc_flag_unknown_warning_option=yes
10386else $as_nop
10387  xorg_cv_cc_flag_unknown_warning_option=no
10388fi
10389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10390fi
10391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10392printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10394	CFLAGS="$xorg_testset_save_CFLAGS"
10395fi
10396
10397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10400	fi
10401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10403printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10404if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10405then :
10406  printf %s "(cached) " >&6
10407else $as_nop
10408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409/* end confdefs.h.  */
10410int i;
10411_ACEOF
10412if ac_fn_c_try_compile "$LINENO"
10413then :
10414  xorg_cv_cc_flag_unused_command_line_argument=yes
10415else $as_nop
10416  xorg_cv_cc_flag_unused_command_line_argument=no
10417fi
10418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10419fi
10420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10422	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10423	CFLAGS="$xorg_testset_save_CFLAGS"
10424fi
10425
10426found="no"
10427
10428	if test $found = "no" ; then
10429		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10430			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10431		fi
10432
10433		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10434			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10435		fi
10436
10437		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10438
10439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10440printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10441		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10442		if eval test \${$cacheid+y}
10443then :
10444  printf %s "(cached) " >&6
10445else $as_nop
10446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447/* end confdefs.h.  */
10448int i;
10449int
10450main (void)
10451{
10452
10453  ;
10454  return 0;
10455}
10456_ACEOF
10457if ac_fn_c_try_link "$LINENO"
10458then :
10459  eval $cacheid=yes
10460else $as_nop
10461  eval $cacheid=no
10462fi
10463rm -f core conftest.err conftest.$ac_objext conftest.beam \
10464    conftest$ac_exeext conftest.$ac_ext
10465fi
10466
10467
10468		CFLAGS="$xorg_testset_save_CFLAGS"
10469
10470		eval supported=\$$cacheid
10471		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10472printf "%s\n" "$supported" >&6; }
10473		if test "$supported" = "yes" ; then
10474			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10475			found="yes"
10476		fi
10477	fi
10478
10479
10480fi
10481
10482
10483
10484
10485
10486
10487
10488		CWARNFLAGS="$BASE_CFLAGS"
10489		if  test "x$GCC" = xyes ; then
10490		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10491		fi
10492
10493
10494
10495
10496
10497
10498
10499
10500# Check whether --enable-strict-compilation was given.
10501if test ${enable_strict_compilation+y}
10502then :
10503  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10504else $as_nop
10505  STRICT_COMPILE=no
10506fi
10507
10508
10509
10510
10511
10512
10513STRICT_CFLAGS=""
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527xorg_testset_save_CFLAGS="$CFLAGS"
10528
10529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10532printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10533if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10534then :
10535  printf %s "(cached) " >&6
10536else $as_nop
10537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538/* end confdefs.h.  */
10539int i;
10540_ACEOF
10541if ac_fn_c_try_compile "$LINENO"
10542then :
10543  xorg_cv_cc_flag_unknown_warning_option=yes
10544else $as_nop
10545  xorg_cv_cc_flag_unknown_warning_option=no
10546fi
10547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10548fi
10549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10550printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10551	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10552	CFLAGS="$xorg_testset_save_CFLAGS"
10553fi
10554
10555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10556	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10557		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10558	fi
10559	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10561printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10562if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10563then :
10564  printf %s "(cached) " >&6
10565else $as_nop
10566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567/* end confdefs.h.  */
10568int i;
10569_ACEOF
10570if ac_fn_c_try_compile "$LINENO"
10571then :
10572  xorg_cv_cc_flag_unused_command_line_argument=yes
10573else $as_nop
10574  xorg_cv_cc_flag_unused_command_line_argument=no
10575fi
10576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10577fi
10578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10579printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10581	CFLAGS="$xorg_testset_save_CFLAGS"
10582fi
10583
10584found="no"
10585
10586	if test $found = "no" ; then
10587		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10589		fi
10590
10591		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10593		fi
10594
10595		CFLAGS="$CFLAGS -pedantic"
10596
10597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10598printf %s "checking if $CC supports -pedantic... " >&6; }
10599		cacheid=xorg_cv_cc_flag__pedantic
10600		if eval test \${$cacheid+y}
10601then :
10602  printf %s "(cached) " >&6
10603else $as_nop
10604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605/* end confdefs.h.  */
10606int i;
10607int
10608main (void)
10609{
10610
10611  ;
10612  return 0;
10613}
10614_ACEOF
10615if ac_fn_c_try_link "$LINENO"
10616then :
10617  eval $cacheid=yes
10618else $as_nop
10619  eval $cacheid=no
10620fi
10621rm -f core conftest.err conftest.$ac_objext conftest.beam \
10622    conftest$ac_exeext conftest.$ac_ext
10623fi
10624
10625
10626		CFLAGS="$xorg_testset_save_CFLAGS"
10627
10628		eval supported=\$$cacheid
10629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10630printf "%s\n" "$supported" >&6; }
10631		if test "$supported" = "yes" ; then
10632			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10633			found="yes"
10634		fi
10635	fi
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651xorg_testset_save_CFLAGS="$CFLAGS"
10652
10653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10656printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10657if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10658then :
10659  printf %s "(cached) " >&6
10660else $as_nop
10661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662/* end confdefs.h.  */
10663int i;
10664_ACEOF
10665if ac_fn_c_try_compile "$LINENO"
10666then :
10667  xorg_cv_cc_flag_unknown_warning_option=yes
10668else $as_nop
10669  xorg_cv_cc_flag_unknown_warning_option=no
10670fi
10671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10672fi
10673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10674printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10675	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10676	CFLAGS="$xorg_testset_save_CFLAGS"
10677fi
10678
10679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10680	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10681		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10682	fi
10683	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10684	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10685printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10686if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10687then :
10688  printf %s "(cached) " >&6
10689else $as_nop
10690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691/* end confdefs.h.  */
10692int i;
10693_ACEOF
10694if ac_fn_c_try_compile "$LINENO"
10695then :
10696  xorg_cv_cc_flag_unused_command_line_argument=yes
10697else $as_nop
10698  xorg_cv_cc_flag_unused_command_line_argument=no
10699fi
10700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10701fi
10702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10703printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10704	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10705	CFLAGS="$xorg_testset_save_CFLAGS"
10706fi
10707
10708found="no"
10709
10710	if test $found = "no" ; then
10711		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10713		fi
10714
10715		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10717		fi
10718
10719		CFLAGS="$CFLAGS -Werror"
10720
10721		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10722printf %s "checking if $CC supports -Werror... " >&6; }
10723		cacheid=xorg_cv_cc_flag__Werror
10724		if eval test \${$cacheid+y}
10725then :
10726  printf %s "(cached) " >&6
10727else $as_nop
10728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729/* end confdefs.h.  */
10730int i;
10731int
10732main (void)
10733{
10734
10735  ;
10736  return 0;
10737}
10738_ACEOF
10739if ac_fn_c_try_link "$LINENO"
10740then :
10741  eval $cacheid=yes
10742else $as_nop
10743  eval $cacheid=no
10744fi
10745rm -f core conftest.err conftest.$ac_objext conftest.beam \
10746    conftest$ac_exeext conftest.$ac_ext
10747fi
10748
10749
10750		CFLAGS="$xorg_testset_save_CFLAGS"
10751
10752		eval supported=\$$cacheid
10753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10754printf "%s\n" "$supported" >&6; }
10755		if test "$supported" = "yes" ; then
10756			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10757			found="yes"
10758		fi
10759	fi
10760
10761	if test $found = "no" ; then
10762		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10763			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10764		fi
10765
10766		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10767			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10768		fi
10769
10770		CFLAGS="$CFLAGS -errwarn"
10771
10772		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10773printf %s "checking if $CC supports -errwarn... " >&6; }
10774		cacheid=xorg_cv_cc_flag__errwarn
10775		if eval test \${$cacheid+y}
10776then :
10777  printf %s "(cached) " >&6
10778else $as_nop
10779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780/* end confdefs.h.  */
10781int i;
10782int
10783main (void)
10784{
10785
10786  ;
10787  return 0;
10788}
10789_ACEOF
10790if ac_fn_c_try_link "$LINENO"
10791then :
10792  eval $cacheid=yes
10793else $as_nop
10794  eval $cacheid=no
10795fi
10796rm -f core conftest.err conftest.$ac_objext conftest.beam \
10797    conftest$ac_exeext conftest.$ac_ext
10798fi
10799
10800
10801		CFLAGS="$xorg_testset_save_CFLAGS"
10802
10803		eval supported=\$$cacheid
10804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10805printf "%s\n" "$supported" >&6; }
10806		if test "$supported" = "yes" ; then
10807			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10808			found="yes"
10809		fi
10810	fi
10811
10812
10813
10814# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10815# activate it with -Werror, so we add it here explicitly.
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829xorg_testset_save_CFLAGS="$CFLAGS"
10830
10831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10833	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10834printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10835if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10836then :
10837  printf %s "(cached) " >&6
10838else $as_nop
10839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840/* end confdefs.h.  */
10841int i;
10842_ACEOF
10843if ac_fn_c_try_compile "$LINENO"
10844then :
10845  xorg_cv_cc_flag_unknown_warning_option=yes
10846else $as_nop
10847  xorg_cv_cc_flag_unknown_warning_option=no
10848fi
10849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10850fi
10851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10852printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10854	CFLAGS="$xorg_testset_save_CFLAGS"
10855fi
10856
10857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10860	fi
10861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10863printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10864if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10865then :
10866  printf %s "(cached) " >&6
10867else $as_nop
10868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869/* end confdefs.h.  */
10870int i;
10871_ACEOF
10872if ac_fn_c_try_compile "$LINENO"
10873then :
10874  xorg_cv_cc_flag_unused_command_line_argument=yes
10875else $as_nop
10876  xorg_cv_cc_flag_unused_command_line_argument=no
10877fi
10878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10879fi
10880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10881printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10882	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10883	CFLAGS="$xorg_testset_save_CFLAGS"
10884fi
10885
10886found="no"
10887
10888	if test $found = "no" ; then
10889		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10891		fi
10892
10893		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10895		fi
10896
10897		CFLAGS="$CFLAGS -Werror=attributes"
10898
10899		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10900printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10901		cacheid=xorg_cv_cc_flag__Werror_attributes
10902		if eval test \${$cacheid+y}
10903then :
10904  printf %s "(cached) " >&6
10905else $as_nop
10906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907/* end confdefs.h.  */
10908int i;
10909int
10910main (void)
10911{
10912
10913  ;
10914  return 0;
10915}
10916_ACEOF
10917if ac_fn_c_try_link "$LINENO"
10918then :
10919  eval $cacheid=yes
10920else $as_nop
10921  eval $cacheid=no
10922fi
10923rm -f core conftest.err conftest.$ac_objext conftest.beam \
10924    conftest$ac_exeext conftest.$ac_ext
10925fi
10926
10927
10928		CFLAGS="$xorg_testset_save_CFLAGS"
10929
10930		eval supported=\$$cacheid
10931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10932printf "%s\n" "$supported" >&6; }
10933		if test "$supported" = "yes" ; then
10934			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10935			found="yes"
10936		fi
10937	fi
10938
10939
10940
10941if test "x$STRICT_COMPILE" = "xyes"; then
10942    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10943    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10944fi
10945
10946
10947
10948
10949
10950
10951cat >>confdefs.h <<_ACEOF
10952#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10953_ACEOF
10954
10955	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10956	if test "x$PVM" = "x"; then
10957		PVM="0"
10958	fi
10959
10960printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10961
10962	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10963	if test "x$PVP" = "x"; then
10964		PVP="0"
10965	fi
10966
10967printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10968
10969
10970
10971CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10972mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10973|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10974touch \$(top_srcdir)/ChangeLog; \
10975echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10976
10977
10978
10979
10980macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10981INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10982mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10983|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10984touch \$(top_srcdir)/INSTALL; \
10985echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10986
10987
10988
10989
10990
10991
10992case $host_os in
10993    solaris*)
10994        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10995        # check for a man page file found in later versions that use
10996        # traditional section numbers instead
10997        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10998printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10999if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11000then :
11001  printf %s "(cached) " >&6
11002else $as_nop
11003  test "$cross_compiling" = yes &&
11004  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11005if test -r "/usr/share/man/man7/attributes.7"; then
11006  ac_cv_file__usr_share_man_man7_attributes_7=yes
11007else
11008  ac_cv_file__usr_share_man_man7_attributes_7=no
11009fi
11010fi
11011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11012printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11013if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11014then :
11015  SYSV_MAN_SECTIONS=false
11016else $as_nop
11017  SYSV_MAN_SECTIONS=true
11018fi
11019
11020        ;;
11021    *) SYSV_MAN_SECTIONS=false ;;
11022esac
11023
11024if test x$APP_MAN_SUFFIX = x    ; then
11025    APP_MAN_SUFFIX=1
11026fi
11027if test x$APP_MAN_DIR = x    ; then
11028    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11029fi
11030
11031if test x$LIB_MAN_SUFFIX = x    ; then
11032    LIB_MAN_SUFFIX=3
11033fi
11034if test x$LIB_MAN_DIR = x    ; then
11035    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11036fi
11037
11038if test x$FILE_MAN_SUFFIX = x    ; then
11039    case $SYSV_MAN_SECTIONS in
11040	true)				FILE_MAN_SUFFIX=4  ;;
11041	*)				FILE_MAN_SUFFIX=5  ;;
11042    esac
11043fi
11044if test x$FILE_MAN_DIR = x    ; then
11045    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11046fi
11047
11048if test x$MISC_MAN_SUFFIX = x    ; then
11049    case $SYSV_MAN_SECTIONS in
11050	true)				MISC_MAN_SUFFIX=5  ;;
11051	*)				MISC_MAN_SUFFIX=7  ;;
11052    esac
11053fi
11054if test x$MISC_MAN_DIR = x    ; then
11055    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11056fi
11057
11058if test x$DRIVER_MAN_SUFFIX = x    ; then
11059    case $SYSV_MAN_SECTIONS in
11060	true)				DRIVER_MAN_SUFFIX=7  ;;
11061	*)				DRIVER_MAN_SUFFIX=4  ;;
11062    esac
11063fi
11064if test x$DRIVER_MAN_DIR = x    ; then
11065    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11066fi
11067
11068if test x$ADMIN_MAN_SUFFIX = x    ; then
11069    case $SYSV_MAN_SECTIONS in
11070	true)				ADMIN_MAN_SUFFIX=1m ;;
11071	*)				ADMIN_MAN_SUFFIX=8  ;;
11072    esac
11073fi
11074if test x$ADMIN_MAN_DIR = x    ; then
11075    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11076fi
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092XORG_MAN_PAGE="X Version 11"
11093
11094MAN_SUBSTS="\
11095	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11096	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11097	-e 's|__xservername__|Xorg|g' \
11098	-e 's|__xconfigfile__|xorg.conf|g' \
11099	-e 's|__projectroot__|\$(prefix)|g' \
11100	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11101	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11102	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11103	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11104	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11105	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11106	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11107
11108
11109
11110# Check whether --enable-silent-rules was given.
11111if test ${enable_silent_rules+y}
11112then :
11113  enableval=$enable_silent_rules;
11114fi
11115
11116case $enable_silent_rules in # (((
11117  yes) AM_DEFAULT_VERBOSITY=0;;
11118   no) AM_DEFAULT_VERBOSITY=1;;
11119    *) AM_DEFAULT_VERBOSITY=0;;
11120esac
11121am_make=${MAKE-make}
11122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11123printf %s "checking whether $am_make supports nested variables... " >&6; }
11124if test ${am_cv_make_support_nested_variables+y}
11125then :
11126  printf %s "(cached) " >&6
11127else $as_nop
11128  if printf "%s\n" 'TRUE=$(BAR$(V))
11129BAR0=false
11130BAR1=true
11131V=1
11132am__doit:
11133	@$(TRUE)
11134.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11135  am_cv_make_support_nested_variables=yes
11136else
11137  am_cv_make_support_nested_variables=no
11138fi
11139fi
11140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11141printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11142if test $am_cv_make_support_nested_variables = yes; then
11143    AM_V='$(V)'
11144  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11145else
11146  AM_V=$AM_DEFAULT_VERBOSITY
11147  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11148fi
11149AM_BACKSLASH='\'
11150
11151
11152
11153ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
11154if test "x$ac_cv_func_strtof" = xyes
11155then :
11156  printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h
11157
11158fi
11159
11160
11161# Checks for pkg-config packages
11162
11163pkg_failed=no
11164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGAMMA" >&5
11165printf %s "checking for XGAMMA... " >&6; }
11166
11167if test -n "$XGAMMA_CFLAGS"; then
11168    pkg_cv_XGAMMA_CFLAGS="$XGAMMA_CFLAGS"
11169 elif test -n "$PKG_CONFIG"; then
11170    if test -n "$PKG_CONFIG" && \
11171    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xxf86vm xproto >= 7.0.17\""; } >&5
11172  ($PKG_CONFIG --exists --print-errors "x11 xxf86vm xproto >= 7.0.17") 2>&5
11173  ac_status=$?
11174  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11175  test $ac_status = 0; }; then
11176  pkg_cv_XGAMMA_CFLAGS=`$PKG_CONFIG --cflags "x11 xxf86vm xproto >= 7.0.17" 2>/dev/null`
11177		      test "x$?" != "x0" && pkg_failed=yes
11178else
11179  pkg_failed=yes
11180fi
11181 else
11182    pkg_failed=untried
11183fi
11184if test -n "$XGAMMA_LIBS"; then
11185    pkg_cv_XGAMMA_LIBS="$XGAMMA_LIBS"
11186 elif test -n "$PKG_CONFIG"; then
11187    if test -n "$PKG_CONFIG" && \
11188    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xxf86vm xproto >= 7.0.17\""; } >&5
11189  ($PKG_CONFIG --exists --print-errors "x11 xxf86vm xproto >= 7.0.17") 2>&5
11190  ac_status=$?
11191  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11192  test $ac_status = 0; }; then
11193  pkg_cv_XGAMMA_LIBS=`$PKG_CONFIG --libs "x11 xxf86vm xproto >= 7.0.17" 2>/dev/null`
11194		      test "x$?" != "x0" && pkg_failed=yes
11195else
11196  pkg_failed=yes
11197fi
11198 else
11199    pkg_failed=untried
11200fi
11201
11202
11203
11204if test $pkg_failed = yes; then
11205   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206printf "%s\n" "no" >&6; }
11207
11208if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11209        _pkg_short_errors_supported=yes
11210else
11211        _pkg_short_errors_supported=no
11212fi
11213        if test $_pkg_short_errors_supported = yes; then
11214	        XGAMMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xxf86vm xproto >= 7.0.17" 2>&1`
11215        else
11216	        XGAMMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xxf86vm xproto >= 7.0.17" 2>&1`
11217        fi
11218	# Put the nasty error message in config.log where it belongs
11219	echo "$XGAMMA_PKG_ERRORS" >&5
11220
11221	as_fn_error $? "Package requirements (x11 xxf86vm xproto >= 7.0.17) were not met:
11222
11223$XGAMMA_PKG_ERRORS
11224
11225Consider adjusting the PKG_CONFIG_PATH environment variable if you
11226installed software in a non-standard prefix.
11227
11228Alternatively, you may set the environment variables XGAMMA_CFLAGS
11229and XGAMMA_LIBS to avoid the need to call pkg-config.
11230See the pkg-config man page for more details." "$LINENO" 5
11231elif test $pkg_failed = untried; then
11232     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233printf "%s\n" "no" >&6; }
11234	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11235printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11236as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11237is in your PATH or set the PKG_CONFIG environment variable to the full
11238path to pkg-config.
11239
11240Alternatively, you may set the environment variables XGAMMA_CFLAGS
11241and XGAMMA_LIBS to avoid the need to call pkg-config.
11242See the pkg-config man page for more details.
11243
11244To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11245See \`config.log' for more details" "$LINENO" 5; }
11246else
11247	XGAMMA_CFLAGS=$pkg_cv_XGAMMA_CFLAGS
11248	XGAMMA_LIBS=$pkg_cv_XGAMMA_LIBS
11249        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11250printf "%s\n" "yes" >&6; }
11251
11252fi
11253
11254ac_config_files="$ac_config_files Makefile man/Makefile"
11255
11256cat >confcache <<\_ACEOF
11257# This file is a shell script that caches the results of configure
11258# tests run on this system so they can be shared between configure
11259# scripts and configure runs, see configure's option --config-cache.
11260# It is not useful on other systems.  If it contains results you don't
11261# want to keep, you may remove or edit it.
11262#
11263# config.status only pays attention to the cache file if you give it
11264# the --recheck option to rerun configure.
11265#
11266# `ac_cv_env_foo' variables (set or unset) will be overridden when
11267# loading this file, other *unset* `ac_cv_foo' will be assigned the
11268# following values.
11269
11270_ACEOF
11271
11272# The following way of writing the cache mishandles newlines in values,
11273# but we know of no workaround that is simple, portable, and efficient.
11274# So, we kill variables containing newlines.
11275# Ultrix sh set writes to stderr and can't be redirected directly,
11276# and sets the high bit in the cache file unless we assign to the vars.
11277(
11278  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11279    eval ac_val=\$$ac_var
11280    case $ac_val in #(
11281    *${as_nl}*)
11282      case $ac_var in #(
11283      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11284printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11285      esac
11286      case $ac_var in #(
11287      _ | IFS | as_nl) ;; #(
11288      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11289      *) { eval $ac_var=; unset $ac_var;} ;;
11290      esac ;;
11291    esac
11292  done
11293
11294  (set) 2>&1 |
11295    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11296    *${as_nl}ac_space=\ *)
11297      # `set' does not quote correctly, so add quotes: double-quote
11298      # substitution turns \\\\ into \\, and sed turns \\ into \.
11299      sed -n \
11300	"s/'/'\\\\''/g;
11301	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11302      ;; #(
11303    *)
11304      # `set' quotes correctly as required by POSIX, so do not add quotes.
11305      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11306      ;;
11307    esac |
11308    sort
11309) |
11310  sed '
11311     /^ac_cv_env_/b end
11312     t clear
11313     :clear
11314     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11315     t end
11316     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11317     :end' >>confcache
11318if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11319  if test -w "$cache_file"; then
11320    if test "x$cache_file" != "x/dev/null"; then
11321      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11322printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11323      if test ! -f "$cache_file" || test -h "$cache_file"; then
11324	cat confcache >"$cache_file"
11325      else
11326        case $cache_file in #(
11327        */* | ?:*)
11328	  mv -f confcache "$cache_file"$$ &&
11329	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11330        *)
11331	  mv -f confcache "$cache_file" ;;
11332	esac
11333      fi
11334    fi
11335  else
11336    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11337printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11338  fi
11339fi
11340rm -f confcache
11341
11342test "x$prefix" = xNONE && prefix=$ac_default_prefix
11343# Let make expand exec_prefix.
11344test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11345
11346DEFS=-DHAVE_CONFIG_H
11347
11348ac_libobjs=
11349ac_ltlibobjs=
11350U=
11351for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11352  # 1. Remove the extension, and $U if already installed.
11353  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11354  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11355  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11356  #    will be set to the directory where LIBOBJS objects are built.
11357  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11358  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11359done
11360LIBOBJS=$ac_libobjs
11361
11362LTLIBOBJS=$ac_ltlibobjs
11363
11364
11365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11366printf %s "checking that generated files are newer than configure... " >&6; }
11367   if test -n "$am_sleep_pid"; then
11368     # Hide warnings about reused PIDs.
11369     wait $am_sleep_pid 2>/dev/null
11370   fi
11371   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11372printf "%s\n" "done" >&6; }
11373 if test -n "$EXEEXT"; then
11374  am__EXEEXT_TRUE=
11375  am__EXEEXT_FALSE='#'
11376else
11377  am__EXEEXT_TRUE='#'
11378  am__EXEEXT_FALSE=
11379fi
11380
11381if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11382  as_fn_error $? "conditional \"AMDEP\" was never defined.
11383Usually this means the macro was only invoked conditionally." "$LINENO" 5
11384fi
11385if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11386  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11387Usually this means the macro was only invoked conditionally." "$LINENO" 5
11388fi
11389
11390: "${CONFIG_STATUS=./config.status}"
11391ac_write_fail=0
11392ac_clean_files_save=$ac_clean_files
11393ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11395printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11396as_write_fail=0
11397cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11398#! $SHELL
11399# Generated by $as_me.
11400# Run this file to recreate the current configuration.
11401# Compiler output produced by configure, useful for debugging
11402# configure, is in config.log if it exists.
11403
11404debug=false
11405ac_cs_recheck=false
11406ac_cs_silent=false
11407
11408SHELL=\${CONFIG_SHELL-$SHELL}
11409export SHELL
11410_ASEOF
11411cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11412## -------------------- ##
11413## M4sh Initialization. ##
11414## -------------------- ##
11415
11416# Be more Bourne compatible
11417DUALCASE=1; export DUALCASE # for MKS sh
11418as_nop=:
11419if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11420then :
11421  emulate sh
11422  NULLCMD=:
11423  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11424  # is contrary to our usage.  Disable this feature.
11425  alias -g '${1+"$@"}'='"$@"'
11426  setopt NO_GLOB_SUBST
11427else $as_nop
11428  case `(set -o) 2>/dev/null` in #(
11429  *posix*) :
11430    set -o posix ;; #(
11431  *) :
11432     ;;
11433esac
11434fi
11435
11436
11437
11438# Reset variables that may have inherited troublesome values from
11439# the environment.
11440
11441# IFS needs to be set, to space, tab, and newline, in precisely that order.
11442# (If _AS_PATH_WALK were called with IFS unset, it would have the
11443# side effect of setting IFS to empty, thus disabling word splitting.)
11444# Quoting is to prevent editors from complaining about space-tab.
11445as_nl='
11446'
11447export as_nl
11448IFS=" ""	$as_nl"
11449
11450PS1='$ '
11451PS2='> '
11452PS4='+ '
11453
11454# Ensure predictable behavior from utilities with locale-dependent output.
11455LC_ALL=C
11456export LC_ALL
11457LANGUAGE=C
11458export LANGUAGE
11459
11460# We cannot yet rely on "unset" to work, but we need these variables
11461# to be unset--not just set to an empty or harmless value--now, to
11462# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11463# also avoids known problems related to "unset" and subshell syntax
11464# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11465for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11466do eval test \${$as_var+y} \
11467  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11468done
11469
11470# Ensure that fds 0, 1, and 2 are open.
11471if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11472if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11473if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11474
11475# The user is always right.
11476if ${PATH_SEPARATOR+false} :; then
11477  PATH_SEPARATOR=:
11478  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11479    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11480      PATH_SEPARATOR=';'
11481  }
11482fi
11483
11484
11485# Find who we are.  Look in the path if we contain no directory separator.
11486as_myself=
11487case $0 in #((
11488  *[\\/]* ) as_myself=$0 ;;
11489  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490for as_dir in $PATH
11491do
11492  IFS=$as_save_IFS
11493  case $as_dir in #(((
11494    '') as_dir=./ ;;
11495    */) ;;
11496    *) as_dir=$as_dir/ ;;
11497  esac
11498    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11499  done
11500IFS=$as_save_IFS
11501
11502     ;;
11503esac
11504# We did not find ourselves, most probably we were run as `sh COMMAND'
11505# in which case we are not to be found in the path.
11506if test "x$as_myself" = x; then
11507  as_myself=$0
11508fi
11509if test ! -f "$as_myself"; then
11510  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11511  exit 1
11512fi
11513
11514
11515
11516# as_fn_error STATUS ERROR [LINENO LOG_FD]
11517# ----------------------------------------
11518# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11519# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11520# script with STATUS, using 1 if that was 0.
11521as_fn_error ()
11522{
11523  as_status=$1; test $as_status -eq 0 && as_status=1
11524  if test "$4"; then
11525    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11526    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11527  fi
11528  printf "%s\n" "$as_me: error: $2" >&2
11529  as_fn_exit $as_status
11530} # as_fn_error
11531
11532
11533
11534# as_fn_set_status STATUS
11535# -----------------------
11536# Set $? to STATUS, without forking.
11537as_fn_set_status ()
11538{
11539  return $1
11540} # as_fn_set_status
11541
11542# as_fn_exit STATUS
11543# -----------------
11544# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11545as_fn_exit ()
11546{
11547  set +e
11548  as_fn_set_status $1
11549  exit $1
11550} # as_fn_exit
11551
11552# as_fn_unset VAR
11553# ---------------
11554# Portably unset VAR.
11555as_fn_unset ()
11556{
11557  { eval $1=; unset $1;}
11558}
11559as_unset=as_fn_unset
11560
11561# as_fn_append VAR VALUE
11562# ----------------------
11563# Append the text in VALUE to the end of the definition contained in VAR. Take
11564# advantage of any shell optimizations that allow amortized linear growth over
11565# repeated appends, instead of the typical quadratic growth present in naive
11566# implementations.
11567if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11568then :
11569  eval 'as_fn_append ()
11570  {
11571    eval $1+=\$2
11572  }'
11573else $as_nop
11574  as_fn_append ()
11575  {
11576    eval $1=\$$1\$2
11577  }
11578fi # as_fn_append
11579
11580# as_fn_arith ARG...
11581# ------------------
11582# Perform arithmetic evaluation on the ARGs, and store the result in the
11583# global $as_val. Take advantage of shells that can avoid forks. The arguments
11584# must be portable across $(()) and expr.
11585if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11586then :
11587  eval 'as_fn_arith ()
11588  {
11589    as_val=$(( $* ))
11590  }'
11591else $as_nop
11592  as_fn_arith ()
11593  {
11594    as_val=`expr "$@" || test $? -eq 1`
11595  }
11596fi # as_fn_arith
11597
11598
11599if expr a : '\(a\)' >/dev/null 2>&1 &&
11600   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11601  as_expr=expr
11602else
11603  as_expr=false
11604fi
11605
11606if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11607  as_basename=basename
11608else
11609  as_basename=false
11610fi
11611
11612if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11613  as_dirname=dirname
11614else
11615  as_dirname=false
11616fi
11617
11618as_me=`$as_basename -- "$0" ||
11619$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11620	 X"$0" : 'X\(//\)$' \| \
11621	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11622printf "%s\n" X/"$0" |
11623    sed '/^.*\/\([^/][^/]*\)\/*$/{
11624	    s//\1/
11625	    q
11626	  }
11627	  /^X\/\(\/\/\)$/{
11628	    s//\1/
11629	    q
11630	  }
11631	  /^X\/\(\/\).*/{
11632	    s//\1/
11633	    q
11634	  }
11635	  s/.*/./; q'`
11636
11637# Avoid depending upon Character Ranges.
11638as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11639as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11640as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11641as_cr_digits='0123456789'
11642as_cr_alnum=$as_cr_Letters$as_cr_digits
11643
11644
11645# Determine whether it's possible to make 'echo' print without a newline.
11646# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11647# for compatibility with existing Makefiles.
11648ECHO_C= ECHO_N= ECHO_T=
11649case `echo -n x` in #(((((
11650-n*)
11651  case `echo 'xy\c'` in
11652  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11653  xy)  ECHO_C='\c';;
11654  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11655       ECHO_T='	';;
11656  esac;;
11657*)
11658  ECHO_N='-n';;
11659esac
11660
11661# For backward compatibility with old third-party macros, we provide
11662# the shell variables $as_echo and $as_echo_n.  New code should use
11663# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11664as_echo='printf %s\n'
11665as_echo_n='printf %s'
11666
11667rm -f conf$$ conf$$.exe conf$$.file
11668if test -d conf$$.dir; then
11669  rm -f conf$$.dir/conf$$.file
11670else
11671  rm -f conf$$.dir
11672  mkdir conf$$.dir 2>/dev/null
11673fi
11674if (echo >conf$$.file) 2>/dev/null; then
11675  if ln -s conf$$.file conf$$ 2>/dev/null; then
11676    as_ln_s='ln -s'
11677    # ... but there are two gotchas:
11678    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11679    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11680    # In both cases, we have to default to `cp -pR'.
11681    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11682      as_ln_s='cp -pR'
11683  elif ln conf$$.file conf$$ 2>/dev/null; then
11684    as_ln_s=ln
11685  else
11686    as_ln_s='cp -pR'
11687  fi
11688else
11689  as_ln_s='cp -pR'
11690fi
11691rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11692rmdir conf$$.dir 2>/dev/null
11693
11694
11695# as_fn_mkdir_p
11696# -------------
11697# Create "$as_dir" as a directory, including parents if necessary.
11698as_fn_mkdir_p ()
11699{
11700
11701  case $as_dir in #(
11702  -*) as_dir=./$as_dir;;
11703  esac
11704  test -d "$as_dir" || eval $as_mkdir_p || {
11705    as_dirs=
11706    while :; do
11707      case $as_dir in #(
11708      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11709      *) as_qdir=$as_dir;;
11710      esac
11711      as_dirs="'$as_qdir' $as_dirs"
11712      as_dir=`$as_dirname -- "$as_dir" ||
11713$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11714	 X"$as_dir" : 'X\(//\)[^/]' \| \
11715	 X"$as_dir" : 'X\(//\)$' \| \
11716	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11717printf "%s\n" X"$as_dir" |
11718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11719	    s//\1/
11720	    q
11721	  }
11722	  /^X\(\/\/\)[^/].*/{
11723	    s//\1/
11724	    q
11725	  }
11726	  /^X\(\/\/\)$/{
11727	    s//\1/
11728	    q
11729	  }
11730	  /^X\(\/\).*/{
11731	    s//\1/
11732	    q
11733	  }
11734	  s/.*/./; q'`
11735      test -d "$as_dir" && break
11736    done
11737    test -z "$as_dirs" || eval "mkdir $as_dirs"
11738  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11739
11740
11741} # as_fn_mkdir_p
11742if mkdir -p . 2>/dev/null; then
11743  as_mkdir_p='mkdir -p "$as_dir"'
11744else
11745  test -d ./-p && rmdir ./-p
11746  as_mkdir_p=false
11747fi
11748
11749
11750# as_fn_executable_p FILE
11751# -----------------------
11752# Test if FILE is an executable regular file.
11753as_fn_executable_p ()
11754{
11755  test -f "$1" && test -x "$1"
11756} # as_fn_executable_p
11757as_test_x='test -x'
11758as_executable_p=as_fn_executable_p
11759
11760# Sed expression to map a string onto a valid CPP name.
11761as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11762
11763# Sed expression to map a string onto a valid variable name.
11764as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11765
11766
11767exec 6>&1
11768## ----------------------------------- ##
11769## Main body of $CONFIG_STATUS script. ##
11770## ----------------------------------- ##
11771_ASEOF
11772test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11773
11774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11775# Save the log message, to keep $0 and so on meaningful, and to
11776# report actual input values of CONFIG_FILES etc. instead of their
11777# values after options handling.
11778ac_log="
11779This file was extended by xgamma $as_me 1.0.7, which was
11780generated by GNU Autoconf 2.71.  Invocation command line was
11781
11782  CONFIG_FILES    = $CONFIG_FILES
11783  CONFIG_HEADERS  = $CONFIG_HEADERS
11784  CONFIG_LINKS    = $CONFIG_LINKS
11785  CONFIG_COMMANDS = $CONFIG_COMMANDS
11786  $ $0 $@
11787
11788on `(hostname || uname -n) 2>/dev/null | sed 1q`
11789"
11790
11791_ACEOF
11792
11793case $ac_config_files in *"
11794"*) set x $ac_config_files; shift; ac_config_files=$*;;
11795esac
11796
11797case $ac_config_headers in *"
11798"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11799esac
11800
11801
11802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11803# Files that config.status was made for.
11804config_files="$ac_config_files"
11805config_headers="$ac_config_headers"
11806config_commands="$ac_config_commands"
11807
11808_ACEOF
11809
11810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11811ac_cs_usage="\
11812\`$as_me' instantiates files and other configuration actions
11813from templates according to the current configuration.  Unless the files
11814and actions are specified as TAGs, all are instantiated by default.
11815
11816Usage: $0 [OPTION]... [TAG]...
11817
11818  -h, --help       print this help, then exit
11819  -V, --version    print version number and configuration settings, then exit
11820      --config     print configuration, then exit
11821  -q, --quiet, --silent
11822                   do not print progress messages
11823  -d, --debug      don't remove temporary files
11824      --recheck    update $as_me by reconfiguring in the same conditions
11825      --file=FILE[:TEMPLATE]
11826                   instantiate the configuration file FILE
11827      --header=FILE[:TEMPLATE]
11828                   instantiate the configuration header FILE
11829
11830Configuration files:
11831$config_files
11832
11833Configuration headers:
11834$config_headers
11835
11836Configuration commands:
11837$config_commands
11838
11839Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues>."
11840
11841_ACEOF
11842ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11843ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11845ac_cs_config='$ac_cs_config_escaped'
11846ac_cs_version="\\
11847xgamma config.status 1.0.7
11848configured by $0, generated by GNU Autoconf 2.71,
11849  with options \\"\$ac_cs_config\\"
11850
11851Copyright (C) 2021 Free Software Foundation, Inc.
11852This config.status script is free software; the Free Software Foundation
11853gives unlimited permission to copy, distribute and modify it."
11854
11855ac_pwd='$ac_pwd'
11856srcdir='$srcdir'
11857INSTALL='$INSTALL'
11858MKDIR_P='$MKDIR_P'
11859AWK='$AWK'
11860test -n "\$AWK" || AWK=awk
11861_ACEOF
11862
11863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11864# The default lists apply if the user does not specify any file.
11865ac_need_defaults=:
11866while test $# != 0
11867do
11868  case $1 in
11869  --*=?*)
11870    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11871    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11872    ac_shift=:
11873    ;;
11874  --*=)
11875    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11876    ac_optarg=
11877    ac_shift=:
11878    ;;
11879  *)
11880    ac_option=$1
11881    ac_optarg=$2
11882    ac_shift=shift
11883    ;;
11884  esac
11885
11886  case $ac_option in
11887  # Handling of the options.
11888  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11889    ac_cs_recheck=: ;;
11890  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11891    printf "%s\n" "$ac_cs_version"; exit ;;
11892  --config | --confi | --conf | --con | --co | --c )
11893    printf "%s\n" "$ac_cs_config"; exit ;;
11894  --debug | --debu | --deb | --de | --d | -d )
11895    debug=: ;;
11896  --file | --fil | --fi | --f )
11897    $ac_shift
11898    case $ac_optarg in
11899    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11900    '') as_fn_error $? "missing file argument" ;;
11901    esac
11902    as_fn_append CONFIG_FILES " '$ac_optarg'"
11903    ac_need_defaults=false;;
11904  --header | --heade | --head | --hea )
11905    $ac_shift
11906    case $ac_optarg in
11907    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11908    esac
11909    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11910    ac_need_defaults=false;;
11911  --he | --h)
11912    # Conflict between --help and --header
11913    as_fn_error $? "ambiguous option: \`$1'
11914Try \`$0 --help' for more information.";;
11915  --help | --hel | -h )
11916    printf "%s\n" "$ac_cs_usage"; exit ;;
11917  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11918  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11919    ac_cs_silent=: ;;
11920
11921  # This is an error.
11922  -*) as_fn_error $? "unrecognized option: \`$1'
11923Try \`$0 --help' for more information." ;;
11924
11925  *) as_fn_append ac_config_targets " $1"
11926     ac_need_defaults=false ;;
11927
11928  esac
11929  shift
11930done
11931
11932ac_configure_extra_args=
11933
11934if $ac_cs_silent; then
11935  exec 6>/dev/null
11936  ac_configure_extra_args="$ac_configure_extra_args --silent"
11937fi
11938
11939_ACEOF
11940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11941if \$ac_cs_recheck; then
11942  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11943  shift
11944  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11945  CONFIG_SHELL='$SHELL'
11946  export CONFIG_SHELL
11947  exec "\$@"
11948fi
11949
11950_ACEOF
11951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11952exec 5>>config.log
11953{
11954  echo
11955  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11956## Running $as_me. ##
11957_ASBOX
11958  printf "%s\n" "$ac_log"
11959} >&5
11960
11961_ACEOF
11962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11963#
11964# INIT-COMMANDS
11965#
11966AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11967
11968_ACEOF
11969
11970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11971
11972# Handling of arguments.
11973for ac_config_target in $ac_config_targets
11974do
11975  case $ac_config_target in
11976    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11977    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11978    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11979    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11980
11981  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11982  esac
11983done
11984
11985
11986# If the user did not use the arguments to specify the items to instantiate,
11987# then the envvar interface is used.  Set only those that are not.
11988# We use the long form for the default assignment because of an extremely
11989# bizarre bug on SunOS 4.1.3.
11990if $ac_need_defaults; then
11991  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11992  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11993  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11994fi
11995
11996# Have a temporary directory for convenience.  Make it in the build tree
11997# simply because there is no reason against having it here, and in addition,
11998# creating and moving files from /tmp can sometimes cause problems.
11999# Hook for its removal unless debugging.
12000# Note that there is a small window in which the directory will not be cleaned:
12001# after its creation but before its name has been assigned to `$tmp'.
12002$debug ||
12003{
12004  tmp= ac_tmp=
12005  trap 'exit_status=$?
12006  : "${ac_tmp:=$tmp}"
12007  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12008' 0
12009  trap 'as_fn_exit 1' 1 2 13 15
12010}
12011# Create a (secure) tmp directory for tmp files.
12012
12013{
12014  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12015  test -d "$tmp"
12016}  ||
12017{
12018  tmp=./conf$$-$RANDOM
12019  (umask 077 && mkdir "$tmp")
12020} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12021ac_tmp=$tmp
12022
12023# Set up the scripts for CONFIG_FILES section.
12024# No need to generate them if there are no CONFIG_FILES.
12025# This happens for instance with `./config.status config.h'.
12026if test -n "$CONFIG_FILES"; then
12027
12028
12029ac_cr=`echo X | tr X '\015'`
12030# On cygwin, bash can eat \r inside `` if the user requested igncr.
12031# But we know of no other shell where ac_cr would be empty at this
12032# point, so we can use a bashism as a fallback.
12033if test "x$ac_cr" = x; then
12034  eval ac_cr=\$\'\\r\'
12035fi
12036ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12037if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12038  ac_cs_awk_cr='\\r'
12039else
12040  ac_cs_awk_cr=$ac_cr
12041fi
12042
12043echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12044_ACEOF
12045
12046
12047{
12048  echo "cat >conf$$subs.awk <<_ACEOF" &&
12049  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12050  echo "_ACEOF"
12051} >conf$$subs.sh ||
12052  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12053ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12054ac_delim='%!_!# '
12055for ac_last_try in false false false false false :; do
12056  . ./conf$$subs.sh ||
12057    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12058
12059  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12060  if test $ac_delim_n = $ac_delim_num; then
12061    break
12062  elif $ac_last_try; then
12063    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12064  else
12065    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12066  fi
12067done
12068rm -f conf$$subs.sh
12069
12070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12071cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12072_ACEOF
12073sed -n '
12074h
12075s/^/S["/; s/!.*/"]=/
12076p
12077g
12078s/^[^!]*!//
12079:repl
12080t repl
12081s/'"$ac_delim"'$//
12082t delim
12083:nl
12084h
12085s/\(.\{148\}\)..*/\1/
12086t more1
12087s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12088p
12089n
12090b repl
12091:more1
12092s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12093p
12094g
12095s/.\{148\}//
12096t nl
12097:delim
12098h
12099s/\(.\{148\}\)..*/\1/
12100t more2
12101s/["\\]/\\&/g; s/^/"/; s/$/"/
12102p
12103b
12104:more2
12105s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12106p
12107g
12108s/.\{148\}//
12109t delim
12110' <conf$$subs.awk | sed '
12111/^[^""]/{
12112  N
12113  s/\n//
12114}
12115' >>$CONFIG_STATUS || ac_write_fail=1
12116rm -f conf$$subs.awk
12117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12118_ACAWK
12119cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12120  for (key in S) S_is_set[key] = 1
12121  FS = ""
12122
12123}
12124{
12125  line = $ 0
12126  nfields = split(line, field, "@")
12127  substed = 0
12128  len = length(field[1])
12129  for (i = 2; i < nfields; i++) {
12130    key = field[i]
12131    keylen = length(key)
12132    if (S_is_set[key]) {
12133      value = S[key]
12134      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12135      len += length(value) + length(field[++i])
12136      substed = 1
12137    } else
12138      len += 1 + keylen
12139  }
12140
12141  print line
12142}
12143
12144_ACAWK
12145_ACEOF
12146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12147if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12148  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12149else
12150  cat
12151fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12152  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12153_ACEOF
12154
12155# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12156# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12157# trailing colons and then remove the whole line if VPATH becomes empty
12158# (actually we leave an empty line to preserve line numbers).
12159if test "x$srcdir" = x.; then
12160  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12161h
12162s///
12163s/^/:/
12164s/[	 ]*$/:/
12165s/:\$(srcdir):/:/g
12166s/:\${srcdir}:/:/g
12167s/:@srcdir@:/:/g
12168s/^:*//
12169s/:*$//
12170x
12171s/\(=[	 ]*\).*/\1/
12172G
12173s/\n//
12174s/^[^=]*=[	 ]*$//
12175}'
12176fi
12177
12178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12179fi # test -n "$CONFIG_FILES"
12180
12181# Set up the scripts for CONFIG_HEADERS section.
12182# No need to generate them if there are no CONFIG_HEADERS.
12183# This happens for instance with `./config.status Makefile'.
12184if test -n "$CONFIG_HEADERS"; then
12185cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12186BEGIN {
12187_ACEOF
12188
12189# Transform confdefs.h into an awk script `defines.awk', embedded as
12190# here-document in config.status, that substitutes the proper values into
12191# config.h.in to produce config.h.
12192
12193# Create a delimiter string that does not exist in confdefs.h, to ease
12194# handling of long lines.
12195ac_delim='%!_!# '
12196for ac_last_try in false false :; do
12197  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12198  if test -z "$ac_tt"; then
12199    break
12200  elif $ac_last_try; then
12201    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12202  else
12203    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12204  fi
12205done
12206
12207# For the awk script, D is an array of macro values keyed by name,
12208# likewise P contains macro parameters if any.  Preserve backslash
12209# newline sequences.
12210
12211ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12212sed -n '
12213s/.\{148\}/&'"$ac_delim"'/g
12214t rset
12215:rset
12216s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12217t def
12218d
12219:def
12220s/\\$//
12221t bsnl
12222s/["\\]/\\&/g
12223s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12224D["\1"]=" \3"/p
12225s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12226d
12227:bsnl
12228s/["\\]/\\&/g
12229s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12230D["\1"]=" \3\\\\\\n"\\/p
12231t cont
12232s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12233t cont
12234d
12235:cont
12236n
12237s/.\{148\}/&'"$ac_delim"'/g
12238t clear
12239:clear
12240s/\\$//
12241t bsnlc
12242s/["\\]/\\&/g; s/^/"/; s/$/"/p
12243d
12244:bsnlc
12245s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12246b cont
12247' <confdefs.h | sed '
12248s/'"$ac_delim"'/"\\\
12249"/g' >>$CONFIG_STATUS || ac_write_fail=1
12250
12251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12252  for (key in D) D_is_set[key] = 1
12253  FS = ""
12254}
12255/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12256  line = \$ 0
12257  split(line, arg, " ")
12258  if (arg[1] == "#") {
12259    defundef = arg[2]
12260    mac1 = arg[3]
12261  } else {
12262    defundef = substr(arg[1], 2)
12263    mac1 = arg[2]
12264  }
12265  split(mac1, mac2, "(") #)
12266  macro = mac2[1]
12267  prefix = substr(line, 1, index(line, defundef) - 1)
12268  if (D_is_set[macro]) {
12269    # Preserve the white space surrounding the "#".
12270    print prefix "define", macro P[macro] D[macro]
12271    next
12272  } else {
12273    # Replace #undef with comments.  This is necessary, for example,
12274    # in the case of _POSIX_SOURCE, which is predefined and required
12275    # on some systems where configure will not decide to define it.
12276    if (defundef == "undef") {
12277      print "/*", prefix defundef, macro, "*/"
12278      next
12279    }
12280  }
12281}
12282{ print }
12283_ACAWK
12284_ACEOF
12285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12286  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12287fi # test -n "$CONFIG_HEADERS"
12288
12289
12290eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12291shift
12292for ac_tag
12293do
12294  case $ac_tag in
12295  :[FHLC]) ac_mode=$ac_tag; continue;;
12296  esac
12297  case $ac_mode$ac_tag in
12298  :[FHL]*:*);;
12299  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12300  :[FH]-) ac_tag=-:-;;
12301  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12302  esac
12303  ac_save_IFS=$IFS
12304  IFS=:
12305  set x $ac_tag
12306  IFS=$ac_save_IFS
12307  shift
12308  ac_file=$1
12309  shift
12310
12311  case $ac_mode in
12312  :L) ac_source=$1;;
12313  :[FH])
12314    ac_file_inputs=
12315    for ac_f
12316    do
12317      case $ac_f in
12318      -) ac_f="$ac_tmp/stdin";;
12319      *) # Look for the file first in the build tree, then in the source tree
12320	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12321	 # because $ac_f cannot contain `:'.
12322	 test -f "$ac_f" ||
12323	   case $ac_f in
12324	   [\\/$]*) false;;
12325	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12326	   esac ||
12327	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12328      esac
12329      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12330      as_fn_append ac_file_inputs " '$ac_f'"
12331    done
12332
12333    # Let's still pretend it is `configure' which instantiates (i.e., don't
12334    # use $as_me), people would be surprised to read:
12335    #    /* config.h.  Generated by config.status.  */
12336    configure_input='Generated from '`
12337	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12338	`' by configure.'
12339    if test x"$ac_file" != x-; then
12340      configure_input="$ac_file.  $configure_input"
12341      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12342printf "%s\n" "$as_me: creating $ac_file" >&6;}
12343    fi
12344    # Neutralize special characters interpreted by sed in replacement strings.
12345    case $configure_input in #(
12346    *\&* | *\|* | *\\* )
12347       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12348       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12349    *) ac_sed_conf_input=$configure_input;;
12350    esac
12351
12352    case $ac_tag in
12353    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12354      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12355    esac
12356    ;;
12357  esac
12358
12359  ac_dir=`$as_dirname -- "$ac_file" ||
12360$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12361	 X"$ac_file" : 'X\(//\)[^/]' \| \
12362	 X"$ac_file" : 'X\(//\)$' \| \
12363	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12364printf "%s\n" X"$ac_file" |
12365    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12366	    s//\1/
12367	    q
12368	  }
12369	  /^X\(\/\/\)[^/].*/{
12370	    s//\1/
12371	    q
12372	  }
12373	  /^X\(\/\/\)$/{
12374	    s//\1/
12375	    q
12376	  }
12377	  /^X\(\/\).*/{
12378	    s//\1/
12379	    q
12380	  }
12381	  s/.*/./; q'`
12382  as_dir="$ac_dir"; as_fn_mkdir_p
12383  ac_builddir=.
12384
12385case "$ac_dir" in
12386.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12387*)
12388  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12389  # A ".." for each directory in $ac_dir_suffix.
12390  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12391  case $ac_top_builddir_sub in
12392  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12393  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12394  esac ;;
12395esac
12396ac_abs_top_builddir=$ac_pwd
12397ac_abs_builddir=$ac_pwd$ac_dir_suffix
12398# for backward compatibility:
12399ac_top_builddir=$ac_top_build_prefix
12400
12401case $srcdir in
12402  .)  # We are building in place.
12403    ac_srcdir=.
12404    ac_top_srcdir=$ac_top_builddir_sub
12405    ac_abs_top_srcdir=$ac_pwd ;;
12406  [\\/]* | ?:[\\/]* )  # Absolute name.
12407    ac_srcdir=$srcdir$ac_dir_suffix;
12408    ac_top_srcdir=$srcdir
12409    ac_abs_top_srcdir=$srcdir ;;
12410  *) # Relative name.
12411    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12412    ac_top_srcdir=$ac_top_build_prefix$srcdir
12413    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12414esac
12415ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12416
12417
12418  case $ac_mode in
12419  :F)
12420  #
12421  # CONFIG_FILE
12422  #
12423
12424  case $INSTALL in
12425  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12426  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12427  esac
12428  ac_MKDIR_P=$MKDIR_P
12429  case $MKDIR_P in
12430  [\\/$]* | ?:[\\/]* ) ;;
12431  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12432  esac
12433_ACEOF
12434
12435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12436# If the template does not know about datarootdir, expand it.
12437# FIXME: This hack should be removed a few years after 2.60.
12438ac_datarootdir_hack=; ac_datarootdir_seen=
12439ac_sed_dataroot='
12440/datarootdir/ {
12441  p
12442  q
12443}
12444/@datadir@/p
12445/@docdir@/p
12446/@infodir@/p
12447/@localedir@/p
12448/@mandir@/p'
12449case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12450*datarootdir*) ac_datarootdir_seen=yes;;
12451*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12453printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12454_ACEOF
12455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12456  ac_datarootdir_hack='
12457  s&@datadir@&$datadir&g
12458  s&@docdir@&$docdir&g
12459  s&@infodir@&$infodir&g
12460  s&@localedir@&$localedir&g
12461  s&@mandir@&$mandir&g
12462  s&\\\${datarootdir}&$datarootdir&g' ;;
12463esac
12464_ACEOF
12465
12466# Neutralize VPATH when `$srcdir' = `.'.
12467# Shell code in configure.ac might set extrasub.
12468# FIXME: do we really want to maintain this feature?
12469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12470ac_sed_extra="$ac_vpsub
12471$extrasub
12472_ACEOF
12473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12474:t
12475/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12476s|@configure_input@|$ac_sed_conf_input|;t t
12477s&@top_builddir@&$ac_top_builddir_sub&;t t
12478s&@top_build_prefix@&$ac_top_build_prefix&;t t
12479s&@srcdir@&$ac_srcdir&;t t
12480s&@abs_srcdir@&$ac_abs_srcdir&;t t
12481s&@top_srcdir@&$ac_top_srcdir&;t t
12482s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12483s&@builddir@&$ac_builddir&;t t
12484s&@abs_builddir@&$ac_abs_builddir&;t t
12485s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12486s&@INSTALL@&$ac_INSTALL&;t t
12487s&@MKDIR_P@&$ac_MKDIR_P&;t t
12488$ac_datarootdir_hack
12489"
12490eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12491  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12492
12493test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12494  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12495  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12496      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12498which seems to be undefined.  Please make sure it is defined" >&5
12499printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12500which seems to be undefined.  Please make sure it is defined" >&2;}
12501
12502  rm -f "$ac_tmp/stdin"
12503  case $ac_file in
12504  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12505  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12506  esac \
12507  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12508 ;;
12509  :H)
12510  #
12511  # CONFIG_HEADER
12512  #
12513  if test x"$ac_file" != x-; then
12514    {
12515      printf "%s\n" "/* $configure_input  */" >&1 \
12516      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12517    } >"$ac_tmp/config.h" \
12518      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12519    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12520      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12521printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12522    else
12523      rm -f "$ac_file"
12524      mv "$ac_tmp/config.h" "$ac_file" \
12525	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12526    fi
12527  else
12528    printf "%s\n" "/* $configure_input  */" >&1 \
12529      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12530      || as_fn_error $? "could not create -" "$LINENO" 5
12531  fi
12532# Compute "$ac_file"'s index in $config_headers.
12533_am_arg="$ac_file"
12534_am_stamp_count=1
12535for _am_header in $config_headers :; do
12536  case $_am_header in
12537    $_am_arg | $_am_arg:* )
12538      break ;;
12539    * )
12540      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12541  esac
12542done
12543echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12544$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12545	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12546	 X"$_am_arg" : 'X\(//\)$' \| \
12547	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12548printf "%s\n" X"$_am_arg" |
12549    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12550	    s//\1/
12551	    q
12552	  }
12553	  /^X\(\/\/\)[^/].*/{
12554	    s//\1/
12555	    q
12556	  }
12557	  /^X\(\/\/\)$/{
12558	    s//\1/
12559	    q
12560	  }
12561	  /^X\(\/\).*/{
12562	    s//\1/
12563	    q
12564	  }
12565	  s/.*/./; q'`/stamp-h$_am_stamp_count
12566 ;;
12567
12568  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12569printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12570 ;;
12571  esac
12572
12573
12574  case $ac_file$ac_mode in
12575    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12576  # Older Autoconf quotes --file arguments for eval, but not when files
12577  # are listed without --file.  Let's play safe and only enable the eval
12578  # if we detect the quoting.
12579  # TODO: see whether this extra hack can be removed once we start
12580  # requiring Autoconf 2.70 or later.
12581  case $CONFIG_FILES in #(
12582  *\'*) :
12583    eval set x "$CONFIG_FILES" ;; #(
12584  *) :
12585    set x $CONFIG_FILES ;; #(
12586  *) :
12587     ;;
12588esac
12589  shift
12590  # Used to flag and report bootstrapping failures.
12591  am_rc=0
12592  for am_mf
12593  do
12594    # Strip MF so we end up with the name of the file.
12595    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12596    # Check whether this is an Automake generated Makefile which includes
12597    # dependency-tracking related rules and includes.
12598    # Grep'ing the whole file directly is not great: AIX grep has a line
12599    # limit of 2048, but all sed's we know have understand at least 4000.
12600    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12601      || continue
12602    am_dirpart=`$as_dirname -- "$am_mf" ||
12603$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12604	 X"$am_mf" : 'X\(//\)[^/]' \| \
12605	 X"$am_mf" : 'X\(//\)$' \| \
12606	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12607printf "%s\n" X"$am_mf" |
12608    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12609	    s//\1/
12610	    q
12611	  }
12612	  /^X\(\/\/\)[^/].*/{
12613	    s//\1/
12614	    q
12615	  }
12616	  /^X\(\/\/\)$/{
12617	    s//\1/
12618	    q
12619	  }
12620	  /^X\(\/\).*/{
12621	    s//\1/
12622	    q
12623	  }
12624	  s/.*/./; q'`
12625    am_filepart=`$as_basename -- "$am_mf" ||
12626$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12627	 X"$am_mf" : 'X\(//\)$' \| \
12628	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12629printf "%s\n" X/"$am_mf" |
12630    sed '/^.*\/\([^/][^/]*\)\/*$/{
12631	    s//\1/
12632	    q
12633	  }
12634	  /^X\/\(\/\/\)$/{
12635	    s//\1/
12636	    q
12637	  }
12638	  /^X\/\(\/\).*/{
12639	    s//\1/
12640	    q
12641	  }
12642	  s/.*/./; q'`
12643    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12644      && sed -e '/# am--include-marker/d' "$am_filepart" \
12645        | $MAKE -f - am--depfiles" >&5
12646   (cd "$am_dirpart" \
12647      && sed -e '/# am--include-marker/d' "$am_filepart" \
12648        | $MAKE -f - am--depfiles) >&5 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); } || am_rc=$?
12652  done
12653  if test $am_rc -ne 0; then
12654    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12655printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12656as_fn_error $? "Something went wrong bootstrapping makefile fragments
12657    for automatic dependency tracking.  If GNU make was not used, consider
12658    re-running the configure script with MAKE=\"gmake\" (or whatever is
12659    necessary).  You can also try re-running configure with the
12660    '--disable-dependency-tracking' option to at least be able to build
12661    the package (albeit without support for automatic dependency tracking).
12662See \`config.log' for more details" "$LINENO" 5; }
12663  fi
12664  { am_dirpart=; unset am_dirpart;}
12665  { am_filepart=; unset am_filepart;}
12666  { am_mf=; unset am_mf;}
12667  { am_rc=; unset am_rc;}
12668  rm -f conftest-deps.mk
12669}
12670 ;;
12671
12672  esac
12673done # for ac_tag
12674
12675
12676as_fn_exit 0
12677_ACEOF
12678ac_clean_files=$ac_clean_files_save
12679
12680test $ac_write_fail = 0 ||
12681  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12682
12683
12684# configure is writing to config.log, and then calls config.status.
12685# config.status does its own redirection, appending to config.log.
12686# Unfortunately, on DOS this fails, as config.log is still kept open
12687# by configure, so config.status won't be able to write to it; its
12688# output is simply discarded.  So we exec the FD to /dev/null,
12689# effectively closing config.log, so it can be properly (re)opened and
12690# appended to by config.status.  When coming back to configure, we
12691# need to make the FD available again.
12692if test "$no_create" != yes; then
12693  ac_cs_success=:
12694  ac_config_status_args=
12695  test "$silent" = yes &&
12696    ac_config_status_args="$ac_config_status_args --quiet"
12697  exec 5>/dev/null
12698  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12699  exec 5>>config.log
12700  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12701  # would make configure fail if this is the last instruction.
12702  $ac_cs_success || as_fn_exit 1
12703fi
12704if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12706printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12707fi
12708
12709
12710