1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for viewres 1.0.7.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/viewres/-/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/viewres/-/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='viewres'
614PACKAGE_TARNAME='viewres'
615PACKAGE_VERSION='1.0.7'
616PACKAGE_STRING='viewres 1.0.7'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/viewres/-/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
657appdefaultdir
658VIEWRES_LIBS
659VIEWRES_CFLAGS
660MAN_SUBSTS
661XORG_MAN_PAGE
662ADMIN_MAN_DIR
663DRIVER_MAN_DIR
664MISC_MAN_DIR
665FILE_MAN_DIR
666LIB_MAN_DIR
667APP_MAN_DIR
668ADMIN_MAN_SUFFIX
669DRIVER_MAN_SUFFIX
670MISC_MAN_SUFFIX
671FILE_MAN_SUFFIX
672LIB_MAN_SUFFIX
673APP_MAN_SUFFIX
674SED
675host_os
676host_vendor
677host_cpu
678host
679build_os
680build_vendor
681build_cpu
682build
683INSTALL_CMD
684PKG_CONFIG_LIBDIR
685PKG_CONFIG_PATH
686PKG_CONFIG
687CHANGELOG_CMD
688STRICT_CFLAGS
689CWARNFLAGS
690BASE_CFLAGS
691am__fastdepCC_FALSE
692am__fastdepCC_TRUE
693CCDEPMODE
694am__nodep
695AMDEPBACKSLASH
696AMDEP_FALSE
697AMDEP_TRUE
698am__include
699DEPDIR
700OBJEXT
701EXEEXT
702ac_ct_CC
703CPPFLAGS
704LDFLAGS
705CFLAGS
706CC
707AM_BACKSLASH
708AM_DEFAULT_VERBOSITY
709AM_DEFAULT_V
710AM_V
711CSCOPE
712ETAGS
713CTAGS
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756runstatedir
757localstatedir
758sharedstatedir
759sysconfdir
760datadir
761datarootdir
762libexecdir
763sbindir
764bindir
765program_transform_name
766prefix
767exec_prefix
768PACKAGE_URL
769PACKAGE_BUGREPORT
770PACKAGE_STRING
771PACKAGE_VERSION
772PACKAGE_TARNAME
773PACKAGE_NAME
774PATH_SEPARATOR
775SHELL
776am__quote'
777ac_subst_files=''
778ac_user_opts='
779enable_option_checking
780enable_silent_rules
781enable_dependency_tracking
782enable_selective_werror
783enable_strict_compilation
784with_appdefaultdir
785'
786      ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794PKG_CONFIG
795PKG_CONFIG_PATH
796PKG_CONFIG_LIBDIR
797VIEWRES_CFLAGS
798VIEWRES_LIBS'
799
800
801# Initialize some variables set by options.
802ac_init_help=
803ac_init_version=false
804ac_unrecognized_opts=
805ac_unrecognized_sep=
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
828# (The list follows the same order as the GNU Coding Standards.)
829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
837runstatedir='${localstatedir}/run'
838includedir='${prefix}/include'
839oldincludedir='/usr/include'
840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841infodir='${datarootdir}/info'
842htmldir='${docdir}'
843dvidir='${docdir}'
844pdfdir='${docdir}'
845psdir='${docdir}'
846libdir='${exec_prefix}/lib'
847localedir='${datarootdir}/locale'
848mandir='${datarootdir}/man'
849
850ac_prev=
851ac_dashdash=
852for ac_option
853do
854  # If the previous option needs an argument, assign it.
855  if test -n "$ac_prev"; then
856    eval $ac_prev=\$ac_option
857    ac_prev=
858    continue
859  fi
860
861  case $ac_option in
862  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863  *=)   ac_optarg= ;;
864  *)    ac_optarg=yes ;;
865  esac
866
867  case $ac_dashdash$ac_option in
868  --)
869    ac_dashdash=yes ;;
870
871  -bindir | --bindir | --bindi | --bind | --bin | --bi)
872    ac_prev=bindir ;;
873  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874    bindir=$ac_optarg ;;
875
876  -build | --build | --buil | --bui | --bu)
877    ac_prev=build_alias ;;
878  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879    build_alias=$ac_optarg ;;
880
881  -cache-file | --cache-file | --cache-fil | --cache-fi \
882  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883    ac_prev=cache_file ;;
884  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886    cache_file=$ac_optarg ;;
887
888  --config-cache | -C)
889    cache_file=config.cache ;;
890
891  -datadir | --datadir | --datadi | --datad)
892    ac_prev=datadir ;;
893  -datadir=* | --datadir=* | --datadi=* | --datad=*)
894    datadir=$ac_optarg ;;
895
896  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897  | --dataroo | --dataro | --datar)
898    ac_prev=datarootdir ;;
899  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901    datarootdir=$ac_optarg ;;
902
903  -disable-* | --disable-*)
904    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905    # Reject names that are not valid shell variable names.
906    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907      as_fn_error $? "invalid feature name: \`$ac_useropt'"
908    ac_useropt_orig=$ac_useropt
909    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
910    case $ac_user_opts in
911      *"
912"enable_$ac_useropt"
913"*) ;;
914      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915	 ac_unrecognized_sep=', ';;
916    esac
917    eval enable_$ac_useropt=no ;;
918
919  -docdir | --docdir | --docdi | --doc | --do)
920    ac_prev=docdir ;;
921  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922    docdir=$ac_optarg ;;
923
924  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925    ac_prev=dvidir ;;
926  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927    dvidir=$ac_optarg ;;
928
929  -enable-* | --enable-*)
930    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931    # Reject names that are not valid shell variable names.
932    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933      as_fn_error $? "invalid feature name: \`$ac_useropt'"
934    ac_useropt_orig=$ac_useropt
935    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
936    case $ac_user_opts in
937      *"
938"enable_$ac_useropt"
939"*) ;;
940      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941	 ac_unrecognized_sep=', ';;
942    esac
943    eval enable_$ac_useropt=\$ac_optarg ;;
944
945  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947  | --exec | --exe | --ex)
948    ac_prev=exec_prefix ;;
949  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951  | --exec=* | --exe=* | --ex=*)
952    exec_prefix=$ac_optarg ;;
953
954  -gas | --gas | --ga | --g)
955    # Obsolete; use --with-gas.
956    with_gas=yes ;;
957
958  -help | --help | --hel | --he | -h)
959    ac_init_help=long ;;
960  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961    ac_init_help=recursive ;;
962  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963    ac_init_help=short ;;
964
965  -host | --host | --hos | --ho)
966    ac_prev=host_alias ;;
967  -host=* | --host=* | --hos=* | --ho=*)
968    host_alias=$ac_optarg ;;
969
970  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971    ac_prev=htmldir ;;
972  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973  | --ht=*)
974    htmldir=$ac_optarg ;;
975
976  -includedir | --includedir | --includedi | --included | --include \
977  | --includ | --inclu | --incl | --inc)
978    ac_prev=includedir ;;
979  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980  | --includ=* | --inclu=* | --incl=* | --inc=*)
981    includedir=$ac_optarg ;;
982
983  -infodir | --infodir | --infodi | --infod | --info | --inf)
984    ac_prev=infodir ;;
985  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986    infodir=$ac_optarg ;;
987
988  -libdir | --libdir | --libdi | --libd)
989    ac_prev=libdir ;;
990  -libdir=* | --libdir=* | --libdi=* | --libd=*)
991    libdir=$ac_optarg ;;
992
993  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994  | --libexe | --libex | --libe)
995    ac_prev=libexecdir ;;
996  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997  | --libexe=* | --libex=* | --libe=*)
998    libexecdir=$ac_optarg ;;
999
1000  -localedir | --localedir | --localedi | --localed | --locale)
1001    ac_prev=localedir ;;
1002  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003    localedir=$ac_optarg ;;
1004
1005  -localstatedir | --localstatedir | --localstatedi | --localstated \
1006  | --localstate | --localstat | --localsta | --localst | --locals)
1007    ac_prev=localstatedir ;;
1008  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010    localstatedir=$ac_optarg ;;
1011
1012  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013    ac_prev=mandir ;;
1014  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015    mandir=$ac_optarg ;;
1016
1017  -nfp | --nfp | --nf)
1018    # Obsolete; use --without-fp.
1019    with_fp=no ;;
1020
1021  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022  | --no-cr | --no-c | -n)
1023    no_create=yes ;;
1024
1025  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027    no_recursion=yes ;;
1028
1029  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031  | --oldin | --oldi | --old | --ol | --o)
1032    ac_prev=oldincludedir ;;
1033  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036    oldincludedir=$ac_optarg ;;
1037
1038  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039    ac_prev=prefix ;;
1040  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041    prefix=$ac_optarg ;;
1042
1043  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044  | --program-pre | --program-pr | --program-p)
1045    ac_prev=program_prefix ;;
1046  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048    program_prefix=$ac_optarg ;;
1049
1050  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051  | --program-suf | --program-su | --program-s)
1052    ac_prev=program_suffix ;;
1053  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055    program_suffix=$ac_optarg ;;
1056
1057  -program-transform-name | --program-transform-name \
1058  | --program-transform-nam | --program-transform-na \
1059  | --program-transform-n | --program-transform- \
1060  | --program-transform | --program-transfor \
1061  | --program-transfo | --program-transf \
1062  | --program-trans | --program-tran \
1063  | --progr-tra | --program-tr | --program-t)
1064    ac_prev=program_transform_name ;;
1065  -program-transform-name=* | --program-transform-name=* \
1066  | --program-transform-nam=* | --program-transform-na=* \
1067  | --program-transform-n=* | --program-transform-=* \
1068  | --program-transform=* | --program-transfor=* \
1069  | --program-transfo=* | --program-transf=* \
1070  | --program-trans=* | --program-tran=* \
1071  | --progr-tra=* | --program-tr=* | --program-t=*)
1072    program_transform_name=$ac_optarg ;;
1073
1074  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075    ac_prev=pdfdir ;;
1076  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077    pdfdir=$ac_optarg ;;
1078
1079  -psdir | --psdir | --psdi | --psd | --ps)
1080    ac_prev=psdir ;;
1081  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082    psdir=$ac_optarg ;;
1083
1084  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085  | -silent | --silent | --silen | --sile | --sil)
1086    silent=yes ;;
1087
1088  -runstatedir | --runstatedir | --runstatedi | --runstated \
1089  | --runstate | --runstat | --runsta | --runst | --runs \
1090  | --run | --ru | --r)
1091    ac_prev=runstatedir ;;
1092  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1093  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1094  | --run=* | --ru=* | --r=*)
1095    runstatedir=$ac_optarg ;;
1096
1097  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098    ac_prev=sbindir ;;
1099  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100  | --sbi=* | --sb=*)
1101    sbindir=$ac_optarg ;;
1102
1103  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105  | --sharedst | --shareds | --shared | --share | --shar \
1106  | --sha | --sh)
1107    ac_prev=sharedstatedir ;;
1108  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111  | --sha=* | --sh=*)
1112    sharedstatedir=$ac_optarg ;;
1113
1114  -site | --site | --sit)
1115    ac_prev=site ;;
1116  -site=* | --site=* | --sit=*)
1117    site=$ac_optarg ;;
1118
1119  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120    ac_prev=srcdir ;;
1121  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122    srcdir=$ac_optarg ;;
1123
1124  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125  | --syscon | --sysco | --sysc | --sys | --sy)
1126    ac_prev=sysconfdir ;;
1127  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129    sysconfdir=$ac_optarg ;;
1130
1131  -target | --target | --targe | --targ | --tar | --ta | --t)
1132    ac_prev=target_alias ;;
1133  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134    target_alias=$ac_optarg ;;
1135
1136  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137    verbose=yes ;;
1138
1139  -version | --version | --versio | --versi | --vers | -V)
1140    ac_init_version=: ;;
1141
1142  -with-* | --with-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: \`$ac_useropt'"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=\$ac_optarg ;;
1157
1158  -without-* | --without-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error $? "invalid package name: \`$ac_useropt'"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"with_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval with_$ac_useropt=no ;;
1173
1174  --x)
1175    # Obsolete; use --with-x.
1176    with_x=yes ;;
1177
1178  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179  | --x-incl | --x-inc | --x-in | --x-i)
1180    ac_prev=x_includes ;;
1181  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183    x_includes=$ac_optarg ;;
1184
1185  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187    ac_prev=x_libraries ;;
1188  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190    x_libraries=$ac_optarg ;;
1191
1192  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193Try \`$0 --help' for more information"
1194    ;;
1195
1196  *=*)
1197    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198    # Reject names that are not valid shell variable names.
1199    case $ac_envvar in #(
1200      '' | [0-9]* | *[!_$as_cr_alnum]* )
1201      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202    esac
1203    eval $ac_envvar=\$ac_optarg
1204    export $ac_envvar ;;
1205
1206  *)
1207    # FIXME: should be removed in autoconf 3.0.
1208    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1209    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1211    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212    ;;
1213
1214  esac
1215done
1216
1217if test -n "$ac_prev"; then
1218  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219  as_fn_error $? "missing argument to $ac_option"
1220fi
1221
1222if test -n "$ac_unrecognized_opts"; then
1223  case $enable_option_checking in
1224    no) ;;
1225    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227  esac
1228fi
1229
1230# Check all directory arguments for consistency.
1231for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232		datadir sysconfdir sharedstatedir localstatedir includedir \
1233		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234		libdir localedir mandir runstatedir
1235do
1236  eval ac_val=\$$ac_var
1237  # Remove trailing slashes.
1238  case $ac_val in
1239    */ )
1240      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241      eval $ac_var=\$ac_val;;
1242  esac
1243  # Be sure to have absolute directory names.
1244  case $ac_val in
1245    [\\/$]* | ?:[\\/]* )  continue;;
1246    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247  esac
1248  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249done
1250
1251# There might be people who depend on the old broken behavior: `$host'
1252# used to hold the argument of --host etc.
1253# FIXME: To remove some day.
1254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
1258# FIXME: To remove some day.
1259if test "x$host_alias" != x; then
1260  if test "x$build_alias" = x; then
1261    cross_compiling=maybe
1262  elif test "x$build_alias" != "x$host_alias"; then
1263    cross_compiling=yes
1264  fi
1265fi
1266
1267ac_tool_prefix=
1268test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270test "$silent" = yes && exec 6>/dev/null
1271
1272
1273ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274ac_ls_di=`ls -di .` &&
1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276  as_fn_error $? "working directory cannot be determined"
1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278  as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281# Find the source files, if location was not specified.
1282if test -z "$srcdir"; then
1283  ac_srcdir_defaulted=yes
1284  # Try the directory containing this script, then the parent directory.
1285  ac_confdir=`$as_dirname -- "$as_myself" ||
1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287	 X"$as_myself" : 'X\(//\)[^/]' \| \
1288	 X"$as_myself" : 'X\(//\)$' \| \
1289	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290printf "%s\n" X"$as_myself" |
1291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)[^/].*/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\/\)$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\).*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  s/.*/./; q'`
1308  srcdir=$ac_confdir
1309  if test ! -r "$srcdir/$ac_unique_file"; then
1310    srcdir=..
1311  fi
1312else
1313  ac_srcdir_defaulted=no
1314fi
1315if test ! -r "$srcdir/$ac_unique_file"; then
1316  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318fi
1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320ac_abs_confdir=`(
1321	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322	pwd)`
1323# When building in place, set srcdir=.
1324if test "$ac_abs_confdir" = "$ac_pwd"; then
1325  srcdir=.
1326fi
1327# Remove unnecessary trailing slashes from srcdir.
1328# Double slashes in file names in object file debugging info
1329# mess up M-x gdb in Emacs.
1330case $srcdir in
1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332esac
1333for ac_var in $ac_precious_vars; do
1334  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_env_${ac_var}_value=\$${ac_var}
1336  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338done
1339
1340#
1341# Report the --help message.
1342#
1343if test "$ac_init_help" = "long"; then
1344  # Omit some internal or obsolete options to make the list less imposing.
1345  # This message is too long to be a string in the A/UX 3.1 sh.
1346  cat <<_ACEOF
1347\`configure' configures viewres 1.0.7 to adapt to many kinds of systems.
1348
1349Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352VAR=VALUE.  See below for descriptions of some of the useful variables.
1353
1354Defaults for the options are specified in brackets.
1355
1356Configuration:
1357  -h, --help              display this help and exit
1358      --help=short        display options specific to this package
1359      --help=recursive    display the short help of all the included packages
1360  -V, --version           display version information and exit
1361  -q, --quiet, --silent   do not print \`checking ...' messages
1362      --cache-file=FILE   cache test results in FILE [disabled]
1363  -C, --config-cache      alias for \`--cache-file=config.cache'
1364  -n, --no-create         do not create output files
1365      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1366
1367Installation directories:
1368  --prefix=PREFIX         install architecture-independent files in PREFIX
1369                          [$ac_default_prefix]
1370  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1371                          [PREFIX]
1372
1373By default, \`make install' will install all the files in
1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1375an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376for instance \`--prefix=\$HOME'.
1377
1378For better control, use the options below.
1379
1380Fine tuning of the installation directories:
1381  --bindir=DIR            user executables [EPREFIX/bin]
1382  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1383  --libexecdir=DIR        program executables [EPREFIX/libexec]
1384  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1385  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1386  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1387  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1388  --libdir=DIR            object code libraries [EPREFIX/lib]
1389  --includedir=DIR        C header files [PREFIX/include]
1390  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1391  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1392  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1393  --infodir=DIR           info documentation [DATAROOTDIR/info]
1394  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1395  --mandir=DIR            man documentation [DATAROOTDIR/man]
1396  --docdir=DIR            documentation root [DATAROOTDIR/doc/viewres]
1397  --htmldir=DIR           html documentation [DOCDIR]
1398  --dvidir=DIR            dvi documentation [DOCDIR]
1399  --pdfdir=DIR            pdf documentation [DOCDIR]
1400  --psdir=DIR             ps documentation [DOCDIR]
1401_ACEOF
1402
1403  cat <<\_ACEOF
1404
1405Program names:
1406  --program-prefix=PREFIX            prepend PREFIX to installed program names
1407  --program-suffix=SUFFIX            append SUFFIX to installed program names
1408  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1409
1410System types:
1411  --build=BUILD     configure for building on BUILD [guessed]
1412  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1413_ACEOF
1414fi
1415
1416if test -n "$ac_init_help"; then
1417  case $ac_init_help in
1418     short | recursive ) echo "Configuration of viewres 1.0.7:";;
1419   esac
1420  cat <<\_ACEOF
1421
1422Optional Features:
1423  --disable-option-checking  ignore unrecognized --enable/--with options
1424  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1425  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1426  --enable-silent-rules   less verbose build output (undo: "make V=1")
1427  --disable-silent-rules  verbose build output (undo: "make V=0")
1428  --enable-dependency-tracking
1429                          do not reject slow dependency extractors
1430  --disable-dependency-tracking
1431                          speeds up one-time build
1432  --disable-selective-werror
1433                          Turn off selective compiler errors. (default:
1434                          enabled)
1435  --enable-strict-compilation
1436                          Enable all warnings from compiler and make them
1437                          errors (default: disabled)
1438
1439Optional Packages:
1440  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1441  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1442  --with-appdefaultdir=<pathname>
1443                          specify directory for app-defaults files (default is
1444                          autodetected)
1445
1446Some influential environment variables:
1447  CC          C compiler command
1448  CFLAGS      C compiler flags
1449  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450              nonstandard directory <lib dir>
1451  LIBS        libraries to pass to the linker, e.g. -l<library>
1452  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453              you have headers in a nonstandard directory <include dir>
1454  PKG_CONFIG  path to pkg-config utility
1455  PKG_CONFIG_PATH
1456              directories to add to pkg-config's search path
1457  PKG_CONFIG_LIBDIR
1458              path overriding pkg-config's built-in search path
1459  VIEWRES_CFLAGS
1460              C compiler flags for VIEWRES, overriding pkg-config
1461  VIEWRES_LIBS
1462              linker flags for VIEWRES, overriding pkg-config
1463
1464Use these variables to override the choices made by `configure' or to help
1465it to find libraries and programs with nonstandard names/locations.
1466
1467Report bugs to <https://gitlab.freedesktop.org/xorg/app/viewres/-/issues>.
1468_ACEOF
1469ac_status=$?
1470fi
1471
1472if test "$ac_init_help" = "recursive"; then
1473  # If there are subdirs, report their specific --help.
1474  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475    test -d "$ac_dir" ||
1476      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477      continue
1478    ac_builddir=.
1479
1480case "$ac_dir" in
1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482*)
1483  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1484  # A ".." for each directory in $ac_dir_suffix.
1485  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486  case $ac_top_builddir_sub in
1487  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489  esac ;;
1490esac
1491ac_abs_top_builddir=$ac_pwd
1492ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493# for backward compatibility:
1494ac_top_builddir=$ac_top_build_prefix
1495
1496case $srcdir in
1497  .)  # We are building in place.
1498    ac_srcdir=.
1499    ac_top_srcdir=$ac_top_builddir_sub
1500    ac_abs_top_srcdir=$ac_pwd ;;
1501  [\\/]* | ?:[\\/]* )  # Absolute name.
1502    ac_srcdir=$srcdir$ac_dir_suffix;
1503    ac_top_srcdir=$srcdir
1504    ac_abs_top_srcdir=$srcdir ;;
1505  *) # Relative name.
1506    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507    ac_top_srcdir=$ac_top_build_prefix$srcdir
1508    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509esac
1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512    cd "$ac_dir" || { ac_status=$?; continue; }
1513    # Check for configure.gnu first; this name is used for a wrapper for
1514    # Metaconfig's "Configure" on case-insensitive file systems.
1515    if test -f "$ac_srcdir/configure.gnu"; then
1516      echo &&
1517      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518    elif test -f "$ac_srcdir/configure"; then
1519      echo &&
1520      $SHELL "$ac_srcdir/configure" --help=recursive
1521    else
1522      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523    fi || ac_status=$?
1524    cd "$ac_pwd" || { ac_status=$?; break; }
1525  done
1526fi
1527
1528test -n "$ac_init_help" && exit $ac_status
1529if $ac_init_version; then
1530  cat <<\_ACEOF
1531viewres configure 1.0.7
1532generated by GNU Autoconf 2.71
1533
1534Copyright (C) 2021 Free Software Foundation, Inc.
1535This configure script is free software; the Free Software Foundation
1536gives unlimited permission to copy, distribute and modify it.
1537_ACEOF
1538  exit
1539fi
1540
1541## ------------------------ ##
1542## Autoconf initialization. ##
1543## ------------------------ ##
1544
1545# ac_fn_c_try_compile LINENO
1546# --------------------------
1547# Try to compile conftest.$ac_ext, and return whether this succeeded.
1548ac_fn_c_try_compile ()
1549{
1550  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551  rm -f conftest.$ac_objext conftest.beam
1552  if { { ac_try="$ac_compile"
1553case "(($ac_try" in
1554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555  *) ac_try_echo=$ac_try;;
1556esac
1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558printf "%s\n" "$ac_try_echo"; } >&5
1559  (eval "$ac_compile") 2>conftest.err
1560  ac_status=$?
1561  if test -s conftest.err; then
1562    grep -v '^ *+' conftest.err >conftest.er1
1563    cat conftest.er1 >&5
1564    mv -f conftest.er1 conftest.err
1565  fi
1566  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567  test $ac_status = 0; } && {
1568	 test -z "$ac_c_werror_flag" ||
1569	 test ! -s conftest.err
1570       } && test -s conftest.$ac_objext
1571then :
1572  ac_retval=0
1573else $as_nop
1574  printf "%s\n" "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
1576
1577	ac_retval=1
1578fi
1579  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580  as_fn_set_status $ac_retval
1581
1582} # ac_fn_c_try_compile
1583
1584# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1585# ------------------------------------------------------------------
1586# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1587# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1588ac_fn_check_decl ()
1589{
1590  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591  as_decl_name=`echo $2|sed 's/ *(.*//'`
1592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1593printf %s "checking whether $as_decl_name is declared... " >&6; }
1594if eval test \${$3+y}
1595then :
1596  printf %s "(cached) " >&6
1597else $as_nop
1598  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1599  eval ac_save_FLAGS=\$$6
1600  as_fn_append $6 " $5"
1601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602/* end confdefs.h.  */
1603$4
1604int
1605main (void)
1606{
1607#ifndef $as_decl_name
1608#ifdef __cplusplus
1609  (void) $as_decl_use;
1610#else
1611  (void) $as_decl_name;
1612#endif
1613#endif
1614
1615  ;
1616  return 0;
1617}
1618_ACEOF
1619if ac_fn_c_try_compile "$LINENO"
1620then :
1621  eval "$3=yes"
1622else $as_nop
1623  eval "$3=no"
1624fi
1625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1626  eval $6=\$ac_save_FLAGS
1627
1628fi
1629eval ac_res=\$$3
1630	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631printf "%s\n" "$ac_res" >&6; }
1632  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634} # ac_fn_check_decl
1635
1636# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637# -------------------------------------------------------
1638# Tests whether HEADER exists and can be compiled using the include files in
1639# INCLUDES, setting the cache variable VAR accordingly.
1640ac_fn_c_check_header_compile ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644printf %s "checking for $2... " >&6; }
1645if eval test \${$3+y}
1646then :
1647  printf %s "(cached) " >&6
1648else $as_nop
1649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h.  */
1651$4
1652#include <$2>
1653_ACEOF
1654if ac_fn_c_try_compile "$LINENO"
1655then :
1656  eval "$3=yes"
1657else $as_nop
1658  eval "$3=no"
1659fi
1660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1661fi
1662eval ac_res=\$$3
1663	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664printf "%s\n" "$ac_res" >&6; }
1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666
1667} # ac_fn_c_check_header_compile
1668
1669# ac_fn_c_try_link LINENO
1670# -----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_link ()
1673{
1674  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1676  if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682printf "%s\n" "$ac_try_echo"; } >&5
1683  (eval "$ac_link") 2>conftest.err
1684  ac_status=$?
1685  if test -s conftest.err; then
1686    grep -v '^ *+' conftest.err >conftest.er1
1687    cat conftest.er1 >&5
1688    mv -f conftest.er1 conftest.err
1689  fi
1690  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } && {
1692	 test -z "$ac_c_werror_flag" ||
1693	 test ! -s conftest.err
1694       } && test -s conftest$ac_exeext && {
1695	 test "$cross_compiling" = yes ||
1696	 test -x conftest$ac_exeext
1697       }
1698then :
1699  ac_retval=0
1700else $as_nop
1701  printf "%s\n" "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704	ac_retval=1
1705fi
1706  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708  # interfere with the next link command; also delete a directory that is
1709  # left behind by Apple's compiler.  We do this before executing the actions.
1710  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_link
1715ac_configure_args_raw=
1716for ac_arg
1717do
1718  case $ac_arg in
1719  *\'*)
1720    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721  esac
1722  as_fn_append ac_configure_args_raw " '$ac_arg'"
1723done
1724
1725case $ac_configure_args_raw in
1726  *$as_nl*)
1727    ac_safe_unquote= ;;
1728  *)
1729    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1730    ac_unsafe_a="$ac_unsafe_z#~"
1731    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1732    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1733esac
1734
1735cat >config.log <<_ACEOF
1736This file contains any messages produced by compilers while
1737running configure, to aid debugging if configure makes a mistake.
1738
1739It was created by viewres $as_me 1.0.7, which was
1740generated by GNU Autoconf 2.71.  Invocation command line was
1741
1742  $ $0$ac_configure_args_raw
1743
1744_ACEOF
1745exec 5>>config.log
1746{
1747cat <<_ASUNAME
1748## --------- ##
1749## Platform. ##
1750## --------- ##
1751
1752hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1753uname -m = `(uname -m) 2>/dev/null || echo unknown`
1754uname -r = `(uname -r) 2>/dev/null || echo unknown`
1755uname -s = `(uname -s) 2>/dev/null || echo unknown`
1756uname -v = `(uname -v) 2>/dev/null || echo unknown`
1757
1758/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1759/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1760
1761/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1762/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1763/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1764/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1765/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1766/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1767/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1768
1769_ASUNAME
1770
1771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772for as_dir in $PATH
1773do
1774  IFS=$as_save_IFS
1775  case $as_dir in #(((
1776    '') as_dir=./ ;;
1777    */) ;;
1778    *) as_dir=$as_dir/ ;;
1779  esac
1780    printf "%s\n" "PATH: $as_dir"
1781  done
1782IFS=$as_save_IFS
1783
1784} >&5
1785
1786cat >&5 <<_ACEOF
1787
1788
1789## ----------- ##
1790## Core tests. ##
1791## ----------- ##
1792
1793_ACEOF
1794
1795
1796# Keep a trace of the command line.
1797# Strip out --no-create and --no-recursion so they do not pile up.
1798# Strip out --silent because we don't want to record it for future runs.
1799# Also quote any args containing shell meta-characters.
1800# Make two passes to allow for proper duplicate-argument suppression.
1801ac_configure_args=
1802ac_configure_args0=
1803ac_configure_args1=
1804ac_must_keep_next=false
1805for ac_pass in 1 2
1806do
1807  for ac_arg
1808  do
1809    case $ac_arg in
1810    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1811    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1812    | -silent | --silent | --silen | --sile | --sil)
1813      continue ;;
1814    *\'*)
1815      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1816    esac
1817    case $ac_pass in
1818    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1819    2)
1820      as_fn_append ac_configure_args1 " '$ac_arg'"
1821      if test $ac_must_keep_next = true; then
1822	ac_must_keep_next=false # Got value, back to normal.
1823      else
1824	case $ac_arg in
1825	  *=* | --config-cache | -C | -disable-* | --disable-* \
1826	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1827	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1828	  | -with-* | --with-* | -without-* | --without-* | --x)
1829	    case "$ac_configure_args0 " in
1830	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1831	    esac
1832	    ;;
1833	  -* ) ac_must_keep_next=true ;;
1834	esac
1835      fi
1836      as_fn_append ac_configure_args " '$ac_arg'"
1837      ;;
1838    esac
1839  done
1840done
1841{ ac_configure_args0=; unset ac_configure_args0;}
1842{ ac_configure_args1=; unset ac_configure_args1;}
1843
1844# When interrupted or exit'd, cleanup temporary files, and complete
1845# config.log.  We remove comments because anyway the quotes in there
1846# would cause problems or look ugly.
1847# WARNING: Use '\'' to represent an apostrophe within the trap.
1848# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1849trap 'exit_status=$?
1850  # Sanitize IFS.
1851  IFS=" ""	$as_nl"
1852  # Save into config.log some information that might help in debugging.
1853  {
1854    echo
1855
1856    printf "%s\n" "## ---------------- ##
1857## Cache variables. ##
1858## ---------------- ##"
1859    echo
1860    # The following way of writing the cache mishandles newlines in values,
1861(
1862  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1863    eval ac_val=\$$ac_var
1864    case $ac_val in #(
1865    *${as_nl}*)
1866      case $ac_var in #(
1867      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1868printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1869      esac
1870      case $ac_var in #(
1871      _ | IFS | as_nl) ;; #(
1872      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1873      *) { eval $ac_var=; unset $ac_var;} ;;
1874      esac ;;
1875    esac
1876  done
1877  (set) 2>&1 |
1878    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1879    *${as_nl}ac_space=\ *)
1880      sed -n \
1881	"s/'\''/'\''\\\\'\'''\''/g;
1882	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1883      ;; #(
1884    *)
1885      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1886      ;;
1887    esac |
1888    sort
1889)
1890    echo
1891
1892    printf "%s\n" "## ----------------- ##
1893## Output variables. ##
1894## ----------------- ##"
1895    echo
1896    for ac_var in $ac_subst_vars
1897    do
1898      eval ac_val=\$$ac_var
1899      case $ac_val in
1900      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901      esac
1902      printf "%s\n" "$ac_var='\''$ac_val'\''"
1903    done | sort
1904    echo
1905
1906    if test -n "$ac_subst_files"; then
1907      printf "%s\n" "## ------------------- ##
1908## File substitutions. ##
1909## ------------------- ##"
1910      echo
1911      for ac_var in $ac_subst_files
1912      do
1913	eval ac_val=\$$ac_var
1914	case $ac_val in
1915	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916	esac
1917	printf "%s\n" "$ac_var='\''$ac_val'\''"
1918      done | sort
1919      echo
1920    fi
1921
1922    if test -s confdefs.h; then
1923      printf "%s\n" "## ----------- ##
1924## confdefs.h. ##
1925## ----------- ##"
1926      echo
1927      cat confdefs.h
1928      echo
1929    fi
1930    test "$ac_signal" != 0 &&
1931      printf "%s\n" "$as_me: caught signal $ac_signal"
1932    printf "%s\n" "$as_me: exit $exit_status"
1933  } >&5
1934  rm -f core *.core core.conftest.* &&
1935    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936    exit $exit_status
1937' 0
1938for ac_signal in 1 2 13 15; do
1939  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1940done
1941ac_signal=0
1942
1943# confdefs.h avoids OS command line length limits that DEFS can exceed.
1944rm -f -r conftest* confdefs.h
1945
1946printf "%s\n" "/* confdefs.h */" > confdefs.h
1947
1948# Predefined preprocessor variables.
1949
1950printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1951
1952printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1953
1954printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1955
1956printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1957
1958printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1959
1960printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1961
1962
1963# Let the site file select an alternate cache file if it wants to.
1964# Prefer an explicitly selected file to automatically selected ones.
1965if test -n "$CONFIG_SITE"; then
1966  ac_site_files="$CONFIG_SITE"
1967elif test "x$prefix" != xNONE; then
1968  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1969else
1970  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1971fi
1972
1973for ac_site_file in $ac_site_files
1974do
1975  case $ac_site_file in #(
1976  */*) :
1977     ;; #(
1978  *) :
1979    ac_site_file=./$ac_site_file ;;
1980esac
1981  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1982    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1983printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1984    sed 's/^/| /' "$ac_site_file" >&5
1985    . "$ac_site_file" \
1986      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1987printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1988as_fn_error $? "failed to load site script $ac_site_file
1989See \`config.log' for more details" "$LINENO" 5; }
1990  fi
1991done
1992
1993if test -r "$cache_file"; then
1994  # Some versions of bash will fail to source /dev/null (special files
1995  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1996  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1997    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1998printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1999    case $cache_file in
2000      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2001      *)                      . "./$cache_file";;
2002    esac
2003  fi
2004else
2005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2006printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2007  >$cache_file
2008fi
2009
2010# Test code for whether the C compiler supports C89 (global declarations)
2011ac_c_conftest_c89_globals='
2012/* Does the compiler advertise C89 conformance?
2013   Do not test the value of __STDC__, because some compilers set it to 0
2014   while being otherwise adequately conformant. */
2015#if !defined __STDC__
2016# error "Compiler does not advertise C89 conformance"
2017#endif
2018
2019#include <stddef.h>
2020#include <stdarg.h>
2021struct stat;
2022/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2023struct buf { int x; };
2024struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2025static char *e (p, i)
2026     char **p;
2027     int i;
2028{
2029  return p[i];
2030}
2031static char *f (char * (*g) (char **, int), char **p, ...)
2032{
2033  char *s;
2034  va_list v;
2035  va_start (v,p);
2036  s = g (p, va_arg (v,int));
2037  va_end (v);
2038  return s;
2039}
2040
2041/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2042   function prototypes and stuff, but not \xHH hex character constants.
2043   These do not provoke an error unfortunately, instead are silently treated
2044   as an "x".  The following induces an error, until -std is added to get
2045   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2046   array size at least.  It is necessary to write \x00 == 0 to get something
2047   that is true only with -std.  */
2048int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2049
2050/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2051   inside strings and character constants.  */
2052#define FOO(x) '\''x'\''
2053int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2054
2055int test (int i, double x);
2056struct s1 {int (*f) (int a);};
2057struct s2 {int (*f) (double a);};
2058int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2059               int, int);'
2060
2061# Test code for whether the C compiler supports C89 (body of main).
2062ac_c_conftest_c89_main='
2063ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2064'
2065
2066# Test code for whether the C compiler supports C99 (global declarations)
2067ac_c_conftest_c99_globals='
2068// Does the compiler advertise C99 conformance?
2069#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2070# error "Compiler does not advertise C99 conformance"
2071#endif
2072
2073#include <stdbool.h>
2074extern int puts (const char *);
2075extern int printf (const char *, ...);
2076extern int dprintf (int, const char *, ...);
2077extern void *malloc (size_t);
2078
2079// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2080// dprintf is used instead of fprintf to avoid needing to declare
2081// FILE and stderr.
2082#define debug(...) dprintf (2, __VA_ARGS__)
2083#define showlist(...) puts (#__VA_ARGS__)
2084#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2085static void
2086test_varargs_macros (void)
2087{
2088  int x = 1234;
2089  int y = 5678;
2090  debug ("Flag");
2091  debug ("X = %d\n", x);
2092  showlist (The first, second, and third items.);
2093  report (x>y, "x is %d but y is %d", x, y);
2094}
2095
2096// Check long long types.
2097#define BIG64 18446744073709551615ull
2098#define BIG32 4294967295ul
2099#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2100#if !BIG_OK
2101  #error "your preprocessor is broken"
2102#endif
2103#if BIG_OK
2104#else
2105  #error "your preprocessor is broken"
2106#endif
2107static long long int bignum = -9223372036854775807LL;
2108static unsigned long long int ubignum = BIG64;
2109
2110struct incomplete_array
2111{
2112  int datasize;
2113  double data[];
2114};
2115
2116struct named_init {
2117  int number;
2118  const wchar_t *name;
2119  double average;
2120};
2121
2122typedef const char *ccp;
2123
2124static inline int
2125test_restrict (ccp restrict text)
2126{
2127  // See if C++-style comments work.
2128  // Iterate through items via the restricted pointer.
2129  // Also check for declarations in for loops.
2130  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2131    continue;
2132  return 0;
2133}
2134
2135// Check varargs and va_copy.
2136static bool
2137test_varargs (const char *format, ...)
2138{
2139  va_list args;
2140  va_start (args, format);
2141  va_list args_copy;
2142  va_copy (args_copy, args);
2143
2144  const char *str = "";
2145  int number = 0;
2146  float fnumber = 0;
2147
2148  while (*format)
2149    {
2150      switch (*format++)
2151	{
2152	case '\''s'\'': // string
2153	  str = va_arg (args_copy, const char *);
2154	  break;
2155	case '\''d'\'': // int
2156	  number = va_arg (args_copy, int);
2157	  break;
2158	case '\''f'\'': // float
2159	  fnumber = va_arg (args_copy, double);
2160	  break;
2161	default:
2162	  break;
2163	}
2164    }
2165  va_end (args_copy);
2166  va_end (args);
2167
2168  return *str && number && fnumber;
2169}
2170'
2171
2172# Test code for whether the C compiler supports C99 (body of main).
2173ac_c_conftest_c99_main='
2174  // Check bool.
2175  _Bool success = false;
2176  success |= (argc != 0);
2177
2178  // Check restrict.
2179  if (test_restrict ("String literal") == 0)
2180    success = true;
2181  char *restrict newvar = "Another string";
2182
2183  // Check varargs.
2184  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2185  test_varargs_macros ();
2186
2187  // Check flexible array members.
2188  struct incomplete_array *ia =
2189    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2190  ia->datasize = 10;
2191  for (int i = 0; i < ia->datasize; ++i)
2192    ia->data[i] = i * 1.234;
2193
2194  // Check named initializers.
2195  struct named_init ni = {
2196    .number = 34,
2197    .name = L"Test wide string",
2198    .average = 543.34343,
2199  };
2200
2201  ni.number = 58;
2202
2203  int dynamic_array[ni.number];
2204  dynamic_array[0] = argv[0][0];
2205  dynamic_array[ni.number - 1] = 543;
2206
2207  // work around unused variable warnings
2208  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2209	 || dynamic_array[ni.number - 1] != 543);
2210'
2211
2212# Test code for whether the C compiler supports C11 (global declarations)
2213ac_c_conftest_c11_globals='
2214// Does the compiler advertise C11 conformance?
2215#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2216# error "Compiler does not advertise C11 conformance"
2217#endif
2218
2219// Check _Alignas.
2220char _Alignas (double) aligned_as_double;
2221char _Alignas (0) no_special_alignment;
2222extern char aligned_as_int;
2223char _Alignas (0) _Alignas (int) aligned_as_int;
2224
2225// Check _Alignof.
2226enum
2227{
2228  int_alignment = _Alignof (int),
2229  int_array_alignment = _Alignof (int[100]),
2230  char_alignment = _Alignof (char)
2231};
2232_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2233
2234// Check _Noreturn.
2235int _Noreturn does_not_return (void) { for (;;) continue; }
2236
2237// Check _Static_assert.
2238struct test_static_assert
2239{
2240  int x;
2241  _Static_assert (sizeof (int) <= sizeof (long int),
2242                  "_Static_assert does not work in struct");
2243  long int y;
2244};
2245
2246// Check UTF-8 literals.
2247#define u8 syntax error!
2248char const utf8_literal[] = u8"happens to be ASCII" "another string";
2249
2250// Check duplicate typedefs.
2251typedef long *long_ptr;
2252typedef long int *long_ptr;
2253typedef long_ptr long_ptr;
2254
2255// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2256struct anonymous
2257{
2258  union {
2259    struct { int i; int j; };
2260    struct { int k; long int l; } w;
2261  };
2262  int m;
2263} v1;
2264'
2265
2266# Test code for whether the C compiler supports C11 (body of main).
2267ac_c_conftest_c11_main='
2268  _Static_assert ((offsetof (struct anonymous, i)
2269		   == offsetof (struct anonymous, w.k)),
2270		  "Anonymous union alignment botch");
2271  v1.i = 2;
2272  v1.w.k = 5;
2273  ok |= v1.i != 5;
2274'
2275
2276# Test code for whether the C compiler supports C11 (complete).
2277ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2278${ac_c_conftest_c99_globals}
2279${ac_c_conftest_c11_globals}
2280
2281int
2282main (int argc, char **argv)
2283{
2284  int ok = 0;
2285  ${ac_c_conftest_c89_main}
2286  ${ac_c_conftest_c99_main}
2287  ${ac_c_conftest_c11_main}
2288  return ok;
2289}
2290"
2291
2292# Test code for whether the C compiler supports C99 (complete).
2293ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2294${ac_c_conftest_c99_globals}
2295
2296int
2297main (int argc, char **argv)
2298{
2299  int ok = 0;
2300  ${ac_c_conftest_c89_main}
2301  ${ac_c_conftest_c99_main}
2302  return ok;
2303}
2304"
2305
2306# Test code for whether the C compiler supports C89 (complete).
2307ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2308
2309int
2310main (int argc, char **argv)
2311{
2312  int ok = 0;
2313  ${ac_c_conftest_c89_main}
2314  return ok;
2315}
2316"
2317
2318as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2319as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2320as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2321as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2322as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2323as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2324as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2325as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2326as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2327
2328# Auxiliary files required by this configure script.
2329ac_aux_files="config.guess config.sub compile missing install-sh"
2330
2331# Locations in which to look for auxiliary files.
2332ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2333
2334# Search for a directory containing all of the required auxiliary files,
2335# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2336# If we don't find one directory that contains all the files we need,
2337# we report the set of missing files from the *first* directory in
2338# $ac_aux_dir_candidates and give up.
2339ac_missing_aux_files=""
2340ac_first_candidate=:
2341printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343as_found=false
2344for as_dir in $ac_aux_dir_candidates
2345do
2346  IFS=$as_save_IFS
2347  case $as_dir in #(((
2348    '') as_dir=./ ;;
2349    */) ;;
2350    *) as_dir=$as_dir/ ;;
2351  esac
2352  as_found=:
2353
2354  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2355  ac_aux_dir_found=yes
2356  ac_install_sh=
2357  for ac_aux in $ac_aux_files
2358  do
2359    # As a special case, if "install-sh" is required, that requirement
2360    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2361    # and $ac_install_sh is set appropriately for whichever one is found.
2362    if test x"$ac_aux" = x"install-sh"
2363    then
2364      if test -f "${as_dir}install-sh"; then
2365        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2366        ac_install_sh="${as_dir}install-sh -c"
2367      elif test -f "${as_dir}install.sh"; then
2368        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2369        ac_install_sh="${as_dir}install.sh -c"
2370      elif test -f "${as_dir}shtool"; then
2371        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2372        ac_install_sh="${as_dir}shtool install -c"
2373      else
2374        ac_aux_dir_found=no
2375        if $ac_first_candidate; then
2376          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2377        else
2378          break
2379        fi
2380      fi
2381    else
2382      if test -f "${as_dir}${ac_aux}"; then
2383        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2384      else
2385        ac_aux_dir_found=no
2386        if $ac_first_candidate; then
2387          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2388        else
2389          break
2390        fi
2391      fi
2392    fi
2393  done
2394  if test "$ac_aux_dir_found" = yes; then
2395    ac_aux_dir="$as_dir"
2396    break
2397  fi
2398  ac_first_candidate=false
2399
2400  as_found=false
2401done
2402IFS=$as_save_IFS
2403if $as_found
2404then :
2405
2406else $as_nop
2407  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2408fi
2409
2410
2411# These three variables are undocumented and unsupported,
2412# and are intended to be withdrawn in a future Autoconf release.
2413# They can cause serious problems if a builder's source tree is in a directory
2414# whose full name contains unusual characters.
2415if test -f "${ac_aux_dir}config.guess"; then
2416  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2417fi
2418if test -f "${ac_aux_dir}config.sub"; then
2419  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2420fi
2421if test -f "$ac_aux_dir/configure"; then
2422  ac_configure="$SHELL ${ac_aux_dir}configure"
2423fi
2424
2425# Check that the precious variables saved in the cache have kept the same
2426# value.
2427ac_cache_corrupted=false
2428for ac_var in $ac_precious_vars; do
2429  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2430  eval ac_new_set=\$ac_env_${ac_var}_set
2431  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2432  eval ac_new_val=\$ac_env_${ac_var}_value
2433  case $ac_old_set,$ac_new_set in
2434    set,)
2435      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2436printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2437      ac_cache_corrupted=: ;;
2438    ,set)
2439      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2440printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2441      ac_cache_corrupted=: ;;
2442    ,);;
2443    *)
2444      if test "x$ac_old_val" != "x$ac_new_val"; then
2445	# differences in whitespace do not lead to failure.
2446	ac_old_val_w=`echo x $ac_old_val`
2447	ac_new_val_w=`echo x $ac_new_val`
2448	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2449	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2450printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2451	  ac_cache_corrupted=:
2452	else
2453	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2454printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2455	  eval $ac_var=\$ac_old_val
2456	fi
2457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2458printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2459	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2460printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2461      fi;;
2462  esac
2463  # Pass precious variables to config.status.
2464  if test "$ac_new_set" = set; then
2465    case $ac_new_val in
2466    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2467    *) ac_arg=$ac_var=$ac_new_val ;;
2468    esac
2469    case " $ac_configure_args " in
2470      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2471      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2472    esac
2473  fi
2474done
2475if $ac_cache_corrupted; then
2476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2479printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2480  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2481	    and start over" "$LINENO" 5
2482fi
2483## -------------------- ##
2484## Main body of script. ##
2485## -------------------- ##
2486
2487ac_ext=c
2488ac_cpp='$CPP $CPPFLAGS'
2489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492
2493
2494
2495ac_config_headers="$ac_config_headers config.h"
2496
2497
2498# Initialize Automake
2499am__api_version='1.16'
2500
2501
2502
2503  # Find a good install program.  We prefer a C program (faster),
2504# so one script is as good as another.  But avoid the broken or
2505# incompatible versions:
2506# SysV /etc/install, /usr/sbin/install
2507# SunOS /usr/etc/install
2508# IRIX /sbin/install
2509# AIX /bin/install
2510# AmigaOS /C/install, which installs bootblocks on floppy discs
2511# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2512# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2513# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2514# OS/2's system install, which has a completely different semantic
2515# ./install, which can be erroneously created by make from ./install.sh.
2516# Reject install programs that cannot install multiple files.
2517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2518printf %s "checking for a BSD-compatible install... " >&6; }
2519if test -z "$INSTALL"; then
2520if test ${ac_cv_path_install+y}
2521then :
2522  printf %s "(cached) " >&6
2523else $as_nop
2524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527  IFS=$as_save_IFS
2528  case $as_dir in #(((
2529    '') as_dir=./ ;;
2530    */) ;;
2531    *) as_dir=$as_dir/ ;;
2532  esac
2533    # Account for fact that we put trailing slashes in our PATH walk.
2534case $as_dir in #((
2535  ./ | /[cC]/* | \
2536  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2537  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2538  /usr/ucb/* ) ;;
2539  *)
2540    # OSF1 and SCO ODT 3.0 have their own names for install.
2541    # Don't use installbsd from OSF since it installs stuff as root
2542    # by default.
2543    for ac_prog in ginstall scoinst install; do
2544      for ac_exec_ext in '' $ac_executable_extensions; do
2545	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2546	  if test $ac_prog = install &&
2547	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548	    # AIX install.  It has an incompatible calling convention.
2549	    :
2550	  elif test $ac_prog = install &&
2551	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552	    # program-specific install script used by HP pwplus--don't use.
2553	    :
2554	  else
2555	    rm -rf conftest.one conftest.two conftest.dir
2556	    echo one > conftest.one
2557	    echo two > conftest.two
2558	    mkdir conftest.dir
2559	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2560	      test -s conftest.one && test -s conftest.two &&
2561	      test -s conftest.dir/conftest.one &&
2562	      test -s conftest.dir/conftest.two
2563	    then
2564	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2565	      break 3
2566	    fi
2567	  fi
2568	fi
2569      done
2570    done
2571    ;;
2572esac
2573
2574  done
2575IFS=$as_save_IFS
2576
2577rm -rf conftest.one conftest.two conftest.dir
2578
2579fi
2580  if test ${ac_cv_path_install+y}; then
2581    INSTALL=$ac_cv_path_install
2582  else
2583    # As a last resort, use the slow shell script.  Don't cache a
2584    # value for INSTALL within a source directory, because that will
2585    # break other packages using the cache if that directory is
2586    # removed, or if the value is a relative name.
2587    INSTALL=$ac_install_sh
2588  fi
2589fi
2590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2591printf "%s\n" "$INSTALL" >&6; }
2592
2593# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2594# It thinks the first close brace ends the variable substitution.
2595test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2596
2597test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2598
2599test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2600
2601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2602printf %s "checking whether build environment is sane... " >&6; }
2603# Reject unsafe characters in $srcdir or the absolute working directory
2604# name.  Accept space and tab only in the latter.
2605am_lf='
2606'
2607case `pwd` in
2608  *[\\\"\#\$\&\'\`$am_lf]*)
2609    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2610esac
2611case $srcdir in
2612  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2613    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2614esac
2615
2616# Do 'set' in a subshell so we don't clobber the current shell's
2617# arguments.  Must try -L first in case configure is actually a
2618# symlink; some systems play weird games with the mod time of symlinks
2619# (eg FreeBSD returns the mod time of the symlink's containing
2620# directory).
2621if (
2622   am_has_slept=no
2623   for am_try in 1 2; do
2624     echo "timestamp, slept: $am_has_slept" > conftest.file
2625     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2626     if test "$*" = "X"; then
2627	# -L didn't work.
2628	set X `ls -t "$srcdir/configure" conftest.file`
2629     fi
2630     if test "$*" != "X $srcdir/configure conftest.file" \
2631	&& test "$*" != "X conftest.file $srcdir/configure"; then
2632
2633	# If neither matched, then we have a broken ls.  This can happen
2634	# if, for instance, CONFIG_SHELL is bash and it inherits a
2635	# broken ls alias from the environment.  This has actually
2636	# happened.  Such a system could not be considered "sane".
2637	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2638  alias in your environment" "$LINENO" 5
2639     fi
2640     if test "$2" = conftest.file || test $am_try -eq 2; then
2641       break
2642     fi
2643     # Just in case.
2644     sleep 1
2645     am_has_slept=yes
2646   done
2647   test "$2" = conftest.file
2648   )
2649then
2650   # Ok.
2651   :
2652else
2653   as_fn_error $? "newly created file is older than distributed files!
2654Check your system clock" "$LINENO" 5
2655fi
2656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657printf "%s\n" "yes" >&6; }
2658# If we didn't sleep, we still need to ensure time stamps of config.status and
2659# generated files are strictly newer.
2660am_sleep_pid=
2661if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2662  ( sleep 1 ) &
2663  am_sleep_pid=$!
2664fi
2665
2666rm -f conftest.file
2667
2668test "$program_prefix" != NONE &&
2669  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2670# Use a double $ so make ignores it.
2671test "$program_suffix" != NONE &&
2672  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2673# Double any \ or $.
2674# By default was `s,x,x', remove it if useless.
2675ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2676program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2677
2678
2679# Expand $ac_aux_dir to an absolute path.
2680am_aux_dir=`cd "$ac_aux_dir" && pwd`
2681
2682
2683  if test x"${MISSING+set}" != xset; then
2684  MISSING="\${SHELL} '$am_aux_dir/missing'"
2685fi
2686# Use eval to expand $SHELL
2687if eval "$MISSING --is-lightweight"; then
2688  am_missing_run="$MISSING "
2689else
2690  am_missing_run=
2691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2692printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2693fi
2694
2695if test x"${install_sh+set}" != xset; then
2696  case $am_aux_dir in
2697  *\ * | *\	*)
2698    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2699  *)
2700    install_sh="\${SHELL} $am_aux_dir/install-sh"
2701  esac
2702fi
2703
2704# Installed binaries are usually stripped using 'strip' when the user
2705# run "make install-strip".  However 'strip' might not be the right
2706# tool to use in cross-compilation environments, therefore Automake
2707# will honor the 'STRIP' environment variable to overrule this program.
2708if test "$cross_compiling" != no; then
2709  if test -n "$ac_tool_prefix"; then
2710  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2711set dummy ${ac_tool_prefix}strip; ac_word=$2
2712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713printf %s "checking for $ac_word... " >&6; }
2714if test ${ac_cv_prog_STRIP+y}
2715then :
2716  printf %s "(cached) " >&6
2717else $as_nop
2718  if test -n "$STRIP"; then
2719  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724  IFS=$as_save_IFS
2725  case $as_dir in #(((
2726    '') as_dir=./ ;;
2727    */) ;;
2728    *) as_dir=$as_dir/ ;;
2729  esac
2730    for ac_exec_ext in '' $ac_executable_extensions; do
2731  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2732    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2733    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2734    break 2
2735  fi
2736done
2737  done
2738IFS=$as_save_IFS
2739
2740fi
2741fi
2742STRIP=$ac_cv_prog_STRIP
2743if test -n "$STRIP"; then
2744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2745printf "%s\n" "$STRIP" >&6; }
2746else
2747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748printf "%s\n" "no" >&6; }
2749fi
2750
2751
2752fi
2753if test -z "$ac_cv_prog_STRIP"; then
2754  ac_ct_STRIP=$STRIP
2755  # Extract the first word of "strip", so it can be a program name with args.
2756set dummy strip; ac_word=$2
2757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758printf %s "checking for $ac_word... " >&6; }
2759if test ${ac_cv_prog_ac_ct_STRIP+y}
2760then :
2761  printf %s "(cached) " >&6
2762else $as_nop
2763  if test -n "$ac_ct_STRIP"; then
2764  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769  IFS=$as_save_IFS
2770  case $as_dir in #(((
2771    '') as_dir=./ ;;
2772    */) ;;
2773    *) as_dir=$as_dir/ ;;
2774  esac
2775    for ac_exec_ext in '' $ac_executable_extensions; do
2776  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2777    ac_cv_prog_ac_ct_STRIP="strip"
2778    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2779    break 2
2780  fi
2781done
2782  done
2783IFS=$as_save_IFS
2784
2785fi
2786fi
2787ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2788if test -n "$ac_ct_STRIP"; then
2789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2790printf "%s\n" "$ac_ct_STRIP" >&6; }
2791else
2792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793printf "%s\n" "no" >&6; }
2794fi
2795
2796  if test "x$ac_ct_STRIP" = x; then
2797    STRIP=":"
2798  else
2799    case $cross_compiling:$ac_tool_warned in
2800yes:)
2801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2802printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803ac_tool_warned=yes ;;
2804esac
2805    STRIP=$ac_ct_STRIP
2806  fi
2807else
2808  STRIP="$ac_cv_prog_STRIP"
2809fi
2810
2811fi
2812INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2813
2814
2815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2816printf %s "checking for a race-free mkdir -p... " >&6; }
2817if test -z "$MKDIR_P"; then
2818  if test ${ac_cv_path_mkdir+y}
2819then :
2820  printf %s "(cached) " >&6
2821else $as_nop
2822  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2824do
2825  IFS=$as_save_IFS
2826  case $as_dir in #(((
2827    '') as_dir=./ ;;
2828    */) ;;
2829    *) as_dir=$as_dir/ ;;
2830  esac
2831    for ac_prog in mkdir gmkdir; do
2832	 for ac_exec_ext in '' $ac_executable_extensions; do
2833	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2834	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2835	     'mkdir ('*'coreutils) '* | \
2836	     'BusyBox '* | \
2837	     'mkdir (fileutils) '4.1*)
2838	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2839	       break 3;;
2840	   esac
2841	 done
2842       done
2843  done
2844IFS=$as_save_IFS
2845
2846fi
2847
2848  test -d ./--version && rmdir ./--version
2849  if test ${ac_cv_path_mkdir+y}; then
2850    MKDIR_P="$ac_cv_path_mkdir -p"
2851  else
2852    # As a last resort, use the slow shell script.  Don't cache a
2853    # value for MKDIR_P within a source directory, because that will
2854    # break other packages using the cache if that directory is
2855    # removed, or if the value is a relative name.
2856    MKDIR_P="$ac_install_sh -d"
2857  fi
2858fi
2859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2860printf "%s\n" "$MKDIR_P" >&6; }
2861
2862for ac_prog in gawk mawk nawk awk
2863do
2864  # Extract the first word of "$ac_prog", so it can be a program name with args.
2865set dummy $ac_prog; ac_word=$2
2866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867printf %s "checking for $ac_word... " >&6; }
2868if test ${ac_cv_prog_AWK+y}
2869then :
2870  printf %s "(cached) " >&6
2871else $as_nop
2872  if test -n "$AWK"; then
2873  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878  IFS=$as_save_IFS
2879  case $as_dir in #(((
2880    '') as_dir=./ ;;
2881    */) ;;
2882    *) as_dir=$as_dir/ ;;
2883  esac
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_AWK="$ac_prog"
2887    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896AWK=$ac_cv_prog_AWK
2897if test -n "$AWK"; then
2898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2899printf "%s\n" "$AWK" >&6; }
2900else
2901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902printf "%s\n" "no" >&6; }
2903fi
2904
2905
2906  test -n "$AWK" && break
2907done
2908
2909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2910printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2911set x ${MAKE-make}
2912ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2913if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2914then :
2915  printf %s "(cached) " >&6
2916else $as_nop
2917  cat >conftest.make <<\_ACEOF
2918SHELL = /bin/sh
2919all:
2920	@echo '@@@%%%=$(MAKE)=@@@%%%'
2921_ACEOF
2922# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2923case `${MAKE-make} -f conftest.make 2>/dev/null` in
2924  *@@@%%%=?*=@@@%%%*)
2925    eval ac_cv_prog_make_${ac_make}_set=yes;;
2926  *)
2927    eval ac_cv_prog_make_${ac_make}_set=no;;
2928esac
2929rm -f conftest.make
2930fi
2931if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2933printf "%s\n" "yes" >&6; }
2934  SET_MAKE=
2935else
2936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937printf "%s\n" "no" >&6; }
2938  SET_MAKE="MAKE=${MAKE-make}"
2939fi
2940
2941rm -rf .tst 2>/dev/null
2942mkdir .tst 2>/dev/null
2943if test -d .tst; then
2944  am__leading_dot=.
2945else
2946  am__leading_dot=_
2947fi
2948rmdir .tst 2>/dev/null
2949
2950# Check whether --enable-silent-rules was given.
2951if test ${enable_silent_rules+y}
2952then :
2953  enableval=$enable_silent_rules;
2954fi
2955
2956case $enable_silent_rules in # (((
2957  yes) AM_DEFAULT_VERBOSITY=0;;
2958   no) AM_DEFAULT_VERBOSITY=1;;
2959    *) AM_DEFAULT_VERBOSITY=1;;
2960esac
2961am_make=${MAKE-make}
2962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2963printf %s "checking whether $am_make supports nested variables... " >&6; }
2964if test ${am_cv_make_support_nested_variables+y}
2965then :
2966  printf %s "(cached) " >&6
2967else $as_nop
2968  if printf "%s\n" 'TRUE=$(BAR$(V))
2969BAR0=false
2970BAR1=true
2971V=1
2972am__doit:
2973	@$(TRUE)
2974.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2975  am_cv_make_support_nested_variables=yes
2976else
2977  am_cv_make_support_nested_variables=no
2978fi
2979fi
2980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2981printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2982if test $am_cv_make_support_nested_variables = yes; then
2983    AM_V='$(V)'
2984  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2985else
2986  AM_V=$AM_DEFAULT_VERBOSITY
2987  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2988fi
2989AM_BACKSLASH='\'
2990
2991if test "`cd $srcdir && pwd`" != "`pwd`"; then
2992  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2993  # is not polluted with repeated "-I."
2994  am__isrc=' -I$(srcdir)'
2995  # test to see if srcdir already configured
2996  if test -f $srcdir/config.status; then
2997    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2998  fi
2999fi
3000
3001# test whether we have cygpath
3002if test -z "$CYGPATH_W"; then
3003  if (cygpath --version) >/dev/null 2>/dev/null; then
3004    CYGPATH_W='cygpath -w'
3005  else
3006    CYGPATH_W=echo
3007  fi
3008fi
3009
3010
3011# Define the identity of the package.
3012 PACKAGE='viewres'
3013 VERSION='1.0.7'
3014
3015
3016printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3017
3018
3019printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3020
3021# Some tools Automake needs.
3022
3023ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3024
3025
3026AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3027
3028
3029AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3030
3031
3032AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3033
3034
3035MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3036
3037# For better backward compatibility.  To be removed once Automake 1.9.x
3038# dies out for good.  For more background, see:
3039# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3040# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3041mkdir_p='$(MKDIR_P)'
3042
3043# We need awk for the "check" target (and possibly the TAP driver).  The
3044# system "awk" is bad on some platforms.
3045# Always define AMTAR for backward compatibility.  Yes, it's still used
3046# in the wild :-(  We should find a proper way to deprecate it ...
3047AMTAR='$${TAR-tar}'
3048
3049
3050# We'll loop over all known methods to create a tar archive until one works.
3051_am_tools='gnutar  pax cpio none'
3052
3053am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3054
3055
3056
3057
3058
3059# Variables for tags utilities; see am/tags.am
3060if test -z "$CTAGS"; then
3061  CTAGS=ctags
3062fi
3063
3064if test -z "$ETAGS"; then
3065  ETAGS=etags
3066fi
3067
3068if test -z "$CSCOPE"; then
3069  CSCOPE=cscope
3070fi
3071
3072
3073
3074# POSIX will say in a future version that running "rm -f" with no argument
3075# is OK; and we want to be able to make that assumption in our Makefile
3076# recipes.  So use an aggressive probe to check that the usage we want is
3077# actually supported "in the wild" to an acceptable degree.
3078# See automake bug#10828.
3079# To make any issue more visible, cause the running configure to be aborted
3080# by default if the 'rm' program in use doesn't match our expectations; the
3081# user can still override this though.
3082if rm -f && rm -fr && rm -rf; then : OK; else
3083  cat >&2 <<'END'
3084Oops!
3085
3086Your 'rm' program seems unable to run without file operands specified
3087on the command line, even when the '-f' option is present.  This is contrary
3088to the behaviour of most rm programs out there, and not conforming with
3089the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3090
3091Please tell bug-automake@gnu.org about your system, including the value
3092of your $PATH and any error possibly output before this message.  This
3093can help us improve future automake versions.
3094
3095END
3096  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3097    echo 'Configuration will proceed anyway, since you have set the' >&2
3098    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3099    echo >&2
3100  else
3101    cat >&2 <<'END'
3102Aborting the configuration process, to ensure you take notice of the issue.
3103
3104You can download and install GNU coreutils to get an 'rm' implementation
3105that behaves properly: <https://www.gnu.org/software/coreutils/>.
3106
3107If you want to complete the configuration process using your problematic
3108'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3109to "yes", and re-run configure.
3110
3111END
3112    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3113  fi
3114fi
3115
3116
3117# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138DEPDIR="${am__leading_dot}deps"
3139
3140ac_config_commands="$ac_config_commands depfiles"
3141
3142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3143printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3144cat > confinc.mk << 'END'
3145am__doit:
3146	@echo this is the am__doit target >confinc.out
3147.PHONY: am__doit
3148END
3149am__include="#"
3150am__quote=
3151# BSD make does it like this.
3152echo '.include "confinc.mk" # ignored' > confmf.BSD
3153# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3154echo 'include confinc.mk # ignored' > confmf.GNU
3155_am_result=no
3156for s in GNU BSD; do
3157  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3158   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }
3162  case $?:`cat confinc.out 2>/dev/null` in #(
3163  '0:this is the am__doit target') :
3164    case $s in #(
3165  BSD) :
3166    am__include='.include' am__quote='"' ;; #(
3167  *) :
3168    am__include='include' am__quote='' ;;
3169esac ;; #(
3170  *) :
3171     ;;
3172esac
3173  if test "$am__include" != "#"; then
3174    _am_result="yes ($s style)"
3175    break
3176  fi
3177done
3178rm -f confinc.* confmf.*
3179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3180printf "%s\n" "${_am_result}" >&6; }
3181
3182# Check whether --enable-dependency-tracking was given.
3183if test ${enable_dependency_tracking+y}
3184then :
3185  enableval=$enable_dependency_tracking;
3186fi
3187
3188if test "x$enable_dependency_tracking" != xno; then
3189  am_depcomp="$ac_aux_dir/depcomp"
3190  AMDEPBACKSLASH='\'
3191  am__nodep='_no'
3192fi
3193 if test "x$enable_dependency_tracking" != xno; then
3194  AMDEP_TRUE=
3195  AMDEP_FALSE='#'
3196else
3197  AMDEP_TRUE='#'
3198  AMDEP_FALSE=
3199fi
3200
3201
3202ac_ext=c
3203ac_cpp='$CPP $CPPFLAGS'
3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207if test -n "$ac_tool_prefix"; then
3208  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3209set dummy ${ac_tool_prefix}gcc; ac_word=$2
3210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211printf %s "checking for $ac_word... " >&6; }
3212if test ${ac_cv_prog_CC+y}
3213then :
3214  printf %s "(cached) " >&6
3215else $as_nop
3216  if test -n "$CC"; then
3217  ac_cv_prog_CC="$CC" # Let the user override the test.
3218else
3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220for as_dir in $PATH
3221do
3222  IFS=$as_save_IFS
3223  case $as_dir in #(((
3224    '') as_dir=./ ;;
3225    */) ;;
3226    *) as_dir=$as_dir/ ;;
3227  esac
3228    for ac_exec_ext in '' $ac_executable_extensions; do
3229  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3230    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3231    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3232    break 2
3233  fi
3234done
3235  done
3236IFS=$as_save_IFS
3237
3238fi
3239fi
3240CC=$ac_cv_prog_CC
3241if test -n "$CC"; then
3242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243printf "%s\n" "$CC" >&6; }
3244else
3245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246printf "%s\n" "no" >&6; }
3247fi
3248
3249
3250fi
3251if test -z "$ac_cv_prog_CC"; then
3252  ac_ct_CC=$CC
3253  # Extract the first word of "gcc", so it can be a program name with args.
3254set dummy gcc; ac_word=$2
3255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256printf %s "checking for $ac_word... " >&6; }
3257if test ${ac_cv_prog_ac_ct_CC+y}
3258then :
3259  printf %s "(cached) " >&6
3260else $as_nop
3261  if test -n "$ac_ct_CC"; then
3262  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3263else
3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265for as_dir in $PATH
3266do
3267  IFS=$as_save_IFS
3268  case $as_dir in #(((
3269    '') as_dir=./ ;;
3270    */) ;;
3271    *) as_dir=$as_dir/ ;;
3272  esac
3273    for ac_exec_ext in '' $ac_executable_extensions; do
3274  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3275    ac_cv_prog_ac_ct_CC="gcc"
3276    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3277    break 2
3278  fi
3279done
3280  done
3281IFS=$as_save_IFS
3282
3283fi
3284fi
3285ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286if test -n "$ac_ct_CC"; then
3287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3288printf "%s\n" "$ac_ct_CC" >&6; }
3289else
3290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291printf "%s\n" "no" >&6; }
3292fi
3293
3294  if test "x$ac_ct_CC" = x; then
3295    CC=""
3296  else
3297    case $cross_compiling:$ac_tool_warned in
3298yes:)
3299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3300printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3301ac_tool_warned=yes ;;
3302esac
3303    CC=$ac_ct_CC
3304  fi
3305else
3306  CC="$ac_cv_prog_CC"
3307fi
3308
3309if test -z "$CC"; then
3310          if test -n "$ac_tool_prefix"; then
3311    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3312set dummy ${ac_tool_prefix}cc; ac_word=$2
3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314printf %s "checking for $ac_word... " >&6; }
3315if test ${ac_cv_prog_CC+y}
3316then :
3317  printf %s "(cached) " >&6
3318else $as_nop
3319  if test -n "$CC"; then
3320  ac_cv_prog_CC="$CC" # Let the user override the test.
3321else
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325  IFS=$as_save_IFS
3326  case $as_dir in #(((
3327    '') as_dir=./ ;;
3328    */) ;;
3329    *) as_dir=$as_dir/ ;;
3330  esac
3331    for ac_exec_ext in '' $ac_executable_extensions; do
3332  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3333    ac_cv_prog_CC="${ac_tool_prefix}cc"
3334    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3335    break 2
3336  fi
3337done
3338  done
3339IFS=$as_save_IFS
3340
3341fi
3342fi
3343CC=$ac_cv_prog_CC
3344if test -n "$CC"; then
3345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346printf "%s\n" "$CC" >&6; }
3347else
3348  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349printf "%s\n" "no" >&6; }
3350fi
3351
3352
3353  fi
3354fi
3355if test -z "$CC"; then
3356  # Extract the first word of "cc", so it can be a program name with args.
3357set dummy cc; ac_word=$2
3358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359printf %s "checking for $ac_word... " >&6; }
3360if test ${ac_cv_prog_CC+y}
3361then :
3362  printf %s "(cached) " >&6
3363else $as_nop
3364  if test -n "$CC"; then
3365  ac_cv_prog_CC="$CC" # Let the user override the test.
3366else
3367  ac_prog_rejected=no
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371  IFS=$as_save_IFS
3372  case $as_dir in #(((
3373    '') as_dir=./ ;;
3374    */) ;;
3375    *) as_dir=$as_dir/ ;;
3376  esac
3377    for ac_exec_ext in '' $ac_executable_extensions; do
3378  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3379    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3380       ac_prog_rejected=yes
3381       continue
3382     fi
3383    ac_cv_prog_CC="cc"
3384    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3385    break 2
3386  fi
3387done
3388  done
3389IFS=$as_save_IFS
3390
3391if test $ac_prog_rejected = yes; then
3392  # We found a bogon in the path, so make sure we never use it.
3393  set dummy $ac_cv_prog_CC
3394  shift
3395  if test $# != 0; then
3396    # We chose a different compiler from the bogus one.
3397    # However, it has the same basename, so the bogon will be chosen
3398    # first if we set CC to just the basename; use the full file name.
3399    shift
3400    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3401  fi
3402fi
3403fi
3404fi
3405CC=$ac_cv_prog_CC
3406if test -n "$CC"; then
3407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408printf "%s\n" "$CC" >&6; }
3409else
3410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411printf "%s\n" "no" >&6; }
3412fi
3413
3414
3415fi
3416if test -z "$CC"; then
3417  if test -n "$ac_tool_prefix"; then
3418  for ac_prog in cl.exe
3419  do
3420    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423printf %s "checking for $ac_word... " >&6; }
3424if test ${ac_cv_prog_CC+y}
3425then :
3426  printf %s "(cached) " >&6
3427else $as_nop
3428  if test -n "$CC"; then
3429  ac_cv_prog_CC="$CC" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434  IFS=$as_save_IFS
3435  case $as_dir in #(((
3436    '') as_dir=./ ;;
3437    */) ;;
3438    *) as_dir=$as_dir/ ;;
3439  esac
3440    for ac_exec_ext in '' $ac_executable_extensions; do
3441  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3442    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3443    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3444    break 2
3445  fi
3446done
3447  done
3448IFS=$as_save_IFS
3449
3450fi
3451fi
3452CC=$ac_cv_prog_CC
3453if test -n "$CC"; then
3454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455printf "%s\n" "$CC" >&6; }
3456else
3457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458printf "%s\n" "no" >&6; }
3459fi
3460
3461
3462    test -n "$CC" && break
3463  done
3464fi
3465if test -z "$CC"; then
3466  ac_ct_CC=$CC
3467  for ac_prog in cl.exe
3468do
3469  # Extract the first word of "$ac_prog", so it can be a program name with args.
3470set dummy $ac_prog; ac_word=$2
3471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472printf %s "checking for $ac_word... " >&6; }
3473if test ${ac_cv_prog_ac_ct_CC+y}
3474then :
3475  printf %s "(cached) " >&6
3476else $as_nop
3477  if test -n "$ac_ct_CC"; then
3478  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3479else
3480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481for as_dir in $PATH
3482do
3483  IFS=$as_save_IFS
3484  case $as_dir in #(((
3485    '') as_dir=./ ;;
3486    */) ;;
3487    *) as_dir=$as_dir/ ;;
3488  esac
3489    for ac_exec_ext in '' $ac_executable_extensions; do
3490  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3491    ac_cv_prog_ac_ct_CC="$ac_prog"
3492    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3493    break 2
3494  fi
3495done
3496  done
3497IFS=$as_save_IFS
3498
3499fi
3500fi
3501ac_ct_CC=$ac_cv_prog_ac_ct_CC
3502if test -n "$ac_ct_CC"; then
3503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3504printf "%s\n" "$ac_ct_CC" >&6; }
3505else
3506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507printf "%s\n" "no" >&6; }
3508fi
3509
3510
3511  test -n "$ac_ct_CC" && break
3512done
3513
3514  if test "x$ac_ct_CC" = x; then
3515    CC=""
3516  else
3517    case $cross_compiling:$ac_tool_warned in
3518yes:)
3519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521ac_tool_warned=yes ;;
3522esac
3523    CC=$ac_ct_CC
3524  fi
3525fi
3526
3527fi
3528if test -z "$CC"; then
3529  if test -n "$ac_tool_prefix"; then
3530  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3531set dummy ${ac_tool_prefix}clang; ac_word=$2
3532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533printf %s "checking for $ac_word... " >&6; }
3534if test ${ac_cv_prog_CC+y}
3535then :
3536  printf %s "(cached) " >&6
3537else $as_nop
3538  if test -n "$CC"; then
3539  ac_cv_prog_CC="$CC" # Let the user override the test.
3540else
3541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542for as_dir in $PATH
3543do
3544  IFS=$as_save_IFS
3545  case $as_dir in #(((
3546    '') as_dir=./ ;;
3547    */) ;;
3548    *) as_dir=$as_dir/ ;;
3549  esac
3550    for ac_exec_ext in '' $ac_executable_extensions; do
3551  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3552    ac_cv_prog_CC="${ac_tool_prefix}clang"
3553    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3554    break 2
3555  fi
3556done
3557  done
3558IFS=$as_save_IFS
3559
3560fi
3561fi
3562CC=$ac_cv_prog_CC
3563if test -n "$CC"; then
3564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565printf "%s\n" "$CC" >&6; }
3566else
3567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568printf "%s\n" "no" >&6; }
3569fi
3570
3571
3572fi
3573if test -z "$ac_cv_prog_CC"; then
3574  ac_ct_CC=$CC
3575  # Extract the first word of "clang", so it can be a program name with args.
3576set dummy clang; ac_word=$2
3577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578printf %s "checking for $ac_word... " >&6; }
3579if test ${ac_cv_prog_ac_ct_CC+y}
3580then :
3581  printf %s "(cached) " >&6
3582else $as_nop
3583  if test -n "$ac_ct_CC"; then
3584  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3585else
3586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587for as_dir in $PATH
3588do
3589  IFS=$as_save_IFS
3590  case $as_dir in #(((
3591    '') as_dir=./ ;;
3592    */) ;;
3593    *) as_dir=$as_dir/ ;;
3594  esac
3595    for ac_exec_ext in '' $ac_executable_extensions; do
3596  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3597    ac_cv_prog_ac_ct_CC="clang"
3598    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3599    break 2
3600  fi
3601done
3602  done
3603IFS=$as_save_IFS
3604
3605fi
3606fi
3607ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608if test -n "$ac_ct_CC"; then
3609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610printf "%s\n" "$ac_ct_CC" >&6; }
3611else
3612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613printf "%s\n" "no" >&6; }
3614fi
3615
3616  if test "x$ac_ct_CC" = x; then
3617    CC=""
3618  else
3619    case $cross_compiling:$ac_tool_warned in
3620yes:)
3621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3622printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3623ac_tool_warned=yes ;;
3624esac
3625    CC=$ac_ct_CC
3626  fi
3627else
3628  CC="$ac_cv_prog_CC"
3629fi
3630
3631fi
3632
3633
3634test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3636as_fn_error $? "no acceptable C compiler found in \$PATH
3637See \`config.log' for more details" "$LINENO" 5; }
3638
3639# Provide some information about the compiler.
3640printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3641set X $ac_compile
3642ac_compiler=$2
3643for ac_option in --version -v -V -qversion -version; do
3644  { { ac_try="$ac_compiler $ac_option >&5"
3645case "(($ac_try" in
3646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647  *) ac_try_echo=$ac_try;;
3648esac
3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650printf "%s\n" "$ac_try_echo"; } >&5
3651  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3652  ac_status=$?
3653  if test -s conftest.err; then
3654    sed '10a\
3655... rest of stderr output deleted ...
3656         10q' conftest.err >conftest.er1
3657    cat conftest.er1 >&5
3658  fi
3659  rm -f conftest.er1 conftest.err
3660  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661  test $ac_status = 0; }
3662done
3663
3664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h.  */
3666
3667int
3668main (void)
3669{
3670
3671  ;
3672  return 0;
3673}
3674_ACEOF
3675ac_clean_files_save=$ac_clean_files
3676ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3677# Try to create an executable without -o first, disregard a.out.
3678# It will help us diagnose broken compilers, and finding out an intuition
3679# of exeext.
3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3681printf %s "checking whether the C compiler works... " >&6; }
3682ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3683
3684# The possible output files:
3685ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3686
3687ac_rmfiles=
3688for ac_file in $ac_files
3689do
3690  case $ac_file in
3691    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3692    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3693  esac
3694done
3695rm -f $ac_rmfiles
3696
3697if { { ac_try="$ac_link_default"
3698case "(($ac_try" in
3699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700  *) ac_try_echo=$ac_try;;
3701esac
3702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703printf "%s\n" "$ac_try_echo"; } >&5
3704  (eval "$ac_link_default") 2>&5
3705  ac_status=$?
3706  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707  test $ac_status = 0; }
3708then :
3709  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3710# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3711# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3712# so that the user can short-circuit this test for compilers unknown to
3713# Autoconf.
3714for ac_file in $ac_files ''
3715do
3716  test -f "$ac_file" || continue
3717  case $ac_file in
3718    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3719	;;
3720    [ab].out )
3721	# We found the default executable, but exeext='' is most
3722	# certainly right.
3723	break;;
3724    *.* )
3725	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3726	then :; else
3727	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3728	fi
3729	# We set ac_cv_exeext here because the later test for it is not
3730	# safe: cross compilers may not add the suffix if given an `-o'
3731	# argument, so we may need to know it at that point already.
3732	# Even if this section looks crufty: it has the advantage of
3733	# actually working.
3734	break;;
3735    * )
3736	break;;
3737  esac
3738done
3739test "$ac_cv_exeext" = no && ac_cv_exeext=
3740
3741else $as_nop
3742  ac_file=''
3743fi
3744if test -z "$ac_file"
3745then :
3746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747printf "%s\n" "no" >&6; }
3748printf "%s\n" "$as_me: failed program was:" >&5
3749sed 's/^/| /' conftest.$ac_ext >&5
3750
3751{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3753as_fn_error 77 "C compiler cannot create executables
3754See \`config.log' for more details" "$LINENO" 5; }
3755else $as_nop
3756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3757printf "%s\n" "yes" >&6; }
3758fi
3759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3760printf %s "checking for C compiler default output file name... " >&6; }
3761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3762printf "%s\n" "$ac_file" >&6; }
3763ac_exeext=$ac_cv_exeext
3764
3765rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3766ac_clean_files=$ac_clean_files_save
3767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3768printf %s "checking for suffix of executables... " >&6; }
3769if { { ac_try="$ac_link"
3770case "(($ac_try" in
3771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772  *) ac_try_echo=$ac_try;;
3773esac
3774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775printf "%s\n" "$ac_try_echo"; } >&5
3776  (eval "$ac_link") 2>&5
3777  ac_status=$?
3778  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779  test $ac_status = 0; }
3780then :
3781  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3782# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3783# work properly (i.e., refer to `conftest.exe'), while it won't with
3784# `rm'.
3785for ac_file in conftest.exe conftest conftest.*; do
3786  test -f "$ac_file" || continue
3787  case $ac_file in
3788    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3789    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3790	  break;;
3791    * ) break;;
3792  esac
3793done
3794else $as_nop
3795  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3797as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3798See \`config.log' for more details" "$LINENO" 5; }
3799fi
3800rm -f conftest conftest$ac_cv_exeext
3801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3802printf "%s\n" "$ac_cv_exeext" >&6; }
3803
3804rm -f conftest.$ac_ext
3805EXEEXT=$ac_cv_exeext
3806ac_exeext=$EXEEXT
3807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808/* end confdefs.h.  */
3809#include <stdio.h>
3810int
3811main (void)
3812{
3813FILE *f = fopen ("conftest.out", "w");
3814 return ferror (f) || fclose (f) != 0;
3815
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820ac_clean_files="$ac_clean_files conftest.out"
3821# Check that the compiler produces executables we can run.  If not, either
3822# the compiler is broken, or we cross compile.
3823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3824printf %s "checking whether we are cross compiling... " >&6; }
3825if test "$cross_compiling" != yes; then
3826  { { ac_try="$ac_link"
3827case "(($ac_try" in
3828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829  *) ac_try_echo=$ac_try;;
3830esac
3831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832printf "%s\n" "$ac_try_echo"; } >&5
3833  (eval "$ac_link") 2>&5
3834  ac_status=$?
3835  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836  test $ac_status = 0; }
3837  if { ac_try='./conftest$ac_cv_exeext'
3838  { { case "(($ac_try" in
3839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840  *) ac_try_echo=$ac_try;;
3841esac
3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843printf "%s\n" "$ac_try_echo"; } >&5
3844  (eval "$ac_try") 2>&5
3845  ac_status=$?
3846  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847  test $ac_status = 0; }; }; then
3848    cross_compiling=no
3849  else
3850    if test "$cross_compiling" = maybe; then
3851	cross_compiling=yes
3852    else
3853	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3854printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3855as_fn_error 77 "cannot run C compiled programs.
3856If you meant to cross compile, use \`--host'.
3857See \`config.log' for more details" "$LINENO" 5; }
3858    fi
3859  fi
3860fi
3861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3862printf "%s\n" "$cross_compiling" >&6; }
3863
3864rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3865ac_clean_files=$ac_clean_files_save
3866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3867printf %s "checking for suffix of object files... " >&6; }
3868if test ${ac_cv_objext+y}
3869then :
3870  printf %s "(cached) " >&6
3871else $as_nop
3872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h.  */
3874
3875int
3876main (void)
3877{
3878
3879  ;
3880  return 0;
3881}
3882_ACEOF
3883rm -f conftest.o conftest.obj
3884if { { ac_try="$ac_compile"
3885case "(($ac_try" in
3886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887  *) ac_try_echo=$ac_try;;
3888esac
3889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890printf "%s\n" "$ac_try_echo"; } >&5
3891  (eval "$ac_compile") 2>&5
3892  ac_status=$?
3893  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894  test $ac_status = 0; }
3895then :
3896  for ac_file in conftest.o conftest.obj conftest.*; do
3897  test -f "$ac_file" || continue;
3898  case $ac_file in
3899    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3900    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3901       break;;
3902  esac
3903done
3904else $as_nop
3905  printf "%s\n" "$as_me: failed program was:" >&5
3906sed 's/^/| /' conftest.$ac_ext >&5
3907
3908{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3910as_fn_error $? "cannot compute suffix of object files: cannot compile
3911See \`config.log' for more details" "$LINENO" 5; }
3912fi
3913rm -f conftest.$ac_cv_objext conftest.$ac_ext
3914fi
3915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3916printf "%s\n" "$ac_cv_objext" >&6; }
3917OBJEXT=$ac_cv_objext
3918ac_objext=$OBJEXT
3919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3920printf %s "checking whether the compiler supports GNU C... " >&6; }
3921if test ${ac_cv_c_compiler_gnu+y}
3922then :
3923  printf %s "(cached) " >&6
3924else $as_nop
3925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926/* end confdefs.h.  */
3927
3928int
3929main (void)
3930{
3931#ifndef __GNUC__
3932       choke me
3933#endif
3934
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939if ac_fn_c_try_compile "$LINENO"
3940then :
3941  ac_compiler_gnu=yes
3942else $as_nop
3943  ac_compiler_gnu=no
3944fi
3945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3946ac_cv_c_compiler_gnu=$ac_compiler_gnu
3947
3948fi
3949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3950printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3951ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953if test $ac_compiler_gnu = yes; then
3954  GCC=yes
3955else
3956  GCC=
3957fi
3958ac_test_CFLAGS=${CFLAGS+y}
3959ac_save_CFLAGS=$CFLAGS
3960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3961printf %s "checking whether $CC accepts -g... " >&6; }
3962if test ${ac_cv_prog_cc_g+y}
3963then :
3964  printf %s "(cached) " >&6
3965else $as_nop
3966  ac_save_c_werror_flag=$ac_c_werror_flag
3967   ac_c_werror_flag=yes
3968   ac_cv_prog_cc_g=no
3969   CFLAGS="-g"
3970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971/* end confdefs.h.  */
3972
3973int
3974main (void)
3975{
3976
3977  ;
3978  return 0;
3979}
3980_ACEOF
3981if ac_fn_c_try_compile "$LINENO"
3982then :
3983  ac_cv_prog_cc_g=yes
3984else $as_nop
3985  CFLAGS=""
3986      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987/* end confdefs.h.  */
3988
3989int
3990main (void)
3991{
3992
3993  ;
3994  return 0;
3995}
3996_ACEOF
3997if ac_fn_c_try_compile "$LINENO"
3998then :
3999
4000else $as_nop
4001  ac_c_werror_flag=$ac_save_c_werror_flag
4002	 CFLAGS="-g"
4003	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h.  */
4005
4006int
4007main (void)
4008{
4009
4010  ;
4011  return 0;
4012}
4013_ACEOF
4014if ac_fn_c_try_compile "$LINENO"
4015then :
4016  ac_cv_prog_cc_g=yes
4017fi
4018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4019fi
4020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4021fi
4022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4023   ac_c_werror_flag=$ac_save_c_werror_flag
4024fi
4025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4026printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4027if test $ac_test_CFLAGS; then
4028  CFLAGS=$ac_save_CFLAGS
4029elif test $ac_cv_prog_cc_g = yes; then
4030  if test "$GCC" = yes; then
4031    CFLAGS="-g -O2"
4032  else
4033    CFLAGS="-g"
4034  fi
4035else
4036  if test "$GCC" = yes; then
4037    CFLAGS="-O2"
4038  else
4039    CFLAGS=
4040  fi
4041fi
4042ac_prog_cc_stdc=no
4043if test x$ac_prog_cc_stdc = xno
4044then :
4045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4046printf %s "checking for $CC option to enable C11 features... " >&6; }
4047if test ${ac_cv_prog_cc_c11+y}
4048then :
4049  printf %s "(cached) " >&6
4050else $as_nop
4051  ac_cv_prog_cc_c11=no
4052ac_save_CC=$CC
4053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h.  */
4055$ac_c_conftest_c11_program
4056_ACEOF
4057for ac_arg in '' -std=gnu11
4058do
4059  CC="$ac_save_CC $ac_arg"
4060  if ac_fn_c_try_compile "$LINENO"
4061then :
4062  ac_cv_prog_cc_c11=$ac_arg
4063fi
4064rm -f core conftest.err conftest.$ac_objext conftest.beam
4065  test "x$ac_cv_prog_cc_c11" != "xno" && break
4066done
4067rm -f conftest.$ac_ext
4068CC=$ac_save_CC
4069fi
4070
4071if test "x$ac_cv_prog_cc_c11" = xno
4072then :
4073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4074printf "%s\n" "unsupported" >&6; }
4075else $as_nop
4076  if test "x$ac_cv_prog_cc_c11" = x
4077then :
4078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4079printf "%s\n" "none needed" >&6; }
4080else $as_nop
4081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4082printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4083     CC="$CC $ac_cv_prog_cc_c11"
4084fi
4085  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4086  ac_prog_cc_stdc=c11
4087fi
4088fi
4089if test x$ac_prog_cc_stdc = xno
4090then :
4091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4092printf %s "checking for $CC option to enable C99 features... " >&6; }
4093if test ${ac_cv_prog_cc_c99+y}
4094then :
4095  printf %s "(cached) " >&6
4096else $as_nop
4097  ac_cv_prog_cc_c99=no
4098ac_save_CC=$CC
4099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100/* end confdefs.h.  */
4101$ac_c_conftest_c99_program
4102_ACEOF
4103for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4104do
4105  CC="$ac_save_CC $ac_arg"
4106  if ac_fn_c_try_compile "$LINENO"
4107then :
4108  ac_cv_prog_cc_c99=$ac_arg
4109fi
4110rm -f core conftest.err conftest.$ac_objext conftest.beam
4111  test "x$ac_cv_prog_cc_c99" != "xno" && break
4112done
4113rm -f conftest.$ac_ext
4114CC=$ac_save_CC
4115fi
4116
4117if test "x$ac_cv_prog_cc_c99" = xno
4118then :
4119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4120printf "%s\n" "unsupported" >&6; }
4121else $as_nop
4122  if test "x$ac_cv_prog_cc_c99" = x
4123then :
4124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4125printf "%s\n" "none needed" >&6; }
4126else $as_nop
4127  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4128printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4129     CC="$CC $ac_cv_prog_cc_c99"
4130fi
4131  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4132  ac_prog_cc_stdc=c99
4133fi
4134fi
4135if test x$ac_prog_cc_stdc = xno
4136then :
4137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4138printf %s "checking for $CC option to enable C89 features... " >&6; }
4139if test ${ac_cv_prog_cc_c89+y}
4140then :
4141  printf %s "(cached) " >&6
4142else $as_nop
4143  ac_cv_prog_cc_c89=no
4144ac_save_CC=$CC
4145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h.  */
4147$ac_c_conftest_c89_program
4148_ACEOF
4149for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4150do
4151  CC="$ac_save_CC $ac_arg"
4152  if ac_fn_c_try_compile "$LINENO"
4153then :
4154  ac_cv_prog_cc_c89=$ac_arg
4155fi
4156rm -f core conftest.err conftest.$ac_objext conftest.beam
4157  test "x$ac_cv_prog_cc_c89" != "xno" && break
4158done
4159rm -f conftest.$ac_ext
4160CC=$ac_save_CC
4161fi
4162
4163if test "x$ac_cv_prog_cc_c89" = xno
4164then :
4165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4166printf "%s\n" "unsupported" >&6; }
4167else $as_nop
4168  if test "x$ac_cv_prog_cc_c89" = x
4169then :
4170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4171printf "%s\n" "none needed" >&6; }
4172else $as_nop
4173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4174printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4175     CC="$CC $ac_cv_prog_cc_c89"
4176fi
4177  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4178  ac_prog_cc_stdc=c89
4179fi
4180fi
4181
4182ac_ext=c
4183ac_cpp='$CPP $CPPFLAGS'
4184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187
4188
4189  ac_ext=c
4190ac_cpp='$CPP $CPPFLAGS'
4191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4195printf %s "checking whether $CC understands -c and -o together... " >&6; }
4196if test ${am_cv_prog_cc_c_o+y}
4197then :
4198  printf %s "(cached) " >&6
4199else $as_nop
4200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201/* end confdefs.h.  */
4202
4203int
4204main (void)
4205{
4206
4207  ;
4208  return 0;
4209}
4210_ACEOF
4211  # Make sure it works both with $CC and with simple cc.
4212  # Following AC_PROG_CC_C_O, we do the test twice because some
4213  # compilers refuse to overwrite an existing .o file with -o,
4214  # though they will create one.
4215  am_cv_prog_cc_c_o=yes
4216  for am_i in 1 2; do
4217    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4218   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); } \
4222         && test -f conftest2.$ac_objext; then
4223      : OK
4224    else
4225      am_cv_prog_cc_c_o=no
4226      break
4227    fi
4228  done
4229  rm -f core conftest*
4230  unset am_i
4231fi
4232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4233printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4234if test "$am_cv_prog_cc_c_o" != yes; then
4235   # Losing compiler, so override with the script.
4236   # FIXME: It is wrong to rewrite CC.
4237   # But if we don't then we get into trouble of one sort or another.
4238   # A longer-term fix would be to have automake use am__CC in this case,
4239   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4240   CC="$am_aux_dir/compile $CC"
4241fi
4242ac_ext=c
4243ac_cpp='$CPP $CPPFLAGS'
4244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248
4249depcc="$CC"   am_compiler_list=
4250
4251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4252printf %s "checking dependency style of $depcc... " >&6; }
4253if test ${am_cv_CC_dependencies_compiler_type+y}
4254then :
4255  printf %s "(cached) " >&6
4256else $as_nop
4257  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4258  # We make a subdir and do the tests there.  Otherwise we can end up
4259  # making bogus files that we don't know about and never remove.  For
4260  # instance it was reported that on HP-UX the gcc test will end up
4261  # making a dummy file named 'D' -- because '-MD' means "put the output
4262  # in D".
4263  rm -rf conftest.dir
4264  mkdir conftest.dir
4265  # Copy depcomp to subdir because otherwise we won't find it if we're
4266  # using a relative directory.
4267  cp "$am_depcomp" conftest.dir
4268  cd conftest.dir
4269  # We will build objects and dependencies in a subdirectory because
4270  # it helps to detect inapplicable dependency modes.  For instance
4271  # both Tru64's cc and ICC support -MD to output dependencies as a
4272  # side effect of compilation, but ICC will put the dependencies in
4273  # the current directory while Tru64 will put them in the object
4274  # directory.
4275  mkdir sub
4276
4277  am_cv_CC_dependencies_compiler_type=none
4278  if test "$am_compiler_list" = ""; then
4279     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4280  fi
4281  am__universal=false
4282  case " $depcc " in #(
4283     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4284     esac
4285
4286  for depmode in $am_compiler_list; do
4287    # Setup a source with many dependencies, because some compilers
4288    # like to wrap large dependency lists on column 80 (with \), and
4289    # we should not choose a depcomp mode which is confused by this.
4290    #
4291    # We need to recreate these files for each test, as the compiler may
4292    # overwrite some of them when testing with obscure command lines.
4293    # This happens at least with the AIX C compiler.
4294    : > sub/conftest.c
4295    for i in 1 2 3 4 5 6; do
4296      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4297      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4298      # Solaris 10 /bin/sh.
4299      echo '/* dummy */' > sub/conftst$i.h
4300    done
4301    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4302
4303    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4304    # mode.  It turns out that the SunPro C++ compiler does not properly
4305    # handle '-M -o', and we need to detect this.  Also, some Intel
4306    # versions had trouble with output in subdirs.
4307    am__obj=sub/conftest.${OBJEXT-o}
4308    am__minus_obj="-o $am__obj"
4309    case $depmode in
4310    gcc)
4311      # This depmode causes a compiler race in universal mode.
4312      test "$am__universal" = false || continue
4313      ;;
4314    nosideeffect)
4315      # After this tag, mechanisms are not by side-effect, so they'll
4316      # only be used when explicitly requested.
4317      if test "x$enable_dependency_tracking" = xyes; then
4318	continue
4319      else
4320	break
4321      fi
4322      ;;
4323    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4324      # This compiler won't grok '-c -o', but also, the minuso test has
4325      # not run yet.  These depmodes are late enough in the game, and
4326      # so weak that their functioning should not be impacted.
4327      am__obj=conftest.${OBJEXT-o}
4328      am__minus_obj=
4329      ;;
4330    none) break ;;
4331    esac
4332    if depmode=$depmode \
4333       source=sub/conftest.c object=$am__obj \
4334       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4335       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4336         >/dev/null 2>conftest.err &&
4337       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4338       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4339       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4340       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4341      # icc doesn't choke on unknown options, it will just issue warnings
4342      # or remarks (even with -Werror).  So we grep stderr for any message
4343      # that says an option was ignored or not supported.
4344      # When given -MP, icc 7.0 and 7.1 complain thusly:
4345      #   icc: Command line warning: ignoring option '-M'; no argument required
4346      # The diagnosis changed in icc 8.0:
4347      #   icc: Command line remark: option '-MP' not supported
4348      if (grep 'ignoring option' conftest.err ||
4349          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4350        am_cv_CC_dependencies_compiler_type=$depmode
4351        break
4352      fi
4353    fi
4354  done
4355
4356  cd ..
4357  rm -rf conftest.dir
4358else
4359  am_cv_CC_dependencies_compiler_type=none
4360fi
4361
4362fi
4363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4364printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4365CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4366
4367 if
4368  test "x$enable_dependency_tracking" != xno \
4369  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4370  am__fastdepCC_TRUE=
4371  am__fastdepCC_FALSE='#'
4372else
4373  am__fastdepCC_TRUE='#'
4374  am__fastdepCC_FALSE=
4375fi
4376
4377
4378
4379
4380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4381printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4382if test ${ac_cv_c_undeclared_builtin_options+y}
4383then :
4384  printf %s "(cached) " >&6
4385else $as_nop
4386  ac_save_CFLAGS=$CFLAGS
4387   ac_cv_c_undeclared_builtin_options='cannot detect'
4388   for ac_arg in '' -fno-builtin; do
4389     CFLAGS="$ac_save_CFLAGS $ac_arg"
4390     # This test program should *not* compile successfully.
4391     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392/* end confdefs.h.  */
4393
4394int
4395main (void)
4396{
4397(void) strchr;
4398  ;
4399  return 0;
4400}
4401_ACEOF
4402if ac_fn_c_try_compile "$LINENO"
4403then :
4404
4405else $as_nop
4406  # This test program should compile successfully.
4407        # No library function is consistently available on
4408        # freestanding implementations, so test against a dummy
4409        # declaration.  Include always-available headers on the
4410        # off chance that they somehow elicit warnings.
4411        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412/* end confdefs.h.  */
4413#include <float.h>
4414#include <limits.h>
4415#include <stdarg.h>
4416#include <stddef.h>
4417extern void ac_decl (int, char *);
4418
4419int
4420main (void)
4421{
4422(void) ac_decl (0, (char *) 0);
4423  (void) ac_decl;
4424
4425  ;
4426  return 0;
4427}
4428_ACEOF
4429if ac_fn_c_try_compile "$LINENO"
4430then :
4431  if test x"$ac_arg" = x
4432then :
4433  ac_cv_c_undeclared_builtin_options='none needed'
4434else $as_nop
4435  ac_cv_c_undeclared_builtin_options=$ac_arg
4436fi
4437          break
4438fi
4439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4440fi
4441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4442    done
4443    CFLAGS=$ac_save_CFLAGS
4444
4445fi
4446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4447printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4448  case $ac_cv_c_undeclared_builtin_options in #(
4449  'cannot detect') :
4450    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4451printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4452as_fn_error $? "cannot make $CC report undeclared builtins
4453See \`config.log' for more details" "$LINENO" 5; } ;; #(
4454  'none needed') :
4455    ac_c_undeclared_builtin_options='' ;; #(
4456  *) :
4457    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4458esac
4459
4460ac_header= ac_cache=
4461for ac_item in $ac_header_c_list
4462do
4463  if test $ac_cache; then
4464    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4465    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4466      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4467    fi
4468    ac_header= ac_cache=
4469  elif test $ac_header; then
4470    ac_cache=$ac_item
4471  else
4472    ac_header=$ac_item
4473  fi
4474done
4475
4476
4477
4478
4479
4480
4481
4482
4483if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4484then :
4485
4486printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4487
4488fi
4489
4490
4491
4492
4493ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4494if test "x$ac_cv_have_decl___clang__" = xyes
4495then :
4496  CLANGCC="yes"
4497else $as_nop
4498  CLANGCC="no"
4499fi
4500ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4501if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4502then :
4503  INTELCC="yes"
4504else $as_nop
4505  INTELCC="no"
4506fi
4507ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4508if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4509then :
4510  SUNCC="yes"
4511else $as_nop
4512  SUNCC="no"
4513fi
4514
4515
4516
4517
4518
4519
4520
4521
4522if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4523	if test -n "$ac_tool_prefix"; then
4524  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4525set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527printf %s "checking for $ac_word... " >&6; }
4528if test ${ac_cv_path_PKG_CONFIG+y}
4529then :
4530  printf %s "(cached) " >&6
4531else $as_nop
4532  case $PKG_CONFIG in
4533  [\\/]* | ?:[\\/]*)
4534  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4535  ;;
4536  *)
4537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540  IFS=$as_save_IFS
4541  case $as_dir in #(((
4542    '') as_dir=./ ;;
4543    */) ;;
4544    *) as_dir=$as_dir/ ;;
4545  esac
4546    for ac_exec_ext in '' $ac_executable_extensions; do
4547  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4548    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4549    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4550    break 2
4551  fi
4552done
4553  done
4554IFS=$as_save_IFS
4555
4556  ;;
4557esac
4558fi
4559PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4560if test -n "$PKG_CONFIG"; then
4561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4562printf "%s\n" "$PKG_CONFIG" >&6; }
4563else
4564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565printf "%s\n" "no" >&6; }
4566fi
4567
4568
4569fi
4570if test -z "$ac_cv_path_PKG_CONFIG"; then
4571  ac_pt_PKG_CONFIG=$PKG_CONFIG
4572  # Extract the first word of "pkg-config", so it can be a program name with args.
4573set dummy pkg-config; ac_word=$2
4574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575printf %s "checking for $ac_word... " >&6; }
4576if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4577then :
4578  printf %s "(cached) " >&6
4579else $as_nop
4580  case $ac_pt_PKG_CONFIG in
4581  [\\/]* | ?:[\\/]*)
4582  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4583  ;;
4584  *)
4585  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586for as_dir in $PATH
4587do
4588  IFS=$as_save_IFS
4589  case $as_dir in #(((
4590    '') as_dir=./ ;;
4591    */) ;;
4592    *) as_dir=$as_dir/ ;;
4593  esac
4594    for ac_exec_ext in '' $ac_executable_extensions; do
4595  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4596    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4597    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4598    break 2
4599  fi
4600done
4601  done
4602IFS=$as_save_IFS
4603
4604  ;;
4605esac
4606fi
4607ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4608if test -n "$ac_pt_PKG_CONFIG"; then
4609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4610printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4611else
4612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613printf "%s\n" "no" >&6; }
4614fi
4615
4616  if test "x$ac_pt_PKG_CONFIG" = x; then
4617    PKG_CONFIG=""
4618  else
4619    case $cross_compiling:$ac_tool_warned in
4620yes:)
4621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4622printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4623ac_tool_warned=yes ;;
4624esac
4625    PKG_CONFIG=$ac_pt_PKG_CONFIG
4626  fi
4627else
4628  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4629fi
4630
4631fi
4632if test -n "$PKG_CONFIG"; then
4633	_pkg_min_version=0.9.0
4634	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4635printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4636	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4638printf "%s\n" "yes" >&6; }
4639	else
4640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641printf "%s\n" "no" >&6; }
4642		PKG_CONFIG=""
4643	fi
4644fi
4645
4646
4647  # Make sure we can run config.sub.
4648$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4649  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4650
4651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4652printf %s "checking build system type... " >&6; }
4653if test ${ac_cv_build+y}
4654then :
4655  printf %s "(cached) " >&6
4656else $as_nop
4657  ac_build_alias=$build_alias
4658test "x$ac_build_alias" = x &&
4659  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4660test "x$ac_build_alias" = x &&
4661  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4662ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4663  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4664
4665fi
4666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4667printf "%s\n" "$ac_cv_build" >&6; }
4668case $ac_cv_build in
4669*-*-*) ;;
4670*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4671esac
4672build=$ac_cv_build
4673ac_save_IFS=$IFS; IFS='-'
4674set x $ac_cv_build
4675shift
4676build_cpu=$1
4677build_vendor=$2
4678shift; shift
4679# Remember, the first character of IFS is used to create $*,
4680# except with old shells:
4681build_os=$*
4682IFS=$ac_save_IFS
4683case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4684
4685
4686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4687printf %s "checking host system type... " >&6; }
4688if test ${ac_cv_host+y}
4689then :
4690  printf %s "(cached) " >&6
4691else $as_nop
4692  if test "x$host_alias" = x; then
4693  ac_cv_host=$ac_cv_build
4694else
4695  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4696    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4697fi
4698
4699fi
4700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4701printf "%s\n" "$ac_cv_host" >&6; }
4702case $ac_cv_host in
4703*-*-*) ;;
4704*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4705esac
4706host=$ac_cv_host
4707ac_save_IFS=$IFS; IFS='-'
4708set x $ac_cv_host
4709shift
4710host_cpu=$1
4711host_vendor=$2
4712shift; shift
4713# Remember, the first character of IFS is used to create $*,
4714# except with old shells:
4715host_os=$*
4716IFS=$ac_save_IFS
4717case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4718
4719
4720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4721printf %s "checking for a sed that does not truncate output... " >&6; }
4722if test ${ac_cv_path_SED+y}
4723then :
4724  printf %s "(cached) " >&6
4725else $as_nop
4726            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4727     for ac_i in 1 2 3 4 5 6 7; do
4728       ac_script="$ac_script$as_nl$ac_script"
4729     done
4730     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4731     { ac_script=; unset ac_script;}
4732     if test -z "$SED"; then
4733  ac_path_SED_found=false
4734  # Loop through the user's path and test for each of PROGNAME-LIST
4735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738  IFS=$as_save_IFS
4739  case $as_dir in #(((
4740    '') as_dir=./ ;;
4741    */) ;;
4742    *) as_dir=$as_dir/ ;;
4743  esac
4744    for ac_prog in sed gsed
4745   do
4746    for ac_exec_ext in '' $ac_executable_extensions; do
4747      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4748      as_fn_executable_p "$ac_path_SED" || continue
4749# Check for GNU ac_path_SED and select it if it is found.
4750  # Check for GNU $ac_path_SED
4751case `"$ac_path_SED" --version 2>&1` in
4752*GNU*)
4753  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4754*)
4755  ac_count=0
4756  printf %s 0123456789 >"conftest.in"
4757  while :
4758  do
4759    cat "conftest.in" "conftest.in" >"conftest.tmp"
4760    mv "conftest.tmp" "conftest.in"
4761    cp "conftest.in" "conftest.nl"
4762    printf "%s\n" '' >> "conftest.nl"
4763    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4764    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4765    as_fn_arith $ac_count + 1 && ac_count=$as_val
4766    if test $ac_count -gt ${ac_path_SED_max-0}; then
4767      # Best one so far, save it but keep looking for a better one
4768      ac_cv_path_SED="$ac_path_SED"
4769      ac_path_SED_max=$ac_count
4770    fi
4771    # 10*(2^10) chars as input seems more than enough
4772    test $ac_count -gt 10 && break
4773  done
4774  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4775esac
4776
4777      $ac_path_SED_found && break 3
4778    done
4779  done
4780  done
4781IFS=$as_save_IFS
4782  if test -z "$ac_cv_path_SED"; then
4783    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4784  fi
4785else
4786  ac_cv_path_SED=$SED
4787fi
4788
4789fi
4790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4791printf "%s\n" "$ac_cv_path_SED" >&6; }
4792 SED="$ac_cv_path_SED"
4793  rm -f conftest.sed
4794
4795
4796
4797
4798
4799
4800# Check whether --enable-selective-werror was given.
4801if test ${enable_selective_werror+y}
4802then :
4803  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4804else $as_nop
4805  SELECTIVE_WERROR=yes
4806fi
4807
4808
4809
4810
4811
4812# -v is too short to test reliably with XORG_TESTSET_CFLAG
4813if test "x$SUNCC" = "xyes"; then
4814    BASE_CFLAGS="-v"
4815else
4816    BASE_CFLAGS=""
4817fi
4818
4819# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833xorg_testset_save_CFLAGS="$CFLAGS"
4834
4835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4837	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4838printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4839if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4840then :
4841  printf %s "(cached) " >&6
4842else $as_nop
4843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844/* end confdefs.h.  */
4845int i;
4846_ACEOF
4847if ac_fn_c_try_compile "$LINENO"
4848then :
4849  xorg_cv_cc_flag_unknown_warning_option=yes
4850else $as_nop
4851  xorg_cv_cc_flag_unknown_warning_option=no
4852fi
4853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4854fi
4855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4856printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4857	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4858	CFLAGS="$xorg_testset_save_CFLAGS"
4859fi
4860
4861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4862	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4863		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4864	fi
4865	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4866	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4867printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4868if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4869then :
4870  printf %s "(cached) " >&6
4871else $as_nop
4872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873/* end confdefs.h.  */
4874int i;
4875_ACEOF
4876if ac_fn_c_try_compile "$LINENO"
4877then :
4878  xorg_cv_cc_flag_unused_command_line_argument=yes
4879else $as_nop
4880  xorg_cv_cc_flag_unused_command_line_argument=no
4881fi
4882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4883fi
4884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4885printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4886	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4887	CFLAGS="$xorg_testset_save_CFLAGS"
4888fi
4889
4890found="no"
4891
4892	if test $found = "no" ; then
4893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4895		fi
4896
4897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4899		fi
4900
4901		CFLAGS="$CFLAGS -Wall"
4902
4903		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4904printf %s "checking if $CC supports -Wall... " >&6; }
4905		cacheid=xorg_cv_cc_flag__Wall
4906		if eval test \${$cacheid+y}
4907then :
4908  printf %s "(cached) " >&6
4909else $as_nop
4910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h.  */
4912int i;
4913int
4914main (void)
4915{
4916
4917  ;
4918  return 0;
4919}
4920_ACEOF
4921if ac_fn_c_try_link "$LINENO"
4922then :
4923  eval $cacheid=yes
4924else $as_nop
4925  eval $cacheid=no
4926fi
4927rm -f core conftest.err conftest.$ac_objext conftest.beam \
4928    conftest$ac_exeext conftest.$ac_ext
4929fi
4930
4931
4932		CFLAGS="$xorg_testset_save_CFLAGS"
4933
4934		eval supported=\$$cacheid
4935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4936printf "%s\n" "$supported" >&6; }
4937		if test "$supported" = "yes" ; then
4938			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4939			found="yes"
4940		fi
4941	fi
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957xorg_testset_save_CFLAGS="$CFLAGS"
4958
4959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4960	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4963if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4964then :
4965  printf %s "(cached) " >&6
4966else $as_nop
4967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968/* end confdefs.h.  */
4969int i;
4970_ACEOF
4971if ac_fn_c_try_compile "$LINENO"
4972then :
4973  xorg_cv_cc_flag_unknown_warning_option=yes
4974else $as_nop
4975  xorg_cv_cc_flag_unknown_warning_option=no
4976fi
4977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4978fi
4979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4982	CFLAGS="$xorg_testset_save_CFLAGS"
4983fi
4984
4985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4988	fi
4989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4992if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4993then :
4994  printf %s "(cached) " >&6
4995else $as_nop
4996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997/* end confdefs.h.  */
4998int i;
4999_ACEOF
5000if ac_fn_c_try_compile "$LINENO"
5001then :
5002  xorg_cv_cc_flag_unused_command_line_argument=yes
5003else $as_nop
5004  xorg_cv_cc_flag_unused_command_line_argument=no
5005fi
5006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5007fi
5008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5010	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5011	CFLAGS="$xorg_testset_save_CFLAGS"
5012fi
5013
5014found="no"
5015
5016	if test $found = "no" ; then
5017		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5019		fi
5020
5021		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5023		fi
5024
5025		CFLAGS="$CFLAGS -Wpointer-arith"
5026
5027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5028printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5029		cacheid=xorg_cv_cc_flag__Wpointer_arith
5030		if eval test \${$cacheid+y}
5031then :
5032  printf %s "(cached) " >&6
5033else $as_nop
5034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035/* end confdefs.h.  */
5036int i;
5037int
5038main (void)
5039{
5040
5041  ;
5042  return 0;
5043}
5044_ACEOF
5045if ac_fn_c_try_link "$LINENO"
5046then :
5047  eval $cacheid=yes
5048else $as_nop
5049  eval $cacheid=no
5050fi
5051rm -f core conftest.err conftest.$ac_objext conftest.beam \
5052    conftest$ac_exeext conftest.$ac_ext
5053fi
5054
5055
5056		CFLAGS="$xorg_testset_save_CFLAGS"
5057
5058		eval supported=\$$cacheid
5059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5060printf "%s\n" "$supported" >&6; }
5061		if test "$supported" = "yes" ; then
5062			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5063			found="yes"
5064		fi
5065	fi
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081xorg_testset_save_CFLAGS="$CFLAGS"
5082
5083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5086printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5087if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5088then :
5089  printf %s "(cached) " >&6
5090else $as_nop
5091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h.  */
5093int i;
5094_ACEOF
5095if ac_fn_c_try_compile "$LINENO"
5096then :
5097  xorg_cv_cc_flag_unknown_warning_option=yes
5098else $as_nop
5099  xorg_cv_cc_flag_unknown_warning_option=no
5100fi
5101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5102fi
5103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5104printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5106	CFLAGS="$xorg_testset_save_CFLAGS"
5107fi
5108
5109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5112	fi
5113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5114	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5115printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5116if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5117then :
5118  printf %s "(cached) " >&6
5119else $as_nop
5120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h.  */
5122int i;
5123_ACEOF
5124if ac_fn_c_try_compile "$LINENO"
5125then :
5126  xorg_cv_cc_flag_unused_command_line_argument=yes
5127else $as_nop
5128  xorg_cv_cc_flag_unused_command_line_argument=no
5129fi
5130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5131fi
5132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5133printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5135	CFLAGS="$xorg_testset_save_CFLAGS"
5136fi
5137
5138found="no"
5139
5140	if test $found = "no" ; then
5141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5143		fi
5144
5145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5147		fi
5148
5149		CFLAGS="$CFLAGS -Wmissing-declarations"
5150
5151		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5152printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5153		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5154		if eval test \${$cacheid+y}
5155then :
5156  printf %s "(cached) " >&6
5157else $as_nop
5158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159/* end confdefs.h.  */
5160int i;
5161int
5162main (void)
5163{
5164
5165  ;
5166  return 0;
5167}
5168_ACEOF
5169if ac_fn_c_try_link "$LINENO"
5170then :
5171  eval $cacheid=yes
5172else $as_nop
5173  eval $cacheid=no
5174fi
5175rm -f core conftest.err conftest.$ac_objext conftest.beam \
5176    conftest$ac_exeext conftest.$ac_ext
5177fi
5178
5179
5180		CFLAGS="$xorg_testset_save_CFLAGS"
5181
5182		eval supported=\$$cacheid
5183		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5184printf "%s\n" "$supported" >&6; }
5185		if test "$supported" = "yes" ; then
5186			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5187			found="yes"
5188		fi
5189	fi
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205xorg_testset_save_CFLAGS="$CFLAGS"
5206
5207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5209	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5210printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5211if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5212then :
5213  printf %s "(cached) " >&6
5214else $as_nop
5215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216/* end confdefs.h.  */
5217int i;
5218_ACEOF
5219if ac_fn_c_try_compile "$LINENO"
5220then :
5221  xorg_cv_cc_flag_unknown_warning_option=yes
5222else $as_nop
5223  xorg_cv_cc_flag_unknown_warning_option=no
5224fi
5225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5226fi
5227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5228printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5229	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5230	CFLAGS="$xorg_testset_save_CFLAGS"
5231fi
5232
5233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5234	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5235		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5236	fi
5237	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5238	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5239printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5240if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5241then :
5242  printf %s "(cached) " >&6
5243else $as_nop
5244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245/* end confdefs.h.  */
5246int i;
5247_ACEOF
5248if ac_fn_c_try_compile "$LINENO"
5249then :
5250  xorg_cv_cc_flag_unused_command_line_argument=yes
5251else $as_nop
5252  xorg_cv_cc_flag_unused_command_line_argument=no
5253fi
5254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5255fi
5256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5257printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5258	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5259	CFLAGS="$xorg_testset_save_CFLAGS"
5260fi
5261
5262found="no"
5263
5264	if test $found = "no" ; then
5265		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5267		fi
5268
5269		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5271		fi
5272
5273		CFLAGS="$CFLAGS -Wformat=2"
5274
5275		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5276printf %s "checking if $CC supports -Wformat=2... " >&6; }
5277		cacheid=xorg_cv_cc_flag__Wformat_2
5278		if eval test \${$cacheid+y}
5279then :
5280  printf %s "(cached) " >&6
5281else $as_nop
5282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h.  */
5284int i;
5285int
5286main (void)
5287{
5288
5289  ;
5290  return 0;
5291}
5292_ACEOF
5293if ac_fn_c_try_link "$LINENO"
5294then :
5295  eval $cacheid=yes
5296else $as_nop
5297  eval $cacheid=no
5298fi
5299rm -f core conftest.err conftest.$ac_objext conftest.beam \
5300    conftest$ac_exeext conftest.$ac_ext
5301fi
5302
5303
5304		CFLAGS="$xorg_testset_save_CFLAGS"
5305
5306		eval supported=\$$cacheid
5307		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5308printf "%s\n" "$supported" >&6; }
5309		if test "$supported" = "yes" ; then
5310			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5311			found="yes"
5312		fi
5313	fi
5314
5315	if test $found = "no" ; then
5316		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5318		fi
5319
5320		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5322		fi
5323
5324		CFLAGS="$CFLAGS -Wformat"
5325
5326		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5327printf %s "checking if $CC supports -Wformat... " >&6; }
5328		cacheid=xorg_cv_cc_flag__Wformat
5329		if eval test \${$cacheid+y}
5330then :
5331  printf %s "(cached) " >&6
5332else $as_nop
5333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h.  */
5335int i;
5336int
5337main (void)
5338{
5339
5340  ;
5341  return 0;
5342}
5343_ACEOF
5344if ac_fn_c_try_link "$LINENO"
5345then :
5346  eval $cacheid=yes
5347else $as_nop
5348  eval $cacheid=no
5349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.beam \
5351    conftest$ac_exeext conftest.$ac_ext
5352fi
5353
5354
5355		CFLAGS="$xorg_testset_save_CFLAGS"
5356
5357		eval supported=\$$cacheid
5358		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5359printf "%s\n" "$supported" >&6; }
5360		if test "$supported" = "yes" ; then
5361			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5362			found="yes"
5363		fi
5364	fi
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382xorg_testset_save_CFLAGS="$CFLAGS"
5383
5384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5386	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5387printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5388if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5389then :
5390  printf %s "(cached) " >&6
5391else $as_nop
5392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h.  */
5394int i;
5395_ACEOF
5396if ac_fn_c_try_compile "$LINENO"
5397then :
5398  xorg_cv_cc_flag_unknown_warning_option=yes
5399else $as_nop
5400  xorg_cv_cc_flag_unknown_warning_option=no
5401fi
5402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5403fi
5404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5405printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5406	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5407	CFLAGS="$xorg_testset_save_CFLAGS"
5408fi
5409
5410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5411	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5412		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5413	fi
5414	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5415	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5416printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5417if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5418then :
5419  printf %s "(cached) " >&6
5420else $as_nop
5421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422/* end confdefs.h.  */
5423int i;
5424_ACEOF
5425if ac_fn_c_try_compile "$LINENO"
5426then :
5427  xorg_cv_cc_flag_unused_command_line_argument=yes
5428else $as_nop
5429  xorg_cv_cc_flag_unused_command_line_argument=no
5430fi
5431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5432fi
5433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5434printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5435	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5436	CFLAGS="$xorg_testset_save_CFLAGS"
5437fi
5438
5439found="no"
5440
5441	if test $found = "no" ; then
5442		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5443			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5444		fi
5445
5446		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5447			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5448		fi
5449
5450		CFLAGS="$CFLAGS -Wstrict-prototypes"
5451
5452		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5453printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5454		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5455		if eval test \${$cacheid+y}
5456then :
5457  printf %s "(cached) " >&6
5458else $as_nop
5459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h.  */
5461int i;
5462int
5463main (void)
5464{
5465
5466  ;
5467  return 0;
5468}
5469_ACEOF
5470if ac_fn_c_try_link "$LINENO"
5471then :
5472  eval $cacheid=yes
5473else $as_nop
5474  eval $cacheid=no
5475fi
5476rm -f core conftest.err conftest.$ac_objext conftest.beam \
5477    conftest$ac_exeext conftest.$ac_ext
5478fi
5479
5480
5481		CFLAGS="$xorg_testset_save_CFLAGS"
5482
5483		eval supported=\$$cacheid
5484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5485printf "%s\n" "$supported" >&6; }
5486		if test "$supported" = "yes" ; then
5487			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5488			found="yes"
5489		fi
5490	fi
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506xorg_testset_save_CFLAGS="$CFLAGS"
5507
5508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5510	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5512if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5513then :
5514  printf %s "(cached) " >&6
5515else $as_nop
5516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h.  */
5518int i;
5519_ACEOF
5520if ac_fn_c_try_compile "$LINENO"
5521then :
5522  xorg_cv_cc_flag_unknown_warning_option=yes
5523else $as_nop
5524  xorg_cv_cc_flag_unknown_warning_option=no
5525fi
5526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5527fi
5528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5529printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5530	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5531	CFLAGS="$xorg_testset_save_CFLAGS"
5532fi
5533
5534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5535	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5536		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537	fi
5538	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5539	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5540printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5541if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5542then :
5543  printf %s "(cached) " >&6
5544else $as_nop
5545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546/* end confdefs.h.  */
5547int i;
5548_ACEOF
5549if ac_fn_c_try_compile "$LINENO"
5550then :
5551  xorg_cv_cc_flag_unused_command_line_argument=yes
5552else $as_nop
5553  xorg_cv_cc_flag_unused_command_line_argument=no
5554fi
5555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5556fi
5557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5558printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5559	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5560	CFLAGS="$xorg_testset_save_CFLAGS"
5561fi
5562
5563found="no"
5564
5565	if test $found = "no" ; then
5566		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5567			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5568		fi
5569
5570		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5571			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5572		fi
5573
5574		CFLAGS="$CFLAGS -Wmissing-prototypes"
5575
5576		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5577printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5578		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5579		if eval test \${$cacheid+y}
5580then :
5581  printf %s "(cached) " >&6
5582else $as_nop
5583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584/* end confdefs.h.  */
5585int i;
5586int
5587main (void)
5588{
5589
5590  ;
5591  return 0;
5592}
5593_ACEOF
5594if ac_fn_c_try_link "$LINENO"
5595then :
5596  eval $cacheid=yes
5597else $as_nop
5598  eval $cacheid=no
5599fi
5600rm -f core conftest.err conftest.$ac_objext conftest.beam \
5601    conftest$ac_exeext conftest.$ac_ext
5602fi
5603
5604
5605		CFLAGS="$xorg_testset_save_CFLAGS"
5606
5607		eval supported=\$$cacheid
5608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5609printf "%s\n" "$supported" >&6; }
5610		if test "$supported" = "yes" ; then
5611			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5612			found="yes"
5613		fi
5614	fi
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630xorg_testset_save_CFLAGS="$CFLAGS"
5631
5632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5633	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5634	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5635printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5636if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5637then :
5638  printf %s "(cached) " >&6
5639else $as_nop
5640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h.  */
5642int i;
5643_ACEOF
5644if ac_fn_c_try_compile "$LINENO"
5645then :
5646  xorg_cv_cc_flag_unknown_warning_option=yes
5647else $as_nop
5648  xorg_cv_cc_flag_unknown_warning_option=no
5649fi
5650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5651fi
5652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5653printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5654	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5655	CFLAGS="$xorg_testset_save_CFLAGS"
5656fi
5657
5658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5659	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5660		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661	fi
5662	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5663	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5664printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5665if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5666then :
5667  printf %s "(cached) " >&6
5668else $as_nop
5669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h.  */
5671int i;
5672_ACEOF
5673if ac_fn_c_try_compile "$LINENO"
5674then :
5675  xorg_cv_cc_flag_unused_command_line_argument=yes
5676else $as_nop
5677  xorg_cv_cc_flag_unused_command_line_argument=no
5678fi
5679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5680fi
5681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5682printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5683	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5684	CFLAGS="$xorg_testset_save_CFLAGS"
5685fi
5686
5687found="no"
5688
5689	if test $found = "no" ; then
5690		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5691			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5692		fi
5693
5694		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5695			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5696		fi
5697
5698		CFLAGS="$CFLAGS -Wnested-externs"
5699
5700		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5701printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5702		cacheid=xorg_cv_cc_flag__Wnested_externs
5703		if eval test \${$cacheid+y}
5704then :
5705  printf %s "(cached) " >&6
5706else $as_nop
5707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h.  */
5709int i;
5710int
5711main (void)
5712{
5713
5714  ;
5715  return 0;
5716}
5717_ACEOF
5718if ac_fn_c_try_link "$LINENO"
5719then :
5720  eval $cacheid=yes
5721else $as_nop
5722  eval $cacheid=no
5723fi
5724rm -f core conftest.err conftest.$ac_objext conftest.beam \
5725    conftest$ac_exeext conftest.$ac_ext
5726fi
5727
5728
5729		CFLAGS="$xorg_testset_save_CFLAGS"
5730
5731		eval supported=\$$cacheid
5732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5733printf "%s\n" "$supported" >&6; }
5734		if test "$supported" = "yes" ; then
5735			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5736			found="yes"
5737		fi
5738	fi
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754xorg_testset_save_CFLAGS="$CFLAGS"
5755
5756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5757	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5758	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5759printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5760if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5761then :
5762  printf %s "(cached) " >&6
5763else $as_nop
5764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765/* end confdefs.h.  */
5766int i;
5767_ACEOF
5768if ac_fn_c_try_compile "$LINENO"
5769then :
5770  xorg_cv_cc_flag_unknown_warning_option=yes
5771else $as_nop
5772  xorg_cv_cc_flag_unknown_warning_option=no
5773fi
5774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5775fi
5776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5777printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5778	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5779	CFLAGS="$xorg_testset_save_CFLAGS"
5780fi
5781
5782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5783	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5784		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785	fi
5786	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5787	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5788printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5789if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5790then :
5791  printf %s "(cached) " >&6
5792else $as_nop
5793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794/* end confdefs.h.  */
5795int i;
5796_ACEOF
5797if ac_fn_c_try_compile "$LINENO"
5798then :
5799  xorg_cv_cc_flag_unused_command_line_argument=yes
5800else $as_nop
5801  xorg_cv_cc_flag_unused_command_line_argument=no
5802fi
5803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5804fi
5805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5806printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5807	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5808	CFLAGS="$xorg_testset_save_CFLAGS"
5809fi
5810
5811found="no"
5812
5813	if test $found = "no" ; then
5814		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5816		fi
5817
5818		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5820		fi
5821
5822		CFLAGS="$CFLAGS -Wbad-function-cast"
5823
5824		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5825printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5826		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5827		if eval test \${$cacheid+y}
5828then :
5829  printf %s "(cached) " >&6
5830else $as_nop
5831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h.  */
5833int i;
5834int
5835main (void)
5836{
5837
5838  ;
5839  return 0;
5840}
5841_ACEOF
5842if ac_fn_c_try_link "$LINENO"
5843then :
5844  eval $cacheid=yes
5845else $as_nop
5846  eval $cacheid=no
5847fi
5848rm -f core conftest.err conftest.$ac_objext conftest.beam \
5849    conftest$ac_exeext conftest.$ac_ext
5850fi
5851
5852
5853		CFLAGS="$xorg_testset_save_CFLAGS"
5854
5855		eval supported=\$$cacheid
5856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5857printf "%s\n" "$supported" >&6; }
5858		if test "$supported" = "yes" ; then
5859			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5860			found="yes"
5861		fi
5862	fi
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878xorg_testset_save_CFLAGS="$CFLAGS"
5879
5880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5881	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5882	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5884if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5885then :
5886  printf %s "(cached) " >&6
5887else $as_nop
5888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h.  */
5890int i;
5891_ACEOF
5892if ac_fn_c_try_compile "$LINENO"
5893then :
5894  xorg_cv_cc_flag_unknown_warning_option=yes
5895else $as_nop
5896  xorg_cv_cc_flag_unknown_warning_option=no
5897fi
5898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5899fi
5900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5901printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5902	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5903	CFLAGS="$xorg_testset_save_CFLAGS"
5904fi
5905
5906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5907	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5908		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909	fi
5910	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5911	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5912printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5913if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5914then :
5915  printf %s "(cached) " >&6
5916else $as_nop
5917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918/* end confdefs.h.  */
5919int i;
5920_ACEOF
5921if ac_fn_c_try_compile "$LINENO"
5922then :
5923  xorg_cv_cc_flag_unused_command_line_argument=yes
5924else $as_nop
5925  xorg_cv_cc_flag_unused_command_line_argument=no
5926fi
5927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5928fi
5929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5930printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5932	CFLAGS="$xorg_testset_save_CFLAGS"
5933fi
5934
5935found="no"
5936
5937	if test $found = "no" ; then
5938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5940		fi
5941
5942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5944		fi
5945
5946		CFLAGS="$CFLAGS -Wold-style-definition"
5947
5948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5949printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5950		cacheid=xorg_cv_cc_flag__Wold_style_definition
5951		if eval test \${$cacheid+y}
5952then :
5953  printf %s "(cached) " >&6
5954else $as_nop
5955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956/* end confdefs.h.  */
5957int i;
5958int
5959main (void)
5960{
5961
5962  ;
5963  return 0;
5964}
5965_ACEOF
5966if ac_fn_c_try_link "$LINENO"
5967then :
5968  eval $cacheid=yes
5969else $as_nop
5970  eval $cacheid=no
5971fi
5972rm -f core conftest.err conftest.$ac_objext conftest.beam \
5973    conftest$ac_exeext conftest.$ac_ext
5974fi
5975
5976
5977		CFLAGS="$xorg_testset_save_CFLAGS"
5978
5979		eval supported=\$$cacheid
5980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5981printf "%s\n" "$supported" >&6; }
5982		if test "$supported" = "yes" ; then
5983			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5984			found="yes"
5985		fi
5986	fi
5987
5988	if test $found = "no" ; then
5989		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5990			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5991		fi
5992
5993		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5994			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5995		fi
5996
5997		CFLAGS="$CFLAGS -fd"
5998
5999		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6000printf %s "checking if $CC supports -fd... " >&6; }
6001		cacheid=xorg_cv_cc_flag__fd
6002		if eval test \${$cacheid+y}
6003then :
6004  printf %s "(cached) " >&6
6005else $as_nop
6006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h.  */
6008int i;
6009int
6010main (void)
6011{
6012
6013  ;
6014  return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_link "$LINENO"
6018then :
6019  eval $cacheid=yes
6020else $as_nop
6021  eval $cacheid=no
6022fi
6023rm -f core conftest.err conftest.$ac_objext conftest.beam \
6024    conftest$ac_exeext conftest.$ac_ext
6025fi
6026
6027
6028		CFLAGS="$xorg_testset_save_CFLAGS"
6029
6030		eval supported=\$$cacheid
6031		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6032printf "%s\n" "$supported" >&6; }
6033		if test "$supported" = "yes" ; then
6034			BASE_CFLAGS="$BASE_CFLAGS -fd"
6035			found="yes"
6036		fi
6037	fi
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053xorg_testset_save_CFLAGS="$CFLAGS"
6054
6055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6056	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6057	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6058printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6059if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6060then :
6061  printf %s "(cached) " >&6
6062else $as_nop
6063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h.  */
6065int i;
6066_ACEOF
6067if ac_fn_c_try_compile "$LINENO"
6068then :
6069  xorg_cv_cc_flag_unknown_warning_option=yes
6070else $as_nop
6071  xorg_cv_cc_flag_unknown_warning_option=no
6072fi
6073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6074fi
6075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6076printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6077	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6078	CFLAGS="$xorg_testset_save_CFLAGS"
6079fi
6080
6081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6082	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6083		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084	fi
6085	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6086	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6087printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6088if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6089then :
6090  printf %s "(cached) " >&6
6091else $as_nop
6092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093/* end confdefs.h.  */
6094int i;
6095_ACEOF
6096if ac_fn_c_try_compile "$LINENO"
6097then :
6098  xorg_cv_cc_flag_unused_command_line_argument=yes
6099else $as_nop
6100  xorg_cv_cc_flag_unused_command_line_argument=no
6101fi
6102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6103fi
6104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6105printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6106	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6107	CFLAGS="$xorg_testset_save_CFLAGS"
6108fi
6109
6110found="no"
6111
6112	if test $found = "no" ; then
6113		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6114			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6115		fi
6116
6117		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6118			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119		fi
6120
6121		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6122
6123		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6124printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6125		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6126		if eval test \${$cacheid+y}
6127then :
6128  printf %s "(cached) " >&6
6129else $as_nop
6130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h.  */
6132int i;
6133int
6134main (void)
6135{
6136
6137  ;
6138  return 0;
6139}
6140_ACEOF
6141if ac_fn_c_try_link "$LINENO"
6142then :
6143  eval $cacheid=yes
6144else $as_nop
6145  eval $cacheid=no
6146fi
6147rm -f core conftest.err conftest.$ac_objext conftest.beam \
6148    conftest$ac_exeext conftest.$ac_ext
6149fi
6150
6151
6152		CFLAGS="$xorg_testset_save_CFLAGS"
6153
6154		eval supported=\$$cacheid
6155		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6156printf "%s\n" "$supported" >&6; }
6157		if test "$supported" = "yes" ; then
6158			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6159			found="yes"
6160		fi
6161	fi
6162
6163
6164
6165
6166
6167# This chunk adds additional warnings that could catch undesired effects.
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181xorg_testset_save_CFLAGS="$CFLAGS"
6182
6183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6184	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6185	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6186printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6187if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6188then :
6189  printf %s "(cached) " >&6
6190else $as_nop
6191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192/* end confdefs.h.  */
6193int i;
6194_ACEOF
6195if ac_fn_c_try_compile "$LINENO"
6196then :
6197  xorg_cv_cc_flag_unknown_warning_option=yes
6198else $as_nop
6199  xorg_cv_cc_flag_unknown_warning_option=no
6200fi
6201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6202fi
6203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6204printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6206	CFLAGS="$xorg_testset_save_CFLAGS"
6207fi
6208
6209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212	fi
6213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6215printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6216if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6217then :
6218  printf %s "(cached) " >&6
6219else $as_nop
6220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h.  */
6222int i;
6223_ACEOF
6224if ac_fn_c_try_compile "$LINENO"
6225then :
6226  xorg_cv_cc_flag_unused_command_line_argument=yes
6227else $as_nop
6228  xorg_cv_cc_flag_unused_command_line_argument=no
6229fi
6230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6231fi
6232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6233printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6234	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6235	CFLAGS="$xorg_testset_save_CFLAGS"
6236fi
6237
6238found="no"
6239
6240	if test $found = "no" ; then
6241		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6243		fi
6244
6245		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6247		fi
6248
6249		CFLAGS="$CFLAGS -Wunused"
6250
6251		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6252printf %s "checking if $CC supports -Wunused... " >&6; }
6253		cacheid=xorg_cv_cc_flag__Wunused
6254		if eval test \${$cacheid+y}
6255then :
6256  printf %s "(cached) " >&6
6257else $as_nop
6258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h.  */
6260int i;
6261int
6262main (void)
6263{
6264
6265  ;
6266  return 0;
6267}
6268_ACEOF
6269if ac_fn_c_try_link "$LINENO"
6270then :
6271  eval $cacheid=yes
6272else $as_nop
6273  eval $cacheid=no
6274fi
6275rm -f core conftest.err conftest.$ac_objext conftest.beam \
6276    conftest$ac_exeext conftest.$ac_ext
6277fi
6278
6279
6280		CFLAGS="$xorg_testset_save_CFLAGS"
6281
6282		eval supported=\$$cacheid
6283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6284printf "%s\n" "$supported" >&6; }
6285		if test "$supported" = "yes" ; then
6286			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6287			found="yes"
6288		fi
6289	fi
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305xorg_testset_save_CFLAGS="$CFLAGS"
6306
6307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6309	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6311if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6312then :
6313  printf %s "(cached) " >&6
6314else $as_nop
6315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316/* end confdefs.h.  */
6317int i;
6318_ACEOF
6319if ac_fn_c_try_compile "$LINENO"
6320then :
6321  xorg_cv_cc_flag_unknown_warning_option=yes
6322else $as_nop
6323  xorg_cv_cc_flag_unknown_warning_option=no
6324fi
6325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6326fi
6327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6328printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6330	CFLAGS="$xorg_testset_save_CFLAGS"
6331fi
6332
6333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6336	fi
6337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6339printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6340if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6341then :
6342  printf %s "(cached) " >&6
6343else $as_nop
6344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h.  */
6346int i;
6347_ACEOF
6348if ac_fn_c_try_compile "$LINENO"
6349then :
6350  xorg_cv_cc_flag_unused_command_line_argument=yes
6351else $as_nop
6352  xorg_cv_cc_flag_unused_command_line_argument=no
6353fi
6354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6355fi
6356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6357printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6359	CFLAGS="$xorg_testset_save_CFLAGS"
6360fi
6361
6362found="no"
6363
6364	if test $found = "no" ; then
6365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6367		fi
6368
6369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6371		fi
6372
6373		CFLAGS="$CFLAGS -Wuninitialized"
6374
6375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6376printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6377		cacheid=xorg_cv_cc_flag__Wuninitialized
6378		if eval test \${$cacheid+y}
6379then :
6380  printf %s "(cached) " >&6
6381else $as_nop
6382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h.  */
6384int i;
6385int
6386main (void)
6387{
6388
6389  ;
6390  return 0;
6391}
6392_ACEOF
6393if ac_fn_c_try_link "$LINENO"
6394then :
6395  eval $cacheid=yes
6396else $as_nop
6397  eval $cacheid=no
6398fi
6399rm -f core conftest.err conftest.$ac_objext conftest.beam \
6400    conftest$ac_exeext conftest.$ac_ext
6401fi
6402
6403
6404		CFLAGS="$xorg_testset_save_CFLAGS"
6405
6406		eval supported=\$$cacheid
6407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6408printf "%s\n" "$supported" >&6; }
6409		if test "$supported" = "yes" ; then
6410			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6411			found="yes"
6412		fi
6413	fi
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429xorg_testset_save_CFLAGS="$CFLAGS"
6430
6431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6432	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6433	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6434printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6435if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6436then :
6437  printf %s "(cached) " >&6
6438else $as_nop
6439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h.  */
6441int i;
6442_ACEOF
6443if ac_fn_c_try_compile "$LINENO"
6444then :
6445  xorg_cv_cc_flag_unknown_warning_option=yes
6446else $as_nop
6447  xorg_cv_cc_flag_unknown_warning_option=no
6448fi
6449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6450fi
6451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6452printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6454	CFLAGS="$xorg_testset_save_CFLAGS"
6455fi
6456
6457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6460	fi
6461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6463printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6464if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6465then :
6466  printf %s "(cached) " >&6
6467else $as_nop
6468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h.  */
6470int i;
6471_ACEOF
6472if ac_fn_c_try_compile "$LINENO"
6473then :
6474  xorg_cv_cc_flag_unused_command_line_argument=yes
6475else $as_nop
6476  xorg_cv_cc_flag_unused_command_line_argument=no
6477fi
6478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6479fi
6480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6481printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6482	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6483	CFLAGS="$xorg_testset_save_CFLAGS"
6484fi
6485
6486found="no"
6487
6488	if test $found = "no" ; then
6489		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6491		fi
6492
6493		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6495		fi
6496
6497		CFLAGS="$CFLAGS -Wshadow"
6498
6499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6500printf %s "checking if $CC supports -Wshadow... " >&6; }
6501		cacheid=xorg_cv_cc_flag__Wshadow
6502		if eval test \${$cacheid+y}
6503then :
6504  printf %s "(cached) " >&6
6505else $as_nop
6506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507/* end confdefs.h.  */
6508int i;
6509int
6510main (void)
6511{
6512
6513  ;
6514  return 0;
6515}
6516_ACEOF
6517if ac_fn_c_try_link "$LINENO"
6518then :
6519  eval $cacheid=yes
6520else $as_nop
6521  eval $cacheid=no
6522fi
6523rm -f core conftest.err conftest.$ac_objext conftest.beam \
6524    conftest$ac_exeext conftest.$ac_ext
6525fi
6526
6527
6528		CFLAGS="$xorg_testset_save_CFLAGS"
6529
6530		eval supported=\$$cacheid
6531		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6532printf "%s\n" "$supported" >&6; }
6533		if test "$supported" = "yes" ; then
6534			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6535			found="yes"
6536		fi
6537	fi
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553xorg_testset_save_CFLAGS="$CFLAGS"
6554
6555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6557	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6558printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6559if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6560then :
6561  printf %s "(cached) " >&6
6562else $as_nop
6563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h.  */
6565int i;
6566_ACEOF
6567if ac_fn_c_try_compile "$LINENO"
6568then :
6569  xorg_cv_cc_flag_unknown_warning_option=yes
6570else $as_nop
6571  xorg_cv_cc_flag_unknown_warning_option=no
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6574fi
6575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6576printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6577	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6578	CFLAGS="$xorg_testset_save_CFLAGS"
6579fi
6580
6581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6582	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6583		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6584	fi
6585	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6586	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6587printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6588if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6589then :
6590  printf %s "(cached) " >&6
6591else $as_nop
6592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593/* end confdefs.h.  */
6594int i;
6595_ACEOF
6596if ac_fn_c_try_compile "$LINENO"
6597then :
6598  xorg_cv_cc_flag_unused_command_line_argument=yes
6599else $as_nop
6600  xorg_cv_cc_flag_unused_command_line_argument=no
6601fi
6602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6603fi
6604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6605printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6607	CFLAGS="$xorg_testset_save_CFLAGS"
6608fi
6609
6610found="no"
6611
6612	if test $found = "no" ; then
6613		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6615		fi
6616
6617		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6619		fi
6620
6621		CFLAGS="$CFLAGS -Wmissing-noreturn"
6622
6623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6624printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6625		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6626		if eval test \${$cacheid+y}
6627then :
6628  printf %s "(cached) " >&6
6629else $as_nop
6630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631/* end confdefs.h.  */
6632int i;
6633int
6634main (void)
6635{
6636
6637  ;
6638  return 0;
6639}
6640_ACEOF
6641if ac_fn_c_try_link "$LINENO"
6642then :
6643  eval $cacheid=yes
6644else $as_nop
6645  eval $cacheid=no
6646fi
6647rm -f core conftest.err conftest.$ac_objext conftest.beam \
6648    conftest$ac_exeext conftest.$ac_ext
6649fi
6650
6651
6652		CFLAGS="$xorg_testset_save_CFLAGS"
6653
6654		eval supported=\$$cacheid
6655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6656printf "%s\n" "$supported" >&6; }
6657		if test "$supported" = "yes" ; then
6658			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6659			found="yes"
6660		fi
6661	fi
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677xorg_testset_save_CFLAGS="$CFLAGS"
6678
6679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6680	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6681	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6682printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6683if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6684then :
6685  printf %s "(cached) " >&6
6686else $as_nop
6687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688/* end confdefs.h.  */
6689int i;
6690_ACEOF
6691if ac_fn_c_try_compile "$LINENO"
6692then :
6693  xorg_cv_cc_flag_unknown_warning_option=yes
6694else $as_nop
6695  xorg_cv_cc_flag_unknown_warning_option=no
6696fi
6697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6698fi
6699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6700printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6702	CFLAGS="$xorg_testset_save_CFLAGS"
6703fi
6704
6705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6708	fi
6709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6710	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6711printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6712if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6713then :
6714  printf %s "(cached) " >&6
6715else $as_nop
6716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717/* end confdefs.h.  */
6718int i;
6719_ACEOF
6720if ac_fn_c_try_compile "$LINENO"
6721then :
6722  xorg_cv_cc_flag_unused_command_line_argument=yes
6723else $as_nop
6724  xorg_cv_cc_flag_unused_command_line_argument=no
6725fi
6726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6727fi
6728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6729printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6731	CFLAGS="$xorg_testset_save_CFLAGS"
6732fi
6733
6734found="no"
6735
6736	if test $found = "no" ; then
6737		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6739		fi
6740
6741		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6743		fi
6744
6745		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6746
6747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6748printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6749		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6750		if eval test \${$cacheid+y}
6751then :
6752  printf %s "(cached) " >&6
6753else $as_nop
6754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755/* end confdefs.h.  */
6756int i;
6757int
6758main (void)
6759{
6760
6761  ;
6762  return 0;
6763}
6764_ACEOF
6765if ac_fn_c_try_link "$LINENO"
6766then :
6767  eval $cacheid=yes
6768else $as_nop
6769  eval $cacheid=no
6770fi
6771rm -f core conftest.err conftest.$ac_objext conftest.beam \
6772    conftest$ac_exeext conftest.$ac_ext
6773fi
6774
6775
6776		CFLAGS="$xorg_testset_save_CFLAGS"
6777
6778		eval supported=\$$cacheid
6779		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6780printf "%s\n" "$supported" >&6; }
6781		if test "$supported" = "yes" ; then
6782			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6783			found="yes"
6784		fi
6785	fi
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801xorg_testset_save_CFLAGS="$CFLAGS"
6802
6803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6806printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6807if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6808then :
6809  printf %s "(cached) " >&6
6810else $as_nop
6811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812/* end confdefs.h.  */
6813int i;
6814_ACEOF
6815if ac_fn_c_try_compile "$LINENO"
6816then :
6817  xorg_cv_cc_flag_unknown_warning_option=yes
6818else $as_nop
6819  xorg_cv_cc_flag_unknown_warning_option=no
6820fi
6821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6822fi
6823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6824printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6826	CFLAGS="$xorg_testset_save_CFLAGS"
6827fi
6828
6829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6832	fi
6833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6835printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6836if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6837then :
6838  printf %s "(cached) " >&6
6839else $as_nop
6840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841/* end confdefs.h.  */
6842int i;
6843_ACEOF
6844if ac_fn_c_try_compile "$LINENO"
6845then :
6846  xorg_cv_cc_flag_unused_command_line_argument=yes
6847else $as_nop
6848  xorg_cv_cc_flag_unused_command_line_argument=no
6849fi
6850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6851fi
6852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6853printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6854	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6855	CFLAGS="$xorg_testset_save_CFLAGS"
6856fi
6857
6858found="no"
6859
6860	if test $found = "no" ; then
6861		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6862			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6863		fi
6864
6865		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6866			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6867		fi
6868
6869		CFLAGS="$CFLAGS -Wredundant-decls"
6870
6871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6872printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6873		cacheid=xorg_cv_cc_flag__Wredundant_decls
6874		if eval test \${$cacheid+y}
6875then :
6876  printf %s "(cached) " >&6
6877else $as_nop
6878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879/* end confdefs.h.  */
6880int i;
6881int
6882main (void)
6883{
6884
6885  ;
6886  return 0;
6887}
6888_ACEOF
6889if ac_fn_c_try_link "$LINENO"
6890then :
6891  eval $cacheid=yes
6892else $as_nop
6893  eval $cacheid=no
6894fi
6895rm -f core conftest.err conftest.$ac_objext conftest.beam \
6896    conftest$ac_exeext conftest.$ac_ext
6897fi
6898
6899
6900		CFLAGS="$xorg_testset_save_CFLAGS"
6901
6902		eval supported=\$$cacheid
6903		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6904printf "%s\n" "$supported" >&6; }
6905		if test "$supported" = "yes" ; then
6906			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6907			found="yes"
6908		fi
6909	fi
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925xorg_testset_save_CFLAGS="$CFLAGS"
6926
6927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6928	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6929	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6930printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6931if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6932then :
6933  printf %s "(cached) " >&6
6934else $as_nop
6935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h.  */
6937int i;
6938_ACEOF
6939if ac_fn_c_try_compile "$LINENO"
6940then :
6941  xorg_cv_cc_flag_unknown_warning_option=yes
6942else $as_nop
6943  xorg_cv_cc_flag_unknown_warning_option=no
6944fi
6945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6946fi
6947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6948printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6950	CFLAGS="$xorg_testset_save_CFLAGS"
6951fi
6952
6953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6956	fi
6957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6958	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6959printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6960if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6961then :
6962  printf %s "(cached) " >&6
6963else $as_nop
6964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h.  */
6966int i;
6967_ACEOF
6968if ac_fn_c_try_compile "$LINENO"
6969then :
6970  xorg_cv_cc_flag_unused_command_line_argument=yes
6971else $as_nop
6972  xorg_cv_cc_flag_unused_command_line_argument=no
6973fi
6974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6975fi
6976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6977printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6978	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6979	CFLAGS="$xorg_testset_save_CFLAGS"
6980fi
6981
6982found="no"
6983
6984	if test $found = "no" ; then
6985		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6986			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6987		fi
6988
6989		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6990			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6991		fi
6992
6993		CFLAGS="$CFLAGS -Wlogical-op"
6994
6995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6996printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6997		cacheid=xorg_cv_cc_flag__Wlogical_op
6998		if eval test \${$cacheid+y}
6999then :
7000  printf %s "(cached) " >&6
7001else $as_nop
7002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003/* end confdefs.h.  */
7004int i;
7005int
7006main (void)
7007{
7008
7009  ;
7010  return 0;
7011}
7012_ACEOF
7013if ac_fn_c_try_link "$LINENO"
7014then :
7015  eval $cacheid=yes
7016else $as_nop
7017  eval $cacheid=no
7018fi
7019rm -f core conftest.err conftest.$ac_objext conftest.beam \
7020    conftest$ac_exeext conftest.$ac_ext
7021fi
7022
7023
7024		CFLAGS="$xorg_testset_save_CFLAGS"
7025
7026		eval supported=\$$cacheid
7027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7028printf "%s\n" "$supported" >&6; }
7029		if test "$supported" = "yes" ; then
7030			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7031			found="yes"
7032		fi
7033	fi
7034
7035
7036
7037# These are currently disabled because they are noisy.  They will be enabled
7038# in the future once the codebase is sufficiently modernized to silence
7039# them.  For now, I don't want them to drown out the other warnings.
7040# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7041# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7042# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7043
7044# Turn some warnings into errors, so we don't accidently get successful builds
7045# when there are problems that should be fixed.
7046
7047if test "x$SELECTIVE_WERROR" = "xyes" ; then
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061xorg_testset_save_CFLAGS="$CFLAGS"
7062
7063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7064	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7066printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7067if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7068then :
7069  printf %s "(cached) " >&6
7070else $as_nop
7071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072/* end confdefs.h.  */
7073int i;
7074_ACEOF
7075if ac_fn_c_try_compile "$LINENO"
7076then :
7077  xorg_cv_cc_flag_unknown_warning_option=yes
7078else $as_nop
7079  xorg_cv_cc_flag_unknown_warning_option=no
7080fi
7081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7082fi
7083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7084printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7085	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7086	CFLAGS="$xorg_testset_save_CFLAGS"
7087fi
7088
7089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7090	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7091		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7092	fi
7093	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7095printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7096if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7097then :
7098  printf %s "(cached) " >&6
7099else $as_nop
7100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101/* end confdefs.h.  */
7102int i;
7103_ACEOF
7104if ac_fn_c_try_compile "$LINENO"
7105then :
7106  xorg_cv_cc_flag_unused_command_line_argument=yes
7107else $as_nop
7108  xorg_cv_cc_flag_unused_command_line_argument=no
7109fi
7110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7111fi
7112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7113printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7115	CFLAGS="$xorg_testset_save_CFLAGS"
7116fi
7117
7118found="no"
7119
7120	if test $found = "no" ; then
7121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7123		fi
7124
7125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7127		fi
7128
7129		CFLAGS="$CFLAGS -Werror=implicit"
7130
7131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7132printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7133		cacheid=xorg_cv_cc_flag__Werror_implicit
7134		if eval test \${$cacheid+y}
7135then :
7136  printf %s "(cached) " >&6
7137else $as_nop
7138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139/* end confdefs.h.  */
7140int i;
7141int
7142main (void)
7143{
7144
7145  ;
7146  return 0;
7147}
7148_ACEOF
7149if ac_fn_c_try_link "$LINENO"
7150then :
7151  eval $cacheid=yes
7152else $as_nop
7153  eval $cacheid=no
7154fi
7155rm -f core conftest.err conftest.$ac_objext conftest.beam \
7156    conftest$ac_exeext conftest.$ac_ext
7157fi
7158
7159
7160		CFLAGS="$xorg_testset_save_CFLAGS"
7161
7162		eval supported=\$$cacheid
7163		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7164printf "%s\n" "$supported" >&6; }
7165		if test "$supported" = "yes" ; then
7166			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7167			found="yes"
7168		fi
7169	fi
7170
7171	if test $found = "no" ; then
7172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7174		fi
7175
7176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7178		fi
7179
7180		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7181
7182		{ 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
7183printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7184		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7185		if eval test \${$cacheid+y}
7186then :
7187  printf %s "(cached) " >&6
7188else $as_nop
7189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190/* end confdefs.h.  */
7191int i;
7192int
7193main (void)
7194{
7195
7196  ;
7197  return 0;
7198}
7199_ACEOF
7200if ac_fn_c_try_link "$LINENO"
7201then :
7202  eval $cacheid=yes
7203else $as_nop
7204  eval $cacheid=no
7205fi
7206rm -f core conftest.err conftest.$ac_objext conftest.beam \
7207    conftest$ac_exeext conftest.$ac_ext
7208fi
7209
7210
7211		CFLAGS="$xorg_testset_save_CFLAGS"
7212
7213		eval supported=\$$cacheid
7214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7215printf "%s\n" "$supported" >&6; }
7216		if test "$supported" = "yes" ; then
7217			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7218			found="yes"
7219		fi
7220	fi
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236xorg_testset_save_CFLAGS="$CFLAGS"
7237
7238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7240	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7241printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7242if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7243then :
7244  printf %s "(cached) " >&6
7245else $as_nop
7246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247/* end confdefs.h.  */
7248int i;
7249_ACEOF
7250if ac_fn_c_try_compile "$LINENO"
7251then :
7252  xorg_cv_cc_flag_unknown_warning_option=yes
7253else $as_nop
7254  xorg_cv_cc_flag_unknown_warning_option=no
7255fi
7256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7257fi
7258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7259printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7261	CFLAGS="$xorg_testset_save_CFLAGS"
7262fi
7263
7264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7267	fi
7268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7270printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7271if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7272then :
7273  printf %s "(cached) " >&6
7274else $as_nop
7275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276/* end confdefs.h.  */
7277int i;
7278_ACEOF
7279if ac_fn_c_try_compile "$LINENO"
7280then :
7281  xorg_cv_cc_flag_unused_command_line_argument=yes
7282else $as_nop
7283  xorg_cv_cc_flag_unused_command_line_argument=no
7284fi
7285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7286fi
7287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7288printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7289	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7290	CFLAGS="$xorg_testset_save_CFLAGS"
7291fi
7292
7293found="no"
7294
7295	if test $found = "no" ; then
7296		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7298		fi
7299
7300		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7302		fi
7303
7304		CFLAGS="$CFLAGS -Werror=nonnull"
7305
7306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7307printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7308		cacheid=xorg_cv_cc_flag__Werror_nonnull
7309		if eval test \${$cacheid+y}
7310then :
7311  printf %s "(cached) " >&6
7312else $as_nop
7313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h.  */
7315int i;
7316int
7317main (void)
7318{
7319
7320  ;
7321  return 0;
7322}
7323_ACEOF
7324if ac_fn_c_try_link "$LINENO"
7325then :
7326  eval $cacheid=yes
7327else $as_nop
7328  eval $cacheid=no
7329fi
7330rm -f core conftest.err conftest.$ac_objext conftest.beam \
7331    conftest$ac_exeext conftest.$ac_ext
7332fi
7333
7334
7335		CFLAGS="$xorg_testset_save_CFLAGS"
7336
7337		eval supported=\$$cacheid
7338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7339printf "%s\n" "$supported" >&6; }
7340		if test "$supported" = "yes" ; then
7341			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7342			found="yes"
7343		fi
7344	fi
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360xorg_testset_save_CFLAGS="$CFLAGS"
7361
7362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7363	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7364	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7365printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7366if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7367then :
7368  printf %s "(cached) " >&6
7369else $as_nop
7370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h.  */
7372int i;
7373_ACEOF
7374if ac_fn_c_try_compile "$LINENO"
7375then :
7376  xorg_cv_cc_flag_unknown_warning_option=yes
7377else $as_nop
7378  xorg_cv_cc_flag_unknown_warning_option=no
7379fi
7380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7381fi
7382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7383printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7384	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7385	CFLAGS="$xorg_testset_save_CFLAGS"
7386fi
7387
7388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7389	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7390		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7391	fi
7392	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7393	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7394printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7395if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7396then :
7397  printf %s "(cached) " >&6
7398else $as_nop
7399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400/* end confdefs.h.  */
7401int i;
7402_ACEOF
7403if ac_fn_c_try_compile "$LINENO"
7404then :
7405  xorg_cv_cc_flag_unused_command_line_argument=yes
7406else $as_nop
7407  xorg_cv_cc_flag_unused_command_line_argument=no
7408fi
7409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7410fi
7411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7412printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7413	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7414	CFLAGS="$xorg_testset_save_CFLAGS"
7415fi
7416
7417found="no"
7418
7419	if test $found = "no" ; then
7420		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7421			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7422		fi
7423
7424		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7425			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7426		fi
7427
7428		CFLAGS="$CFLAGS -Werror=init-self"
7429
7430		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7431printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7432		cacheid=xorg_cv_cc_flag__Werror_init_self
7433		if eval test \${$cacheid+y}
7434then :
7435  printf %s "(cached) " >&6
7436else $as_nop
7437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438/* end confdefs.h.  */
7439int i;
7440int
7441main (void)
7442{
7443
7444  ;
7445  return 0;
7446}
7447_ACEOF
7448if ac_fn_c_try_link "$LINENO"
7449then :
7450  eval $cacheid=yes
7451else $as_nop
7452  eval $cacheid=no
7453fi
7454rm -f core conftest.err conftest.$ac_objext conftest.beam \
7455    conftest$ac_exeext conftest.$ac_ext
7456fi
7457
7458
7459		CFLAGS="$xorg_testset_save_CFLAGS"
7460
7461		eval supported=\$$cacheid
7462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7463printf "%s\n" "$supported" >&6; }
7464		if test "$supported" = "yes" ; then
7465			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7466			found="yes"
7467		fi
7468	fi
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484xorg_testset_save_CFLAGS="$CFLAGS"
7485
7486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7489printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7490if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7491then :
7492  printf %s "(cached) " >&6
7493else $as_nop
7494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495/* end confdefs.h.  */
7496int i;
7497_ACEOF
7498if ac_fn_c_try_compile "$LINENO"
7499then :
7500  xorg_cv_cc_flag_unknown_warning_option=yes
7501else $as_nop
7502  xorg_cv_cc_flag_unknown_warning_option=no
7503fi
7504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7505fi
7506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7507printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7509	CFLAGS="$xorg_testset_save_CFLAGS"
7510fi
7511
7512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515	fi
7516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7518printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7519if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7520then :
7521  printf %s "(cached) " >&6
7522else $as_nop
7523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524/* end confdefs.h.  */
7525int i;
7526_ACEOF
7527if ac_fn_c_try_compile "$LINENO"
7528then :
7529  xorg_cv_cc_flag_unused_command_line_argument=yes
7530else $as_nop
7531  xorg_cv_cc_flag_unused_command_line_argument=no
7532fi
7533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7534fi
7535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7536printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7538	CFLAGS="$xorg_testset_save_CFLAGS"
7539fi
7540
7541found="no"
7542
7543	if test $found = "no" ; then
7544		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7546		fi
7547
7548		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7550		fi
7551
7552		CFLAGS="$CFLAGS -Werror=main"
7553
7554		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7555printf %s "checking if $CC supports -Werror=main... " >&6; }
7556		cacheid=xorg_cv_cc_flag__Werror_main
7557		if eval test \${$cacheid+y}
7558then :
7559  printf %s "(cached) " >&6
7560else $as_nop
7561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562/* end confdefs.h.  */
7563int i;
7564int
7565main (void)
7566{
7567
7568  ;
7569  return 0;
7570}
7571_ACEOF
7572if ac_fn_c_try_link "$LINENO"
7573then :
7574  eval $cacheid=yes
7575else $as_nop
7576  eval $cacheid=no
7577fi
7578rm -f core conftest.err conftest.$ac_objext conftest.beam \
7579    conftest$ac_exeext conftest.$ac_ext
7580fi
7581
7582
7583		CFLAGS="$xorg_testset_save_CFLAGS"
7584
7585		eval supported=\$$cacheid
7586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7587printf "%s\n" "$supported" >&6; }
7588		if test "$supported" = "yes" ; then
7589			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7590			found="yes"
7591		fi
7592	fi
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608xorg_testset_save_CFLAGS="$CFLAGS"
7609
7610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7613printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7614if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7615then :
7616  printf %s "(cached) " >&6
7617else $as_nop
7618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h.  */
7620int i;
7621_ACEOF
7622if ac_fn_c_try_compile "$LINENO"
7623then :
7624  xorg_cv_cc_flag_unknown_warning_option=yes
7625else $as_nop
7626  xorg_cv_cc_flag_unknown_warning_option=no
7627fi
7628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7629fi
7630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7631printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7632	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7633	CFLAGS="$xorg_testset_save_CFLAGS"
7634fi
7635
7636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7637	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7638		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7639	fi
7640	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7641	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7642printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7643if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7644then :
7645  printf %s "(cached) " >&6
7646else $as_nop
7647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648/* end confdefs.h.  */
7649int i;
7650_ACEOF
7651if ac_fn_c_try_compile "$LINENO"
7652then :
7653  xorg_cv_cc_flag_unused_command_line_argument=yes
7654else $as_nop
7655  xorg_cv_cc_flag_unused_command_line_argument=no
7656fi
7657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7658fi
7659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7660printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7662	CFLAGS="$xorg_testset_save_CFLAGS"
7663fi
7664
7665found="no"
7666
7667	if test $found = "no" ; then
7668		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7670		fi
7671
7672		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7674		fi
7675
7676		CFLAGS="$CFLAGS -Werror=missing-braces"
7677
7678		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7679printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7680		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7681		if eval test \${$cacheid+y}
7682then :
7683  printf %s "(cached) " >&6
7684else $as_nop
7685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686/* end confdefs.h.  */
7687int i;
7688int
7689main (void)
7690{
7691
7692  ;
7693  return 0;
7694}
7695_ACEOF
7696if ac_fn_c_try_link "$LINENO"
7697then :
7698  eval $cacheid=yes
7699else $as_nop
7700  eval $cacheid=no
7701fi
7702rm -f core conftest.err conftest.$ac_objext conftest.beam \
7703    conftest$ac_exeext conftest.$ac_ext
7704fi
7705
7706
7707		CFLAGS="$xorg_testset_save_CFLAGS"
7708
7709		eval supported=\$$cacheid
7710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7711printf "%s\n" "$supported" >&6; }
7712		if test "$supported" = "yes" ; then
7713			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7714			found="yes"
7715		fi
7716	fi
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732xorg_testset_save_CFLAGS="$CFLAGS"
7733
7734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7736	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7737printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7738if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7739then :
7740  printf %s "(cached) " >&6
7741else $as_nop
7742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743/* end confdefs.h.  */
7744int i;
7745_ACEOF
7746if ac_fn_c_try_compile "$LINENO"
7747then :
7748  xorg_cv_cc_flag_unknown_warning_option=yes
7749else $as_nop
7750  xorg_cv_cc_flag_unknown_warning_option=no
7751fi
7752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7753fi
7754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7755printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7757	CFLAGS="$xorg_testset_save_CFLAGS"
7758fi
7759
7760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7763	fi
7764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7765	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7766printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7767if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7768then :
7769  printf %s "(cached) " >&6
7770else $as_nop
7771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h.  */
7773int i;
7774_ACEOF
7775if ac_fn_c_try_compile "$LINENO"
7776then :
7777  xorg_cv_cc_flag_unused_command_line_argument=yes
7778else $as_nop
7779  xorg_cv_cc_flag_unused_command_line_argument=no
7780fi
7781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7782fi
7783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7784printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7785	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7786	CFLAGS="$xorg_testset_save_CFLAGS"
7787fi
7788
7789found="no"
7790
7791	if test $found = "no" ; then
7792		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7793			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7794		fi
7795
7796		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7797			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7798		fi
7799
7800		CFLAGS="$CFLAGS -Werror=sequence-point"
7801
7802		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7803printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7804		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7805		if eval test \${$cacheid+y}
7806then :
7807  printf %s "(cached) " >&6
7808else $as_nop
7809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h.  */
7811int i;
7812int
7813main (void)
7814{
7815
7816  ;
7817  return 0;
7818}
7819_ACEOF
7820if ac_fn_c_try_link "$LINENO"
7821then :
7822  eval $cacheid=yes
7823else $as_nop
7824  eval $cacheid=no
7825fi
7826rm -f core conftest.err conftest.$ac_objext conftest.beam \
7827    conftest$ac_exeext conftest.$ac_ext
7828fi
7829
7830
7831		CFLAGS="$xorg_testset_save_CFLAGS"
7832
7833		eval supported=\$$cacheid
7834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7835printf "%s\n" "$supported" >&6; }
7836		if test "$supported" = "yes" ; then
7837			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7838			found="yes"
7839		fi
7840	fi
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856xorg_testset_save_CFLAGS="$CFLAGS"
7857
7858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7860	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7861printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7862if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7863then :
7864  printf %s "(cached) " >&6
7865else $as_nop
7866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h.  */
7868int i;
7869_ACEOF
7870if ac_fn_c_try_compile "$LINENO"
7871then :
7872  xorg_cv_cc_flag_unknown_warning_option=yes
7873else $as_nop
7874  xorg_cv_cc_flag_unknown_warning_option=no
7875fi
7876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7877fi
7878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7879printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7880	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7881	CFLAGS="$xorg_testset_save_CFLAGS"
7882fi
7883
7884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7885	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7886		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7887	fi
7888	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7889	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7890printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7891if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7892then :
7893  printf %s "(cached) " >&6
7894else $as_nop
7895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896/* end confdefs.h.  */
7897int i;
7898_ACEOF
7899if ac_fn_c_try_compile "$LINENO"
7900then :
7901  xorg_cv_cc_flag_unused_command_line_argument=yes
7902else $as_nop
7903  xorg_cv_cc_flag_unused_command_line_argument=no
7904fi
7905rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7906fi
7907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7908printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7909	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7910	CFLAGS="$xorg_testset_save_CFLAGS"
7911fi
7912
7913found="no"
7914
7915	if test $found = "no" ; then
7916		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7917			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7918		fi
7919
7920		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7921			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7922		fi
7923
7924		CFLAGS="$CFLAGS -Werror=return-type"
7925
7926		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7927printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7928		cacheid=xorg_cv_cc_flag__Werror_return_type
7929		if eval test \${$cacheid+y}
7930then :
7931  printf %s "(cached) " >&6
7932else $as_nop
7933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934/* end confdefs.h.  */
7935int i;
7936int
7937main (void)
7938{
7939
7940  ;
7941  return 0;
7942}
7943_ACEOF
7944if ac_fn_c_try_link "$LINENO"
7945then :
7946  eval $cacheid=yes
7947else $as_nop
7948  eval $cacheid=no
7949fi
7950rm -f core conftest.err conftest.$ac_objext conftest.beam \
7951    conftest$ac_exeext conftest.$ac_ext
7952fi
7953
7954
7955		CFLAGS="$xorg_testset_save_CFLAGS"
7956
7957		eval supported=\$$cacheid
7958		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7959printf "%s\n" "$supported" >&6; }
7960		if test "$supported" = "yes" ; then
7961			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7962			found="yes"
7963		fi
7964	fi
7965
7966	if test $found = "no" ; then
7967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969		fi
7970
7971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7973		fi
7974
7975		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7976
7977		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7978printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7979		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7980		if eval test \${$cacheid+y}
7981then :
7982  printf %s "(cached) " >&6
7983else $as_nop
7984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985/* end confdefs.h.  */
7986int i;
7987int
7988main (void)
7989{
7990
7991  ;
7992  return 0;
7993}
7994_ACEOF
7995if ac_fn_c_try_link "$LINENO"
7996then :
7997  eval $cacheid=yes
7998else $as_nop
7999  eval $cacheid=no
8000fi
8001rm -f core conftest.err conftest.$ac_objext conftest.beam \
8002    conftest$ac_exeext conftest.$ac_ext
8003fi
8004
8005
8006		CFLAGS="$xorg_testset_save_CFLAGS"
8007
8008		eval supported=\$$cacheid
8009		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8010printf "%s\n" "$supported" >&6; }
8011		if test "$supported" = "yes" ; then
8012			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8013			found="yes"
8014		fi
8015	fi
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031xorg_testset_save_CFLAGS="$CFLAGS"
8032
8033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8034	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8035	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8036printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8037if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8038then :
8039  printf %s "(cached) " >&6
8040else $as_nop
8041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042/* end confdefs.h.  */
8043int i;
8044_ACEOF
8045if ac_fn_c_try_compile "$LINENO"
8046then :
8047  xorg_cv_cc_flag_unknown_warning_option=yes
8048else $as_nop
8049  xorg_cv_cc_flag_unknown_warning_option=no
8050fi
8051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8052fi
8053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8054printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8055	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8056	CFLAGS="$xorg_testset_save_CFLAGS"
8057fi
8058
8059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8060	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8061		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8062	fi
8063	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8064	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8065printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8066if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8067then :
8068  printf %s "(cached) " >&6
8069else $as_nop
8070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071/* end confdefs.h.  */
8072int i;
8073_ACEOF
8074if ac_fn_c_try_compile "$LINENO"
8075then :
8076  xorg_cv_cc_flag_unused_command_line_argument=yes
8077else $as_nop
8078  xorg_cv_cc_flag_unused_command_line_argument=no
8079fi
8080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8081fi
8082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8083printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8085	CFLAGS="$xorg_testset_save_CFLAGS"
8086fi
8087
8088found="no"
8089
8090	if test $found = "no" ; then
8091		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8093		fi
8094
8095		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8097		fi
8098
8099		CFLAGS="$CFLAGS -Werror=trigraphs"
8100
8101		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8102printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8103		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8104		if eval test \${$cacheid+y}
8105then :
8106  printf %s "(cached) " >&6
8107else $as_nop
8108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109/* end confdefs.h.  */
8110int i;
8111int
8112main (void)
8113{
8114
8115  ;
8116  return 0;
8117}
8118_ACEOF
8119if ac_fn_c_try_link "$LINENO"
8120then :
8121  eval $cacheid=yes
8122else $as_nop
8123  eval $cacheid=no
8124fi
8125rm -f core conftest.err conftest.$ac_objext conftest.beam \
8126    conftest$ac_exeext conftest.$ac_ext
8127fi
8128
8129
8130		CFLAGS="$xorg_testset_save_CFLAGS"
8131
8132		eval supported=\$$cacheid
8133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8134printf "%s\n" "$supported" >&6; }
8135		if test "$supported" = "yes" ; then
8136			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8137			found="yes"
8138		fi
8139	fi
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155xorg_testset_save_CFLAGS="$CFLAGS"
8156
8157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8159	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8160printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8161if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8162then :
8163  printf %s "(cached) " >&6
8164else $as_nop
8165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h.  */
8167int i;
8168_ACEOF
8169if ac_fn_c_try_compile "$LINENO"
8170then :
8171  xorg_cv_cc_flag_unknown_warning_option=yes
8172else $as_nop
8173  xorg_cv_cc_flag_unknown_warning_option=no
8174fi
8175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8176fi
8177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8178printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8180	CFLAGS="$xorg_testset_save_CFLAGS"
8181fi
8182
8183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8186	fi
8187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8188	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8189printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8190if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8191then :
8192  printf %s "(cached) " >&6
8193else $as_nop
8194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195/* end confdefs.h.  */
8196int i;
8197_ACEOF
8198if ac_fn_c_try_compile "$LINENO"
8199then :
8200  xorg_cv_cc_flag_unused_command_line_argument=yes
8201else $as_nop
8202  xorg_cv_cc_flag_unused_command_line_argument=no
8203fi
8204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8205fi
8206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8207printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8208	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8209	CFLAGS="$xorg_testset_save_CFLAGS"
8210fi
8211
8212found="no"
8213
8214	if test $found = "no" ; then
8215		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8216			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8217		fi
8218
8219		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8220			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8221		fi
8222
8223		CFLAGS="$CFLAGS -Werror=array-bounds"
8224
8225		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8226printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8227		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8228		if eval test \${$cacheid+y}
8229then :
8230  printf %s "(cached) " >&6
8231else $as_nop
8232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233/* end confdefs.h.  */
8234int i;
8235int
8236main (void)
8237{
8238
8239  ;
8240  return 0;
8241}
8242_ACEOF
8243if ac_fn_c_try_link "$LINENO"
8244then :
8245  eval $cacheid=yes
8246else $as_nop
8247  eval $cacheid=no
8248fi
8249rm -f core conftest.err conftest.$ac_objext conftest.beam \
8250    conftest$ac_exeext conftest.$ac_ext
8251fi
8252
8253
8254		CFLAGS="$xorg_testset_save_CFLAGS"
8255
8256		eval supported=\$$cacheid
8257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8258printf "%s\n" "$supported" >&6; }
8259		if test "$supported" = "yes" ; then
8260			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8261			found="yes"
8262		fi
8263	fi
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279xorg_testset_save_CFLAGS="$CFLAGS"
8280
8281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8282	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8283	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8284printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8285if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8286then :
8287  printf %s "(cached) " >&6
8288else $as_nop
8289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290/* end confdefs.h.  */
8291int i;
8292_ACEOF
8293if ac_fn_c_try_compile "$LINENO"
8294then :
8295  xorg_cv_cc_flag_unknown_warning_option=yes
8296else $as_nop
8297  xorg_cv_cc_flag_unknown_warning_option=no
8298fi
8299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8300fi
8301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8302printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8303	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8304	CFLAGS="$xorg_testset_save_CFLAGS"
8305fi
8306
8307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8308	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8309		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8310	fi
8311	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8312	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8313printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8314if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8315then :
8316  printf %s "(cached) " >&6
8317else $as_nop
8318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319/* end confdefs.h.  */
8320int i;
8321_ACEOF
8322if ac_fn_c_try_compile "$LINENO"
8323then :
8324  xorg_cv_cc_flag_unused_command_line_argument=yes
8325else $as_nop
8326  xorg_cv_cc_flag_unused_command_line_argument=no
8327fi
8328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8329fi
8330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8331printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8332	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8333	CFLAGS="$xorg_testset_save_CFLAGS"
8334fi
8335
8336found="no"
8337
8338	if test $found = "no" ; then
8339		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8340			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8341		fi
8342
8343		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8344			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8345		fi
8346
8347		CFLAGS="$CFLAGS -Werror=write-strings"
8348
8349		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8350printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8351		cacheid=xorg_cv_cc_flag__Werror_write_strings
8352		if eval test \${$cacheid+y}
8353then :
8354  printf %s "(cached) " >&6
8355else $as_nop
8356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357/* end confdefs.h.  */
8358int i;
8359int
8360main (void)
8361{
8362
8363  ;
8364  return 0;
8365}
8366_ACEOF
8367if ac_fn_c_try_link "$LINENO"
8368then :
8369  eval $cacheid=yes
8370else $as_nop
8371  eval $cacheid=no
8372fi
8373rm -f core conftest.err conftest.$ac_objext conftest.beam \
8374    conftest$ac_exeext conftest.$ac_ext
8375fi
8376
8377
8378		CFLAGS="$xorg_testset_save_CFLAGS"
8379
8380		eval supported=\$$cacheid
8381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8382printf "%s\n" "$supported" >&6; }
8383		if test "$supported" = "yes" ; then
8384			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8385			found="yes"
8386		fi
8387	fi
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403xorg_testset_save_CFLAGS="$CFLAGS"
8404
8405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8406	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8407	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8408printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8409if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8410then :
8411  printf %s "(cached) " >&6
8412else $as_nop
8413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h.  */
8415int i;
8416_ACEOF
8417if ac_fn_c_try_compile "$LINENO"
8418then :
8419  xorg_cv_cc_flag_unknown_warning_option=yes
8420else $as_nop
8421  xorg_cv_cc_flag_unknown_warning_option=no
8422fi
8423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8424fi
8425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8426printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8427	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8428	CFLAGS="$xorg_testset_save_CFLAGS"
8429fi
8430
8431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8432	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8433		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8434	fi
8435	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8436	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8437printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8438if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8439then :
8440  printf %s "(cached) " >&6
8441else $as_nop
8442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443/* end confdefs.h.  */
8444int i;
8445_ACEOF
8446if ac_fn_c_try_compile "$LINENO"
8447then :
8448  xorg_cv_cc_flag_unused_command_line_argument=yes
8449else $as_nop
8450  xorg_cv_cc_flag_unused_command_line_argument=no
8451fi
8452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8453fi
8454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8455printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8456	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8457	CFLAGS="$xorg_testset_save_CFLAGS"
8458fi
8459
8460found="no"
8461
8462	if test $found = "no" ; then
8463		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8464			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8465		fi
8466
8467		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8468			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8469		fi
8470
8471		CFLAGS="$CFLAGS -Werror=address"
8472
8473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8474printf %s "checking if $CC supports -Werror=address... " >&6; }
8475		cacheid=xorg_cv_cc_flag__Werror_address
8476		if eval test \${$cacheid+y}
8477then :
8478  printf %s "(cached) " >&6
8479else $as_nop
8480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481/* end confdefs.h.  */
8482int i;
8483int
8484main (void)
8485{
8486
8487  ;
8488  return 0;
8489}
8490_ACEOF
8491if ac_fn_c_try_link "$LINENO"
8492then :
8493  eval $cacheid=yes
8494else $as_nop
8495  eval $cacheid=no
8496fi
8497rm -f core conftest.err conftest.$ac_objext conftest.beam \
8498    conftest$ac_exeext conftest.$ac_ext
8499fi
8500
8501
8502		CFLAGS="$xorg_testset_save_CFLAGS"
8503
8504		eval supported=\$$cacheid
8505		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8506printf "%s\n" "$supported" >&6; }
8507		if test "$supported" = "yes" ; then
8508			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8509			found="yes"
8510		fi
8511	fi
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527xorg_testset_save_CFLAGS="$CFLAGS"
8528
8529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8532printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8533if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8534then :
8535  printf %s "(cached) " >&6
8536else $as_nop
8537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538/* end confdefs.h.  */
8539int i;
8540_ACEOF
8541if ac_fn_c_try_compile "$LINENO"
8542then :
8543  xorg_cv_cc_flag_unknown_warning_option=yes
8544else $as_nop
8545  xorg_cv_cc_flag_unknown_warning_option=no
8546fi
8547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8548fi
8549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8550printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8551	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8552	CFLAGS="$xorg_testset_save_CFLAGS"
8553fi
8554
8555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8556	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8557		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8558	fi
8559	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8561printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8562if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8563then :
8564  printf %s "(cached) " >&6
8565else $as_nop
8566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567/* end confdefs.h.  */
8568int i;
8569_ACEOF
8570if ac_fn_c_try_compile "$LINENO"
8571then :
8572  xorg_cv_cc_flag_unused_command_line_argument=yes
8573else $as_nop
8574  xorg_cv_cc_flag_unused_command_line_argument=no
8575fi
8576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8577fi
8578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8579printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8581	CFLAGS="$xorg_testset_save_CFLAGS"
8582fi
8583
8584found="no"
8585
8586	if test $found = "no" ; then
8587		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8589		fi
8590
8591		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8593		fi
8594
8595		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8596
8597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8598printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8599		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8600		if eval test \${$cacheid+y}
8601then :
8602  printf %s "(cached) " >&6
8603else $as_nop
8604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605/* end confdefs.h.  */
8606int i;
8607int
8608main (void)
8609{
8610
8611  ;
8612  return 0;
8613}
8614_ACEOF
8615if ac_fn_c_try_link "$LINENO"
8616then :
8617  eval $cacheid=yes
8618else $as_nop
8619  eval $cacheid=no
8620fi
8621rm -f core conftest.err conftest.$ac_objext conftest.beam \
8622    conftest$ac_exeext conftest.$ac_ext
8623fi
8624
8625
8626		CFLAGS="$xorg_testset_save_CFLAGS"
8627
8628		eval supported=\$$cacheid
8629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8630printf "%s\n" "$supported" >&6; }
8631		if test "$supported" = "yes" ; then
8632			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8633			found="yes"
8634		fi
8635	fi
8636
8637	if test $found = "no" ; then
8638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8640		fi
8641
8642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8644		fi
8645
8646		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8647
8648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8649printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8650		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8651		if eval test \${$cacheid+y}
8652then :
8653  printf %s "(cached) " >&6
8654else $as_nop
8655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656/* end confdefs.h.  */
8657int i;
8658int
8659main (void)
8660{
8661
8662  ;
8663  return 0;
8664}
8665_ACEOF
8666if ac_fn_c_try_link "$LINENO"
8667then :
8668  eval $cacheid=yes
8669else $as_nop
8670  eval $cacheid=no
8671fi
8672rm -f core conftest.err conftest.$ac_objext conftest.beam \
8673    conftest$ac_exeext conftest.$ac_ext
8674fi
8675
8676
8677		CFLAGS="$xorg_testset_save_CFLAGS"
8678
8679		eval supported=\$$cacheid
8680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8681printf "%s\n" "$supported" >&6; }
8682		if test "$supported" = "yes" ; then
8683			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8684			found="yes"
8685		fi
8686	fi
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702xorg_testset_save_CFLAGS="$CFLAGS"
8703
8704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8705	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8706	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8707printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8708if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8709then :
8710  printf %s "(cached) " >&6
8711else $as_nop
8712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713/* end confdefs.h.  */
8714int i;
8715_ACEOF
8716if ac_fn_c_try_compile "$LINENO"
8717then :
8718  xorg_cv_cc_flag_unknown_warning_option=yes
8719else $as_nop
8720  xorg_cv_cc_flag_unknown_warning_option=no
8721fi
8722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8723fi
8724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8725printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8726	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8727	CFLAGS="$xorg_testset_save_CFLAGS"
8728fi
8729
8730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8731	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8732		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8733	fi
8734	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8736printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8737if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8738then :
8739  printf %s "(cached) " >&6
8740else $as_nop
8741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742/* end confdefs.h.  */
8743int i;
8744_ACEOF
8745if ac_fn_c_try_compile "$LINENO"
8746then :
8747  xorg_cv_cc_flag_unused_command_line_argument=yes
8748else $as_nop
8749  xorg_cv_cc_flag_unused_command_line_argument=no
8750fi
8751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8752fi
8753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8754printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8755	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8756	CFLAGS="$xorg_testset_save_CFLAGS"
8757fi
8758
8759found="no"
8760
8761	if test $found = "no" ; then
8762		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8763			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764		fi
8765
8766		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8767			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8768		fi
8769
8770		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8771
8772		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8773printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8774		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8775		if eval test \${$cacheid+y}
8776then :
8777  printf %s "(cached) " >&6
8778else $as_nop
8779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780/* end confdefs.h.  */
8781int i;
8782int
8783main (void)
8784{
8785
8786  ;
8787  return 0;
8788}
8789_ACEOF
8790if ac_fn_c_try_link "$LINENO"
8791then :
8792  eval $cacheid=yes
8793else $as_nop
8794  eval $cacheid=no
8795fi
8796rm -f core conftest.err conftest.$ac_objext conftest.beam \
8797    conftest$ac_exeext conftest.$ac_ext
8798fi
8799
8800
8801		CFLAGS="$xorg_testset_save_CFLAGS"
8802
8803		eval supported=\$$cacheid
8804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8805printf "%s\n" "$supported" >&6; }
8806		if test "$supported" = "yes" ; then
8807			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8808			found="yes"
8809		fi
8810	fi
8811
8812 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8813else
8814{ 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
8815printf "%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;}
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829xorg_testset_save_CFLAGS="$CFLAGS"
8830
8831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8833	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8834printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8835if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8836then :
8837  printf %s "(cached) " >&6
8838else $as_nop
8839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840/* end confdefs.h.  */
8841int i;
8842_ACEOF
8843if ac_fn_c_try_compile "$LINENO"
8844then :
8845  xorg_cv_cc_flag_unknown_warning_option=yes
8846else $as_nop
8847  xorg_cv_cc_flag_unknown_warning_option=no
8848fi
8849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8850fi
8851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8852printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8854	CFLAGS="$xorg_testset_save_CFLAGS"
8855fi
8856
8857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8860	fi
8861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8863printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8864if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8865then :
8866  printf %s "(cached) " >&6
8867else $as_nop
8868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869/* end confdefs.h.  */
8870int i;
8871_ACEOF
8872if ac_fn_c_try_compile "$LINENO"
8873then :
8874  xorg_cv_cc_flag_unused_command_line_argument=yes
8875else $as_nop
8876  xorg_cv_cc_flag_unused_command_line_argument=no
8877fi
8878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8879fi
8880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8881printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8882	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8883	CFLAGS="$xorg_testset_save_CFLAGS"
8884fi
8885
8886found="no"
8887
8888	if test $found = "no" ; then
8889		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8891		fi
8892
8893		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8895		fi
8896
8897		CFLAGS="$CFLAGS -Wimplicit"
8898
8899		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8900printf %s "checking if $CC supports -Wimplicit... " >&6; }
8901		cacheid=xorg_cv_cc_flag__Wimplicit
8902		if eval test \${$cacheid+y}
8903then :
8904  printf %s "(cached) " >&6
8905else $as_nop
8906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907/* end confdefs.h.  */
8908int i;
8909int
8910main (void)
8911{
8912
8913  ;
8914  return 0;
8915}
8916_ACEOF
8917if ac_fn_c_try_link "$LINENO"
8918then :
8919  eval $cacheid=yes
8920else $as_nop
8921  eval $cacheid=no
8922fi
8923rm -f core conftest.err conftest.$ac_objext conftest.beam \
8924    conftest$ac_exeext conftest.$ac_ext
8925fi
8926
8927
8928		CFLAGS="$xorg_testset_save_CFLAGS"
8929
8930		eval supported=\$$cacheid
8931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8932printf "%s\n" "$supported" >&6; }
8933		if test "$supported" = "yes" ; then
8934			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8935			found="yes"
8936		fi
8937	fi
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953xorg_testset_save_CFLAGS="$CFLAGS"
8954
8955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8957	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8958printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8959if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8960then :
8961  printf %s "(cached) " >&6
8962else $as_nop
8963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964/* end confdefs.h.  */
8965int i;
8966_ACEOF
8967if ac_fn_c_try_compile "$LINENO"
8968then :
8969  xorg_cv_cc_flag_unknown_warning_option=yes
8970else $as_nop
8971  xorg_cv_cc_flag_unknown_warning_option=no
8972fi
8973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8974fi
8975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8976printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8977	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8978	CFLAGS="$xorg_testset_save_CFLAGS"
8979fi
8980
8981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8982	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8984	fi
8985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8987printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8988if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8989then :
8990  printf %s "(cached) " >&6
8991else $as_nop
8992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993/* end confdefs.h.  */
8994int i;
8995_ACEOF
8996if ac_fn_c_try_compile "$LINENO"
8997then :
8998  xorg_cv_cc_flag_unused_command_line_argument=yes
8999else $as_nop
9000  xorg_cv_cc_flag_unused_command_line_argument=no
9001fi
9002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9003fi
9004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9005printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9006	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9007	CFLAGS="$xorg_testset_save_CFLAGS"
9008fi
9009
9010found="no"
9011
9012	if test $found = "no" ; then
9013		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9014			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9015		fi
9016
9017		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9018			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9019		fi
9020
9021		CFLAGS="$CFLAGS -Wnonnull"
9022
9023		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9024printf %s "checking if $CC supports -Wnonnull... " >&6; }
9025		cacheid=xorg_cv_cc_flag__Wnonnull
9026		if eval test \${$cacheid+y}
9027then :
9028  printf %s "(cached) " >&6
9029else $as_nop
9030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031/* end confdefs.h.  */
9032int i;
9033int
9034main (void)
9035{
9036
9037  ;
9038  return 0;
9039}
9040_ACEOF
9041if ac_fn_c_try_link "$LINENO"
9042then :
9043  eval $cacheid=yes
9044else $as_nop
9045  eval $cacheid=no
9046fi
9047rm -f core conftest.err conftest.$ac_objext conftest.beam \
9048    conftest$ac_exeext conftest.$ac_ext
9049fi
9050
9051
9052		CFLAGS="$xorg_testset_save_CFLAGS"
9053
9054		eval supported=\$$cacheid
9055		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9056printf "%s\n" "$supported" >&6; }
9057		if test "$supported" = "yes" ; then
9058			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9059			found="yes"
9060		fi
9061	fi
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077xorg_testset_save_CFLAGS="$CFLAGS"
9078
9079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9080	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9081	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9082printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9083if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9084then :
9085  printf %s "(cached) " >&6
9086else $as_nop
9087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088/* end confdefs.h.  */
9089int i;
9090_ACEOF
9091if ac_fn_c_try_compile "$LINENO"
9092then :
9093  xorg_cv_cc_flag_unknown_warning_option=yes
9094else $as_nop
9095  xorg_cv_cc_flag_unknown_warning_option=no
9096fi
9097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9098fi
9099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9100printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9101	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9102	CFLAGS="$xorg_testset_save_CFLAGS"
9103fi
9104
9105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9106	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108	fi
9109	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9111printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9112if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9113then :
9114  printf %s "(cached) " >&6
9115else $as_nop
9116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117/* end confdefs.h.  */
9118int i;
9119_ACEOF
9120if ac_fn_c_try_compile "$LINENO"
9121then :
9122  xorg_cv_cc_flag_unused_command_line_argument=yes
9123else $as_nop
9124  xorg_cv_cc_flag_unused_command_line_argument=no
9125fi
9126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9127fi
9128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9129printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9131	CFLAGS="$xorg_testset_save_CFLAGS"
9132fi
9133
9134found="no"
9135
9136	if test $found = "no" ; then
9137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9139		fi
9140
9141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9143		fi
9144
9145		CFLAGS="$CFLAGS -Winit-self"
9146
9147		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9148printf %s "checking if $CC supports -Winit-self... " >&6; }
9149		cacheid=xorg_cv_cc_flag__Winit_self
9150		if eval test \${$cacheid+y}
9151then :
9152  printf %s "(cached) " >&6
9153else $as_nop
9154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h.  */
9156int i;
9157int
9158main (void)
9159{
9160
9161  ;
9162  return 0;
9163}
9164_ACEOF
9165if ac_fn_c_try_link "$LINENO"
9166then :
9167  eval $cacheid=yes
9168else $as_nop
9169  eval $cacheid=no
9170fi
9171rm -f core conftest.err conftest.$ac_objext conftest.beam \
9172    conftest$ac_exeext conftest.$ac_ext
9173fi
9174
9175
9176		CFLAGS="$xorg_testset_save_CFLAGS"
9177
9178		eval supported=\$$cacheid
9179		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9180printf "%s\n" "$supported" >&6; }
9181		if test "$supported" = "yes" ; then
9182			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9183			found="yes"
9184		fi
9185	fi
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201xorg_testset_save_CFLAGS="$CFLAGS"
9202
9203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9204	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9206printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9207if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9208then :
9209  printf %s "(cached) " >&6
9210else $as_nop
9211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212/* end confdefs.h.  */
9213int i;
9214_ACEOF
9215if ac_fn_c_try_compile "$LINENO"
9216then :
9217  xorg_cv_cc_flag_unknown_warning_option=yes
9218else $as_nop
9219  xorg_cv_cc_flag_unknown_warning_option=no
9220fi
9221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9222fi
9223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9224printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9226	CFLAGS="$xorg_testset_save_CFLAGS"
9227fi
9228
9229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9232	fi
9233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9235printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9236if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9237then :
9238  printf %s "(cached) " >&6
9239else $as_nop
9240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241/* end confdefs.h.  */
9242int i;
9243_ACEOF
9244if ac_fn_c_try_compile "$LINENO"
9245then :
9246  xorg_cv_cc_flag_unused_command_line_argument=yes
9247else $as_nop
9248  xorg_cv_cc_flag_unused_command_line_argument=no
9249fi
9250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9251fi
9252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9253printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9255	CFLAGS="$xorg_testset_save_CFLAGS"
9256fi
9257
9258found="no"
9259
9260	if test $found = "no" ; then
9261		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9263		fi
9264
9265		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9267		fi
9268
9269		CFLAGS="$CFLAGS -Wmain"
9270
9271		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9272printf %s "checking if $CC supports -Wmain... " >&6; }
9273		cacheid=xorg_cv_cc_flag__Wmain
9274		if eval test \${$cacheid+y}
9275then :
9276  printf %s "(cached) " >&6
9277else $as_nop
9278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h.  */
9280int i;
9281int
9282main (void)
9283{
9284
9285  ;
9286  return 0;
9287}
9288_ACEOF
9289if ac_fn_c_try_link "$LINENO"
9290then :
9291  eval $cacheid=yes
9292else $as_nop
9293  eval $cacheid=no
9294fi
9295rm -f core conftest.err conftest.$ac_objext conftest.beam \
9296    conftest$ac_exeext conftest.$ac_ext
9297fi
9298
9299
9300		CFLAGS="$xorg_testset_save_CFLAGS"
9301
9302		eval supported=\$$cacheid
9303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9304printf "%s\n" "$supported" >&6; }
9305		if test "$supported" = "yes" ; then
9306			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9307			found="yes"
9308		fi
9309	fi
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325xorg_testset_save_CFLAGS="$CFLAGS"
9326
9327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9328	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9330printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9331if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9332then :
9333  printf %s "(cached) " >&6
9334else $as_nop
9335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336/* end confdefs.h.  */
9337int i;
9338_ACEOF
9339if ac_fn_c_try_compile "$LINENO"
9340then :
9341  xorg_cv_cc_flag_unknown_warning_option=yes
9342else $as_nop
9343  xorg_cv_cc_flag_unknown_warning_option=no
9344fi
9345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9346fi
9347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9348printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9350	CFLAGS="$xorg_testset_save_CFLAGS"
9351fi
9352
9353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9356	fi
9357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9359printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9360if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9361then :
9362  printf %s "(cached) " >&6
9363else $as_nop
9364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365/* end confdefs.h.  */
9366int i;
9367_ACEOF
9368if ac_fn_c_try_compile "$LINENO"
9369then :
9370  xorg_cv_cc_flag_unused_command_line_argument=yes
9371else $as_nop
9372  xorg_cv_cc_flag_unused_command_line_argument=no
9373fi
9374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9375fi
9376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9377printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9379	CFLAGS="$xorg_testset_save_CFLAGS"
9380fi
9381
9382found="no"
9383
9384	if test $found = "no" ; then
9385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9387		fi
9388
9389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9391		fi
9392
9393		CFLAGS="$CFLAGS -Wmissing-braces"
9394
9395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9396printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9397		cacheid=xorg_cv_cc_flag__Wmissing_braces
9398		if eval test \${$cacheid+y}
9399then :
9400  printf %s "(cached) " >&6
9401else $as_nop
9402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403/* end confdefs.h.  */
9404int i;
9405int
9406main (void)
9407{
9408
9409  ;
9410  return 0;
9411}
9412_ACEOF
9413if ac_fn_c_try_link "$LINENO"
9414then :
9415  eval $cacheid=yes
9416else $as_nop
9417  eval $cacheid=no
9418fi
9419rm -f core conftest.err conftest.$ac_objext conftest.beam \
9420    conftest$ac_exeext conftest.$ac_ext
9421fi
9422
9423
9424		CFLAGS="$xorg_testset_save_CFLAGS"
9425
9426		eval supported=\$$cacheid
9427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9428printf "%s\n" "$supported" >&6; }
9429		if test "$supported" = "yes" ; then
9430			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9431			found="yes"
9432		fi
9433	fi
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449xorg_testset_save_CFLAGS="$CFLAGS"
9450
9451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9454printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9455if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9456then :
9457  printf %s "(cached) " >&6
9458else $as_nop
9459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460/* end confdefs.h.  */
9461int i;
9462_ACEOF
9463if ac_fn_c_try_compile "$LINENO"
9464then :
9465  xorg_cv_cc_flag_unknown_warning_option=yes
9466else $as_nop
9467  xorg_cv_cc_flag_unknown_warning_option=no
9468fi
9469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9470fi
9471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9472printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9473	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9474	CFLAGS="$xorg_testset_save_CFLAGS"
9475fi
9476
9477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9478	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9479		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9480	fi
9481	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9483printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9484if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9485then :
9486  printf %s "(cached) " >&6
9487else $as_nop
9488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h.  */
9490int i;
9491_ACEOF
9492if ac_fn_c_try_compile "$LINENO"
9493then :
9494  xorg_cv_cc_flag_unused_command_line_argument=yes
9495else $as_nop
9496  xorg_cv_cc_flag_unused_command_line_argument=no
9497fi
9498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9499fi
9500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9501printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9502	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9503	CFLAGS="$xorg_testset_save_CFLAGS"
9504fi
9505
9506found="no"
9507
9508	if test $found = "no" ; then
9509		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9510			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9511		fi
9512
9513		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9514			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9515		fi
9516
9517		CFLAGS="$CFLAGS -Wsequence-point"
9518
9519		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9520printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9521		cacheid=xorg_cv_cc_flag__Wsequence_point
9522		if eval test \${$cacheid+y}
9523then :
9524  printf %s "(cached) " >&6
9525else $as_nop
9526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527/* end confdefs.h.  */
9528int i;
9529int
9530main (void)
9531{
9532
9533  ;
9534  return 0;
9535}
9536_ACEOF
9537if ac_fn_c_try_link "$LINENO"
9538then :
9539  eval $cacheid=yes
9540else $as_nop
9541  eval $cacheid=no
9542fi
9543rm -f core conftest.err conftest.$ac_objext conftest.beam \
9544    conftest$ac_exeext conftest.$ac_ext
9545fi
9546
9547
9548		CFLAGS="$xorg_testset_save_CFLAGS"
9549
9550		eval supported=\$$cacheid
9551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9552printf "%s\n" "$supported" >&6; }
9553		if test "$supported" = "yes" ; then
9554			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9555			found="yes"
9556		fi
9557	fi
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573xorg_testset_save_CFLAGS="$CFLAGS"
9574
9575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9576	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9578printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9579if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9580then :
9581  printf %s "(cached) " >&6
9582else $as_nop
9583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584/* end confdefs.h.  */
9585int i;
9586_ACEOF
9587if ac_fn_c_try_compile "$LINENO"
9588then :
9589  xorg_cv_cc_flag_unknown_warning_option=yes
9590else $as_nop
9591  xorg_cv_cc_flag_unknown_warning_option=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9594fi
9595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9596printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9597	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9598	CFLAGS="$xorg_testset_save_CFLAGS"
9599fi
9600
9601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9602	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9603		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604	fi
9605	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9606	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9607printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9608if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9609then :
9610  printf %s "(cached) " >&6
9611else $as_nop
9612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h.  */
9614int i;
9615_ACEOF
9616if ac_fn_c_try_compile "$LINENO"
9617then :
9618  xorg_cv_cc_flag_unused_command_line_argument=yes
9619else $as_nop
9620  xorg_cv_cc_flag_unused_command_line_argument=no
9621fi
9622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9623fi
9624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9625printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9626	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9627	CFLAGS="$xorg_testset_save_CFLAGS"
9628fi
9629
9630found="no"
9631
9632	if test $found = "no" ; then
9633		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9635		fi
9636
9637		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9639		fi
9640
9641		CFLAGS="$CFLAGS -Wreturn-type"
9642
9643		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9644printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9645		cacheid=xorg_cv_cc_flag__Wreturn_type
9646		if eval test \${$cacheid+y}
9647then :
9648  printf %s "(cached) " >&6
9649else $as_nop
9650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651/* end confdefs.h.  */
9652int i;
9653int
9654main (void)
9655{
9656
9657  ;
9658  return 0;
9659}
9660_ACEOF
9661if ac_fn_c_try_link "$LINENO"
9662then :
9663  eval $cacheid=yes
9664else $as_nop
9665  eval $cacheid=no
9666fi
9667rm -f core conftest.err conftest.$ac_objext conftest.beam \
9668    conftest$ac_exeext conftest.$ac_ext
9669fi
9670
9671
9672		CFLAGS="$xorg_testset_save_CFLAGS"
9673
9674		eval supported=\$$cacheid
9675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9676printf "%s\n" "$supported" >&6; }
9677		if test "$supported" = "yes" ; then
9678			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9679			found="yes"
9680		fi
9681	fi
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697xorg_testset_save_CFLAGS="$CFLAGS"
9698
9699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9703if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9704then :
9705  printf %s "(cached) " >&6
9706else $as_nop
9707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h.  */
9709int i;
9710_ACEOF
9711if ac_fn_c_try_compile "$LINENO"
9712then :
9713  xorg_cv_cc_flag_unknown_warning_option=yes
9714else $as_nop
9715  xorg_cv_cc_flag_unknown_warning_option=no
9716fi
9717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9718fi
9719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9722	CFLAGS="$xorg_testset_save_CFLAGS"
9723fi
9724
9725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9728	fi
9729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9732if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9733then :
9734  printf %s "(cached) " >&6
9735else $as_nop
9736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738int i;
9739_ACEOF
9740if ac_fn_c_try_compile "$LINENO"
9741then :
9742  xorg_cv_cc_flag_unused_command_line_argument=yes
9743else $as_nop
9744  xorg_cv_cc_flag_unused_command_line_argument=no
9745fi
9746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9747fi
9748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9751	CFLAGS="$xorg_testset_save_CFLAGS"
9752fi
9753
9754found="no"
9755
9756	if test $found = "no" ; then
9757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759		fi
9760
9761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9763		fi
9764
9765		CFLAGS="$CFLAGS -Wtrigraphs"
9766
9767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9768printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9769		cacheid=xorg_cv_cc_flag__Wtrigraphs
9770		if eval test \${$cacheid+y}
9771then :
9772  printf %s "(cached) " >&6
9773else $as_nop
9774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h.  */
9776int i;
9777int
9778main (void)
9779{
9780
9781  ;
9782  return 0;
9783}
9784_ACEOF
9785if ac_fn_c_try_link "$LINENO"
9786then :
9787  eval $cacheid=yes
9788else $as_nop
9789  eval $cacheid=no
9790fi
9791rm -f core conftest.err conftest.$ac_objext conftest.beam \
9792    conftest$ac_exeext conftest.$ac_ext
9793fi
9794
9795
9796		CFLAGS="$xorg_testset_save_CFLAGS"
9797
9798		eval supported=\$$cacheid
9799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9800printf "%s\n" "$supported" >&6; }
9801		if test "$supported" = "yes" ; then
9802			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9803			found="yes"
9804		fi
9805	fi
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821xorg_testset_save_CFLAGS="$CFLAGS"
9822
9823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9827if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9828then :
9829  printf %s "(cached) " >&6
9830else $as_nop
9831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833int i;
9834_ACEOF
9835if ac_fn_c_try_compile "$LINENO"
9836then :
9837  xorg_cv_cc_flag_unknown_warning_option=yes
9838else $as_nop
9839  xorg_cv_cc_flag_unknown_warning_option=no
9840fi
9841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9842fi
9843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9846	CFLAGS="$xorg_testset_save_CFLAGS"
9847fi
9848
9849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9852	fi
9853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9856if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9857then :
9858  printf %s "(cached) " >&6
9859else $as_nop
9860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861/* end confdefs.h.  */
9862int i;
9863_ACEOF
9864if ac_fn_c_try_compile "$LINENO"
9865then :
9866  xorg_cv_cc_flag_unused_command_line_argument=yes
9867else $as_nop
9868  xorg_cv_cc_flag_unused_command_line_argument=no
9869fi
9870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9871fi
9872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9875	CFLAGS="$xorg_testset_save_CFLAGS"
9876fi
9877
9878found="no"
9879
9880	if test $found = "no" ; then
9881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9883		fi
9884
9885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9887		fi
9888
9889		CFLAGS="$CFLAGS -Warray-bounds"
9890
9891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9892printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9893		cacheid=xorg_cv_cc_flag__Warray_bounds
9894		if eval test \${$cacheid+y}
9895then :
9896  printf %s "(cached) " >&6
9897else $as_nop
9898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899/* end confdefs.h.  */
9900int i;
9901int
9902main (void)
9903{
9904
9905  ;
9906  return 0;
9907}
9908_ACEOF
9909if ac_fn_c_try_link "$LINENO"
9910then :
9911  eval $cacheid=yes
9912else $as_nop
9913  eval $cacheid=no
9914fi
9915rm -f core conftest.err conftest.$ac_objext conftest.beam \
9916    conftest$ac_exeext conftest.$ac_ext
9917fi
9918
9919
9920		CFLAGS="$xorg_testset_save_CFLAGS"
9921
9922		eval supported=\$$cacheid
9923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9924printf "%s\n" "$supported" >&6; }
9925		if test "$supported" = "yes" ; then
9926			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9927			found="yes"
9928		fi
9929	fi
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945xorg_testset_save_CFLAGS="$CFLAGS"
9946
9947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9949	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9951if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9952then :
9953  printf %s "(cached) " >&6
9954else $as_nop
9955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956/* end confdefs.h.  */
9957int i;
9958_ACEOF
9959if ac_fn_c_try_compile "$LINENO"
9960then :
9961  xorg_cv_cc_flag_unknown_warning_option=yes
9962else $as_nop
9963  xorg_cv_cc_flag_unknown_warning_option=no
9964fi
9965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9966fi
9967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9970	CFLAGS="$xorg_testset_save_CFLAGS"
9971fi
9972
9973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976	fi
9977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9980if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9981then :
9982  printf %s "(cached) " >&6
9983else $as_nop
9984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985/* end confdefs.h.  */
9986int i;
9987_ACEOF
9988if ac_fn_c_try_compile "$LINENO"
9989then :
9990  xorg_cv_cc_flag_unused_command_line_argument=yes
9991else $as_nop
9992  xorg_cv_cc_flag_unused_command_line_argument=no
9993fi
9994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9995fi
9996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9999	CFLAGS="$xorg_testset_save_CFLAGS"
10000fi
10001
10002found="no"
10003
10004	if test $found = "no" ; then
10005		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007		fi
10008
10009		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10011		fi
10012
10013		CFLAGS="$CFLAGS -Wwrite-strings"
10014
10015		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10016printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10017		cacheid=xorg_cv_cc_flag__Wwrite_strings
10018		if eval test \${$cacheid+y}
10019then :
10020  printf %s "(cached) " >&6
10021else $as_nop
10022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023/* end confdefs.h.  */
10024int i;
10025int
10026main (void)
10027{
10028
10029  ;
10030  return 0;
10031}
10032_ACEOF
10033if ac_fn_c_try_link "$LINENO"
10034then :
10035  eval $cacheid=yes
10036else $as_nop
10037  eval $cacheid=no
10038fi
10039rm -f core conftest.err conftest.$ac_objext conftest.beam \
10040    conftest$ac_exeext conftest.$ac_ext
10041fi
10042
10043
10044		CFLAGS="$xorg_testset_save_CFLAGS"
10045
10046		eval supported=\$$cacheid
10047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10048printf "%s\n" "$supported" >&6; }
10049		if test "$supported" = "yes" ; then
10050			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10051			found="yes"
10052		fi
10053	fi
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069xorg_testset_save_CFLAGS="$CFLAGS"
10070
10071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10073	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10075if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10076then :
10077  printf %s "(cached) " >&6
10078else $as_nop
10079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080/* end confdefs.h.  */
10081int i;
10082_ACEOF
10083if ac_fn_c_try_compile "$LINENO"
10084then :
10085  xorg_cv_cc_flag_unknown_warning_option=yes
10086else $as_nop
10087  xorg_cv_cc_flag_unknown_warning_option=no
10088fi
10089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10090fi
10091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10094	CFLAGS="$xorg_testset_save_CFLAGS"
10095fi
10096
10097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100	fi
10101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10104if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10105then :
10106  printf %s "(cached) " >&6
10107else $as_nop
10108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h.  */
10110int i;
10111_ACEOF
10112if ac_fn_c_try_compile "$LINENO"
10113then :
10114  xorg_cv_cc_flag_unused_command_line_argument=yes
10115else $as_nop
10116  xorg_cv_cc_flag_unused_command_line_argument=no
10117fi
10118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10119fi
10120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10123	CFLAGS="$xorg_testset_save_CFLAGS"
10124fi
10125
10126found="no"
10127
10128	if test $found = "no" ; then
10129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10131		fi
10132
10133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10135		fi
10136
10137		CFLAGS="$CFLAGS -Waddress"
10138
10139		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10140printf %s "checking if $CC supports -Waddress... " >&6; }
10141		cacheid=xorg_cv_cc_flag__Waddress
10142		if eval test \${$cacheid+y}
10143then :
10144  printf %s "(cached) " >&6
10145else $as_nop
10146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h.  */
10148int i;
10149int
10150main (void)
10151{
10152
10153  ;
10154  return 0;
10155}
10156_ACEOF
10157if ac_fn_c_try_link "$LINENO"
10158then :
10159  eval $cacheid=yes
10160else $as_nop
10161  eval $cacheid=no
10162fi
10163rm -f core conftest.err conftest.$ac_objext conftest.beam \
10164    conftest$ac_exeext conftest.$ac_ext
10165fi
10166
10167
10168		CFLAGS="$xorg_testset_save_CFLAGS"
10169
10170		eval supported=\$$cacheid
10171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10172printf "%s\n" "$supported" >&6; }
10173		if test "$supported" = "yes" ; then
10174			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10175			found="yes"
10176		fi
10177	fi
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193xorg_testset_save_CFLAGS="$CFLAGS"
10194
10195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10196	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10198printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10199if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10200then :
10201  printf %s "(cached) " >&6
10202else $as_nop
10203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204/* end confdefs.h.  */
10205int i;
10206_ACEOF
10207if ac_fn_c_try_compile "$LINENO"
10208then :
10209  xorg_cv_cc_flag_unknown_warning_option=yes
10210else $as_nop
10211  xorg_cv_cc_flag_unknown_warning_option=no
10212fi
10213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10214fi
10215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10216printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10218	CFLAGS="$xorg_testset_save_CFLAGS"
10219fi
10220
10221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10224	fi
10225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10227printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10228if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10229then :
10230  printf %s "(cached) " >&6
10231else $as_nop
10232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233/* end confdefs.h.  */
10234int i;
10235_ACEOF
10236if ac_fn_c_try_compile "$LINENO"
10237then :
10238  xorg_cv_cc_flag_unused_command_line_argument=yes
10239else $as_nop
10240  xorg_cv_cc_flag_unused_command_line_argument=no
10241fi
10242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10243fi
10244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10245printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10246	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10247	CFLAGS="$xorg_testset_save_CFLAGS"
10248fi
10249
10250found="no"
10251
10252	if test $found = "no" ; then
10253		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10255		fi
10256
10257		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10259		fi
10260
10261		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10262
10263		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10264printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10265		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10266		if eval test \${$cacheid+y}
10267then :
10268  printf %s "(cached) " >&6
10269else $as_nop
10270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271/* end confdefs.h.  */
10272int i;
10273int
10274main (void)
10275{
10276
10277  ;
10278  return 0;
10279}
10280_ACEOF
10281if ac_fn_c_try_link "$LINENO"
10282then :
10283  eval $cacheid=yes
10284else $as_nop
10285  eval $cacheid=no
10286fi
10287rm -f core conftest.err conftest.$ac_objext conftest.beam \
10288    conftest$ac_exeext conftest.$ac_ext
10289fi
10290
10291
10292		CFLAGS="$xorg_testset_save_CFLAGS"
10293
10294		eval supported=\$$cacheid
10295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10296printf "%s\n" "$supported" >&6; }
10297		if test "$supported" = "yes" ; then
10298			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10299			found="yes"
10300		fi
10301	fi
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317xorg_testset_save_CFLAGS="$CFLAGS"
10318
10319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10320	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10321	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10322printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10323if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10324then :
10325  printf %s "(cached) " >&6
10326else $as_nop
10327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328/* end confdefs.h.  */
10329int i;
10330_ACEOF
10331if ac_fn_c_try_compile "$LINENO"
10332then :
10333  xorg_cv_cc_flag_unknown_warning_option=yes
10334else $as_nop
10335  xorg_cv_cc_flag_unknown_warning_option=no
10336fi
10337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10338fi
10339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10340printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10342	CFLAGS="$xorg_testset_save_CFLAGS"
10343fi
10344
10345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10348	fi
10349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10351printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10352if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10353then :
10354  printf %s "(cached) " >&6
10355else $as_nop
10356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357/* end confdefs.h.  */
10358int i;
10359_ACEOF
10360if ac_fn_c_try_compile "$LINENO"
10361then :
10362  xorg_cv_cc_flag_unused_command_line_argument=yes
10363else $as_nop
10364  xorg_cv_cc_flag_unused_command_line_argument=no
10365fi
10366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10367fi
10368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10369printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10371	CFLAGS="$xorg_testset_save_CFLAGS"
10372fi
10373
10374found="no"
10375
10376	if test $found = "no" ; then
10377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10379		fi
10380
10381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10383		fi
10384
10385		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10386
10387		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10388printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10389		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10390		if eval test \${$cacheid+y}
10391then :
10392  printf %s "(cached) " >&6
10393else $as_nop
10394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395/* end confdefs.h.  */
10396int i;
10397int
10398main (void)
10399{
10400
10401  ;
10402  return 0;
10403}
10404_ACEOF
10405if ac_fn_c_try_link "$LINENO"
10406then :
10407  eval $cacheid=yes
10408else $as_nop
10409  eval $cacheid=no
10410fi
10411rm -f core conftest.err conftest.$ac_objext conftest.beam \
10412    conftest$ac_exeext conftest.$ac_ext
10413fi
10414
10415
10416		CFLAGS="$xorg_testset_save_CFLAGS"
10417
10418		eval supported=\$$cacheid
10419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10420printf "%s\n" "$supported" >&6; }
10421		if test "$supported" = "yes" ; then
10422			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10423			found="yes"
10424		fi
10425	fi
10426
10427
10428fi
10429
10430
10431
10432
10433
10434
10435
10436		CWARNFLAGS="$BASE_CFLAGS"
10437		if  test "x$GCC" = xyes ; then
10438		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10439		fi
10440
10441
10442
10443
10444
10445
10446
10447
10448# Check whether --enable-strict-compilation was given.
10449if test ${enable_strict_compilation+y}
10450then :
10451  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10452else $as_nop
10453  STRICT_COMPILE=no
10454fi
10455
10456
10457
10458
10459
10460
10461STRICT_CFLAGS=""
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475xorg_testset_save_CFLAGS="$CFLAGS"
10476
10477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10478	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10480printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10481if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10482then :
10483  printf %s "(cached) " >&6
10484else $as_nop
10485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486/* end confdefs.h.  */
10487int i;
10488_ACEOF
10489if ac_fn_c_try_compile "$LINENO"
10490then :
10491  xorg_cv_cc_flag_unknown_warning_option=yes
10492else $as_nop
10493  xorg_cv_cc_flag_unknown_warning_option=no
10494fi
10495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10496fi
10497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10498printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10500	CFLAGS="$xorg_testset_save_CFLAGS"
10501fi
10502
10503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10506	fi
10507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10508	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10509printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10510if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10511then :
10512  printf %s "(cached) " >&6
10513else $as_nop
10514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515/* end confdefs.h.  */
10516int i;
10517_ACEOF
10518if ac_fn_c_try_compile "$LINENO"
10519then :
10520  xorg_cv_cc_flag_unused_command_line_argument=yes
10521else $as_nop
10522  xorg_cv_cc_flag_unused_command_line_argument=no
10523fi
10524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10525fi
10526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10527printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10529	CFLAGS="$xorg_testset_save_CFLAGS"
10530fi
10531
10532found="no"
10533
10534	if test $found = "no" ; then
10535		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10537		fi
10538
10539		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10541		fi
10542
10543		CFLAGS="$CFLAGS -pedantic"
10544
10545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10546printf %s "checking if $CC supports -pedantic... " >&6; }
10547		cacheid=xorg_cv_cc_flag__pedantic
10548		if eval test \${$cacheid+y}
10549then :
10550  printf %s "(cached) " >&6
10551else $as_nop
10552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553/* end confdefs.h.  */
10554int i;
10555int
10556main (void)
10557{
10558
10559  ;
10560  return 0;
10561}
10562_ACEOF
10563if ac_fn_c_try_link "$LINENO"
10564then :
10565  eval $cacheid=yes
10566else $as_nop
10567  eval $cacheid=no
10568fi
10569rm -f core conftest.err conftest.$ac_objext conftest.beam \
10570    conftest$ac_exeext conftest.$ac_ext
10571fi
10572
10573
10574		CFLAGS="$xorg_testset_save_CFLAGS"
10575
10576		eval supported=\$$cacheid
10577		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10578printf "%s\n" "$supported" >&6; }
10579		if test "$supported" = "yes" ; then
10580			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10581			found="yes"
10582		fi
10583	fi
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599xorg_testset_save_CFLAGS="$CFLAGS"
10600
10601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10603	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10604printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10605if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10606then :
10607  printf %s "(cached) " >&6
10608else $as_nop
10609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610/* end confdefs.h.  */
10611int i;
10612_ACEOF
10613if ac_fn_c_try_compile "$LINENO"
10614then :
10615  xorg_cv_cc_flag_unknown_warning_option=yes
10616else $as_nop
10617  xorg_cv_cc_flag_unknown_warning_option=no
10618fi
10619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10620fi
10621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10622printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10623	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10624	CFLAGS="$xorg_testset_save_CFLAGS"
10625fi
10626
10627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10628	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10629		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10630	fi
10631	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10632	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10633printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10634if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10635then :
10636  printf %s "(cached) " >&6
10637else $as_nop
10638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639/* end confdefs.h.  */
10640int i;
10641_ACEOF
10642if ac_fn_c_try_compile "$LINENO"
10643then :
10644  xorg_cv_cc_flag_unused_command_line_argument=yes
10645else $as_nop
10646  xorg_cv_cc_flag_unused_command_line_argument=no
10647fi
10648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10649fi
10650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10653	CFLAGS="$xorg_testset_save_CFLAGS"
10654fi
10655
10656found="no"
10657
10658	if test $found = "no" ; then
10659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10661		fi
10662
10663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10665		fi
10666
10667		CFLAGS="$CFLAGS -Werror"
10668
10669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10670printf %s "checking if $CC supports -Werror... " >&6; }
10671		cacheid=xorg_cv_cc_flag__Werror
10672		if eval test \${$cacheid+y}
10673then :
10674  printf %s "(cached) " >&6
10675else $as_nop
10676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677/* end confdefs.h.  */
10678int i;
10679int
10680main (void)
10681{
10682
10683  ;
10684  return 0;
10685}
10686_ACEOF
10687if ac_fn_c_try_link "$LINENO"
10688then :
10689  eval $cacheid=yes
10690else $as_nop
10691  eval $cacheid=no
10692fi
10693rm -f core conftest.err conftest.$ac_objext conftest.beam \
10694    conftest$ac_exeext conftest.$ac_ext
10695fi
10696
10697
10698		CFLAGS="$xorg_testset_save_CFLAGS"
10699
10700		eval supported=\$$cacheid
10701		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10702printf "%s\n" "$supported" >&6; }
10703		if test "$supported" = "yes" ; then
10704			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10705			found="yes"
10706		fi
10707	fi
10708
10709	if test $found = "no" ; then
10710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10712		fi
10713
10714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10716		fi
10717
10718		CFLAGS="$CFLAGS -errwarn"
10719
10720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10721printf %s "checking if $CC supports -errwarn... " >&6; }
10722		cacheid=xorg_cv_cc_flag__errwarn
10723		if eval test \${$cacheid+y}
10724then :
10725  printf %s "(cached) " >&6
10726else $as_nop
10727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728/* end confdefs.h.  */
10729int i;
10730int
10731main (void)
10732{
10733
10734  ;
10735  return 0;
10736}
10737_ACEOF
10738if ac_fn_c_try_link "$LINENO"
10739then :
10740  eval $cacheid=yes
10741else $as_nop
10742  eval $cacheid=no
10743fi
10744rm -f core conftest.err conftest.$ac_objext conftest.beam \
10745    conftest$ac_exeext conftest.$ac_ext
10746fi
10747
10748
10749		CFLAGS="$xorg_testset_save_CFLAGS"
10750
10751		eval supported=\$$cacheid
10752		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10753printf "%s\n" "$supported" >&6; }
10754		if test "$supported" = "yes" ; then
10755			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10756			found="yes"
10757		fi
10758	fi
10759
10760
10761
10762# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10763# activate it with -Werror, so we add it here explicitly.
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777xorg_testset_save_CFLAGS="$CFLAGS"
10778
10779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10780	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10782printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10783if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10784then :
10785  printf %s "(cached) " >&6
10786else $as_nop
10787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788/* end confdefs.h.  */
10789int i;
10790_ACEOF
10791if ac_fn_c_try_compile "$LINENO"
10792then :
10793  xorg_cv_cc_flag_unknown_warning_option=yes
10794else $as_nop
10795  xorg_cv_cc_flag_unknown_warning_option=no
10796fi
10797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10798fi
10799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10800printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10802	CFLAGS="$xorg_testset_save_CFLAGS"
10803fi
10804
10805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10808	fi
10809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10810	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10811printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10812if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10813then :
10814  printf %s "(cached) " >&6
10815else $as_nop
10816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817/* end confdefs.h.  */
10818int i;
10819_ACEOF
10820if ac_fn_c_try_compile "$LINENO"
10821then :
10822  xorg_cv_cc_flag_unused_command_line_argument=yes
10823else $as_nop
10824  xorg_cv_cc_flag_unused_command_line_argument=no
10825fi
10826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10827fi
10828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10829printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10831	CFLAGS="$xorg_testset_save_CFLAGS"
10832fi
10833
10834found="no"
10835
10836	if test $found = "no" ; then
10837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10839		fi
10840
10841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10843		fi
10844
10845		CFLAGS="$CFLAGS -Werror=attributes"
10846
10847		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10848printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10849		cacheid=xorg_cv_cc_flag__Werror_attributes
10850		if eval test \${$cacheid+y}
10851then :
10852  printf %s "(cached) " >&6
10853else $as_nop
10854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855/* end confdefs.h.  */
10856int i;
10857int
10858main (void)
10859{
10860
10861  ;
10862  return 0;
10863}
10864_ACEOF
10865if ac_fn_c_try_link "$LINENO"
10866then :
10867  eval $cacheid=yes
10868else $as_nop
10869  eval $cacheid=no
10870fi
10871rm -f core conftest.err conftest.$ac_objext conftest.beam \
10872    conftest$ac_exeext conftest.$ac_ext
10873fi
10874
10875
10876		CFLAGS="$xorg_testset_save_CFLAGS"
10877
10878		eval supported=\$$cacheid
10879		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10880printf "%s\n" "$supported" >&6; }
10881		if test "$supported" = "yes" ; then
10882			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10883			found="yes"
10884		fi
10885	fi
10886
10887
10888
10889if test "x$STRICT_COMPILE" = "xyes"; then
10890    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10891    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10892fi
10893
10894
10895
10896
10897
10898
10899cat >>confdefs.h <<_ACEOF
10900#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10901_ACEOF
10902
10903	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10904	if test "x$PVM" = "x"; then
10905		PVM="0"
10906	fi
10907
10908printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10909
10910	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10911	if test "x$PVP" = "x"; then
10912		PVP="0"
10913	fi
10914
10915printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10916
10917
10918
10919CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10920mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10921|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10922touch \$(top_srcdir)/ChangeLog; \
10923echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10924
10925
10926
10927
10928macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10929INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10930mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10931|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10932touch \$(top_srcdir)/INSTALL; \
10933echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10934
10935
10936
10937
10938
10939
10940case $host_os in
10941    solaris*)
10942        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10943        # check for a man page file found in later versions that use
10944        # traditional section numbers instead
10945        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10946printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10947if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10948then :
10949  printf %s "(cached) " >&6
10950else $as_nop
10951  test "$cross_compiling" = yes &&
10952  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10953if test -r "/usr/share/man/man7/attributes.7"; then
10954  ac_cv_file__usr_share_man_man7_attributes_7=yes
10955else
10956  ac_cv_file__usr_share_man_man7_attributes_7=no
10957fi
10958fi
10959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10960printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10961if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10962then :
10963  SYSV_MAN_SECTIONS=false
10964else $as_nop
10965  SYSV_MAN_SECTIONS=true
10966fi
10967
10968        ;;
10969    *) SYSV_MAN_SECTIONS=false ;;
10970esac
10971
10972if test x$APP_MAN_SUFFIX = x    ; then
10973    APP_MAN_SUFFIX=1
10974fi
10975if test x$APP_MAN_DIR = x    ; then
10976    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10977fi
10978
10979if test x$LIB_MAN_SUFFIX = x    ; then
10980    LIB_MAN_SUFFIX=3
10981fi
10982if test x$LIB_MAN_DIR = x    ; then
10983    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10984fi
10985
10986if test x$FILE_MAN_SUFFIX = x    ; then
10987    case $SYSV_MAN_SECTIONS in
10988	true)				FILE_MAN_SUFFIX=4  ;;
10989	*)				FILE_MAN_SUFFIX=5  ;;
10990    esac
10991fi
10992if test x$FILE_MAN_DIR = x    ; then
10993    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10994fi
10995
10996if test x$MISC_MAN_SUFFIX = x    ; then
10997    case $SYSV_MAN_SECTIONS in
10998	true)				MISC_MAN_SUFFIX=5  ;;
10999	*)				MISC_MAN_SUFFIX=7  ;;
11000    esac
11001fi
11002if test x$MISC_MAN_DIR = x    ; then
11003    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11004fi
11005
11006if test x$DRIVER_MAN_SUFFIX = x    ; then
11007    case $SYSV_MAN_SECTIONS in
11008	true)				DRIVER_MAN_SUFFIX=7  ;;
11009	*)				DRIVER_MAN_SUFFIX=4  ;;
11010    esac
11011fi
11012if test x$DRIVER_MAN_DIR = x    ; then
11013    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11014fi
11015
11016if test x$ADMIN_MAN_SUFFIX = x    ; then
11017    case $SYSV_MAN_SECTIONS in
11018	true)				ADMIN_MAN_SUFFIX=1m ;;
11019	*)				ADMIN_MAN_SUFFIX=8  ;;
11020    esac
11021fi
11022if test x$ADMIN_MAN_DIR = x    ; then
11023    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11024fi
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040XORG_MAN_PAGE="X Version 11"
11041
11042MAN_SUBSTS="\
11043	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11044	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11045	-e 's|__xservername__|Xorg|g' \
11046	-e 's|__xconfigfile__|xorg.conf|g' \
11047	-e 's|__projectroot__|\$(prefix)|g' \
11048	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11049	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11050	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11051	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11052	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11053	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11054	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11055
11056
11057
11058# Check whether --enable-silent-rules was given.
11059if test ${enable_silent_rules+y}
11060then :
11061  enableval=$enable_silent_rules;
11062fi
11063
11064case $enable_silent_rules in # (((
11065  yes) AM_DEFAULT_VERBOSITY=0;;
11066   no) AM_DEFAULT_VERBOSITY=1;;
11067    *) AM_DEFAULT_VERBOSITY=0;;
11068esac
11069am_make=${MAKE-make}
11070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11071printf %s "checking whether $am_make supports nested variables... " >&6; }
11072if test ${am_cv_make_support_nested_variables+y}
11073then :
11074  printf %s "(cached) " >&6
11075else $as_nop
11076  if printf "%s\n" 'TRUE=$(BAR$(V))
11077BAR0=false
11078BAR1=true
11079V=1
11080am__doit:
11081	@$(TRUE)
11082.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11083  am_cv_make_support_nested_variables=yes
11084else
11085  am_cv_make_support_nested_variables=no
11086fi
11087fi
11088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11089printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11090if test $am_cv_make_support_nested_variables = yes; then
11091    AM_V='$(V)'
11092  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11093else
11094  AM_V=$AM_DEFAULT_VERBOSITY
11095  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11096fi
11097AM_BACKSLASH='\'
11098
11099
11100
11101
11102pkg_failed=no
11103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for VIEWRES" >&5
11104printf %s "checking for VIEWRES... " >&6; }
11105
11106if test -n "$VIEWRES_CFLAGS"; then
11107    pkg_cv_VIEWRES_CFLAGS="$VIEWRES_CFLAGS"
11108 elif test -n "$PKG_CONFIG"; then
11109    if test -n "$PKG_CONFIG" && \
11110    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt\""; } >&5
11111  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt") 2>&5
11112  ac_status=$?
11113  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114  test $ac_status = 0; }; then
11115  pkg_cv_VIEWRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt" 2>/dev/null`
11116		      test "x$?" != "x0" && pkg_failed=yes
11117else
11118  pkg_failed=yes
11119fi
11120 else
11121    pkg_failed=untried
11122fi
11123if test -n "$VIEWRES_LIBS"; then
11124    pkg_cv_VIEWRES_LIBS="$VIEWRES_LIBS"
11125 elif test -n "$PKG_CONFIG"; then
11126    if test -n "$PKG_CONFIG" && \
11127    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt\""; } >&5
11128  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt") 2>&5
11129  ac_status=$?
11130  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11131  test $ac_status = 0; }; then
11132  pkg_cv_VIEWRES_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt" 2>/dev/null`
11133		      test "x$?" != "x0" && pkg_failed=yes
11134else
11135  pkg_failed=yes
11136fi
11137 else
11138    pkg_failed=untried
11139fi
11140
11141
11142
11143if test $pkg_failed = yes; then
11144   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145printf "%s\n" "no" >&6; }
11146
11147if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11148        _pkg_short_errors_supported=yes
11149else
11150        _pkg_short_errors_supported=no
11151fi
11152        if test $_pkg_short_errors_supported = yes; then
11153	        VIEWRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt" 2>&1`
11154        else
11155	        VIEWRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt" 2>&1`
11156        fi
11157	# Put the nasty error message in config.log where it belongs
11158	echo "$VIEWRES_PKG_ERRORS" >&5
11159
11160	as_fn_error $? "Package requirements (xaw7 xmu xt) were not met:
11161
11162$VIEWRES_PKG_ERRORS
11163
11164Consider adjusting the PKG_CONFIG_PATH environment variable if you
11165installed software in a non-standard prefix.
11166
11167Alternatively, you may set the environment variables VIEWRES_CFLAGS
11168and VIEWRES_LIBS to avoid the need to call pkg-config.
11169See the pkg-config man page for more details." "$LINENO" 5
11170elif test $pkg_failed = untried; then
11171     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172printf "%s\n" "no" >&6; }
11173	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11174printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11175as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11176is in your PATH or set the PKG_CONFIG environment variable to the full
11177path to pkg-config.
11178
11179Alternatively, you may set the environment variables VIEWRES_CFLAGS
11180and VIEWRES_LIBS to avoid the need to call pkg-config.
11181See the pkg-config man page for more details.
11182
11183To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11184See \`config.log' for more details" "$LINENO" 5; }
11185else
11186	VIEWRES_CFLAGS=$pkg_cv_VIEWRES_CFLAGS
11187	VIEWRES_LIBS=$pkg_cv_VIEWRES_LIBS
11188        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11189printf "%s\n" "yes" >&6; }
11190
11191fi
11192
11193xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11194
11195# Check whether --with-appdefaultdir was given.
11196if test ${with_appdefaultdir+y}
11197then :
11198  withval=$with_appdefaultdir; appdefaultdir="$withval"
11199else $as_nop
11200  appdefaultdir="${xt_appdefaultdir}"
11201fi
11202
11203
11204
11205
11206ac_config_files="$ac_config_files Makefile man/Makefile"
11207
11208cat >confcache <<\_ACEOF
11209# This file is a shell script that caches the results of configure
11210# tests run on this system so they can be shared between configure
11211# scripts and configure runs, see configure's option --config-cache.
11212# It is not useful on other systems.  If it contains results you don't
11213# want to keep, you may remove or edit it.
11214#
11215# config.status only pays attention to the cache file if you give it
11216# the --recheck option to rerun configure.
11217#
11218# `ac_cv_env_foo' variables (set or unset) will be overridden when
11219# loading this file, other *unset* `ac_cv_foo' will be assigned the
11220# following values.
11221
11222_ACEOF
11223
11224# The following way of writing the cache mishandles newlines in values,
11225# but we know of no workaround that is simple, portable, and efficient.
11226# So, we kill variables containing newlines.
11227# Ultrix sh set writes to stderr and can't be redirected directly,
11228# and sets the high bit in the cache file unless we assign to the vars.
11229(
11230  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11231    eval ac_val=\$$ac_var
11232    case $ac_val in #(
11233    *${as_nl}*)
11234      case $ac_var in #(
11235      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11236printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11237      esac
11238      case $ac_var in #(
11239      _ | IFS | as_nl) ;; #(
11240      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11241      *) { eval $ac_var=; unset $ac_var;} ;;
11242      esac ;;
11243    esac
11244  done
11245
11246  (set) 2>&1 |
11247    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11248    *${as_nl}ac_space=\ *)
11249      # `set' does not quote correctly, so add quotes: double-quote
11250      # substitution turns \\\\ into \\, and sed turns \\ into \.
11251      sed -n \
11252	"s/'/'\\\\''/g;
11253	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11254      ;; #(
11255    *)
11256      # `set' quotes correctly as required by POSIX, so do not add quotes.
11257      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11258      ;;
11259    esac |
11260    sort
11261) |
11262  sed '
11263     /^ac_cv_env_/b end
11264     t clear
11265     :clear
11266     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11267     t end
11268     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11269     :end' >>confcache
11270if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11271  if test -w "$cache_file"; then
11272    if test "x$cache_file" != "x/dev/null"; then
11273      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11274printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11275      if test ! -f "$cache_file" || test -h "$cache_file"; then
11276	cat confcache >"$cache_file"
11277      else
11278        case $cache_file in #(
11279        */* | ?:*)
11280	  mv -f confcache "$cache_file"$$ &&
11281	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11282        *)
11283	  mv -f confcache "$cache_file" ;;
11284	esac
11285      fi
11286    fi
11287  else
11288    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11289printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11290  fi
11291fi
11292rm -f confcache
11293
11294test "x$prefix" = xNONE && prefix=$ac_default_prefix
11295# Let make expand exec_prefix.
11296test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11297
11298DEFS=-DHAVE_CONFIG_H
11299
11300ac_libobjs=
11301ac_ltlibobjs=
11302U=
11303for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11304  # 1. Remove the extension, and $U if already installed.
11305  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11306  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11307  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11308  #    will be set to the directory where LIBOBJS objects are built.
11309  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11310  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11311done
11312LIBOBJS=$ac_libobjs
11313
11314LTLIBOBJS=$ac_ltlibobjs
11315
11316
11317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11318printf %s "checking that generated files are newer than configure... " >&6; }
11319   if test -n "$am_sleep_pid"; then
11320     # Hide warnings about reused PIDs.
11321     wait $am_sleep_pid 2>/dev/null
11322   fi
11323   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11324printf "%s\n" "done" >&6; }
11325 if test -n "$EXEEXT"; then
11326  am__EXEEXT_TRUE=
11327  am__EXEEXT_FALSE='#'
11328else
11329  am__EXEEXT_TRUE='#'
11330  am__EXEEXT_FALSE=
11331fi
11332
11333if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11334  as_fn_error $? "conditional \"AMDEP\" was never defined.
11335Usually this means the macro was only invoked conditionally." "$LINENO" 5
11336fi
11337if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11338  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11339Usually this means the macro was only invoked conditionally." "$LINENO" 5
11340fi
11341
11342: "${CONFIG_STATUS=./config.status}"
11343ac_write_fail=0
11344ac_clean_files_save=$ac_clean_files
11345ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11347printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11348as_write_fail=0
11349cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11350#! $SHELL
11351# Generated by $as_me.
11352# Run this file to recreate the current configuration.
11353# Compiler output produced by configure, useful for debugging
11354# configure, is in config.log if it exists.
11355
11356debug=false
11357ac_cs_recheck=false
11358ac_cs_silent=false
11359
11360SHELL=\${CONFIG_SHELL-$SHELL}
11361export SHELL
11362_ASEOF
11363cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11364## -------------------- ##
11365## M4sh Initialization. ##
11366## -------------------- ##
11367
11368# Be more Bourne compatible
11369DUALCASE=1; export DUALCASE # for MKS sh
11370as_nop=:
11371if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11372then :
11373  emulate sh
11374  NULLCMD=:
11375  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11376  # is contrary to our usage.  Disable this feature.
11377  alias -g '${1+"$@"}'='"$@"'
11378  setopt NO_GLOB_SUBST
11379else $as_nop
11380  case `(set -o) 2>/dev/null` in #(
11381  *posix*) :
11382    set -o posix ;; #(
11383  *) :
11384     ;;
11385esac
11386fi
11387
11388
11389
11390# Reset variables that may have inherited troublesome values from
11391# the environment.
11392
11393# IFS needs to be set, to space, tab, and newline, in precisely that order.
11394# (If _AS_PATH_WALK were called with IFS unset, it would have the
11395# side effect of setting IFS to empty, thus disabling word splitting.)
11396# Quoting is to prevent editors from complaining about space-tab.
11397as_nl='
11398'
11399export as_nl
11400IFS=" ""	$as_nl"
11401
11402PS1='$ '
11403PS2='> '
11404PS4='+ '
11405
11406# Ensure predictable behavior from utilities with locale-dependent output.
11407LC_ALL=C
11408export LC_ALL
11409LANGUAGE=C
11410export LANGUAGE
11411
11412# We cannot yet rely on "unset" to work, but we need these variables
11413# to be unset--not just set to an empty or harmless value--now, to
11414# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11415# also avoids known problems related to "unset" and subshell syntax
11416# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11417for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11418do eval test \${$as_var+y} \
11419  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11420done
11421
11422# Ensure that fds 0, 1, and 2 are open.
11423if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11424if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11425if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11426
11427# The user is always right.
11428if ${PATH_SEPARATOR+false} :; then
11429  PATH_SEPARATOR=:
11430  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11431    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11432      PATH_SEPARATOR=';'
11433  }
11434fi
11435
11436
11437# Find who we are.  Look in the path if we contain no directory separator.
11438as_myself=
11439case $0 in #((
11440  *[\\/]* ) as_myself=$0 ;;
11441  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442for as_dir in $PATH
11443do
11444  IFS=$as_save_IFS
11445  case $as_dir in #(((
11446    '') as_dir=./ ;;
11447    */) ;;
11448    *) as_dir=$as_dir/ ;;
11449  esac
11450    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11451  done
11452IFS=$as_save_IFS
11453
11454     ;;
11455esac
11456# We did not find ourselves, most probably we were run as `sh COMMAND'
11457# in which case we are not to be found in the path.
11458if test "x$as_myself" = x; then
11459  as_myself=$0
11460fi
11461if test ! -f "$as_myself"; then
11462  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11463  exit 1
11464fi
11465
11466
11467
11468# as_fn_error STATUS ERROR [LINENO LOG_FD]
11469# ----------------------------------------
11470# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11471# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11472# script with STATUS, using 1 if that was 0.
11473as_fn_error ()
11474{
11475  as_status=$1; test $as_status -eq 0 && as_status=1
11476  if test "$4"; then
11477    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11478    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11479  fi
11480  printf "%s\n" "$as_me: error: $2" >&2
11481  as_fn_exit $as_status
11482} # as_fn_error
11483
11484
11485
11486# as_fn_set_status STATUS
11487# -----------------------
11488# Set $? to STATUS, without forking.
11489as_fn_set_status ()
11490{
11491  return $1
11492} # as_fn_set_status
11493
11494# as_fn_exit STATUS
11495# -----------------
11496# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11497as_fn_exit ()
11498{
11499  set +e
11500  as_fn_set_status $1
11501  exit $1
11502} # as_fn_exit
11503
11504# as_fn_unset VAR
11505# ---------------
11506# Portably unset VAR.
11507as_fn_unset ()
11508{
11509  { eval $1=; unset $1;}
11510}
11511as_unset=as_fn_unset
11512
11513# as_fn_append VAR VALUE
11514# ----------------------
11515# Append the text in VALUE to the end of the definition contained in VAR. Take
11516# advantage of any shell optimizations that allow amortized linear growth over
11517# repeated appends, instead of the typical quadratic growth present in naive
11518# implementations.
11519if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11520then :
11521  eval 'as_fn_append ()
11522  {
11523    eval $1+=\$2
11524  }'
11525else $as_nop
11526  as_fn_append ()
11527  {
11528    eval $1=\$$1\$2
11529  }
11530fi # as_fn_append
11531
11532# as_fn_arith ARG...
11533# ------------------
11534# Perform arithmetic evaluation on the ARGs, and store the result in the
11535# global $as_val. Take advantage of shells that can avoid forks. The arguments
11536# must be portable across $(()) and expr.
11537if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11538then :
11539  eval 'as_fn_arith ()
11540  {
11541    as_val=$(( $* ))
11542  }'
11543else $as_nop
11544  as_fn_arith ()
11545  {
11546    as_val=`expr "$@" || test $? -eq 1`
11547  }
11548fi # as_fn_arith
11549
11550
11551if expr a : '\(a\)' >/dev/null 2>&1 &&
11552   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11553  as_expr=expr
11554else
11555  as_expr=false
11556fi
11557
11558if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11559  as_basename=basename
11560else
11561  as_basename=false
11562fi
11563
11564if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11565  as_dirname=dirname
11566else
11567  as_dirname=false
11568fi
11569
11570as_me=`$as_basename -- "$0" ||
11571$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11572	 X"$0" : 'X\(//\)$' \| \
11573	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11574printf "%s\n" X/"$0" |
11575    sed '/^.*\/\([^/][^/]*\)\/*$/{
11576	    s//\1/
11577	    q
11578	  }
11579	  /^X\/\(\/\/\)$/{
11580	    s//\1/
11581	    q
11582	  }
11583	  /^X\/\(\/\).*/{
11584	    s//\1/
11585	    q
11586	  }
11587	  s/.*/./; q'`
11588
11589# Avoid depending upon Character Ranges.
11590as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11591as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11592as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11593as_cr_digits='0123456789'
11594as_cr_alnum=$as_cr_Letters$as_cr_digits
11595
11596
11597# Determine whether it's possible to make 'echo' print without a newline.
11598# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11599# for compatibility with existing Makefiles.
11600ECHO_C= ECHO_N= ECHO_T=
11601case `echo -n x` in #(((((
11602-n*)
11603  case `echo 'xy\c'` in
11604  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11605  xy)  ECHO_C='\c';;
11606  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11607       ECHO_T='	';;
11608  esac;;
11609*)
11610  ECHO_N='-n';;
11611esac
11612
11613# For backward compatibility with old third-party macros, we provide
11614# the shell variables $as_echo and $as_echo_n.  New code should use
11615# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11616as_echo='printf %s\n'
11617as_echo_n='printf %s'
11618
11619rm -f conf$$ conf$$.exe conf$$.file
11620if test -d conf$$.dir; then
11621  rm -f conf$$.dir/conf$$.file
11622else
11623  rm -f conf$$.dir
11624  mkdir conf$$.dir 2>/dev/null
11625fi
11626if (echo >conf$$.file) 2>/dev/null; then
11627  if ln -s conf$$.file conf$$ 2>/dev/null; then
11628    as_ln_s='ln -s'
11629    # ... but there are two gotchas:
11630    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11631    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11632    # In both cases, we have to default to `cp -pR'.
11633    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11634      as_ln_s='cp -pR'
11635  elif ln conf$$.file conf$$ 2>/dev/null; then
11636    as_ln_s=ln
11637  else
11638    as_ln_s='cp -pR'
11639  fi
11640else
11641  as_ln_s='cp -pR'
11642fi
11643rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11644rmdir conf$$.dir 2>/dev/null
11645
11646
11647# as_fn_mkdir_p
11648# -------------
11649# Create "$as_dir" as a directory, including parents if necessary.
11650as_fn_mkdir_p ()
11651{
11652
11653  case $as_dir in #(
11654  -*) as_dir=./$as_dir;;
11655  esac
11656  test -d "$as_dir" || eval $as_mkdir_p || {
11657    as_dirs=
11658    while :; do
11659      case $as_dir in #(
11660      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11661      *) as_qdir=$as_dir;;
11662      esac
11663      as_dirs="'$as_qdir' $as_dirs"
11664      as_dir=`$as_dirname -- "$as_dir" ||
11665$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11666	 X"$as_dir" : 'X\(//\)[^/]' \| \
11667	 X"$as_dir" : 'X\(//\)$' \| \
11668	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11669printf "%s\n" X"$as_dir" |
11670    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11671	    s//\1/
11672	    q
11673	  }
11674	  /^X\(\/\/\)[^/].*/{
11675	    s//\1/
11676	    q
11677	  }
11678	  /^X\(\/\/\)$/{
11679	    s//\1/
11680	    q
11681	  }
11682	  /^X\(\/\).*/{
11683	    s//\1/
11684	    q
11685	  }
11686	  s/.*/./; q'`
11687      test -d "$as_dir" && break
11688    done
11689    test -z "$as_dirs" || eval "mkdir $as_dirs"
11690  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11691
11692
11693} # as_fn_mkdir_p
11694if mkdir -p . 2>/dev/null; then
11695  as_mkdir_p='mkdir -p "$as_dir"'
11696else
11697  test -d ./-p && rmdir ./-p
11698  as_mkdir_p=false
11699fi
11700
11701
11702# as_fn_executable_p FILE
11703# -----------------------
11704# Test if FILE is an executable regular file.
11705as_fn_executable_p ()
11706{
11707  test -f "$1" && test -x "$1"
11708} # as_fn_executable_p
11709as_test_x='test -x'
11710as_executable_p=as_fn_executable_p
11711
11712# Sed expression to map a string onto a valid CPP name.
11713as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11714
11715# Sed expression to map a string onto a valid variable name.
11716as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11717
11718
11719exec 6>&1
11720## ----------------------------------- ##
11721## Main body of $CONFIG_STATUS script. ##
11722## ----------------------------------- ##
11723_ASEOF
11724test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11725
11726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11727# Save the log message, to keep $0 and so on meaningful, and to
11728# report actual input values of CONFIG_FILES etc. instead of their
11729# values after options handling.
11730ac_log="
11731This file was extended by viewres $as_me 1.0.7, which was
11732generated by GNU Autoconf 2.71.  Invocation command line was
11733
11734  CONFIG_FILES    = $CONFIG_FILES
11735  CONFIG_HEADERS  = $CONFIG_HEADERS
11736  CONFIG_LINKS    = $CONFIG_LINKS
11737  CONFIG_COMMANDS = $CONFIG_COMMANDS
11738  $ $0 $@
11739
11740on `(hostname || uname -n) 2>/dev/null | sed 1q`
11741"
11742
11743_ACEOF
11744
11745case $ac_config_files in *"
11746"*) set x $ac_config_files; shift; ac_config_files=$*;;
11747esac
11748
11749case $ac_config_headers in *"
11750"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11751esac
11752
11753
11754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11755# Files that config.status was made for.
11756config_files="$ac_config_files"
11757config_headers="$ac_config_headers"
11758config_commands="$ac_config_commands"
11759
11760_ACEOF
11761
11762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11763ac_cs_usage="\
11764\`$as_me' instantiates files and other configuration actions
11765from templates according to the current configuration.  Unless the files
11766and actions are specified as TAGs, all are instantiated by default.
11767
11768Usage: $0 [OPTION]... [TAG]...
11769
11770  -h, --help       print this help, then exit
11771  -V, --version    print version number and configuration settings, then exit
11772      --config     print configuration, then exit
11773  -q, --quiet, --silent
11774                   do not print progress messages
11775  -d, --debug      don't remove temporary files
11776      --recheck    update $as_me by reconfiguring in the same conditions
11777      --file=FILE[:TEMPLATE]
11778                   instantiate the configuration file FILE
11779      --header=FILE[:TEMPLATE]
11780                   instantiate the configuration header FILE
11781
11782Configuration files:
11783$config_files
11784
11785Configuration headers:
11786$config_headers
11787
11788Configuration commands:
11789$config_commands
11790
11791Report bugs to <https://gitlab.freedesktop.org/xorg/app/viewres/-/issues>."
11792
11793_ACEOF
11794ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11795ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11797ac_cs_config='$ac_cs_config_escaped'
11798ac_cs_version="\\
11799viewres config.status 1.0.7
11800configured by $0, generated by GNU Autoconf 2.71,
11801  with options \\"\$ac_cs_config\\"
11802
11803Copyright (C) 2021 Free Software Foundation, Inc.
11804This config.status script is free software; the Free Software Foundation
11805gives unlimited permission to copy, distribute and modify it."
11806
11807ac_pwd='$ac_pwd'
11808srcdir='$srcdir'
11809INSTALL='$INSTALL'
11810MKDIR_P='$MKDIR_P'
11811AWK='$AWK'
11812test -n "\$AWK" || AWK=awk
11813_ACEOF
11814
11815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11816# The default lists apply if the user does not specify any file.
11817ac_need_defaults=:
11818while test $# != 0
11819do
11820  case $1 in
11821  --*=?*)
11822    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11823    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11824    ac_shift=:
11825    ;;
11826  --*=)
11827    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11828    ac_optarg=
11829    ac_shift=:
11830    ;;
11831  *)
11832    ac_option=$1
11833    ac_optarg=$2
11834    ac_shift=shift
11835    ;;
11836  esac
11837
11838  case $ac_option in
11839  # Handling of the options.
11840  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11841    ac_cs_recheck=: ;;
11842  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11843    printf "%s\n" "$ac_cs_version"; exit ;;
11844  --config | --confi | --conf | --con | --co | --c )
11845    printf "%s\n" "$ac_cs_config"; exit ;;
11846  --debug | --debu | --deb | --de | --d | -d )
11847    debug=: ;;
11848  --file | --fil | --fi | --f )
11849    $ac_shift
11850    case $ac_optarg in
11851    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11852    '') as_fn_error $? "missing file argument" ;;
11853    esac
11854    as_fn_append CONFIG_FILES " '$ac_optarg'"
11855    ac_need_defaults=false;;
11856  --header | --heade | --head | --hea )
11857    $ac_shift
11858    case $ac_optarg in
11859    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11860    esac
11861    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11862    ac_need_defaults=false;;
11863  --he | --h)
11864    # Conflict between --help and --header
11865    as_fn_error $? "ambiguous option: \`$1'
11866Try \`$0 --help' for more information.";;
11867  --help | --hel | -h )
11868    printf "%s\n" "$ac_cs_usage"; exit ;;
11869  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11870  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11871    ac_cs_silent=: ;;
11872
11873  # This is an error.
11874  -*) as_fn_error $? "unrecognized option: \`$1'
11875Try \`$0 --help' for more information." ;;
11876
11877  *) as_fn_append ac_config_targets " $1"
11878     ac_need_defaults=false ;;
11879
11880  esac
11881  shift
11882done
11883
11884ac_configure_extra_args=
11885
11886if $ac_cs_silent; then
11887  exec 6>/dev/null
11888  ac_configure_extra_args="$ac_configure_extra_args --silent"
11889fi
11890
11891_ACEOF
11892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11893if \$ac_cs_recheck; then
11894  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11895  shift
11896  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11897  CONFIG_SHELL='$SHELL'
11898  export CONFIG_SHELL
11899  exec "\$@"
11900fi
11901
11902_ACEOF
11903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11904exec 5>>config.log
11905{
11906  echo
11907  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11908## Running $as_me. ##
11909_ASBOX
11910  printf "%s\n" "$ac_log"
11911} >&5
11912
11913_ACEOF
11914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11915#
11916# INIT-COMMANDS
11917#
11918AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11919
11920_ACEOF
11921
11922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11923
11924# Handling of arguments.
11925for ac_config_target in $ac_config_targets
11926do
11927  case $ac_config_target in
11928    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11929    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11930    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11931    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11932
11933  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11934  esac
11935done
11936
11937
11938# If the user did not use the arguments to specify the items to instantiate,
11939# then the envvar interface is used.  Set only those that are not.
11940# We use the long form for the default assignment because of an extremely
11941# bizarre bug on SunOS 4.1.3.
11942if $ac_need_defaults; then
11943  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11944  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11945  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11946fi
11947
11948# Have a temporary directory for convenience.  Make it in the build tree
11949# simply because there is no reason against having it here, and in addition,
11950# creating and moving files from /tmp can sometimes cause problems.
11951# Hook for its removal unless debugging.
11952# Note that there is a small window in which the directory will not be cleaned:
11953# after its creation but before its name has been assigned to `$tmp'.
11954$debug ||
11955{
11956  tmp= ac_tmp=
11957  trap 'exit_status=$?
11958  : "${ac_tmp:=$tmp}"
11959  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11960' 0
11961  trap 'as_fn_exit 1' 1 2 13 15
11962}
11963# Create a (secure) tmp directory for tmp files.
11964
11965{
11966  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11967  test -d "$tmp"
11968}  ||
11969{
11970  tmp=./conf$$-$RANDOM
11971  (umask 077 && mkdir "$tmp")
11972} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11973ac_tmp=$tmp
11974
11975# Set up the scripts for CONFIG_FILES section.
11976# No need to generate them if there are no CONFIG_FILES.
11977# This happens for instance with `./config.status config.h'.
11978if test -n "$CONFIG_FILES"; then
11979
11980
11981ac_cr=`echo X | tr X '\015'`
11982# On cygwin, bash can eat \r inside `` if the user requested igncr.
11983# But we know of no other shell where ac_cr would be empty at this
11984# point, so we can use a bashism as a fallback.
11985if test "x$ac_cr" = x; then
11986  eval ac_cr=\$\'\\r\'
11987fi
11988ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11989if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11990  ac_cs_awk_cr='\\r'
11991else
11992  ac_cs_awk_cr=$ac_cr
11993fi
11994
11995echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11996_ACEOF
11997
11998
11999{
12000  echo "cat >conf$$subs.awk <<_ACEOF" &&
12001  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12002  echo "_ACEOF"
12003} >conf$$subs.sh ||
12004  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12005ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12006ac_delim='%!_!# '
12007for ac_last_try in false false false false false :; do
12008  . ./conf$$subs.sh ||
12009    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12010
12011  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12012  if test $ac_delim_n = $ac_delim_num; then
12013    break
12014  elif $ac_last_try; then
12015    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12016  else
12017    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12018  fi
12019done
12020rm -f conf$$subs.sh
12021
12022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12023cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12024_ACEOF
12025sed -n '
12026h
12027s/^/S["/; s/!.*/"]=/
12028p
12029g
12030s/^[^!]*!//
12031:repl
12032t repl
12033s/'"$ac_delim"'$//
12034t delim
12035:nl
12036h
12037s/\(.\{148\}\)..*/\1/
12038t more1
12039s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12040p
12041n
12042b repl
12043:more1
12044s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12045p
12046g
12047s/.\{148\}//
12048t nl
12049:delim
12050h
12051s/\(.\{148\}\)..*/\1/
12052t more2
12053s/["\\]/\\&/g; s/^/"/; s/$/"/
12054p
12055b
12056:more2
12057s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12058p
12059g
12060s/.\{148\}//
12061t delim
12062' <conf$$subs.awk | sed '
12063/^[^""]/{
12064  N
12065  s/\n//
12066}
12067' >>$CONFIG_STATUS || ac_write_fail=1
12068rm -f conf$$subs.awk
12069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12070_ACAWK
12071cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12072  for (key in S) S_is_set[key] = 1
12073  FS = ""
12074
12075}
12076{
12077  line = $ 0
12078  nfields = split(line, field, "@")
12079  substed = 0
12080  len = length(field[1])
12081  for (i = 2; i < nfields; i++) {
12082    key = field[i]
12083    keylen = length(key)
12084    if (S_is_set[key]) {
12085      value = S[key]
12086      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12087      len += length(value) + length(field[++i])
12088      substed = 1
12089    } else
12090      len += 1 + keylen
12091  }
12092
12093  print line
12094}
12095
12096_ACAWK
12097_ACEOF
12098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12099if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12100  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12101else
12102  cat
12103fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12104  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12105_ACEOF
12106
12107# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12108# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12109# trailing colons and then remove the whole line if VPATH becomes empty
12110# (actually we leave an empty line to preserve line numbers).
12111if test "x$srcdir" = x.; then
12112  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12113h
12114s///
12115s/^/:/
12116s/[	 ]*$/:/
12117s/:\$(srcdir):/:/g
12118s/:\${srcdir}:/:/g
12119s/:@srcdir@:/:/g
12120s/^:*//
12121s/:*$//
12122x
12123s/\(=[	 ]*\).*/\1/
12124G
12125s/\n//
12126s/^[^=]*=[	 ]*$//
12127}'
12128fi
12129
12130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12131fi # test -n "$CONFIG_FILES"
12132
12133# Set up the scripts for CONFIG_HEADERS section.
12134# No need to generate them if there are no CONFIG_HEADERS.
12135# This happens for instance with `./config.status Makefile'.
12136if test -n "$CONFIG_HEADERS"; then
12137cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12138BEGIN {
12139_ACEOF
12140
12141# Transform confdefs.h into an awk script `defines.awk', embedded as
12142# here-document in config.status, that substitutes the proper values into
12143# config.h.in to produce config.h.
12144
12145# Create a delimiter string that does not exist in confdefs.h, to ease
12146# handling of long lines.
12147ac_delim='%!_!# '
12148for ac_last_try in false false :; do
12149  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12150  if test -z "$ac_tt"; then
12151    break
12152  elif $ac_last_try; then
12153    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12154  else
12155    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12156  fi
12157done
12158
12159# For the awk script, D is an array of macro values keyed by name,
12160# likewise P contains macro parameters if any.  Preserve backslash
12161# newline sequences.
12162
12163ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12164sed -n '
12165s/.\{148\}/&'"$ac_delim"'/g
12166t rset
12167:rset
12168s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12169t def
12170d
12171:def
12172s/\\$//
12173t bsnl
12174s/["\\]/\\&/g
12175s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12176D["\1"]=" \3"/p
12177s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12178d
12179:bsnl
12180s/["\\]/\\&/g
12181s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12182D["\1"]=" \3\\\\\\n"\\/p
12183t cont
12184s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12185t cont
12186d
12187:cont
12188n
12189s/.\{148\}/&'"$ac_delim"'/g
12190t clear
12191:clear
12192s/\\$//
12193t bsnlc
12194s/["\\]/\\&/g; s/^/"/; s/$/"/p
12195d
12196:bsnlc
12197s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12198b cont
12199' <confdefs.h | sed '
12200s/'"$ac_delim"'/"\\\
12201"/g' >>$CONFIG_STATUS || ac_write_fail=1
12202
12203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12204  for (key in D) D_is_set[key] = 1
12205  FS = ""
12206}
12207/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12208  line = \$ 0
12209  split(line, arg, " ")
12210  if (arg[1] == "#") {
12211    defundef = arg[2]
12212    mac1 = arg[3]
12213  } else {
12214    defundef = substr(arg[1], 2)
12215    mac1 = arg[2]
12216  }
12217  split(mac1, mac2, "(") #)
12218  macro = mac2[1]
12219  prefix = substr(line, 1, index(line, defundef) - 1)
12220  if (D_is_set[macro]) {
12221    # Preserve the white space surrounding the "#".
12222    print prefix "define", macro P[macro] D[macro]
12223    next
12224  } else {
12225    # Replace #undef with comments.  This is necessary, for example,
12226    # in the case of _POSIX_SOURCE, which is predefined and required
12227    # on some systems where configure will not decide to define it.
12228    if (defundef == "undef") {
12229      print "/*", prefix defundef, macro, "*/"
12230      next
12231    }
12232  }
12233}
12234{ print }
12235_ACAWK
12236_ACEOF
12237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12238  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12239fi # test -n "$CONFIG_HEADERS"
12240
12241
12242eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12243shift
12244for ac_tag
12245do
12246  case $ac_tag in
12247  :[FHLC]) ac_mode=$ac_tag; continue;;
12248  esac
12249  case $ac_mode$ac_tag in
12250  :[FHL]*:*);;
12251  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12252  :[FH]-) ac_tag=-:-;;
12253  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12254  esac
12255  ac_save_IFS=$IFS
12256  IFS=:
12257  set x $ac_tag
12258  IFS=$ac_save_IFS
12259  shift
12260  ac_file=$1
12261  shift
12262
12263  case $ac_mode in
12264  :L) ac_source=$1;;
12265  :[FH])
12266    ac_file_inputs=
12267    for ac_f
12268    do
12269      case $ac_f in
12270      -) ac_f="$ac_tmp/stdin";;
12271      *) # Look for the file first in the build tree, then in the source tree
12272	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12273	 # because $ac_f cannot contain `:'.
12274	 test -f "$ac_f" ||
12275	   case $ac_f in
12276	   [\\/$]*) false;;
12277	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12278	   esac ||
12279	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12280      esac
12281      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12282      as_fn_append ac_file_inputs " '$ac_f'"
12283    done
12284
12285    # Let's still pretend it is `configure' which instantiates (i.e., don't
12286    # use $as_me), people would be surprised to read:
12287    #    /* config.h.  Generated by config.status.  */
12288    configure_input='Generated from '`
12289	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12290	`' by configure.'
12291    if test x"$ac_file" != x-; then
12292      configure_input="$ac_file.  $configure_input"
12293      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12294printf "%s\n" "$as_me: creating $ac_file" >&6;}
12295    fi
12296    # Neutralize special characters interpreted by sed in replacement strings.
12297    case $configure_input in #(
12298    *\&* | *\|* | *\\* )
12299       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12300       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12301    *) ac_sed_conf_input=$configure_input;;
12302    esac
12303
12304    case $ac_tag in
12305    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12306      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12307    esac
12308    ;;
12309  esac
12310
12311  ac_dir=`$as_dirname -- "$ac_file" ||
12312$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12313	 X"$ac_file" : 'X\(//\)[^/]' \| \
12314	 X"$ac_file" : 'X\(//\)$' \| \
12315	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12316printf "%s\n" X"$ac_file" |
12317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12318	    s//\1/
12319	    q
12320	  }
12321	  /^X\(\/\/\)[^/].*/{
12322	    s//\1/
12323	    q
12324	  }
12325	  /^X\(\/\/\)$/{
12326	    s//\1/
12327	    q
12328	  }
12329	  /^X\(\/\).*/{
12330	    s//\1/
12331	    q
12332	  }
12333	  s/.*/./; q'`
12334  as_dir="$ac_dir"; as_fn_mkdir_p
12335  ac_builddir=.
12336
12337case "$ac_dir" in
12338.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12339*)
12340  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12341  # A ".." for each directory in $ac_dir_suffix.
12342  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12343  case $ac_top_builddir_sub in
12344  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12345  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12346  esac ;;
12347esac
12348ac_abs_top_builddir=$ac_pwd
12349ac_abs_builddir=$ac_pwd$ac_dir_suffix
12350# for backward compatibility:
12351ac_top_builddir=$ac_top_build_prefix
12352
12353case $srcdir in
12354  .)  # We are building in place.
12355    ac_srcdir=.
12356    ac_top_srcdir=$ac_top_builddir_sub
12357    ac_abs_top_srcdir=$ac_pwd ;;
12358  [\\/]* | ?:[\\/]* )  # Absolute name.
12359    ac_srcdir=$srcdir$ac_dir_suffix;
12360    ac_top_srcdir=$srcdir
12361    ac_abs_top_srcdir=$srcdir ;;
12362  *) # Relative name.
12363    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12364    ac_top_srcdir=$ac_top_build_prefix$srcdir
12365    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12366esac
12367ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12368
12369
12370  case $ac_mode in
12371  :F)
12372  #
12373  # CONFIG_FILE
12374  #
12375
12376  case $INSTALL in
12377  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12378  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12379  esac
12380  ac_MKDIR_P=$MKDIR_P
12381  case $MKDIR_P in
12382  [\\/$]* | ?:[\\/]* ) ;;
12383  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12384  esac
12385_ACEOF
12386
12387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12388# If the template does not know about datarootdir, expand it.
12389# FIXME: This hack should be removed a few years after 2.60.
12390ac_datarootdir_hack=; ac_datarootdir_seen=
12391ac_sed_dataroot='
12392/datarootdir/ {
12393  p
12394  q
12395}
12396/@datadir@/p
12397/@docdir@/p
12398/@infodir@/p
12399/@localedir@/p
12400/@mandir@/p'
12401case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12402*datarootdir*) ac_datarootdir_seen=yes;;
12403*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12405printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12406_ACEOF
12407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12408  ac_datarootdir_hack='
12409  s&@datadir@&$datadir&g
12410  s&@docdir@&$docdir&g
12411  s&@infodir@&$infodir&g
12412  s&@localedir@&$localedir&g
12413  s&@mandir@&$mandir&g
12414  s&\\\${datarootdir}&$datarootdir&g' ;;
12415esac
12416_ACEOF
12417
12418# Neutralize VPATH when `$srcdir' = `.'.
12419# Shell code in configure.ac might set extrasub.
12420# FIXME: do we really want to maintain this feature?
12421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12422ac_sed_extra="$ac_vpsub
12423$extrasub
12424_ACEOF
12425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12426:t
12427/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12428s|@configure_input@|$ac_sed_conf_input|;t t
12429s&@top_builddir@&$ac_top_builddir_sub&;t t
12430s&@top_build_prefix@&$ac_top_build_prefix&;t t
12431s&@srcdir@&$ac_srcdir&;t t
12432s&@abs_srcdir@&$ac_abs_srcdir&;t t
12433s&@top_srcdir@&$ac_top_srcdir&;t t
12434s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12435s&@builddir@&$ac_builddir&;t t
12436s&@abs_builddir@&$ac_abs_builddir&;t t
12437s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12438s&@INSTALL@&$ac_INSTALL&;t t
12439s&@MKDIR_P@&$ac_MKDIR_P&;t t
12440$ac_datarootdir_hack
12441"
12442eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12443  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12444
12445test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12446  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12447  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12448      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12450which seems to be undefined.  Please make sure it is defined" >&5
12451printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12452which seems to be undefined.  Please make sure it is defined" >&2;}
12453
12454  rm -f "$ac_tmp/stdin"
12455  case $ac_file in
12456  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12457  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12458  esac \
12459  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12460 ;;
12461  :H)
12462  #
12463  # CONFIG_HEADER
12464  #
12465  if test x"$ac_file" != x-; then
12466    {
12467      printf "%s\n" "/* $configure_input  */" >&1 \
12468      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12469    } >"$ac_tmp/config.h" \
12470      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12471    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12472      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12473printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12474    else
12475      rm -f "$ac_file"
12476      mv "$ac_tmp/config.h" "$ac_file" \
12477	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12478    fi
12479  else
12480    printf "%s\n" "/* $configure_input  */" >&1 \
12481      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12482      || as_fn_error $? "could not create -" "$LINENO" 5
12483  fi
12484# Compute "$ac_file"'s index in $config_headers.
12485_am_arg="$ac_file"
12486_am_stamp_count=1
12487for _am_header in $config_headers :; do
12488  case $_am_header in
12489    $_am_arg | $_am_arg:* )
12490      break ;;
12491    * )
12492      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12493  esac
12494done
12495echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12496$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12497	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12498	 X"$_am_arg" : 'X\(//\)$' \| \
12499	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12500printf "%s\n" X"$_am_arg" |
12501    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12502	    s//\1/
12503	    q
12504	  }
12505	  /^X\(\/\/\)[^/].*/{
12506	    s//\1/
12507	    q
12508	  }
12509	  /^X\(\/\/\)$/{
12510	    s//\1/
12511	    q
12512	  }
12513	  /^X\(\/\).*/{
12514	    s//\1/
12515	    q
12516	  }
12517	  s/.*/./; q'`/stamp-h$_am_stamp_count
12518 ;;
12519
12520  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12521printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12522 ;;
12523  esac
12524
12525
12526  case $ac_file$ac_mode in
12527    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12528  # Older Autoconf quotes --file arguments for eval, but not when files
12529  # are listed without --file.  Let's play safe and only enable the eval
12530  # if we detect the quoting.
12531  # TODO: see whether this extra hack can be removed once we start
12532  # requiring Autoconf 2.70 or later.
12533  case $CONFIG_FILES in #(
12534  *\'*) :
12535    eval set x "$CONFIG_FILES" ;; #(
12536  *) :
12537    set x $CONFIG_FILES ;; #(
12538  *) :
12539     ;;
12540esac
12541  shift
12542  # Used to flag and report bootstrapping failures.
12543  am_rc=0
12544  for am_mf
12545  do
12546    # Strip MF so we end up with the name of the file.
12547    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12548    # Check whether this is an Automake generated Makefile which includes
12549    # dependency-tracking related rules and includes.
12550    # Grep'ing the whole file directly is not great: AIX grep has a line
12551    # limit of 2048, but all sed's we know have understand at least 4000.
12552    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12553      || continue
12554    am_dirpart=`$as_dirname -- "$am_mf" ||
12555$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12556	 X"$am_mf" : 'X\(//\)[^/]' \| \
12557	 X"$am_mf" : 'X\(//\)$' \| \
12558	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12559printf "%s\n" X"$am_mf" |
12560    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12561	    s//\1/
12562	    q
12563	  }
12564	  /^X\(\/\/\)[^/].*/{
12565	    s//\1/
12566	    q
12567	  }
12568	  /^X\(\/\/\)$/{
12569	    s//\1/
12570	    q
12571	  }
12572	  /^X\(\/\).*/{
12573	    s//\1/
12574	    q
12575	  }
12576	  s/.*/./; q'`
12577    am_filepart=`$as_basename -- "$am_mf" ||
12578$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12579	 X"$am_mf" : 'X\(//\)$' \| \
12580	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12581printf "%s\n" X/"$am_mf" |
12582    sed '/^.*\/\([^/][^/]*\)\/*$/{
12583	    s//\1/
12584	    q
12585	  }
12586	  /^X\/\(\/\/\)$/{
12587	    s//\1/
12588	    q
12589	  }
12590	  /^X\/\(\/\).*/{
12591	    s//\1/
12592	    q
12593	  }
12594	  s/.*/./; q'`
12595    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12596      && sed -e '/# am--include-marker/d' "$am_filepart" \
12597        | $MAKE -f - am--depfiles" >&5
12598   (cd "$am_dirpart" \
12599      && sed -e '/# am--include-marker/d' "$am_filepart" \
12600        | $MAKE -f - am--depfiles) >&5 2>&5
12601   ac_status=$?
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); } || am_rc=$?
12604  done
12605  if test $am_rc -ne 0; then
12606    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12607printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12608as_fn_error $? "Something went wrong bootstrapping makefile fragments
12609    for automatic dependency tracking.  If GNU make was not used, consider
12610    re-running the configure script with MAKE=\"gmake\" (or whatever is
12611    necessary).  You can also try re-running configure with the
12612    '--disable-dependency-tracking' option to at least be able to build
12613    the package (albeit without support for automatic dependency tracking).
12614See \`config.log' for more details" "$LINENO" 5; }
12615  fi
12616  { am_dirpart=; unset am_dirpart;}
12617  { am_filepart=; unset am_filepart;}
12618  { am_mf=; unset am_mf;}
12619  { am_rc=; unset am_rc;}
12620  rm -f conftest-deps.mk
12621}
12622 ;;
12623
12624  esac
12625done # for ac_tag
12626
12627
12628as_fn_exit 0
12629_ACEOF
12630ac_clean_files=$ac_clean_files_save
12631
12632test $ac_write_fail = 0 ||
12633  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12634
12635
12636# configure is writing to config.log, and then calls config.status.
12637# config.status does its own redirection, appending to config.log.
12638# Unfortunately, on DOS this fails, as config.log is still kept open
12639# by configure, so config.status won't be able to write to it; its
12640# output is simply discarded.  So we exec the FD to /dev/null,
12641# effectively closing config.log, so it can be properly (re)opened and
12642# appended to by config.status.  When coming back to configure, we
12643# need to make the FD available again.
12644if test "$no_create" != yes; then
12645  ac_cs_success=:
12646  ac_config_status_args=
12647  test "$silent" = yes &&
12648    ac_config_status_args="$ac_config_status_args --quiet"
12649  exec 5>/dev/null
12650  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12651  exec 5>>config.log
12652  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12653  # would make configure fail if this is the last instruction.
12654  $ac_cs_success || as_fn_exit 1
12655fi
12656if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12658printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12659fi
12660
12661
12662