configure revision 6dbd43aa
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for viewres 1.0.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='viewres'
563PACKAGE_TARNAME='viewres'
564PACKAGE_VERSION='1.0.4'
565PACKAGE_STRING='viewres 1.0.4'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='am__EXEEXT_FALSE
606am__EXEEXT_TRUE
607LTLIBOBJS
608LIBOBJS
609appdefaultdir
610VIEWRES_LIBS
611VIEWRES_CFLAGS
612AM_BACKSLASH
613AM_DEFAULT_VERBOSITY
614MAN_SUBSTS
615XORG_MAN_PAGE
616ADMIN_MAN_DIR
617DRIVER_MAN_DIR
618MISC_MAN_DIR
619FILE_MAN_DIR
620LIB_MAN_DIR
621APP_MAN_DIR
622ADMIN_MAN_SUFFIX
623DRIVER_MAN_SUFFIX
624MISC_MAN_SUFFIX
625FILE_MAN_SUFFIX
626LIB_MAN_SUFFIX
627APP_MAN_SUFFIX
628SED
629host_os
630host_vendor
631host_cpu
632host
633build_os
634build_vendor
635build_cpu
636build
637INSTALL_CMD
638PKG_CONFIG
639CHANGELOG_CMD
640STRICT_CFLAGS
641CWARNFLAGS
642BASE_CFLAGS
643EGREP
644GREP
645CPP
646am__fastdepCC_FALSE
647am__fastdepCC_TRUE
648CCDEPMODE
649am__nodep
650AMDEPBACKSLASH
651AMDEP_FALSE
652AMDEP_TRUE
653am__quote
654am__include
655DEPDIR
656OBJEXT
657EXEEXT
658ac_ct_CC
659CPPFLAGS
660LDFLAGS
661CFLAGS
662CC
663MAINT
664MAINTAINER_MODE_FALSE
665MAINTAINER_MODE_TRUE
666am__untar
667am__tar
668AMTAR
669am__leading_dot
670SET_MAKE
671AWK
672mkdir_p
673MKDIR_P
674INSTALL_STRIP_PROGRAM
675STRIP
676install_sh
677MAKEINFO
678AUTOHEADER
679AUTOMAKE
680AUTOCONF
681ACLOCAL
682VERSION
683PACKAGE
684CYGPATH_W
685am__isrc
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
689target_alias
690host_alias
691build_alias
692LIBS
693ECHO_T
694ECHO_N
695ECHO_C
696DEFS
697mandir
698localedir
699libdir
700psdir
701pdfdir
702dvidir
703htmldir
704infodir
705docdir
706oldincludedir
707includedir
708localstatedir
709sharedstatedir
710sysconfdir
711datadir
712datarootdir
713libexecdir
714sbindir
715bindir
716program_transform_name
717prefix
718exec_prefix
719PACKAGE_URL
720PACKAGE_BUGREPORT
721PACKAGE_STRING
722PACKAGE_VERSION
723PACKAGE_TARNAME
724PACKAGE_NAME
725PATH_SEPARATOR
726SHELL'
727ac_subst_files=''
728ac_user_opts='
729enable_option_checking
730enable_maintainer_mode
731enable_dependency_tracking
732enable_selective_werror
733enable_strict_compilation
734enable_silent_rules
735with_appdefaultdir
736'
737      ac_precious_vars='build_alias
738host_alias
739target_alias
740CC
741CFLAGS
742LDFLAGS
743LIBS
744CPPFLAGS
745CPP
746PKG_CONFIG
747VIEWRES_CFLAGS
748VIEWRES_LIBS'
749
750
751# Initialize some variables set by options.
752ac_init_help=
753ac_init_version=false
754ac_unrecognized_opts=
755ac_unrecognized_sep=
756# The variables have the same names as the options, with
757# dashes changed to underlines.
758cache_file=/dev/null
759exec_prefix=NONE
760no_create=
761no_recursion=
762prefix=NONE
763program_prefix=NONE
764program_suffix=NONE
765program_transform_name=s,x,x,
766silent=
767site=
768srcdir=
769verbose=
770x_includes=NONE
771x_libraries=NONE
772
773# Installation directory options.
774# These are left unexpanded so users can "make install exec_prefix=/foo"
775# and all the variables that are supposed to be based on exec_prefix
776# by default will actually change.
777# Use braces instead of parens because sh, perl, etc. also accept them.
778# (The list follows the same order as the GNU Coding Standards.)
779bindir='${exec_prefix}/bin'
780sbindir='${exec_prefix}/sbin'
781libexecdir='${exec_prefix}/libexec'
782datarootdir='${prefix}/share'
783datadir='${datarootdir}'
784sysconfdir='${prefix}/etc'
785sharedstatedir='${prefix}/com'
786localstatedir='${prefix}/var'
787includedir='${prefix}/include'
788oldincludedir='/usr/include'
789docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790infodir='${datarootdir}/info'
791htmldir='${docdir}'
792dvidir='${docdir}'
793pdfdir='${docdir}'
794psdir='${docdir}'
795libdir='${exec_prefix}/lib'
796localedir='${datarootdir}/locale'
797mandir='${datarootdir}/man'
798
799ac_prev=
800ac_dashdash=
801for ac_option
802do
803  # If the previous option needs an argument, assign it.
804  if test -n "$ac_prev"; then
805    eval $ac_prev=\$ac_option
806    ac_prev=
807    continue
808  fi
809
810  case $ac_option in
811  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812  *=)   ac_optarg= ;;
813  *)    ac_optarg=yes ;;
814  esac
815
816  # Accept the important Cygnus configure options, so we can diagnose typos.
817
818  case $ac_dashdash$ac_option in
819  --)
820    ac_dashdash=yes ;;
821
822  -bindir | --bindir | --bindi | --bind | --bin | --bi)
823    ac_prev=bindir ;;
824  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825    bindir=$ac_optarg ;;
826
827  -build | --build | --buil | --bui | --bu)
828    ac_prev=build_alias ;;
829  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830    build_alias=$ac_optarg ;;
831
832  -cache-file | --cache-file | --cache-fil | --cache-fi \
833  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834    ac_prev=cache_file ;;
835  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837    cache_file=$ac_optarg ;;
838
839  --config-cache | -C)
840    cache_file=config.cache ;;
841
842  -datadir | --datadir | --datadi | --datad)
843    ac_prev=datadir ;;
844  -datadir=* | --datadir=* | --datadi=* | --datad=*)
845    datadir=$ac_optarg ;;
846
847  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848  | --dataroo | --dataro | --datar)
849    ac_prev=datarootdir ;;
850  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852    datarootdir=$ac_optarg ;;
853
854  -disable-* | --disable-*)
855    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856    # Reject names that are not valid shell variable names.
857    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858      as_fn_error $? "invalid feature name: $ac_useropt"
859    ac_useropt_orig=$ac_useropt
860    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861    case $ac_user_opts in
862      *"
863"enable_$ac_useropt"
864"*) ;;
865      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866	 ac_unrecognized_sep=', ';;
867    esac
868    eval enable_$ac_useropt=no ;;
869
870  -docdir | --docdir | --docdi | --doc | --do)
871    ac_prev=docdir ;;
872  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873    docdir=$ac_optarg ;;
874
875  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876    ac_prev=dvidir ;;
877  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878    dvidir=$ac_optarg ;;
879
880  -enable-* | --enable-*)
881    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882    # Reject names that are not valid shell variable names.
883    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884      as_fn_error $? "invalid feature name: $ac_useropt"
885    ac_useropt_orig=$ac_useropt
886    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887    case $ac_user_opts in
888      *"
889"enable_$ac_useropt"
890"*) ;;
891      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892	 ac_unrecognized_sep=', ';;
893    esac
894    eval enable_$ac_useropt=\$ac_optarg ;;
895
896  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898  | --exec | --exe | --ex)
899    ac_prev=exec_prefix ;;
900  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902  | --exec=* | --exe=* | --ex=*)
903    exec_prefix=$ac_optarg ;;
904
905  -gas | --gas | --ga | --g)
906    # Obsolete; use --with-gas.
907    with_gas=yes ;;
908
909  -help | --help | --hel | --he | -h)
910    ac_init_help=long ;;
911  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912    ac_init_help=recursive ;;
913  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914    ac_init_help=short ;;
915
916  -host | --host | --hos | --ho)
917    ac_prev=host_alias ;;
918  -host=* | --host=* | --hos=* | --ho=*)
919    host_alias=$ac_optarg ;;
920
921  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922    ac_prev=htmldir ;;
923  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924  | --ht=*)
925    htmldir=$ac_optarg ;;
926
927  -includedir | --includedir | --includedi | --included | --include \
928  | --includ | --inclu | --incl | --inc)
929    ac_prev=includedir ;;
930  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931  | --includ=* | --inclu=* | --incl=* | --inc=*)
932    includedir=$ac_optarg ;;
933
934  -infodir | --infodir | --infodi | --infod | --info | --inf)
935    ac_prev=infodir ;;
936  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937    infodir=$ac_optarg ;;
938
939  -libdir | --libdir | --libdi | --libd)
940    ac_prev=libdir ;;
941  -libdir=* | --libdir=* | --libdi=* | --libd=*)
942    libdir=$ac_optarg ;;
943
944  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945  | --libexe | --libex | --libe)
946    ac_prev=libexecdir ;;
947  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948  | --libexe=* | --libex=* | --libe=*)
949    libexecdir=$ac_optarg ;;
950
951  -localedir | --localedir | --localedi | --localed | --locale)
952    ac_prev=localedir ;;
953  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954    localedir=$ac_optarg ;;
955
956  -localstatedir | --localstatedir | --localstatedi | --localstated \
957  | --localstate | --localstat | --localsta | --localst | --locals)
958    ac_prev=localstatedir ;;
959  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961    localstatedir=$ac_optarg ;;
962
963  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964    ac_prev=mandir ;;
965  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966    mandir=$ac_optarg ;;
967
968  -nfp | --nfp | --nf)
969    # Obsolete; use --without-fp.
970    with_fp=no ;;
971
972  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973  | --no-cr | --no-c | -n)
974    no_create=yes ;;
975
976  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978    no_recursion=yes ;;
979
980  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982  | --oldin | --oldi | --old | --ol | --o)
983    ac_prev=oldincludedir ;;
984  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987    oldincludedir=$ac_optarg ;;
988
989  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990    ac_prev=prefix ;;
991  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992    prefix=$ac_optarg ;;
993
994  -program-prefix | --program-prefix | --program-prefi | --program-pref \
995  | --program-pre | --program-pr | --program-p)
996    ac_prev=program_prefix ;;
997  -program-prefix=* | --program-prefix=* | --program-prefi=* \
998  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999    program_prefix=$ac_optarg ;;
1000
1001  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002  | --program-suf | --program-su | --program-s)
1003    ac_prev=program_suffix ;;
1004  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006    program_suffix=$ac_optarg ;;
1007
1008  -program-transform-name | --program-transform-name \
1009  | --program-transform-nam | --program-transform-na \
1010  | --program-transform-n | --program-transform- \
1011  | --program-transform | --program-transfor \
1012  | --program-transfo | --program-transf \
1013  | --program-trans | --program-tran \
1014  | --progr-tra | --program-tr | --program-t)
1015    ac_prev=program_transform_name ;;
1016  -program-transform-name=* | --program-transform-name=* \
1017  | --program-transform-nam=* | --program-transform-na=* \
1018  | --program-transform-n=* | --program-transform-=* \
1019  | --program-transform=* | --program-transfor=* \
1020  | --program-transfo=* | --program-transf=* \
1021  | --program-trans=* | --program-tran=* \
1022  | --progr-tra=* | --program-tr=* | --program-t=*)
1023    program_transform_name=$ac_optarg ;;
1024
1025  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026    ac_prev=pdfdir ;;
1027  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028    pdfdir=$ac_optarg ;;
1029
1030  -psdir | --psdir | --psdi | --psd | --ps)
1031    ac_prev=psdir ;;
1032  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033    psdir=$ac_optarg ;;
1034
1035  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036  | -silent | --silent | --silen | --sile | --sil)
1037    silent=yes ;;
1038
1039  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040    ac_prev=sbindir ;;
1041  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042  | --sbi=* | --sb=*)
1043    sbindir=$ac_optarg ;;
1044
1045  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047  | --sharedst | --shareds | --shared | --share | --shar \
1048  | --sha | --sh)
1049    ac_prev=sharedstatedir ;;
1050  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053  | --sha=* | --sh=*)
1054    sharedstatedir=$ac_optarg ;;
1055
1056  -site | --site | --sit)
1057    ac_prev=site ;;
1058  -site=* | --site=* | --sit=*)
1059    site=$ac_optarg ;;
1060
1061  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062    ac_prev=srcdir ;;
1063  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064    srcdir=$ac_optarg ;;
1065
1066  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067  | --syscon | --sysco | --sysc | --sys | --sy)
1068    ac_prev=sysconfdir ;;
1069  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071    sysconfdir=$ac_optarg ;;
1072
1073  -target | --target | --targe | --targ | --tar | --ta | --t)
1074    ac_prev=target_alias ;;
1075  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076    target_alias=$ac_optarg ;;
1077
1078  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079    verbose=yes ;;
1080
1081  -version | --version | --versio | --versi | --vers | -V)
1082    ac_init_version=: ;;
1083
1084  -with-* | --with-*)
1085    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086    # Reject names that are not valid shell variable names.
1087    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088      as_fn_error $? "invalid package name: $ac_useropt"
1089    ac_useropt_orig=$ac_useropt
1090    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091    case $ac_user_opts in
1092      *"
1093"with_$ac_useropt"
1094"*) ;;
1095      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096	 ac_unrecognized_sep=', ';;
1097    esac
1098    eval with_$ac_useropt=\$ac_optarg ;;
1099
1100  -without-* | --without-*)
1101    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102    # Reject names that are not valid shell variable names.
1103    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104      as_fn_error $? "invalid package name: $ac_useropt"
1105    ac_useropt_orig=$ac_useropt
1106    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107    case $ac_user_opts in
1108      *"
1109"with_$ac_useropt"
1110"*) ;;
1111      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112	 ac_unrecognized_sep=', ';;
1113    esac
1114    eval with_$ac_useropt=no ;;
1115
1116  --x)
1117    # Obsolete; use --with-x.
1118    with_x=yes ;;
1119
1120  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121  | --x-incl | --x-inc | --x-in | --x-i)
1122    ac_prev=x_includes ;;
1123  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125    x_includes=$ac_optarg ;;
1126
1127  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129    ac_prev=x_libraries ;;
1130  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132    x_libraries=$ac_optarg ;;
1133
1134  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1135Try \`$0 --help' for more information"
1136    ;;
1137
1138  *=*)
1139    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140    # Reject names that are not valid shell variable names.
1141    case $ac_envvar in #(
1142      '' | [0-9]* | *[!_$as_cr_alnum]* )
1143      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1144    esac
1145    eval $ac_envvar=\$ac_optarg
1146    export $ac_envvar ;;
1147
1148  *)
1149    # FIXME: should be removed in autoconf 3.0.
1150    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1154    ;;
1155
1156  esac
1157done
1158
1159if test -n "$ac_prev"; then
1160  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161  as_fn_error $? "missing argument to $ac_option"
1162fi
1163
1164if test -n "$ac_unrecognized_opts"; then
1165  case $enable_option_checking in
1166    no) ;;
1167    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1168    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169  esac
1170fi
1171
1172# Check all directory arguments for consistency.
1173for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174		datadir sysconfdir sharedstatedir localstatedir includedir \
1175		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176		libdir localedir mandir
1177do
1178  eval ac_val=\$$ac_var
1179  # Remove trailing slashes.
1180  case $ac_val in
1181    */ )
1182      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183      eval $ac_var=\$ac_val;;
1184  esac
1185  # Be sure to have absolute directory names.
1186  case $ac_val in
1187    [\\/$]* | ?:[\\/]* )  continue;;
1188    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189  esac
1190  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1191done
1192
1193# There might be people who depend on the old broken behavior: `$host'
1194# used to hold the argument of --host etc.
1195# FIXME: To remove some day.
1196build=$build_alias
1197host=$host_alias
1198target=$target_alias
1199
1200# FIXME: To remove some day.
1201if test "x$host_alias" != x; then
1202  if test "x$build_alias" = x; then
1203    cross_compiling=maybe
1204    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1205    If a cross compiler is detected then cross compile mode will be used" >&2
1206  elif test "x$build_alias" != "x$host_alias"; then
1207    cross_compiling=yes
1208  fi
1209fi
1210
1211ac_tool_prefix=
1212test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214test "$silent" = yes && exec 6>/dev/null
1215
1216
1217ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218ac_ls_di=`ls -di .` &&
1219ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220  as_fn_error $? "working directory cannot be determined"
1221test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222  as_fn_error $? "pwd does not report name of working directory"
1223
1224
1225# Find the source files, if location was not specified.
1226if test -z "$srcdir"; then
1227  ac_srcdir_defaulted=yes
1228  # Try the directory containing this script, then the parent directory.
1229  ac_confdir=`$as_dirname -- "$as_myself" ||
1230$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231	 X"$as_myself" : 'X\(//\)[^/]' \| \
1232	 X"$as_myself" : 'X\(//\)$' \| \
1233	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234$as_echo X"$as_myself" |
1235    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236	    s//\1/
1237	    q
1238	  }
1239	  /^X\(\/\/\)[^/].*/{
1240	    s//\1/
1241	    q
1242	  }
1243	  /^X\(\/\/\)$/{
1244	    s//\1/
1245	    q
1246	  }
1247	  /^X\(\/\).*/{
1248	    s//\1/
1249	    q
1250	  }
1251	  s/.*/./; q'`
1252  srcdir=$ac_confdir
1253  if test ! -r "$srcdir/$ac_unique_file"; then
1254    srcdir=..
1255  fi
1256else
1257  ac_srcdir_defaulted=no
1258fi
1259if test ! -r "$srcdir/$ac_unique_file"; then
1260  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1262fi
1263ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264ac_abs_confdir=`(
1265	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1266	pwd)`
1267# When building in place, set srcdir=.
1268if test "$ac_abs_confdir" = "$ac_pwd"; then
1269  srcdir=.
1270fi
1271# Remove unnecessary trailing slashes from srcdir.
1272# Double slashes in file names in object file debugging info
1273# mess up M-x gdb in Emacs.
1274case $srcdir in
1275*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276esac
1277for ac_var in $ac_precious_vars; do
1278  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279  eval ac_env_${ac_var}_value=\$${ac_var}
1280  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282done
1283
1284#
1285# Report the --help message.
1286#
1287if test "$ac_init_help" = "long"; then
1288  # Omit some internal or obsolete options to make the list less imposing.
1289  # This message is too long to be a string in the A/UX 3.1 sh.
1290  cat <<_ACEOF
1291\`configure' configures viewres 1.0.4 to adapt to many kinds of systems.
1292
1293Usage: $0 [OPTION]... [VAR=VALUE]...
1294
1295To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296VAR=VALUE.  See below for descriptions of some of the useful variables.
1297
1298Defaults for the options are specified in brackets.
1299
1300Configuration:
1301  -h, --help              display this help and exit
1302      --help=short        display options specific to this package
1303      --help=recursive    display the short help of all the included packages
1304  -V, --version           display version information and exit
1305  -q, --quiet, --silent   do not print \`checking ...' messages
1306      --cache-file=FILE   cache test results in FILE [disabled]
1307  -C, --config-cache      alias for \`--cache-file=config.cache'
1308  -n, --no-create         do not create output files
1309      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1310
1311Installation directories:
1312  --prefix=PREFIX         install architecture-independent files in PREFIX
1313                          [$ac_default_prefix]
1314  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1315                          [PREFIX]
1316
1317By default, \`make install' will install all the files in
1318\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1319an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320for instance \`--prefix=\$HOME'.
1321
1322For better control, use the options below.
1323
1324Fine tuning of the installation directories:
1325  --bindir=DIR            user executables [EPREFIX/bin]
1326  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1327  --libexecdir=DIR        program executables [EPREFIX/libexec]
1328  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1329  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1330  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1331  --libdir=DIR            object code libraries [EPREFIX/lib]
1332  --includedir=DIR        C header files [PREFIX/include]
1333  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1334  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1335  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1336  --infodir=DIR           info documentation [DATAROOTDIR/info]
1337  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1338  --mandir=DIR            man documentation [DATAROOTDIR/man]
1339  --docdir=DIR            documentation root [DATAROOTDIR/doc/viewres]
1340  --htmldir=DIR           html documentation [DOCDIR]
1341  --dvidir=DIR            dvi documentation [DOCDIR]
1342  --pdfdir=DIR            pdf documentation [DOCDIR]
1343  --psdir=DIR             ps documentation [DOCDIR]
1344_ACEOF
1345
1346  cat <<\_ACEOF
1347
1348Program names:
1349  --program-prefix=PREFIX            prepend PREFIX to installed program names
1350  --program-suffix=SUFFIX            append SUFFIX to installed program names
1351  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1352
1353System types:
1354  --build=BUILD     configure for building on BUILD [guessed]
1355  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1356_ACEOF
1357fi
1358
1359if test -n "$ac_init_help"; then
1360  case $ac_init_help in
1361     short | recursive ) echo "Configuration of viewres 1.0.4:";;
1362   esac
1363  cat <<\_ACEOF
1364
1365Optional Features:
1366  --disable-option-checking  ignore unrecognized --enable/--with options
1367  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1368  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1369  --enable-maintainer-mode  enable make rules and dependencies not useful
1370			  (and sometimes confusing) to the casual installer
1371  --disable-dependency-tracking  speeds up one-time build
1372  --enable-dependency-tracking   do not reject slow dependency extractors
1373  --disable-selective-werror
1374                          Turn off selective compiler errors. (default:
1375                          enabled)
1376  --enable-strict-compilation
1377                          Enable all warnings from compiler and make them
1378                          errors (default: disabled)
1379  --enable-silent-rules          less verbose build output (undo: `make V=1')
1380  --disable-silent-rules         verbose build output (undo: `make V=0')
1381
1382Optional Packages:
1383  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1384  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1385  --with-appdefaultdir=<pathname>
1386                          specify directory for app-defaults files (default is
1387                          autodetected)
1388
1389Some influential environment variables:
1390  CC          C compiler command
1391  CFLAGS      C compiler flags
1392  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1393              nonstandard directory <lib dir>
1394  LIBS        libraries to pass to the linker, e.g. -l<library>
1395  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1396              you have headers in a nonstandard directory <include dir>
1397  CPP         C preprocessor
1398  PKG_CONFIG  path to pkg-config utility
1399  VIEWRES_CFLAGS
1400              C compiler flags for VIEWRES, overriding pkg-config
1401  VIEWRES_LIBS
1402              linker flags for VIEWRES, overriding pkg-config
1403
1404Use these variables to override the choices made by `configure' or to help
1405it to find libraries and programs with nonstandard names/locations.
1406
1407Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1408_ACEOF
1409ac_status=$?
1410fi
1411
1412if test "$ac_init_help" = "recursive"; then
1413  # If there are subdirs, report their specific --help.
1414  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415    test -d "$ac_dir" ||
1416      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1417      continue
1418    ac_builddir=.
1419
1420case "$ac_dir" in
1421.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422*)
1423  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1424  # A ".." for each directory in $ac_dir_suffix.
1425  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1426  case $ac_top_builddir_sub in
1427  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429  esac ;;
1430esac
1431ac_abs_top_builddir=$ac_pwd
1432ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433# for backward compatibility:
1434ac_top_builddir=$ac_top_build_prefix
1435
1436case $srcdir in
1437  .)  # We are building in place.
1438    ac_srcdir=.
1439    ac_top_srcdir=$ac_top_builddir_sub
1440    ac_abs_top_srcdir=$ac_pwd ;;
1441  [\\/]* | ?:[\\/]* )  # Absolute name.
1442    ac_srcdir=$srcdir$ac_dir_suffix;
1443    ac_top_srcdir=$srcdir
1444    ac_abs_top_srcdir=$srcdir ;;
1445  *) # Relative name.
1446    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447    ac_top_srcdir=$ac_top_build_prefix$srcdir
1448    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449esac
1450ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451
1452    cd "$ac_dir" || { ac_status=$?; continue; }
1453    # Check for guested configure.
1454    if test -f "$ac_srcdir/configure.gnu"; then
1455      echo &&
1456      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457    elif test -f "$ac_srcdir/configure"; then
1458      echo &&
1459      $SHELL "$ac_srcdir/configure" --help=recursive
1460    else
1461      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462    fi || ac_status=$?
1463    cd "$ac_pwd" || { ac_status=$?; break; }
1464  done
1465fi
1466
1467test -n "$ac_init_help" && exit $ac_status
1468if $ac_init_version; then
1469  cat <<\_ACEOF
1470viewres configure 1.0.4
1471generated by GNU Autoconf 2.68
1472
1473Copyright (C) 2010 Free Software Foundation, Inc.
1474This configure script is free software; the Free Software Foundation
1475gives unlimited permission to copy, distribute and modify it.
1476_ACEOF
1477  exit
1478fi
1479
1480## ------------------------ ##
1481## Autoconf initialization. ##
1482## ------------------------ ##
1483
1484# ac_fn_c_try_compile LINENO
1485# --------------------------
1486# Try to compile conftest.$ac_ext, and return whether this succeeded.
1487ac_fn_c_try_compile ()
1488{
1489  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490  rm -f conftest.$ac_objext
1491  if { { ac_try="$ac_compile"
1492case "(($ac_try" in
1493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494  *) ac_try_echo=$ac_try;;
1495esac
1496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497$as_echo "$ac_try_echo"; } >&5
1498  (eval "$ac_compile") 2>conftest.err
1499  ac_status=$?
1500  if test -s conftest.err; then
1501    grep -v '^ *+' conftest.err >conftest.er1
1502    cat conftest.er1 >&5
1503    mv -f conftest.er1 conftest.err
1504  fi
1505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506  test $ac_status = 0; } && {
1507	 test -z "$ac_c_werror_flag" ||
1508	 test ! -s conftest.err
1509       } && test -s conftest.$ac_objext; then :
1510  ac_retval=0
1511else
1512  $as_echo "$as_me: failed program was:" >&5
1513sed 's/^/| /' conftest.$ac_ext >&5
1514
1515	ac_retval=1
1516fi
1517  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518  as_fn_set_status $ac_retval
1519
1520} # ac_fn_c_try_compile
1521
1522# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1523# ---------------------------------------------
1524# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1525# accordingly.
1526ac_fn_c_check_decl ()
1527{
1528  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529  as_decl_name=`echo $2|sed 's/ *(.*//'`
1530  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1532$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1533if eval \${$3+:} false; then :
1534  $as_echo_n "(cached) " >&6
1535else
1536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1537/* end confdefs.h.  */
1538$4
1539int
1540main ()
1541{
1542#ifndef $as_decl_name
1543#ifdef __cplusplus
1544  (void) $as_decl_use;
1545#else
1546  (void) $as_decl_name;
1547#endif
1548#endif
1549
1550  ;
1551  return 0;
1552}
1553_ACEOF
1554if ac_fn_c_try_compile "$LINENO"; then :
1555  eval "$3=yes"
1556else
1557  eval "$3=no"
1558fi
1559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1560fi
1561eval ac_res=\$$3
1562	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1563$as_echo "$ac_res" >&6; }
1564  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565
1566} # ac_fn_c_check_decl
1567
1568# ac_fn_c_try_cpp LINENO
1569# ----------------------
1570# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_cpp ()
1572{
1573  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574  if { { ac_try="$ac_cpp conftest.$ac_ext"
1575case "(($ac_try" in
1576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577  *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1582  ac_status=$?
1583  if test -s conftest.err; then
1584    grep -v '^ *+' conftest.err >conftest.er1
1585    cat conftest.er1 >&5
1586    mv -f conftest.er1 conftest.err
1587  fi
1588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589  test $ac_status = 0; } > conftest.i && {
1590	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1591	 test ! -s conftest.err
1592       }; then :
1593  ac_retval=0
1594else
1595  $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598    ac_retval=1
1599fi
1600  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601  as_fn_set_status $ac_retval
1602
1603} # ac_fn_c_try_cpp
1604
1605# ac_fn_c_try_run LINENO
1606# ----------------------
1607# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1608# that executables *can* be run.
1609ac_fn_c_try_run ()
1610{
1611  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612  if { { ac_try="$ac_link"
1613case "(($ac_try" in
1614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615  *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619  (eval "$ac_link") 2>&5
1620  ac_status=$?
1621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1623  { { case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629  (eval "$ac_try") 2>&5
1630  ac_status=$?
1631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632  test $ac_status = 0; }; }; then :
1633  ac_retval=0
1634else
1635  $as_echo "$as_me: program exited with status $ac_status" >&5
1636       $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639       ac_retval=$ac_status
1640fi
1641  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643  as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_run
1646
1647# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648# -------------------------------------------------------
1649# Tests whether HEADER exists and can be compiled using the include files in
1650# INCLUDES, setting the cache variable VAR accordingly.
1651ac_fn_c_check_header_compile ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
1656if eval \${$3+:} false; then :
1657  $as_echo_n "(cached) " >&6
1658else
1659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h.  */
1661$4
1662#include <$2>
1663_ACEOF
1664if ac_fn_c_try_compile "$LINENO"; then :
1665  eval "$3=yes"
1666else
1667  eval "$3=no"
1668fi
1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670fi
1671eval ac_res=\$$3
1672	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673$as_echo "$ac_res" >&6; }
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676} # ac_fn_c_check_header_compile
1677
1678# ac_fn_c_try_link LINENO
1679# -----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_link ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  rm -f conftest.$ac_objext conftest$ac_exeext
1685  if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692  (eval "$ac_link") 2>conftest.err
1693  ac_status=$?
1694  if test -s conftest.err; then
1695    grep -v '^ *+' conftest.err >conftest.er1
1696    cat conftest.er1 >&5
1697    mv -f conftest.er1 conftest.err
1698  fi
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } && {
1701	 test -z "$ac_c_werror_flag" ||
1702	 test ! -s conftest.err
1703       } && test -s conftest$ac_exeext && {
1704	 test "$cross_compiling" = yes ||
1705	 $as_test_x conftest$ac_exeext
1706       }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712	ac_retval=1
1713fi
1714  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716  # interfere with the next link command; also delete a directory that is
1717  # left behind by Apple's compiler.  We do this before executing the actions.
1718  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_link
1723cat >config.log <<_ACEOF
1724This file contains any messages produced by compilers while
1725running configure, to aid debugging if configure makes a mistake.
1726
1727It was created by viewres $as_me 1.0.4, which was
1728generated by GNU Autoconf 2.68.  Invocation command line was
1729
1730  $ $0 $@
1731
1732_ACEOF
1733exec 5>>config.log
1734{
1735cat <<_ASUNAME
1736## --------- ##
1737## Platform. ##
1738## --------- ##
1739
1740hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1741uname -m = `(uname -m) 2>/dev/null || echo unknown`
1742uname -r = `(uname -r) 2>/dev/null || echo unknown`
1743uname -s = `(uname -s) 2>/dev/null || echo unknown`
1744uname -v = `(uname -v) 2>/dev/null || echo unknown`
1745
1746/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1747/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1748
1749/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1750/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1751/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1752/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1753/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1754/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1755/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1756
1757_ASUNAME
1758
1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760for as_dir in $PATH
1761do
1762  IFS=$as_save_IFS
1763  test -z "$as_dir" && as_dir=.
1764    $as_echo "PATH: $as_dir"
1765  done
1766IFS=$as_save_IFS
1767
1768} >&5
1769
1770cat >&5 <<_ACEOF
1771
1772
1773## ----------- ##
1774## Core tests. ##
1775## ----------- ##
1776
1777_ACEOF
1778
1779
1780# Keep a trace of the command line.
1781# Strip out --no-create and --no-recursion so they do not pile up.
1782# Strip out --silent because we don't want to record it for future runs.
1783# Also quote any args containing shell meta-characters.
1784# Make two passes to allow for proper duplicate-argument suppression.
1785ac_configure_args=
1786ac_configure_args0=
1787ac_configure_args1=
1788ac_must_keep_next=false
1789for ac_pass in 1 2
1790do
1791  for ac_arg
1792  do
1793    case $ac_arg in
1794    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1795    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1796    | -silent | --silent | --silen | --sile | --sil)
1797      continue ;;
1798    *\'*)
1799      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1800    esac
1801    case $ac_pass in
1802    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1803    2)
1804      as_fn_append ac_configure_args1 " '$ac_arg'"
1805      if test $ac_must_keep_next = true; then
1806	ac_must_keep_next=false # Got value, back to normal.
1807      else
1808	case $ac_arg in
1809	  *=* | --config-cache | -C | -disable-* | --disable-* \
1810	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1811	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1812	  | -with-* | --with-* | -without-* | --without-* | --x)
1813	    case "$ac_configure_args0 " in
1814	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1815	    esac
1816	    ;;
1817	  -* ) ac_must_keep_next=true ;;
1818	esac
1819      fi
1820      as_fn_append ac_configure_args " '$ac_arg'"
1821      ;;
1822    esac
1823  done
1824done
1825{ ac_configure_args0=; unset ac_configure_args0;}
1826{ ac_configure_args1=; unset ac_configure_args1;}
1827
1828# When interrupted or exit'd, cleanup temporary files, and complete
1829# config.log.  We remove comments because anyway the quotes in there
1830# would cause problems or look ugly.
1831# WARNING: Use '\'' to represent an apostrophe within the trap.
1832# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1833trap 'exit_status=$?
1834  # Save into config.log some information that might help in debugging.
1835  {
1836    echo
1837
1838    $as_echo "## ---------------- ##
1839## Cache variables. ##
1840## ---------------- ##"
1841    echo
1842    # The following way of writing the cache mishandles newlines in values,
1843(
1844  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1845    eval ac_val=\$$ac_var
1846    case $ac_val in #(
1847    *${as_nl}*)
1848      case $ac_var in #(
1849      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1850$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1851      esac
1852      case $ac_var in #(
1853      _ | IFS | as_nl) ;; #(
1854      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1855      *) { eval $ac_var=; unset $ac_var;} ;;
1856      esac ;;
1857    esac
1858  done
1859  (set) 2>&1 |
1860    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1861    *${as_nl}ac_space=\ *)
1862      sed -n \
1863	"s/'\''/'\''\\\\'\'''\''/g;
1864	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1865      ;; #(
1866    *)
1867      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1868      ;;
1869    esac |
1870    sort
1871)
1872    echo
1873
1874    $as_echo "## ----------------- ##
1875## Output variables. ##
1876## ----------------- ##"
1877    echo
1878    for ac_var in $ac_subst_vars
1879    do
1880      eval ac_val=\$$ac_var
1881      case $ac_val in
1882      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883      esac
1884      $as_echo "$ac_var='\''$ac_val'\''"
1885    done | sort
1886    echo
1887
1888    if test -n "$ac_subst_files"; then
1889      $as_echo "## ------------------- ##
1890## File substitutions. ##
1891## ------------------- ##"
1892      echo
1893      for ac_var in $ac_subst_files
1894      do
1895	eval ac_val=\$$ac_var
1896	case $ac_val in
1897	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1898	esac
1899	$as_echo "$ac_var='\''$ac_val'\''"
1900      done | sort
1901      echo
1902    fi
1903
1904    if test -s confdefs.h; then
1905      $as_echo "## ----------- ##
1906## confdefs.h. ##
1907## ----------- ##"
1908      echo
1909      cat confdefs.h
1910      echo
1911    fi
1912    test "$ac_signal" != 0 &&
1913      $as_echo "$as_me: caught signal $ac_signal"
1914    $as_echo "$as_me: exit $exit_status"
1915  } >&5
1916  rm -f core *.core core.conftest.* &&
1917    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1918    exit $exit_status
1919' 0
1920for ac_signal in 1 2 13 15; do
1921  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1922done
1923ac_signal=0
1924
1925# confdefs.h avoids OS command line length limits that DEFS can exceed.
1926rm -f -r conftest* confdefs.h
1927
1928$as_echo "/* confdefs.h */" > confdefs.h
1929
1930# Predefined preprocessor variables.
1931
1932cat >>confdefs.h <<_ACEOF
1933#define PACKAGE_NAME "$PACKAGE_NAME"
1934_ACEOF
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1938_ACEOF
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_VERSION "$PACKAGE_VERSION"
1942_ACEOF
1943
1944cat >>confdefs.h <<_ACEOF
1945#define PACKAGE_STRING "$PACKAGE_STRING"
1946_ACEOF
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1950_ACEOF
1951
1952cat >>confdefs.h <<_ACEOF
1953#define PACKAGE_URL "$PACKAGE_URL"
1954_ACEOF
1955
1956
1957# Let the site file select an alternate cache file if it wants to.
1958# Prefer an explicitly selected file to automatically selected ones.
1959ac_site_file1=NONE
1960ac_site_file2=NONE
1961if test -n "$CONFIG_SITE"; then
1962  # We do not want a PATH search for config.site.
1963  case $CONFIG_SITE in #((
1964    -*)  ac_site_file1=./$CONFIG_SITE;;
1965    */*) ac_site_file1=$CONFIG_SITE;;
1966    *)   ac_site_file1=./$CONFIG_SITE;;
1967  esac
1968elif test "x$prefix" != xNONE; then
1969  ac_site_file1=$prefix/share/config.site
1970  ac_site_file2=$prefix/etc/config.site
1971else
1972  ac_site_file1=$ac_default_prefix/share/config.site
1973  ac_site_file2=$ac_default_prefix/etc/config.site
1974fi
1975for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1976do
1977  test "x$ac_site_file" = xNONE && continue
1978  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1979    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1980$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1981    sed 's/^/| /' "$ac_site_file" >&5
1982    . "$ac_site_file" \
1983      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1985as_fn_error $? "failed to load site script $ac_site_file
1986See \`config.log' for more details" "$LINENO" 5; }
1987  fi
1988done
1989
1990if test -r "$cache_file"; then
1991  # Some versions of bash will fail to source /dev/null (special files
1992  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1993  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1994    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1995$as_echo "$as_me: loading cache $cache_file" >&6;}
1996    case $cache_file in
1997      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1998      *)                      . "./$cache_file";;
1999    esac
2000  fi
2001else
2002  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2003$as_echo "$as_me: creating cache $cache_file" >&6;}
2004  >$cache_file
2005fi
2006
2007# Check that the precious variables saved in the cache have kept the same
2008# value.
2009ac_cache_corrupted=false
2010for ac_var in $ac_precious_vars; do
2011  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2012  eval ac_new_set=\$ac_env_${ac_var}_set
2013  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2014  eval ac_new_val=\$ac_env_${ac_var}_value
2015  case $ac_old_set,$ac_new_set in
2016    set,)
2017      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2018$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2019      ac_cache_corrupted=: ;;
2020    ,set)
2021      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2022$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2023      ac_cache_corrupted=: ;;
2024    ,);;
2025    *)
2026      if test "x$ac_old_val" != "x$ac_new_val"; then
2027	# differences in whitespace do not lead to failure.
2028	ac_old_val_w=`echo x $ac_old_val`
2029	ac_new_val_w=`echo x $ac_new_val`
2030	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2031	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2032$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2033	  ac_cache_corrupted=:
2034	else
2035	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2036$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2037	  eval $ac_var=\$ac_old_val
2038	fi
2039	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2040$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2041	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2042$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2043      fi;;
2044  esac
2045  # Pass precious variables to config.status.
2046  if test "$ac_new_set" = set; then
2047    case $ac_new_val in
2048    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2049    *) ac_arg=$ac_var=$ac_new_val ;;
2050    esac
2051    case " $ac_configure_args " in
2052      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2053      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2054    esac
2055  fi
2056done
2057if $ac_cache_corrupted; then
2058  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2060  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2061$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2062  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2063fi
2064## -------------------- ##
2065## Main body of script. ##
2066## -------------------- ##
2067
2068ac_ext=c
2069ac_cpp='$CPP $CPPFLAGS'
2070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2072ac_compiler_gnu=$ac_cv_c_compiler_gnu
2073
2074
2075am__api_version='1.11'
2076
2077ac_aux_dir=
2078for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2079  if test -f "$ac_dir/install-sh"; then
2080    ac_aux_dir=$ac_dir
2081    ac_install_sh="$ac_aux_dir/install-sh -c"
2082    break
2083  elif test -f "$ac_dir/install.sh"; then
2084    ac_aux_dir=$ac_dir
2085    ac_install_sh="$ac_aux_dir/install.sh -c"
2086    break
2087  elif test -f "$ac_dir/shtool"; then
2088    ac_aux_dir=$ac_dir
2089    ac_install_sh="$ac_aux_dir/shtool install -c"
2090    break
2091  fi
2092done
2093if test -z "$ac_aux_dir"; then
2094  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2095fi
2096
2097# These three variables are undocumented and unsupported,
2098# and are intended to be withdrawn in a future Autoconf release.
2099# They can cause serious problems if a builder's source tree is in a directory
2100# whose full name contains unusual characters.
2101ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2102ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2103ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2104
2105
2106# Find a good install program.  We prefer a C program (faster),
2107# so one script is as good as another.  But avoid the broken or
2108# incompatible versions:
2109# SysV /etc/install, /usr/sbin/install
2110# SunOS /usr/etc/install
2111# IRIX /sbin/install
2112# AIX /bin/install
2113# AmigaOS /C/install, which installs bootblocks on floppy discs
2114# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2115# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2116# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2117# OS/2's system install, which has a completely different semantic
2118# ./install, which can be erroneously created by make from ./install.sh.
2119# Reject install programs that cannot install multiple files.
2120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2121$as_echo_n "checking for a BSD-compatible install... " >&6; }
2122if test -z "$INSTALL"; then
2123if ${ac_cv_path_install+:} false; then :
2124  $as_echo_n "(cached) " >&6
2125else
2126  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129  IFS=$as_save_IFS
2130  test -z "$as_dir" && as_dir=.
2131    # Account for people who put trailing slashes in PATH elements.
2132case $as_dir/ in #((
2133  ./ | .// | /[cC]/* | \
2134  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2135  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2136  /usr/ucb/* ) ;;
2137  *)
2138    # OSF1 and SCO ODT 3.0 have their own names for install.
2139    # Don't use installbsd from OSF since it installs stuff as root
2140    # by default.
2141    for ac_prog in ginstall scoinst install; do
2142      for ac_exec_ext in '' $ac_executable_extensions; do
2143	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2144	  if test $ac_prog = install &&
2145	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2146	    # AIX install.  It has an incompatible calling convention.
2147	    :
2148	  elif test $ac_prog = install &&
2149	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2150	    # program-specific install script used by HP pwplus--don't use.
2151	    :
2152	  else
2153	    rm -rf conftest.one conftest.two conftest.dir
2154	    echo one > conftest.one
2155	    echo two > conftest.two
2156	    mkdir conftest.dir
2157	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2158	      test -s conftest.one && test -s conftest.two &&
2159	      test -s conftest.dir/conftest.one &&
2160	      test -s conftest.dir/conftest.two
2161	    then
2162	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2163	      break 3
2164	    fi
2165	  fi
2166	fi
2167      done
2168    done
2169    ;;
2170esac
2171
2172  done
2173IFS=$as_save_IFS
2174
2175rm -rf conftest.one conftest.two conftest.dir
2176
2177fi
2178  if test "${ac_cv_path_install+set}" = set; then
2179    INSTALL=$ac_cv_path_install
2180  else
2181    # As a last resort, use the slow shell script.  Don't cache a
2182    # value for INSTALL within a source directory, because that will
2183    # break other packages using the cache if that directory is
2184    # removed, or if the value is a relative name.
2185    INSTALL=$ac_install_sh
2186  fi
2187fi
2188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2189$as_echo "$INSTALL" >&6; }
2190
2191# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2192# It thinks the first close brace ends the variable substitution.
2193test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2194
2195test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2196
2197test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2198
2199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2200$as_echo_n "checking whether build environment is sane... " >&6; }
2201# Just in case
2202sleep 1
2203echo timestamp > conftest.file
2204# Reject unsafe characters in $srcdir or the absolute working directory
2205# name.  Accept space and tab only in the latter.
2206am_lf='
2207'
2208case `pwd` in
2209  *[\\\"\#\$\&\'\`$am_lf]*)
2210    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2211esac
2212case $srcdir in
2213  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2214    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2215esac
2216
2217# Do `set' in a subshell so we don't clobber the current shell's
2218# arguments.  Must try -L first in case configure is actually a
2219# symlink; some systems play weird games with the mod time of symlinks
2220# (eg FreeBSD returns the mod time of the symlink's containing
2221# directory).
2222if (
2223   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2224   if test "$*" = "X"; then
2225      # -L didn't work.
2226      set X `ls -t "$srcdir/configure" conftest.file`
2227   fi
2228   rm -f conftest.file
2229   if test "$*" != "X $srcdir/configure conftest.file" \
2230      && test "$*" != "X conftest.file $srcdir/configure"; then
2231
2232      # If neither matched, then we have a broken ls.  This can happen
2233      # if, for instance, CONFIG_SHELL is bash and it inherits a
2234      # broken ls alias from the environment.  This has actually
2235      # happened.  Such a system could not be considered "sane".
2236      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2237alias in your environment" "$LINENO" 5
2238   fi
2239
2240   test "$2" = conftest.file
2241   )
2242then
2243   # Ok.
2244   :
2245else
2246   as_fn_error $? "newly created file is older than distributed files!
2247Check your system clock" "$LINENO" 5
2248fi
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2250$as_echo "yes" >&6; }
2251test "$program_prefix" != NONE &&
2252  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2253# Use a double $ so make ignores it.
2254test "$program_suffix" != NONE &&
2255  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2256# Double any \ or $.
2257# By default was `s,x,x', remove it if useless.
2258ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2259program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2260
2261# expand $ac_aux_dir to an absolute path
2262am_aux_dir=`cd $ac_aux_dir && pwd`
2263
2264if test x"${MISSING+set}" != xset; then
2265  case $am_aux_dir in
2266  *\ * | *\	*)
2267    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2268  *)
2269    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2270  esac
2271fi
2272# Use eval to expand $SHELL
2273if eval "$MISSING --run true"; then
2274  am_missing_run="$MISSING --run "
2275else
2276  am_missing_run=
2277  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2278$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2279fi
2280
2281if test x"${install_sh}" != xset; then
2282  case $am_aux_dir in
2283  *\ * | *\	*)
2284    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2285  *)
2286    install_sh="\${SHELL} $am_aux_dir/install-sh"
2287  esac
2288fi
2289
2290# Installed binaries are usually stripped using `strip' when the user
2291# run `make install-strip'.  However `strip' might not be the right
2292# tool to use in cross-compilation environments, therefore Automake
2293# will honor the `STRIP' environment variable to overrule this program.
2294if test "$cross_compiling" != no; then
2295  if test -n "$ac_tool_prefix"; then
2296  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2297set dummy ${ac_tool_prefix}strip; ac_word=$2
2298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2299$as_echo_n "checking for $ac_word... " >&6; }
2300if ${ac_cv_prog_STRIP+:} false; then :
2301  $as_echo_n "(cached) " >&6
2302else
2303  if test -n "$STRIP"; then
2304  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2305else
2306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307for as_dir in $PATH
2308do
2309  IFS=$as_save_IFS
2310  test -z "$as_dir" && as_dir=.
2311    for ac_exec_ext in '' $ac_executable_extensions; do
2312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2315    break 2
2316  fi
2317done
2318  done
2319IFS=$as_save_IFS
2320
2321fi
2322fi
2323STRIP=$ac_cv_prog_STRIP
2324if test -n "$STRIP"; then
2325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2326$as_echo "$STRIP" >&6; }
2327else
2328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2329$as_echo "no" >&6; }
2330fi
2331
2332
2333fi
2334if test -z "$ac_cv_prog_STRIP"; then
2335  ac_ct_STRIP=$STRIP
2336  # Extract the first word of "strip", so it can be a program name with args.
2337set dummy strip; ac_word=$2
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2339$as_echo_n "checking for $ac_word... " >&6; }
2340if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2341  $as_echo_n "(cached) " >&6
2342else
2343  if test -n "$ac_ct_STRIP"; then
2344  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2345else
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349  IFS=$as_save_IFS
2350  test -z "$as_dir" && as_dir=.
2351    for ac_exec_ext in '' $ac_executable_extensions; do
2352  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353    ac_cv_prog_ac_ct_STRIP="strip"
2354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2355    break 2
2356  fi
2357done
2358  done
2359IFS=$as_save_IFS
2360
2361fi
2362fi
2363ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2364if test -n "$ac_ct_STRIP"; then
2365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2366$as_echo "$ac_ct_STRIP" >&6; }
2367else
2368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2369$as_echo "no" >&6; }
2370fi
2371
2372  if test "x$ac_ct_STRIP" = x; then
2373    STRIP=":"
2374  else
2375    case $cross_compiling:$ac_tool_warned in
2376yes:)
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2379ac_tool_warned=yes ;;
2380esac
2381    STRIP=$ac_ct_STRIP
2382  fi
2383else
2384  STRIP="$ac_cv_prog_STRIP"
2385fi
2386
2387fi
2388INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2389
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2391$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2392if test -z "$MKDIR_P"; then
2393  if ${ac_cv_path_mkdir+:} false; then :
2394  $as_echo_n "(cached) " >&6
2395else
2396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2398do
2399  IFS=$as_save_IFS
2400  test -z "$as_dir" && as_dir=.
2401    for ac_prog in mkdir gmkdir; do
2402	 for ac_exec_ext in '' $ac_executable_extensions; do
2403	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2404	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2405	     'mkdir (GNU coreutils) '* | \
2406	     'mkdir (coreutils) '* | \
2407	     'mkdir (fileutils) '4.1*)
2408	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2409	       break 3;;
2410	   esac
2411	 done
2412       done
2413  done
2414IFS=$as_save_IFS
2415
2416fi
2417
2418  test -d ./--version && rmdir ./--version
2419  if test "${ac_cv_path_mkdir+set}" = set; then
2420    MKDIR_P="$ac_cv_path_mkdir -p"
2421  else
2422    # As a last resort, use the slow shell script.  Don't cache a
2423    # value for MKDIR_P within a source directory, because that will
2424    # break other packages using the cache if that directory is
2425    # removed, or if the value is a relative name.
2426    MKDIR_P="$ac_install_sh -d"
2427  fi
2428fi
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2430$as_echo "$MKDIR_P" >&6; }
2431
2432mkdir_p="$MKDIR_P"
2433case $mkdir_p in
2434  [\\/$]* | ?:[\\/]*) ;;
2435  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2436esac
2437
2438for ac_prog in gawk mawk nawk awk
2439do
2440  # Extract the first word of "$ac_prog", so it can be a program name with args.
2441set dummy $ac_prog; ac_word=$2
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2443$as_echo_n "checking for $ac_word... " >&6; }
2444if ${ac_cv_prog_AWK+:} false; then :
2445  $as_echo_n "(cached) " >&6
2446else
2447  if test -n "$AWK"; then
2448  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2449else
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453  IFS=$as_save_IFS
2454  test -z "$as_dir" && as_dir=.
2455    for ac_exec_ext in '' $ac_executable_extensions; do
2456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2457    ac_cv_prog_AWK="$ac_prog"
2458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2459    break 2
2460  fi
2461done
2462  done
2463IFS=$as_save_IFS
2464
2465fi
2466fi
2467AWK=$ac_cv_prog_AWK
2468if test -n "$AWK"; then
2469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2470$as_echo "$AWK" >&6; }
2471else
2472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2473$as_echo "no" >&6; }
2474fi
2475
2476
2477  test -n "$AWK" && break
2478done
2479
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2481$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2482set x ${MAKE-make}
2483ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2484if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2485  $as_echo_n "(cached) " >&6
2486else
2487  cat >conftest.make <<\_ACEOF
2488SHELL = /bin/sh
2489all:
2490	@echo '@@@%%%=$(MAKE)=@@@%%%'
2491_ACEOF
2492# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2493case `${MAKE-make} -f conftest.make 2>/dev/null` in
2494  *@@@%%%=?*=@@@%%%*)
2495    eval ac_cv_prog_make_${ac_make}_set=yes;;
2496  *)
2497    eval ac_cv_prog_make_${ac_make}_set=no;;
2498esac
2499rm -f conftest.make
2500fi
2501if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2503$as_echo "yes" >&6; }
2504  SET_MAKE=
2505else
2506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507$as_echo "no" >&6; }
2508  SET_MAKE="MAKE=${MAKE-make}"
2509fi
2510
2511rm -rf .tst 2>/dev/null
2512mkdir .tst 2>/dev/null
2513if test -d .tst; then
2514  am__leading_dot=.
2515else
2516  am__leading_dot=_
2517fi
2518rmdir .tst 2>/dev/null
2519
2520if test "`cd $srcdir && pwd`" != "`pwd`"; then
2521  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2522  # is not polluted with repeated "-I."
2523  am__isrc=' -I$(srcdir)'
2524  # test to see if srcdir already configured
2525  if test -f $srcdir/config.status; then
2526    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2527  fi
2528fi
2529
2530# test whether we have cygpath
2531if test -z "$CYGPATH_W"; then
2532  if (cygpath --version) >/dev/null 2>/dev/null; then
2533    CYGPATH_W='cygpath -w'
2534  else
2535    CYGPATH_W=echo
2536  fi
2537fi
2538
2539
2540# Define the identity of the package.
2541 PACKAGE='viewres'
2542 VERSION='1.0.4'
2543
2544
2545cat >>confdefs.h <<_ACEOF
2546#define PACKAGE "$PACKAGE"
2547_ACEOF
2548
2549
2550cat >>confdefs.h <<_ACEOF
2551#define VERSION "$VERSION"
2552_ACEOF
2553
2554# Some tools Automake needs.
2555
2556ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2557
2558
2559AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2560
2561
2562AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2563
2564
2565AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2566
2567
2568MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2569
2570# We need awk for the "check" target.  The system "awk" is bad on
2571# some platforms.
2572# Always define AMTAR for backward compatibility.
2573
2574AMTAR=${AMTAR-"${am_missing_run}tar"}
2575
2576am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2577
2578
2579
2580
2581
2582
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2584$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2585    # Check whether --enable-maintainer-mode was given.
2586if test "${enable_maintainer_mode+set}" = set; then :
2587  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2588else
2589  USE_MAINTAINER_MODE=no
2590fi
2591
2592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2593$as_echo "$USE_MAINTAINER_MODE" >&6; }
2594   if test $USE_MAINTAINER_MODE = yes; then
2595  MAINTAINER_MODE_TRUE=
2596  MAINTAINER_MODE_FALSE='#'
2597else
2598  MAINTAINER_MODE_TRUE='#'
2599  MAINTAINER_MODE_FALSE=
2600fi
2601
2602  MAINT=$MAINTAINER_MODE_TRUE
2603
2604
2605
2606# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618DEPDIR="${am__leading_dot}deps"
2619
2620ac_config_commands="$ac_config_commands depfiles"
2621
2622
2623am_make=${MAKE-make}
2624cat > confinc << 'END'
2625am__doit:
2626	@echo this is the am__doit target
2627.PHONY: am__doit
2628END
2629# If we don't find an include directive, just comment out the code.
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2631$as_echo_n "checking for style of include used by $am_make... " >&6; }
2632am__include="#"
2633am__quote=
2634_am_result=none
2635# First try GNU make style include.
2636echo "include confinc" > confmf
2637# Ignore all kinds of additional output from `make'.
2638case `$am_make -s -f confmf 2> /dev/null` in #(
2639*the\ am__doit\ target*)
2640  am__include=include
2641  am__quote=
2642  _am_result=GNU
2643  ;;
2644esac
2645# Now try BSD make style include.
2646if test "$am__include" = "#"; then
2647   echo '.include "confinc"' > confmf
2648   case `$am_make -s -f confmf 2> /dev/null` in #(
2649   *the\ am__doit\ target*)
2650     am__include=.include
2651     am__quote="\""
2652     _am_result=BSD
2653     ;;
2654   esac
2655fi
2656
2657
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2659$as_echo "$_am_result" >&6; }
2660rm -f confinc confmf
2661
2662# Check whether --enable-dependency-tracking was given.
2663if test "${enable_dependency_tracking+set}" = set; then :
2664  enableval=$enable_dependency_tracking;
2665fi
2666
2667if test "x$enable_dependency_tracking" != xno; then
2668  am_depcomp="$ac_aux_dir/depcomp"
2669  AMDEPBACKSLASH='\'
2670  am__nodep='_no'
2671fi
2672 if test "x$enable_dependency_tracking" != xno; then
2673  AMDEP_TRUE=
2674  AMDEP_FALSE='#'
2675else
2676  AMDEP_TRUE='#'
2677  AMDEP_FALSE=
2678fi
2679
2680
2681ac_ext=c
2682ac_cpp='$CPP $CPPFLAGS'
2683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2685ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686if test -n "$ac_tool_prefix"; then
2687  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2688set dummy ${ac_tool_prefix}gcc; ac_word=$2
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690$as_echo_n "checking for $ac_word... " >&6; }
2691if ${ac_cv_prog_CC+:} false; then :
2692  $as_echo_n "(cached) " >&6
2693else
2694  if test -n "$CC"; then
2695  ac_cv_prog_CC="$CC" # Let the user override the test.
2696else
2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700  IFS=$as_save_IFS
2701  test -z "$as_dir" && as_dir=.
2702    for ac_exec_ext in '' $ac_executable_extensions; do
2703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706    break 2
2707  fi
2708done
2709  done
2710IFS=$as_save_IFS
2711
2712fi
2713fi
2714CC=$ac_cv_prog_CC
2715if test -n "$CC"; then
2716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717$as_echo "$CC" >&6; }
2718else
2719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720$as_echo "no" >&6; }
2721fi
2722
2723
2724fi
2725if test -z "$ac_cv_prog_CC"; then
2726  ac_ct_CC=$CC
2727  # Extract the first word of "gcc", so it can be a program name with args.
2728set dummy gcc; ac_word=$2
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730$as_echo_n "checking for $ac_word... " >&6; }
2731if ${ac_cv_prog_ac_ct_CC+:} false; then :
2732  $as_echo_n "(cached) " >&6
2733else
2734  if test -n "$ac_ct_CC"; then
2735  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2736else
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740  IFS=$as_save_IFS
2741  test -z "$as_dir" && as_dir=.
2742    for ac_exec_ext in '' $ac_executable_extensions; do
2743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744    ac_cv_prog_ac_ct_CC="gcc"
2745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746    break 2
2747  fi
2748done
2749  done
2750IFS=$as_save_IFS
2751
2752fi
2753fi
2754ac_ct_CC=$ac_cv_prog_ac_ct_CC
2755if test -n "$ac_ct_CC"; then
2756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2757$as_echo "$ac_ct_CC" >&6; }
2758else
2759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760$as_echo "no" >&6; }
2761fi
2762
2763  if test "x$ac_ct_CC" = x; then
2764    CC=""
2765  else
2766    case $cross_compiling:$ac_tool_warned in
2767yes:)
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2770ac_tool_warned=yes ;;
2771esac
2772    CC=$ac_ct_CC
2773  fi
2774else
2775  CC="$ac_cv_prog_CC"
2776fi
2777
2778if test -z "$CC"; then
2779          if test -n "$ac_tool_prefix"; then
2780    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781set dummy ${ac_tool_prefix}cc; ac_word=$2
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783$as_echo_n "checking for $ac_word... " >&6; }
2784if ${ac_cv_prog_CC+:} false; then :
2785  $as_echo_n "(cached) " >&6
2786else
2787  if test -n "$CC"; then
2788  ac_cv_prog_CC="$CC" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793  IFS=$as_save_IFS
2794  test -z "$as_dir" && as_dir=.
2795    for ac_exec_ext in '' $ac_executable_extensions; do
2796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797    ac_cv_prog_CC="${ac_tool_prefix}cc"
2798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799    break 2
2800  fi
2801done
2802  done
2803IFS=$as_save_IFS
2804
2805fi
2806fi
2807CC=$ac_cv_prog_CC
2808if test -n "$CC"; then
2809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810$as_echo "$CC" >&6; }
2811else
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813$as_echo "no" >&6; }
2814fi
2815
2816
2817  fi
2818fi
2819if test -z "$CC"; then
2820  # Extract the first word of "cc", so it can be a program name with args.
2821set dummy cc; ac_word=$2
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823$as_echo_n "checking for $ac_word... " >&6; }
2824if ${ac_cv_prog_CC+:} false; then :
2825  $as_echo_n "(cached) " >&6
2826else
2827  if test -n "$CC"; then
2828  ac_cv_prog_CC="$CC" # Let the user override the test.
2829else
2830  ac_prog_rejected=no
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834  IFS=$as_save_IFS
2835  test -z "$as_dir" && as_dir=.
2836    for ac_exec_ext in '' $ac_executable_extensions; do
2837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2839       ac_prog_rejected=yes
2840       continue
2841     fi
2842    ac_cv_prog_CC="cc"
2843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844    break 2
2845  fi
2846done
2847  done
2848IFS=$as_save_IFS
2849
2850if test $ac_prog_rejected = yes; then
2851  # We found a bogon in the path, so make sure we never use it.
2852  set dummy $ac_cv_prog_CC
2853  shift
2854  if test $# != 0; then
2855    # We chose a different compiler from the bogus one.
2856    # However, it has the same basename, so the bogon will be chosen
2857    # first if we set CC to just the basename; use the full file name.
2858    shift
2859    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2860  fi
2861fi
2862fi
2863fi
2864CC=$ac_cv_prog_CC
2865if test -n "$CC"; then
2866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867$as_echo "$CC" >&6; }
2868else
2869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870$as_echo "no" >&6; }
2871fi
2872
2873
2874fi
2875if test -z "$CC"; then
2876  if test -n "$ac_tool_prefix"; then
2877  for ac_prog in cl.exe
2878  do
2879    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2880set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if ${ac_cv_prog_CC+:} false; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  if test -n "$CC"; then
2887  ac_cv_prog_CC="$CC" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  test -z "$as_dir" && as_dir=.
2894    for ac_exec_ext in '' $ac_executable_extensions; do
2895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898    break 2
2899  fi
2900done
2901  done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906CC=$ac_cv_prog_CC
2907if test -n "$CC"; then
2908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909$as_echo "$CC" >&6; }
2910else
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913fi
2914
2915
2916    test -n "$CC" && break
2917  done
2918fi
2919if test -z "$CC"; then
2920  ac_ct_CC=$CC
2921  for ac_prog in cl.exe
2922do
2923  # Extract the first word of "$ac_prog", so it can be a program name with args.
2924set dummy $ac_prog; ac_word=$2
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926$as_echo_n "checking for $ac_word... " >&6; }
2927if ${ac_cv_prog_ac_ct_CC+:} false; then :
2928  $as_echo_n "(cached) " >&6
2929else
2930  if test -n "$ac_ct_CC"; then
2931  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932else
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936  IFS=$as_save_IFS
2937  test -z "$as_dir" && as_dir=.
2938    for ac_exec_ext in '' $ac_executable_extensions; do
2939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940    ac_cv_prog_ac_ct_CC="$ac_prog"
2941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942    break 2
2943  fi
2944done
2945  done
2946IFS=$as_save_IFS
2947
2948fi
2949fi
2950ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951if test -n "$ac_ct_CC"; then
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2953$as_echo "$ac_ct_CC" >&6; }
2954else
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957fi
2958
2959
2960  test -n "$ac_ct_CC" && break
2961done
2962
2963  if test "x$ac_ct_CC" = x; then
2964    CC=""
2965  else
2966    case $cross_compiling:$ac_tool_warned in
2967yes:)
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2970ac_tool_warned=yes ;;
2971esac
2972    CC=$ac_ct_CC
2973  fi
2974fi
2975
2976fi
2977
2978
2979test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981as_fn_error $? "no acceptable C compiler found in \$PATH
2982See \`config.log' for more details" "$LINENO" 5; }
2983
2984# Provide some information about the compiler.
2985$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2986set X $ac_compile
2987ac_compiler=$2
2988for ac_option in --version -v -V -qversion; do
2989  { { ac_try="$ac_compiler $ac_option >&5"
2990case "(($ac_try" in
2991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992  *) ac_try_echo=$ac_try;;
2993esac
2994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995$as_echo "$ac_try_echo"; } >&5
2996  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2997  ac_status=$?
2998  if test -s conftest.err; then
2999    sed '10a\
3000... rest of stderr output deleted ...
3001         10q' conftest.err >conftest.er1
3002    cat conftest.er1 >&5
3003  fi
3004  rm -f conftest.er1 conftest.err
3005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006  test $ac_status = 0; }
3007done
3008
3009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010/* end confdefs.h.  */
3011
3012int
3013main ()
3014{
3015
3016  ;
3017  return 0;
3018}
3019_ACEOF
3020ac_clean_files_save=$ac_clean_files
3021ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3022# Try to create an executable without -o first, disregard a.out.
3023# It will help us diagnose broken compilers, and finding out an intuition
3024# of exeext.
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3026$as_echo_n "checking whether the C compiler works... " >&6; }
3027ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3028
3029# The possible output files:
3030ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3031
3032ac_rmfiles=
3033for ac_file in $ac_files
3034do
3035  case $ac_file in
3036    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3037    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3038  esac
3039done
3040rm -f $ac_rmfiles
3041
3042if { { ac_try="$ac_link_default"
3043case "(($ac_try" in
3044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045  *) ac_try_echo=$ac_try;;
3046esac
3047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048$as_echo "$ac_try_echo"; } >&5
3049  (eval "$ac_link_default") 2>&5
3050  ac_status=$?
3051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052  test $ac_status = 0; }; then :
3053  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3054# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3055# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3056# so that the user can short-circuit this test for compilers unknown to
3057# Autoconf.
3058for ac_file in $ac_files ''
3059do
3060  test -f "$ac_file" || continue
3061  case $ac_file in
3062    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3063	;;
3064    [ab].out )
3065	# We found the default executable, but exeext='' is most
3066	# certainly right.
3067	break;;
3068    *.* )
3069	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3070	then :; else
3071	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3072	fi
3073	# We set ac_cv_exeext here because the later test for it is not
3074	# safe: cross compilers may not add the suffix if given an `-o'
3075	# argument, so we may need to know it at that point already.
3076	# Even if this section looks crufty: it has the advantage of
3077	# actually working.
3078	break;;
3079    * )
3080	break;;
3081  esac
3082done
3083test "$ac_cv_exeext" = no && ac_cv_exeext=
3084
3085else
3086  ac_file=''
3087fi
3088if test -z "$ac_file"; then :
3089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090$as_echo "no" >&6; }
3091$as_echo "$as_me: failed program was:" >&5
3092sed 's/^/| /' conftest.$ac_ext >&5
3093
3094{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096as_fn_error 77 "C compiler cannot create executables
3097See \`config.log' for more details" "$LINENO" 5; }
3098else
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3100$as_echo "yes" >&6; }
3101fi
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3103$as_echo_n "checking for C compiler default output file name... " >&6; }
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3105$as_echo "$ac_file" >&6; }
3106ac_exeext=$ac_cv_exeext
3107
3108rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3109ac_clean_files=$ac_clean_files_save
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3111$as_echo_n "checking for suffix of executables... " >&6; }
3112if { { ac_try="$ac_link"
3113case "(($ac_try" in
3114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115  *) ac_try_echo=$ac_try;;
3116esac
3117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118$as_echo "$ac_try_echo"; } >&5
3119  (eval "$ac_link") 2>&5
3120  ac_status=$?
3121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122  test $ac_status = 0; }; then :
3123  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3124# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3125# work properly (i.e., refer to `conftest.exe'), while it won't with
3126# `rm'.
3127for ac_file in conftest.exe conftest conftest.*; do
3128  test -f "$ac_file" || continue
3129  case $ac_file in
3130    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132	  break;;
3133    * ) break;;
3134  esac
3135done
3136else
3137  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3140See \`config.log' for more details" "$LINENO" 5; }
3141fi
3142rm -f conftest conftest$ac_cv_exeext
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3144$as_echo "$ac_cv_exeext" >&6; }
3145
3146rm -f conftest.$ac_ext
3147EXEEXT=$ac_cv_exeext
3148ac_exeext=$EXEEXT
3149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150/* end confdefs.h.  */
3151#include <stdio.h>
3152int
3153main ()
3154{
3155FILE *f = fopen ("conftest.out", "w");
3156 return ferror (f) || fclose (f) != 0;
3157
3158  ;
3159  return 0;
3160}
3161_ACEOF
3162ac_clean_files="$ac_clean_files conftest.out"
3163# Check that the compiler produces executables we can run.  If not, either
3164# the compiler is broken, or we cross compile.
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3166$as_echo_n "checking whether we are cross compiling... " >&6; }
3167if test "$cross_compiling" != yes; then
3168  { { ac_try="$ac_link"
3169case "(($ac_try" in
3170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171  *) ac_try_echo=$ac_try;;
3172esac
3173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174$as_echo "$ac_try_echo"; } >&5
3175  (eval "$ac_link") 2>&5
3176  ac_status=$?
3177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178  test $ac_status = 0; }
3179  if { ac_try='./conftest$ac_cv_exeext'
3180  { { case "(($ac_try" in
3181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182  *) ac_try_echo=$ac_try;;
3183esac
3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185$as_echo "$ac_try_echo"; } >&5
3186  (eval "$ac_try") 2>&5
3187  ac_status=$?
3188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189  test $ac_status = 0; }; }; then
3190    cross_compiling=no
3191  else
3192    if test "$cross_compiling" = maybe; then
3193	cross_compiling=yes
3194    else
3195	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197as_fn_error $? "cannot run C compiled programs.
3198If you meant to cross compile, use \`--host'.
3199See \`config.log' for more details" "$LINENO" 5; }
3200    fi
3201  fi
3202fi
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3204$as_echo "$cross_compiling" >&6; }
3205
3206rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3207ac_clean_files=$ac_clean_files_save
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3209$as_echo_n "checking for suffix of object files... " >&6; }
3210if ${ac_cv_objext+:} false; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214/* end confdefs.h.  */
3215
3216int
3217main ()
3218{
3219
3220  ;
3221  return 0;
3222}
3223_ACEOF
3224rm -f conftest.o conftest.obj
3225if { { ac_try="$ac_compile"
3226case "(($ac_try" in
3227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228  *) ac_try_echo=$ac_try;;
3229esac
3230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231$as_echo "$ac_try_echo"; } >&5
3232  (eval "$ac_compile") 2>&5
3233  ac_status=$?
3234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235  test $ac_status = 0; }; then :
3236  for ac_file in conftest.o conftest.obj conftest.*; do
3237  test -f "$ac_file" || continue;
3238  case $ac_file in
3239    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3240    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3241       break;;
3242  esac
3243done
3244else
3245  $as_echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250as_fn_error $? "cannot compute suffix of object files: cannot compile
3251See \`config.log' for more details" "$LINENO" 5; }
3252fi
3253rm -f conftest.$ac_cv_objext conftest.$ac_ext
3254fi
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3256$as_echo "$ac_cv_objext" >&6; }
3257OBJEXT=$ac_cv_objext
3258ac_objext=$OBJEXT
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3260$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3261if ${ac_cv_c_compiler_gnu+:} false; then :
3262  $as_echo_n "(cached) " >&6
3263else
3264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265/* end confdefs.h.  */
3266
3267int
3268main ()
3269{
3270#ifndef __GNUC__
3271       choke me
3272#endif
3273
3274  ;
3275  return 0;
3276}
3277_ACEOF
3278if ac_fn_c_try_compile "$LINENO"; then :
3279  ac_compiler_gnu=yes
3280else
3281  ac_compiler_gnu=no
3282fi
3283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284ac_cv_c_compiler_gnu=$ac_compiler_gnu
3285
3286fi
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3288$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3289if test $ac_compiler_gnu = yes; then
3290  GCC=yes
3291else
3292  GCC=
3293fi
3294ac_test_CFLAGS=${CFLAGS+set}
3295ac_save_CFLAGS=$CFLAGS
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3297$as_echo_n "checking whether $CC accepts -g... " >&6; }
3298if ${ac_cv_prog_cc_g+:} false; then :
3299  $as_echo_n "(cached) " >&6
3300else
3301  ac_save_c_werror_flag=$ac_c_werror_flag
3302   ac_c_werror_flag=yes
3303   ac_cv_prog_cc_g=no
3304   CFLAGS="-g"
3305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h.  */
3307
3308int
3309main ()
3310{
3311
3312  ;
3313  return 0;
3314}
3315_ACEOF
3316if ac_fn_c_try_compile "$LINENO"; then :
3317  ac_cv_prog_cc_g=yes
3318else
3319  CFLAGS=""
3320      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321/* end confdefs.h.  */
3322
3323int
3324main ()
3325{
3326
3327  ;
3328  return 0;
3329}
3330_ACEOF
3331if ac_fn_c_try_compile "$LINENO"; then :
3332
3333else
3334  ac_c_werror_flag=$ac_save_c_werror_flag
3335	 CFLAGS="-g"
3336	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h.  */
3338
3339int
3340main ()
3341{
3342
3343  ;
3344  return 0;
3345}
3346_ACEOF
3347if ac_fn_c_try_compile "$LINENO"; then :
3348  ac_cv_prog_cc_g=yes
3349fi
3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351fi
3352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353fi
3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355   ac_c_werror_flag=$ac_save_c_werror_flag
3356fi
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3358$as_echo "$ac_cv_prog_cc_g" >&6; }
3359if test "$ac_test_CFLAGS" = set; then
3360  CFLAGS=$ac_save_CFLAGS
3361elif test $ac_cv_prog_cc_g = yes; then
3362  if test "$GCC" = yes; then
3363    CFLAGS="-g -O2"
3364  else
3365    CFLAGS="-g"
3366  fi
3367else
3368  if test "$GCC" = yes; then
3369    CFLAGS="-O2"
3370  else
3371    CFLAGS=
3372  fi
3373fi
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3375$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3376if ${ac_cv_prog_cc_c89+:} false; then :
3377  $as_echo_n "(cached) " >&6
3378else
3379  ac_cv_prog_cc_c89=no
3380ac_save_CC=$CC
3381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382/* end confdefs.h.  */
3383#include <stdarg.h>
3384#include <stdio.h>
3385#include <sys/types.h>
3386#include <sys/stat.h>
3387/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3388struct buf { int x; };
3389FILE * (*rcsopen) (struct buf *, struct stat *, int);
3390static char *e (p, i)
3391     char **p;
3392     int i;
3393{
3394  return p[i];
3395}
3396static char *f (char * (*g) (char **, int), char **p, ...)
3397{
3398  char *s;
3399  va_list v;
3400  va_start (v,p);
3401  s = g (p, va_arg (v,int));
3402  va_end (v);
3403  return s;
3404}
3405
3406/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3407   function prototypes and stuff, but not '\xHH' hex character constants.
3408   These don't provoke an error unfortunately, instead are silently treated
3409   as 'x'.  The following induces an error, until -std is added to get
3410   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3411   array size at least.  It's necessary to write '\x00'==0 to get something
3412   that's true only with -std.  */
3413int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3414
3415/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3416   inside strings and character constants.  */
3417#define FOO(x) 'x'
3418int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3419
3420int test (int i, double x);
3421struct s1 {int (*f) (int a);};
3422struct s2 {int (*f) (double a);};
3423int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3424int argc;
3425char **argv;
3426int
3427main ()
3428{
3429return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3430  ;
3431  return 0;
3432}
3433_ACEOF
3434for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3435	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3436do
3437  CC="$ac_save_CC $ac_arg"
3438  if ac_fn_c_try_compile "$LINENO"; then :
3439  ac_cv_prog_cc_c89=$ac_arg
3440fi
3441rm -f core conftest.err conftest.$ac_objext
3442  test "x$ac_cv_prog_cc_c89" != "xno" && break
3443done
3444rm -f conftest.$ac_ext
3445CC=$ac_save_CC
3446
3447fi
3448# AC_CACHE_VAL
3449case "x$ac_cv_prog_cc_c89" in
3450  x)
3451    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3452$as_echo "none needed" >&6; } ;;
3453  xno)
3454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3455$as_echo "unsupported" >&6; } ;;
3456  *)
3457    CC="$CC $ac_cv_prog_cc_c89"
3458    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3459$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3460esac
3461if test "x$ac_cv_prog_cc_c89" != xno; then :
3462
3463fi
3464
3465ac_ext=c
3466ac_cpp='$CPP $CPPFLAGS'
3467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470
3471depcc="$CC"   am_compiler_list=
3472
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3474$as_echo_n "checking dependency style of $depcc... " >&6; }
3475if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3476  $as_echo_n "(cached) " >&6
3477else
3478  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3479  # We make a subdir and do the tests there.  Otherwise we can end up
3480  # making bogus files that we don't know about and never remove.  For
3481  # instance it was reported that on HP-UX the gcc test will end up
3482  # making a dummy file named `D' -- because `-MD' means `put the output
3483  # in D'.
3484  rm -rf conftest.dir
3485  mkdir conftest.dir
3486  # Copy depcomp to subdir because otherwise we won't find it if we're
3487  # using a relative directory.
3488  cp "$am_depcomp" conftest.dir
3489  cd conftest.dir
3490  # We will build objects and dependencies in a subdirectory because
3491  # it helps to detect inapplicable dependency modes.  For instance
3492  # both Tru64's cc and ICC support -MD to output dependencies as a
3493  # side effect of compilation, but ICC will put the dependencies in
3494  # the current directory while Tru64 will put them in the object
3495  # directory.
3496  mkdir sub
3497
3498  am_cv_CC_dependencies_compiler_type=none
3499  if test "$am_compiler_list" = ""; then
3500     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3501  fi
3502  am__universal=false
3503  case " $depcc " in #(
3504     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3505     esac
3506
3507  for depmode in $am_compiler_list; do
3508    # Setup a source with many dependencies, because some compilers
3509    # like to wrap large dependency lists on column 80 (with \), and
3510    # we should not choose a depcomp mode which is confused by this.
3511    #
3512    # We need to recreate these files for each test, as the compiler may
3513    # overwrite some of them when testing with obscure command lines.
3514    # This happens at least with the AIX C compiler.
3515    : > sub/conftest.c
3516    for i in 1 2 3 4 5 6; do
3517      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3518      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3519      # Solaris 8's {/usr,}/bin/sh.
3520      touch sub/conftst$i.h
3521    done
3522    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3523
3524    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3525    # mode.  It turns out that the SunPro C++ compiler does not properly
3526    # handle `-M -o', and we need to detect this.  Also, some Intel
3527    # versions had trouble with output in subdirs
3528    am__obj=sub/conftest.${OBJEXT-o}
3529    am__minus_obj="-o $am__obj"
3530    case $depmode in
3531    gcc)
3532      # This depmode causes a compiler race in universal mode.
3533      test "$am__universal" = false || continue
3534      ;;
3535    nosideeffect)
3536      # after this tag, mechanisms are not by side-effect, so they'll
3537      # only be used when explicitly requested
3538      if test "x$enable_dependency_tracking" = xyes; then
3539	continue
3540      else
3541	break
3542      fi
3543      ;;
3544    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3545      # This compiler won't grok `-c -o', but also, the minuso test has
3546      # not run yet.  These depmodes are late enough in the game, and
3547      # so weak that their functioning should not be impacted.
3548      am__obj=conftest.${OBJEXT-o}
3549      am__minus_obj=
3550      ;;
3551    none) break ;;
3552    esac
3553    if depmode=$depmode \
3554       source=sub/conftest.c object=$am__obj \
3555       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3556       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3557         >/dev/null 2>conftest.err &&
3558       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3559       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3560       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3561       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3562      # icc doesn't choke on unknown options, it will just issue warnings
3563      # or remarks (even with -Werror).  So we grep stderr for any message
3564      # that says an option was ignored or not supported.
3565      # When given -MP, icc 7.0 and 7.1 complain thusly:
3566      #   icc: Command line warning: ignoring option '-M'; no argument required
3567      # The diagnosis changed in icc 8.0:
3568      #   icc: Command line remark: option '-MP' not supported
3569      if (grep 'ignoring option' conftest.err ||
3570          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3571        am_cv_CC_dependencies_compiler_type=$depmode
3572        break
3573      fi
3574    fi
3575  done
3576
3577  cd ..
3578  rm -rf conftest.dir
3579else
3580  am_cv_CC_dependencies_compiler_type=none
3581fi
3582
3583fi
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3585$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3586CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3587
3588 if
3589  test "x$enable_dependency_tracking" != xno \
3590  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3591  am__fastdepCC_TRUE=
3592  am__fastdepCC_FALSE='#'
3593else
3594  am__fastdepCC_TRUE='#'
3595  am__fastdepCC_FALSE=
3596fi
3597
3598
3599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3600$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3601if ${ac_cv_prog_cc_c99+:} false; then :
3602  $as_echo_n "(cached) " >&6
3603else
3604  ac_cv_prog_cc_c99=no
3605ac_save_CC=$CC
3606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h.  */
3608#include <stdarg.h>
3609#include <stdbool.h>
3610#include <stdlib.h>
3611#include <wchar.h>
3612#include <stdio.h>
3613
3614// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3615#define debug(...) fprintf (stderr, __VA_ARGS__)
3616#define showlist(...) puts (#__VA_ARGS__)
3617#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3618static void
3619test_varargs_macros (void)
3620{
3621  int x = 1234;
3622  int y = 5678;
3623  debug ("Flag");
3624  debug ("X = %d\n", x);
3625  showlist (The first, second, and third items.);
3626  report (x>y, "x is %d but y is %d", x, y);
3627}
3628
3629// Check long long types.
3630#define BIG64 18446744073709551615ull
3631#define BIG32 4294967295ul
3632#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3633#if !BIG_OK
3634  your preprocessor is broken;
3635#endif
3636#if BIG_OK
3637#else
3638  your preprocessor is broken;
3639#endif
3640static long long int bignum = -9223372036854775807LL;
3641static unsigned long long int ubignum = BIG64;
3642
3643struct incomplete_array
3644{
3645  int datasize;
3646  double data[];
3647};
3648
3649struct named_init {
3650  int number;
3651  const wchar_t *name;
3652  double average;
3653};
3654
3655typedef const char *ccp;
3656
3657static inline int
3658test_restrict (ccp restrict text)
3659{
3660  // See if C++-style comments work.
3661  // Iterate through items via the restricted pointer.
3662  // Also check for declarations in for loops.
3663  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3664    continue;
3665  return 0;
3666}
3667
3668// Check varargs and va_copy.
3669static void
3670test_varargs (const char *format, ...)
3671{
3672  va_list args;
3673  va_start (args, format);
3674  va_list args_copy;
3675  va_copy (args_copy, args);
3676
3677  const char *str;
3678  int number;
3679  float fnumber;
3680
3681  while (*format)
3682    {
3683      switch (*format++)
3684	{
3685	case 's': // string
3686	  str = va_arg (args_copy, const char *);
3687	  break;
3688	case 'd': // int
3689	  number = va_arg (args_copy, int);
3690	  break;
3691	case 'f': // float
3692	  fnumber = va_arg (args_copy, double);
3693	  break;
3694	default:
3695	  break;
3696	}
3697    }
3698  va_end (args_copy);
3699  va_end (args);
3700}
3701
3702int
3703main ()
3704{
3705
3706  // Check bool.
3707  _Bool success = false;
3708
3709  // Check restrict.
3710  if (test_restrict ("String literal") == 0)
3711    success = true;
3712  char *restrict newvar = "Another string";
3713
3714  // Check varargs.
3715  test_varargs ("s, d' f .", "string", 65, 34.234);
3716  test_varargs_macros ();
3717
3718  // Check flexible array members.
3719  struct incomplete_array *ia =
3720    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3721  ia->datasize = 10;
3722  for (int i = 0; i < ia->datasize; ++i)
3723    ia->data[i] = i * 1.234;
3724
3725  // Check named initializers.
3726  struct named_init ni = {
3727    .number = 34,
3728    .name = L"Test wide string",
3729    .average = 543.34343,
3730  };
3731
3732  ni.number = 58;
3733
3734  int dynamic_array[ni.number];
3735  dynamic_array[ni.number - 1] = 543;
3736
3737  // work around unused variable warnings
3738  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3739	  || dynamic_array[ni.number - 1] != 543);
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3746do
3747  CC="$ac_save_CC $ac_arg"
3748  if ac_fn_c_try_compile "$LINENO"; then :
3749  ac_cv_prog_cc_c99=$ac_arg
3750fi
3751rm -f core conftest.err conftest.$ac_objext
3752  test "x$ac_cv_prog_cc_c99" != "xno" && break
3753done
3754rm -f conftest.$ac_ext
3755CC=$ac_save_CC
3756
3757fi
3758# AC_CACHE_VAL
3759case "x$ac_cv_prog_cc_c99" in
3760  x)
3761    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3762$as_echo "none needed" >&6; } ;;
3763  xno)
3764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3765$as_echo "unsupported" >&6; } ;;
3766  *)
3767    CC="$CC $ac_cv_prog_cc_c99"
3768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3769$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3770esac
3771if test "x$ac_cv_prog_cc_c99" != xno; then :
3772
3773fi
3774
3775
3776
3777ac_ext=c
3778ac_cpp='$CPP $CPPFLAGS'
3779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3783$as_echo_n "checking how to run the C preprocessor... " >&6; }
3784# On Suns, sometimes $CPP names a directory.
3785if test -n "$CPP" && test -d "$CPP"; then
3786  CPP=
3787fi
3788if test -z "$CPP"; then
3789  if ${ac_cv_prog_CPP+:} false; then :
3790  $as_echo_n "(cached) " >&6
3791else
3792      # Double quotes because CPP needs to be expanded
3793    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3794    do
3795      ac_preproc_ok=false
3796for ac_c_preproc_warn_flag in '' yes
3797do
3798  # Use a header file that comes with gcc, so configuring glibc
3799  # with a fresh cross-compiler works.
3800  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801  # <limits.h> exists even on freestanding compilers.
3802  # On the NeXT, cc -E runs the code through the compiler's parser,
3803  # not just through cpp. "Syntax error" is here to catch this case.
3804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805/* end confdefs.h.  */
3806#ifdef __STDC__
3807# include <limits.h>
3808#else
3809# include <assert.h>
3810#endif
3811		     Syntax error
3812_ACEOF
3813if ac_fn_c_try_cpp "$LINENO"; then :
3814
3815else
3816  # Broken: fails on valid input.
3817continue
3818fi
3819rm -f conftest.err conftest.i conftest.$ac_ext
3820
3821  # OK, works on sane cases.  Now check whether nonexistent headers
3822  # can be detected and how.
3823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824/* end confdefs.h.  */
3825#include <ac_nonexistent.h>
3826_ACEOF
3827if ac_fn_c_try_cpp "$LINENO"; then :
3828  # Broken: success on invalid input.
3829continue
3830else
3831  # Passes both tests.
3832ac_preproc_ok=:
3833break
3834fi
3835rm -f conftest.err conftest.i conftest.$ac_ext
3836
3837done
3838# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3839rm -f conftest.i conftest.err conftest.$ac_ext
3840if $ac_preproc_ok; then :
3841  break
3842fi
3843
3844    done
3845    ac_cv_prog_CPP=$CPP
3846
3847fi
3848  CPP=$ac_cv_prog_CPP
3849else
3850  ac_cv_prog_CPP=$CPP
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3853$as_echo "$CPP" >&6; }
3854ac_preproc_ok=false
3855for ac_c_preproc_warn_flag in '' yes
3856do
3857  # Use a header file that comes with gcc, so configuring glibc
3858  # with a fresh cross-compiler works.
3859  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860  # <limits.h> exists even on freestanding compilers.
3861  # On the NeXT, cc -E runs the code through the compiler's parser,
3862  # not just through cpp. "Syntax error" is here to catch this case.
3863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h.  */
3865#ifdef __STDC__
3866# include <limits.h>
3867#else
3868# include <assert.h>
3869#endif
3870		     Syntax error
3871_ACEOF
3872if ac_fn_c_try_cpp "$LINENO"; then :
3873
3874else
3875  # Broken: fails on valid input.
3876continue
3877fi
3878rm -f conftest.err conftest.i conftest.$ac_ext
3879
3880  # OK, works on sane cases.  Now check whether nonexistent headers
3881  # can be detected and how.
3882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883/* end confdefs.h.  */
3884#include <ac_nonexistent.h>
3885_ACEOF
3886if ac_fn_c_try_cpp "$LINENO"; then :
3887  # Broken: success on invalid input.
3888continue
3889else
3890  # Passes both tests.
3891ac_preproc_ok=:
3892break
3893fi
3894rm -f conftest.err conftest.i conftest.$ac_ext
3895
3896done
3897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3898rm -f conftest.i conftest.err conftest.$ac_ext
3899if $ac_preproc_ok; then :
3900
3901else
3902  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3905See \`config.log' for more details" "$LINENO" 5; }
3906fi
3907
3908ac_ext=c
3909ac_cpp='$CPP $CPPFLAGS'
3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913
3914
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3916$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3917if ${ac_cv_path_GREP+:} false; then :
3918  $as_echo_n "(cached) " >&6
3919else
3920  if test -z "$GREP"; then
3921  ac_path_GREP_found=false
3922  # Loop through the user's path and test for each of PROGNAME-LIST
3923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925do
3926  IFS=$as_save_IFS
3927  test -z "$as_dir" && as_dir=.
3928    for ac_prog in grep ggrep; do
3929    for ac_exec_ext in '' $ac_executable_extensions; do
3930      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3931      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3932# Check for GNU ac_path_GREP and select it if it is found.
3933  # Check for GNU $ac_path_GREP
3934case `"$ac_path_GREP" --version 2>&1` in
3935*GNU*)
3936  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937*)
3938  ac_count=0
3939  $as_echo_n 0123456789 >"conftest.in"
3940  while :
3941  do
3942    cat "conftest.in" "conftest.in" >"conftest.tmp"
3943    mv "conftest.tmp" "conftest.in"
3944    cp "conftest.in" "conftest.nl"
3945    $as_echo 'GREP' >> "conftest.nl"
3946    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3947    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3948    as_fn_arith $ac_count + 1 && ac_count=$as_val
3949    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3950      # Best one so far, save it but keep looking for a better one
3951      ac_cv_path_GREP="$ac_path_GREP"
3952      ac_path_GREP_max=$ac_count
3953    fi
3954    # 10*(2^10) chars as input seems more than enough
3955    test $ac_count -gt 10 && break
3956  done
3957  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958esac
3959
3960      $ac_path_GREP_found && break 3
3961    done
3962  done
3963  done
3964IFS=$as_save_IFS
3965  if test -z "$ac_cv_path_GREP"; then
3966    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3967  fi
3968else
3969  ac_cv_path_GREP=$GREP
3970fi
3971
3972fi
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3974$as_echo "$ac_cv_path_GREP" >&6; }
3975 GREP="$ac_cv_path_GREP"
3976
3977
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3979$as_echo_n "checking for egrep... " >&6; }
3980if ${ac_cv_path_EGREP+:} false; then :
3981  $as_echo_n "(cached) " >&6
3982else
3983  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3984   then ac_cv_path_EGREP="$GREP -E"
3985   else
3986     if test -z "$EGREP"; then
3987  ac_path_EGREP_found=false
3988  # Loop through the user's path and test for each of PROGNAME-LIST
3989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991do
3992  IFS=$as_save_IFS
3993  test -z "$as_dir" && as_dir=.
3994    for ac_prog in egrep; do
3995    for ac_exec_ext in '' $ac_executable_extensions; do
3996      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3997      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3998# Check for GNU ac_path_EGREP and select it if it is found.
3999  # Check for GNU $ac_path_EGREP
4000case `"$ac_path_EGREP" --version 2>&1` in
4001*GNU*)
4002  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4003*)
4004  ac_count=0
4005  $as_echo_n 0123456789 >"conftest.in"
4006  while :
4007  do
4008    cat "conftest.in" "conftest.in" >"conftest.tmp"
4009    mv "conftest.tmp" "conftest.in"
4010    cp "conftest.in" "conftest.nl"
4011    $as_echo 'EGREP' >> "conftest.nl"
4012    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014    as_fn_arith $ac_count + 1 && ac_count=$as_val
4015    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4016      # Best one so far, save it but keep looking for a better one
4017      ac_cv_path_EGREP="$ac_path_EGREP"
4018      ac_path_EGREP_max=$ac_count
4019    fi
4020    # 10*(2^10) chars as input seems more than enough
4021    test $ac_count -gt 10 && break
4022  done
4023  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4024esac
4025
4026      $ac_path_EGREP_found && break 3
4027    done
4028  done
4029  done
4030IFS=$as_save_IFS
4031  if test -z "$ac_cv_path_EGREP"; then
4032    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4033  fi
4034else
4035  ac_cv_path_EGREP=$EGREP
4036fi
4037
4038   fi
4039fi
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4041$as_echo "$ac_cv_path_EGREP" >&6; }
4042 EGREP="$ac_cv_path_EGREP"
4043
4044
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4046$as_echo_n "checking for ANSI C header files... " >&6; }
4047if ${ac_cv_header_stdc+:} false; then :
4048  $as_echo_n "(cached) " >&6
4049else
4050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h.  */
4052#include <stdlib.h>
4053#include <stdarg.h>
4054#include <string.h>
4055#include <float.h>
4056
4057int
4058main ()
4059{
4060
4061  ;
4062  return 0;
4063}
4064_ACEOF
4065if ac_fn_c_try_compile "$LINENO"; then :
4066  ac_cv_header_stdc=yes
4067else
4068  ac_cv_header_stdc=no
4069fi
4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071
4072if test $ac_cv_header_stdc = yes; then
4073  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h.  */
4076#include <string.h>
4077
4078_ACEOF
4079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4080  $EGREP "memchr" >/dev/null 2>&1; then :
4081
4082else
4083  ac_cv_header_stdc=no
4084fi
4085rm -f conftest*
4086
4087fi
4088
4089if test $ac_cv_header_stdc = yes; then
4090  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092/* end confdefs.h.  */
4093#include <stdlib.h>
4094
4095_ACEOF
4096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097  $EGREP "free" >/dev/null 2>&1; then :
4098
4099else
4100  ac_cv_header_stdc=no
4101fi
4102rm -f conftest*
4103
4104fi
4105
4106if test $ac_cv_header_stdc = yes; then
4107  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4108  if test "$cross_compiling" = yes; then :
4109  :
4110else
4111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112/* end confdefs.h.  */
4113#include <ctype.h>
4114#include <stdlib.h>
4115#if ((' ' & 0x0FF) == 0x020)
4116# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4117# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4118#else
4119# define ISLOWER(c) \
4120		   (('a' <= (c) && (c) <= 'i') \
4121		     || ('j' <= (c) && (c) <= 'r') \
4122		     || ('s' <= (c) && (c) <= 'z'))
4123# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4124#endif
4125
4126#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4127int
4128main ()
4129{
4130  int i;
4131  for (i = 0; i < 256; i++)
4132    if (XOR (islower (i), ISLOWER (i))
4133	|| toupper (i) != TOUPPER (i))
4134      return 2;
4135  return 0;
4136}
4137_ACEOF
4138if ac_fn_c_try_run "$LINENO"; then :
4139
4140else
4141  ac_cv_header_stdc=no
4142fi
4143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4144  conftest.$ac_objext conftest.beam conftest.$ac_ext
4145fi
4146
4147fi
4148fi
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4150$as_echo "$ac_cv_header_stdc" >&6; }
4151if test $ac_cv_header_stdc = yes; then
4152
4153$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4154
4155fi
4156
4157# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4158for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4159		  inttypes.h stdint.h unistd.h
4160do :
4161  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4162ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4163"
4164if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4165  cat >>confdefs.h <<_ACEOF
4166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4167_ACEOF
4168
4169fi
4170
4171done
4172
4173
4174
4175
4176
4177
4178ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4179if test "x$ac_cv_have_decl___clang__" = xyes; then :
4180  CLANGCC="yes"
4181else
4182  CLANGCC="no"
4183fi
4184
4185ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4186if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4187  INTELCC="yes"
4188else
4189  INTELCC="no"
4190fi
4191
4192ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4193if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4194  SUNCC="yes"
4195else
4196  SUNCC="no"
4197fi
4198
4199
4200
4201
4202if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4203	if test -n "$ac_tool_prefix"; then
4204  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4205set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if ${ac_cv_path_PKG_CONFIG+:} false; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  case $PKG_CONFIG in
4212  [\\/]* | ?:[\\/]*)
4213  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4214  ;;
4215  *)
4216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH
4218do
4219  IFS=$as_save_IFS
4220  test -z "$as_dir" && as_dir=.
4221    for ac_exec_ext in '' $ac_executable_extensions; do
4222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225    break 2
4226  fi
4227done
4228  done
4229IFS=$as_save_IFS
4230
4231  ;;
4232esac
4233fi
4234PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4235if test -n "$PKG_CONFIG"; then
4236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4237$as_echo "$PKG_CONFIG" >&6; }
4238else
4239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240$as_echo "no" >&6; }
4241fi
4242
4243
4244fi
4245if test -z "$ac_cv_path_PKG_CONFIG"; then
4246  ac_pt_PKG_CONFIG=$PKG_CONFIG
4247  # Extract the first word of "pkg-config", so it can be a program name with args.
4248set dummy pkg-config; ac_word=$2
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250$as_echo_n "checking for $ac_word... " >&6; }
4251if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4252  $as_echo_n "(cached) " >&6
4253else
4254  case $ac_pt_PKG_CONFIG in
4255  [\\/]* | ?:[\\/]*)
4256  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4257  ;;
4258  *)
4259  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260for as_dir in $PATH
4261do
4262  IFS=$as_save_IFS
4263  test -z "$as_dir" && as_dir=.
4264    for ac_exec_ext in '' $ac_executable_extensions; do
4265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4266    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268    break 2
4269  fi
4270done
4271  done
4272IFS=$as_save_IFS
4273
4274  ;;
4275esac
4276fi
4277ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4278if test -n "$ac_pt_PKG_CONFIG"; then
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4280$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4281else
4282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283$as_echo "no" >&6; }
4284fi
4285
4286  if test "x$ac_pt_PKG_CONFIG" = x; then
4287    PKG_CONFIG=""
4288  else
4289    case $cross_compiling:$ac_tool_warned in
4290yes:)
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4293ac_tool_warned=yes ;;
4294esac
4295    PKG_CONFIG=$ac_pt_PKG_CONFIG
4296  fi
4297else
4298  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4299fi
4300
4301fi
4302if test -n "$PKG_CONFIG"; then
4303	_pkg_min_version=0.9.0
4304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4305$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4306	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4307		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4308$as_echo "yes" >&6; }
4309	else
4310		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311$as_echo "no" >&6; }
4312		PKG_CONFIG=""
4313	fi
4314
4315fi
4316# Make sure we can run config.sub.
4317$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4318  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4319
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4321$as_echo_n "checking build system type... " >&6; }
4322if ${ac_cv_build+:} false; then :
4323  $as_echo_n "(cached) " >&6
4324else
4325  ac_build_alias=$build_alias
4326test "x$ac_build_alias" = x &&
4327  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4328test "x$ac_build_alias" = x &&
4329  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4330ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4331  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4332
4333fi
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4335$as_echo "$ac_cv_build" >&6; }
4336case $ac_cv_build in
4337*-*-*) ;;
4338*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4339esac
4340build=$ac_cv_build
4341ac_save_IFS=$IFS; IFS='-'
4342set x $ac_cv_build
4343shift
4344build_cpu=$1
4345build_vendor=$2
4346shift; shift
4347# Remember, the first character of IFS is used to create $*,
4348# except with old shells:
4349build_os=$*
4350IFS=$ac_save_IFS
4351case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4352
4353
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4355$as_echo_n "checking host system type... " >&6; }
4356if ${ac_cv_host+:} false; then :
4357  $as_echo_n "(cached) " >&6
4358else
4359  if test "x$host_alias" = x; then
4360  ac_cv_host=$ac_cv_build
4361else
4362  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4363    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4364fi
4365
4366fi
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4368$as_echo "$ac_cv_host" >&6; }
4369case $ac_cv_host in
4370*-*-*) ;;
4371*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4372esac
4373host=$ac_cv_host
4374ac_save_IFS=$IFS; IFS='-'
4375set x $ac_cv_host
4376shift
4377host_cpu=$1
4378host_vendor=$2
4379shift; shift
4380# Remember, the first character of IFS is used to create $*,
4381# except with old shells:
4382host_os=$*
4383IFS=$ac_save_IFS
4384case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4385
4386
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4388$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4389if ${ac_cv_path_SED+:} false; then :
4390  $as_echo_n "(cached) " >&6
4391else
4392            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4393     for ac_i in 1 2 3 4 5 6 7; do
4394       ac_script="$ac_script$as_nl$ac_script"
4395     done
4396     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4397     { ac_script=; unset ac_script;}
4398     if test -z "$SED"; then
4399  ac_path_SED_found=false
4400  # Loop through the user's path and test for each of PROGNAME-LIST
4401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404  IFS=$as_save_IFS
4405  test -z "$as_dir" && as_dir=.
4406    for ac_prog in sed gsed; do
4407    for ac_exec_ext in '' $ac_executable_extensions; do
4408      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4409      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4410# Check for GNU ac_path_SED and select it if it is found.
4411  # Check for GNU $ac_path_SED
4412case `"$ac_path_SED" --version 2>&1` in
4413*GNU*)
4414  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4415*)
4416  ac_count=0
4417  $as_echo_n 0123456789 >"conftest.in"
4418  while :
4419  do
4420    cat "conftest.in" "conftest.in" >"conftest.tmp"
4421    mv "conftest.tmp" "conftest.in"
4422    cp "conftest.in" "conftest.nl"
4423    $as_echo '' >> "conftest.nl"
4424    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4425    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4426    as_fn_arith $ac_count + 1 && ac_count=$as_val
4427    if test $ac_count -gt ${ac_path_SED_max-0}; then
4428      # Best one so far, save it but keep looking for a better one
4429      ac_cv_path_SED="$ac_path_SED"
4430      ac_path_SED_max=$ac_count
4431    fi
4432    # 10*(2^10) chars as input seems more than enough
4433    test $ac_count -gt 10 && break
4434  done
4435  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4436esac
4437
4438      $ac_path_SED_found && break 3
4439    done
4440  done
4441  done
4442IFS=$as_save_IFS
4443  if test -z "$ac_cv_path_SED"; then
4444    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4445  fi
4446else
4447  ac_cv_path_SED=$SED
4448fi
4449
4450fi
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4452$as_echo "$ac_cv_path_SED" >&6; }
4453 SED="$ac_cv_path_SED"
4454  rm -f conftest.sed
4455
4456
4457
4458
4459
4460
4461# Check whether --enable-selective-werror was given.
4462if test "${enable_selective_werror+set}" = set; then :
4463  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4464else
4465  SELECTIVE_WERROR=yes
4466fi
4467
4468
4469
4470
4471
4472# -v is too short to test reliably with XORG_TESTSET_CFLAG
4473if test "x$SUNCC" = "xyes"; then
4474    BASE_CFLAGS="-v"
4475else
4476    BASE_CFLAGS=""
4477fi
4478
4479# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493xorg_testset_save_CFLAGS="$CFLAGS"
4494
4495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4496	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4500  $as_echo_n "(cached) " >&6
4501else
4502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h.  */
4504int i;
4505_ACEOF
4506if ac_fn_c_try_compile "$LINENO"; then :
4507  xorg_cv_cc_flag_unknown_warning_option=yes
4508else
4509  xorg_cv_cc_flag_unknown_warning_option=no
4510fi
4511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4515	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4516	CFLAGS="$xorg_testset_save_CFLAGS"
4517fi
4518
4519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4520	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4521		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4522	fi
4523	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4527  $as_echo_n "(cached) " >&6
4528else
4529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530/* end confdefs.h.  */
4531int i;
4532_ACEOF
4533if ac_fn_c_try_compile "$LINENO"; then :
4534  xorg_cv_cc_flag_unused_command_line_argument=yes
4535else
4536  xorg_cv_cc_flag_unused_command_line_argument=no
4537fi
4538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539fi
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4543	CFLAGS="$xorg_testset_save_CFLAGS"
4544fi
4545
4546found="no"
4547
4548	if test $found = "no" ; then
4549		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4551		fi
4552
4553		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4555		fi
4556
4557		CFLAGS="$CFLAGS -Wall"
4558
4559		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4560$as_echo_n "checking if $CC supports -Wall... " >&6; }
4561		cacheid=xorg_cv_cc_flag__Wall
4562		if eval \${$cacheid+:} false; then :
4563  $as_echo_n "(cached) " >&6
4564else
4565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566/* end confdefs.h.  */
4567int i;
4568int
4569main ()
4570{
4571
4572  ;
4573  return 0;
4574}
4575_ACEOF
4576if ac_fn_c_try_link "$LINENO"; then :
4577  eval $cacheid=yes
4578else
4579  eval $cacheid=no
4580fi
4581rm -f core conftest.err conftest.$ac_objext \
4582    conftest$ac_exeext conftest.$ac_ext
4583fi
4584
4585
4586		CFLAGS="$xorg_testset_save_CFLAGS"
4587
4588		eval supported=\$$cacheid
4589		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4590$as_echo "$supported" >&6; }
4591		if test "$supported" = "yes" ; then
4592			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4593			found="yes"
4594		fi
4595	fi
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611xorg_testset_save_CFLAGS="$CFLAGS"
4612
4613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4618  $as_echo_n "(cached) " >&6
4619else
4620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621/* end confdefs.h.  */
4622int i;
4623_ACEOF
4624if ac_fn_c_try_compile "$LINENO"; then :
4625  xorg_cv_cc_flag_unknown_warning_option=yes
4626else
4627  xorg_cv_cc_flag_unknown_warning_option=no
4628fi
4629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630fi
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4634	CFLAGS="$xorg_testset_save_CFLAGS"
4635fi
4636
4637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4640	fi
4641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4642	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h.  */
4649int i;
4650_ACEOF
4651if ac_fn_c_try_compile "$LINENO"; then :
4652  xorg_cv_cc_flag_unused_command_line_argument=yes
4653else
4654  xorg_cv_cc_flag_unused_command_line_argument=no
4655fi
4656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657fi
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4661	CFLAGS="$xorg_testset_save_CFLAGS"
4662fi
4663
4664found="no"
4665
4666	if test $found = "no" ; then
4667		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4669		fi
4670
4671		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4673		fi
4674
4675		CFLAGS="$CFLAGS -Wpointer-arith"
4676
4677		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4678$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4679		cacheid=xorg_cv_cc_flag__Wpointer_arith
4680		if eval \${$cacheid+:} false; then :
4681  $as_echo_n "(cached) " >&6
4682else
4683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684/* end confdefs.h.  */
4685int i;
4686int
4687main ()
4688{
4689
4690  ;
4691  return 0;
4692}
4693_ACEOF
4694if ac_fn_c_try_link "$LINENO"; then :
4695  eval $cacheid=yes
4696else
4697  eval $cacheid=no
4698fi
4699rm -f core conftest.err conftest.$ac_objext \
4700    conftest$ac_exeext conftest.$ac_ext
4701fi
4702
4703
4704		CFLAGS="$xorg_testset_save_CFLAGS"
4705
4706		eval supported=\$$cacheid
4707		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4708$as_echo "$supported" >&6; }
4709		if test "$supported" = "yes" ; then
4710			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4711			found="yes"
4712		fi
4713	fi
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729xorg_testset_save_CFLAGS="$CFLAGS"
4730
4731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4736  $as_echo_n "(cached) " >&6
4737else
4738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740int i;
4741_ACEOF
4742if ac_fn_c_try_compile "$LINENO"; then :
4743  xorg_cv_cc_flag_unknown_warning_option=yes
4744else
4745  xorg_cv_cc_flag_unknown_warning_option=no
4746fi
4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748fi
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4752	CFLAGS="$xorg_testset_save_CFLAGS"
4753fi
4754
4755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4758	fi
4759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766/* end confdefs.h.  */
4767int i;
4768_ACEOF
4769if ac_fn_c_try_compile "$LINENO"; then :
4770  xorg_cv_cc_flag_unused_command_line_argument=yes
4771else
4772  xorg_cv_cc_flag_unused_command_line_argument=no
4773fi
4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775fi
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4778	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4779	CFLAGS="$xorg_testset_save_CFLAGS"
4780fi
4781
4782found="no"
4783
4784	if test $found = "no" ; then
4785		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4787		fi
4788
4789		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4791		fi
4792
4793		CFLAGS="$CFLAGS -Wmissing-declarations"
4794
4795		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4796$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4797		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4798		if eval \${$cacheid+:} false; then :
4799  $as_echo_n "(cached) " >&6
4800else
4801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h.  */
4803int i;
4804int
4805main ()
4806{
4807
4808  ;
4809  return 0;
4810}
4811_ACEOF
4812if ac_fn_c_try_link "$LINENO"; then :
4813  eval $cacheid=yes
4814else
4815  eval $cacheid=no
4816fi
4817rm -f core conftest.err conftest.$ac_objext \
4818    conftest$ac_exeext conftest.$ac_ext
4819fi
4820
4821
4822		CFLAGS="$xorg_testset_save_CFLAGS"
4823
4824		eval supported=\$$cacheid
4825		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4826$as_echo "$supported" >&6; }
4827		if test "$supported" = "yes" ; then
4828			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4829			found="yes"
4830		fi
4831	fi
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847xorg_testset_save_CFLAGS="$CFLAGS"
4848
4849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4851	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4854  $as_echo_n "(cached) " >&6
4855else
4856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h.  */
4858int i;
4859_ACEOF
4860if ac_fn_c_try_compile "$LINENO"; then :
4861  xorg_cv_cc_flag_unknown_warning_option=yes
4862else
4863  xorg_cv_cc_flag_unknown_warning_option=no
4864fi
4865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866fi
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4870	CFLAGS="$xorg_testset_save_CFLAGS"
4871fi
4872
4873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4876	fi
4877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4881  $as_echo_n "(cached) " >&6
4882else
4883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h.  */
4885int i;
4886_ACEOF
4887if ac_fn_c_try_compile "$LINENO"; then :
4888  xorg_cv_cc_flag_unused_command_line_argument=yes
4889else
4890  xorg_cv_cc_flag_unused_command_line_argument=no
4891fi
4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893fi
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4896	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4897	CFLAGS="$xorg_testset_save_CFLAGS"
4898fi
4899
4900found="no"
4901
4902	if test $found = "no" ; then
4903		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4905		fi
4906
4907		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4909		fi
4910
4911		CFLAGS="$CFLAGS -Wformat=2"
4912
4913		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4914$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4915		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4916		if eval \${$cacheid+:} false; then :
4917  $as_echo_n "(cached) " >&6
4918else
4919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920/* end confdefs.h.  */
4921int i;
4922int
4923main ()
4924{
4925
4926  ;
4927  return 0;
4928}
4929_ACEOF
4930if ac_fn_c_try_link "$LINENO"; then :
4931  eval $cacheid=yes
4932else
4933  eval $cacheid=no
4934fi
4935rm -f core conftest.err conftest.$ac_objext \
4936    conftest$ac_exeext conftest.$ac_ext
4937fi
4938
4939
4940		CFLAGS="$xorg_testset_save_CFLAGS"
4941
4942		eval supported=\$$cacheid
4943		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4944$as_echo "$supported" >&6; }
4945		if test "$supported" = "yes" ; then
4946			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4947			found="yes"
4948		fi
4949	fi
4950
4951	if test $found = "no" ; then
4952		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4953			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4954		fi
4955
4956		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4957			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4958		fi
4959
4960		CFLAGS="$CFLAGS -Wformat"
4961
4962		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4963$as_echo_n "checking if $CC supports -Wformat... " >&6; }
4964		cacheid=xorg_cv_cc_flag__Wformat
4965		if eval \${$cacheid+:} false; then :
4966  $as_echo_n "(cached) " >&6
4967else
4968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969/* end confdefs.h.  */
4970int i;
4971int
4972main ()
4973{
4974
4975  ;
4976  return 0;
4977}
4978_ACEOF
4979if ac_fn_c_try_link "$LINENO"; then :
4980  eval $cacheid=yes
4981else
4982  eval $cacheid=no
4983fi
4984rm -f core conftest.err conftest.$ac_objext \
4985    conftest$ac_exeext conftest.$ac_ext
4986fi
4987
4988
4989		CFLAGS="$xorg_testset_save_CFLAGS"
4990
4991		eval supported=\$$cacheid
4992		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4993$as_echo "$supported" >&6; }
4994		if test "$supported" = "yes" ; then
4995			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4996			found="yes"
4997		fi
4998	fi
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016xorg_testset_save_CFLAGS="$CFLAGS"
5017
5018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5019	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5021$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5022if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5023  $as_echo_n "(cached) " >&6
5024else
5025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026/* end confdefs.h.  */
5027int i;
5028_ACEOF
5029if ac_fn_c_try_compile "$LINENO"; then :
5030  xorg_cv_cc_flag_unknown_warning_option=yes
5031else
5032  xorg_cv_cc_flag_unknown_warning_option=no
5033fi
5034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035fi
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5037$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5039	CFLAGS="$xorg_testset_save_CFLAGS"
5040fi
5041
5042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5045	fi
5046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5048$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5049if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5050  $as_echo_n "(cached) " >&6
5051else
5052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h.  */
5054int i;
5055_ACEOF
5056if ac_fn_c_try_compile "$LINENO"; then :
5057  xorg_cv_cc_flag_unused_command_line_argument=yes
5058else
5059  xorg_cv_cc_flag_unused_command_line_argument=no
5060fi
5061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5064$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5066	CFLAGS="$xorg_testset_save_CFLAGS"
5067fi
5068
5069found="no"
5070
5071	if test $found = "no" ; then
5072		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074		fi
5075
5076		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078		fi
5079
5080		CFLAGS="$CFLAGS -Wstrict-prototypes"
5081
5082		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5083$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5084		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5085		if eval \${$cacheid+:} false; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089/* end confdefs.h.  */
5090int i;
5091int
5092main ()
5093{
5094
5095  ;
5096  return 0;
5097}
5098_ACEOF
5099if ac_fn_c_try_link "$LINENO"; then :
5100  eval $cacheid=yes
5101else
5102  eval $cacheid=no
5103fi
5104rm -f core conftest.err conftest.$ac_objext \
5105    conftest$ac_exeext conftest.$ac_ext
5106fi
5107
5108
5109		CFLAGS="$xorg_testset_save_CFLAGS"
5110
5111		eval supported=\$$cacheid
5112		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5113$as_echo "$supported" >&6; }
5114		if test "$supported" = "yes" ; then
5115			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5116			found="yes"
5117		fi
5118	fi
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134xorg_testset_save_CFLAGS="$CFLAGS"
5135
5136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h.  */
5145int i;
5146_ACEOF
5147if ac_fn_c_try_compile "$LINENO"; then :
5148  xorg_cv_cc_flag_unknown_warning_option=yes
5149else
5150  xorg_cv_cc_flag_unknown_warning_option=no
5151fi
5152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153fi
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5156	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5157	CFLAGS="$xorg_testset_save_CFLAGS"
5158fi
5159
5160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5161	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5162		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5163	fi
5164	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171/* end confdefs.h.  */
5172int i;
5173_ACEOF
5174if ac_fn_c_try_compile "$LINENO"; then :
5175  xorg_cv_cc_flag_unused_command_line_argument=yes
5176else
5177  xorg_cv_cc_flag_unused_command_line_argument=no
5178fi
5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5183	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5184	CFLAGS="$xorg_testset_save_CFLAGS"
5185fi
5186
5187found="no"
5188
5189	if test $found = "no" ; then
5190		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192		fi
5193
5194		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5196		fi
5197
5198		CFLAGS="$CFLAGS -Wmissing-prototypes"
5199
5200		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5201$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5202		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5203		if eval \${$cacheid+:} false; then :
5204  $as_echo_n "(cached) " >&6
5205else
5206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207/* end confdefs.h.  */
5208int i;
5209int
5210main ()
5211{
5212
5213  ;
5214  return 0;
5215}
5216_ACEOF
5217if ac_fn_c_try_link "$LINENO"; then :
5218  eval $cacheid=yes
5219else
5220  eval $cacheid=no
5221fi
5222rm -f core conftest.err conftest.$ac_objext \
5223    conftest$ac_exeext conftest.$ac_ext
5224fi
5225
5226
5227		CFLAGS="$xorg_testset_save_CFLAGS"
5228
5229		eval supported=\$$cacheid
5230		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5231$as_echo "$supported" >&6; }
5232		if test "$supported" = "yes" ; then
5233			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5234			found="yes"
5235		fi
5236	fi
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252xorg_testset_save_CFLAGS="$CFLAGS"
5253
5254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5259  $as_echo_n "(cached) " >&6
5260else
5261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263int i;
5264_ACEOF
5265if ac_fn_c_try_compile "$LINENO"; then :
5266  xorg_cv_cc_flag_unknown_warning_option=yes
5267else
5268  xorg_cv_cc_flag_unknown_warning_option=no
5269fi
5270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5275	CFLAGS="$xorg_testset_save_CFLAGS"
5276fi
5277
5278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5281	fi
5282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289/* end confdefs.h.  */
5290int i;
5291_ACEOF
5292if ac_fn_c_try_compile "$LINENO"; then :
5293  xorg_cv_cc_flag_unused_command_line_argument=yes
5294else
5295  xorg_cv_cc_flag_unused_command_line_argument=no
5296fi
5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5302	CFLAGS="$xorg_testset_save_CFLAGS"
5303fi
5304
5305found="no"
5306
5307	if test $found = "no" ; then
5308		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310		fi
5311
5312		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5314		fi
5315
5316		CFLAGS="$CFLAGS -Wnested-externs"
5317
5318		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5319$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5320		cacheid=xorg_cv_cc_flag__Wnested_externs
5321		if eval \${$cacheid+:} false; then :
5322  $as_echo_n "(cached) " >&6
5323else
5324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326int i;
5327int
5328main ()
5329{
5330
5331  ;
5332  return 0;
5333}
5334_ACEOF
5335if ac_fn_c_try_link "$LINENO"; then :
5336  eval $cacheid=yes
5337else
5338  eval $cacheid=no
5339fi
5340rm -f core conftest.err conftest.$ac_objext \
5341    conftest$ac_exeext conftest.$ac_ext
5342fi
5343
5344
5345		CFLAGS="$xorg_testset_save_CFLAGS"
5346
5347		eval supported=\$$cacheid
5348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5349$as_echo "$supported" >&6; }
5350		if test "$supported" = "yes" ; then
5351			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5352			found="yes"
5353		fi
5354	fi
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370xorg_testset_save_CFLAGS="$CFLAGS"
5371
5372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5377  $as_echo_n "(cached) " >&6
5378else
5379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h.  */
5381int i;
5382_ACEOF
5383if ac_fn_c_try_compile "$LINENO"; then :
5384  xorg_cv_cc_flag_unknown_warning_option=yes
5385else
5386  xorg_cv_cc_flag_unknown_warning_option=no
5387fi
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389fi
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5393	CFLAGS="$xorg_testset_save_CFLAGS"
5394fi
5395
5396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5399	fi
5400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h.  */
5408int i;
5409_ACEOF
5410if ac_fn_c_try_compile "$LINENO"; then :
5411  xorg_cv_cc_flag_unused_command_line_argument=yes
5412else
5413  xorg_cv_cc_flag_unused_command_line_argument=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5420	CFLAGS="$xorg_testset_save_CFLAGS"
5421fi
5422
5423found="no"
5424
5425	if test $found = "no" ; then
5426		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428		fi
5429
5430		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432		fi
5433
5434		CFLAGS="$CFLAGS -Wbad-function-cast"
5435
5436		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5437$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5438		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5439		if eval \${$cacheid+:} false; then :
5440  $as_echo_n "(cached) " >&6
5441else
5442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h.  */
5444int i;
5445int
5446main ()
5447{
5448
5449  ;
5450  return 0;
5451}
5452_ACEOF
5453if ac_fn_c_try_link "$LINENO"; then :
5454  eval $cacheid=yes
5455else
5456  eval $cacheid=no
5457fi
5458rm -f core conftest.err conftest.$ac_objext \
5459    conftest$ac_exeext conftest.$ac_ext
5460fi
5461
5462
5463		CFLAGS="$xorg_testset_save_CFLAGS"
5464
5465		eval supported=\$$cacheid
5466		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5467$as_echo "$supported" >&6; }
5468		if test "$supported" = "yes" ; then
5469			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5470			found="yes"
5471		fi
5472	fi
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488xorg_testset_save_CFLAGS="$CFLAGS"
5489
5490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5495  $as_echo_n "(cached) " >&6
5496else
5497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h.  */
5499int i;
5500_ACEOF
5501if ac_fn_c_try_compile "$LINENO"; then :
5502  xorg_cv_cc_flag_unknown_warning_option=yes
5503else
5504  xorg_cv_cc_flag_unknown_warning_option=no
5505fi
5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5511	CFLAGS="$xorg_testset_save_CFLAGS"
5512fi
5513
5514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5517	fi
5518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526int i;
5527_ACEOF
5528if ac_fn_c_try_compile "$LINENO"; then :
5529  xorg_cv_cc_flag_unused_command_line_argument=yes
5530else
5531  xorg_cv_cc_flag_unused_command_line_argument=no
5532fi
5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534fi
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5538	CFLAGS="$xorg_testset_save_CFLAGS"
5539fi
5540
5541found="no"
5542
5543	if test $found = "no" ; then
5544		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546		fi
5547
5548		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5550		fi
5551
5552		CFLAGS="$CFLAGS -Wold-style-definition"
5553
5554		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5555$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5556		cacheid=xorg_cv_cc_flag__Wold_style_definition
5557		if eval \${$cacheid+:} false; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h.  */
5562int i;
5563int
5564main ()
5565{
5566
5567  ;
5568  return 0;
5569}
5570_ACEOF
5571if ac_fn_c_try_link "$LINENO"; then :
5572  eval $cacheid=yes
5573else
5574  eval $cacheid=no
5575fi
5576rm -f core conftest.err conftest.$ac_objext \
5577    conftest$ac_exeext conftest.$ac_ext
5578fi
5579
5580
5581		CFLAGS="$xorg_testset_save_CFLAGS"
5582
5583		eval supported=\$$cacheid
5584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5585$as_echo "$supported" >&6; }
5586		if test "$supported" = "yes" ; then
5587			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5588			found="yes"
5589		fi
5590	fi
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606xorg_testset_save_CFLAGS="$CFLAGS"
5607
5608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5609	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h.  */
5617int i;
5618_ACEOF
5619if ac_fn_c_try_compile "$LINENO"; then :
5620  xorg_cv_cc_flag_unknown_warning_option=yes
5621else
5622  xorg_cv_cc_flag_unknown_warning_option=no
5623fi
5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625fi
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5629	CFLAGS="$xorg_testset_save_CFLAGS"
5630fi
5631
5632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635	fi
5636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h.  */
5644int i;
5645_ACEOF
5646if ac_fn_c_try_compile "$LINENO"; then :
5647  xorg_cv_cc_flag_unused_command_line_argument=yes
5648else
5649  xorg_cv_cc_flag_unused_command_line_argument=no
5650fi
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652fi
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5656	CFLAGS="$xorg_testset_save_CFLAGS"
5657fi
5658
5659found="no"
5660
5661	if test $found = "no" ; then
5662		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5664		fi
5665
5666		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5668		fi
5669
5670		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5671
5672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5673$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5674		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5675		if eval \${$cacheid+:} false; then :
5676  $as_echo_n "(cached) " >&6
5677else
5678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679/* end confdefs.h.  */
5680int i;
5681int
5682main ()
5683{
5684
5685  ;
5686  return 0;
5687}
5688_ACEOF
5689if ac_fn_c_try_link "$LINENO"; then :
5690  eval $cacheid=yes
5691else
5692  eval $cacheid=no
5693fi
5694rm -f core conftest.err conftest.$ac_objext \
5695    conftest$ac_exeext conftest.$ac_ext
5696fi
5697
5698
5699		CFLAGS="$xorg_testset_save_CFLAGS"
5700
5701		eval supported=\$$cacheid
5702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5703$as_echo "$supported" >&6; }
5704		if test "$supported" = "yes" ; then
5705			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5706			found="yes"
5707		fi
5708	fi
5709
5710
5711
5712
5713
5714# This chunk adds additional warnings that could catch undesired effects.
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728xorg_testset_save_CFLAGS="$CFLAGS"
5729
5730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5731	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5735  $as_echo_n "(cached) " >&6
5736else
5737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738/* end confdefs.h.  */
5739int i;
5740_ACEOF
5741if ac_fn_c_try_compile "$LINENO"; then :
5742  xorg_cv_cc_flag_unknown_warning_option=yes
5743else
5744  xorg_cv_cc_flag_unknown_warning_option=no
5745fi
5746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747fi
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5751	CFLAGS="$xorg_testset_save_CFLAGS"
5752fi
5753
5754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5757	fi
5758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5762  $as_echo_n "(cached) " >&6
5763else
5764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765/* end confdefs.h.  */
5766int i;
5767_ACEOF
5768if ac_fn_c_try_compile "$LINENO"; then :
5769  xorg_cv_cc_flag_unused_command_line_argument=yes
5770else
5771  xorg_cv_cc_flag_unused_command_line_argument=no
5772fi
5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774fi
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5777	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5778	CFLAGS="$xorg_testset_save_CFLAGS"
5779fi
5780
5781found="no"
5782
5783	if test $found = "no" ; then
5784		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5786		fi
5787
5788		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5790		fi
5791
5792		CFLAGS="$CFLAGS -Wunused"
5793
5794		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5795$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5796		cacheid=xorg_cv_cc_flag__Wunused
5797		if eval \${$cacheid+:} false; then :
5798  $as_echo_n "(cached) " >&6
5799else
5800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801/* end confdefs.h.  */
5802int i;
5803int
5804main ()
5805{
5806
5807  ;
5808  return 0;
5809}
5810_ACEOF
5811if ac_fn_c_try_link "$LINENO"; then :
5812  eval $cacheid=yes
5813else
5814  eval $cacheid=no
5815fi
5816rm -f core conftest.err conftest.$ac_objext \
5817    conftest$ac_exeext conftest.$ac_ext
5818fi
5819
5820
5821		CFLAGS="$xorg_testset_save_CFLAGS"
5822
5823		eval supported=\$$cacheid
5824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5825$as_echo "$supported" >&6; }
5826		if test "$supported" = "yes" ; then
5827			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5828			found="yes"
5829		fi
5830	fi
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846xorg_testset_save_CFLAGS="$CFLAGS"
5847
5848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5853  $as_echo_n "(cached) " >&6
5854else
5855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856/* end confdefs.h.  */
5857int i;
5858_ACEOF
5859if ac_fn_c_try_compile "$LINENO"; then :
5860  xorg_cv_cc_flag_unknown_warning_option=yes
5861else
5862  xorg_cv_cc_flag_unknown_warning_option=no
5863fi
5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865fi
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5869	CFLAGS="$xorg_testset_save_CFLAGS"
5870fi
5871
5872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5875	fi
5876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5880  $as_echo_n "(cached) " >&6
5881else
5882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883/* end confdefs.h.  */
5884int i;
5885_ACEOF
5886if ac_fn_c_try_compile "$LINENO"; then :
5887  xorg_cv_cc_flag_unused_command_line_argument=yes
5888else
5889  xorg_cv_cc_flag_unused_command_line_argument=no
5890fi
5891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892fi
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5896	CFLAGS="$xorg_testset_save_CFLAGS"
5897fi
5898
5899found="no"
5900
5901	if test $found = "no" ; then
5902		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5904		fi
5905
5906		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5908		fi
5909
5910		CFLAGS="$CFLAGS -Wuninitialized"
5911
5912		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5913$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5914		cacheid=xorg_cv_cc_flag__Wuninitialized
5915		if eval \${$cacheid+:} false; then :
5916  $as_echo_n "(cached) " >&6
5917else
5918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919/* end confdefs.h.  */
5920int i;
5921int
5922main ()
5923{
5924
5925  ;
5926  return 0;
5927}
5928_ACEOF
5929if ac_fn_c_try_link "$LINENO"; then :
5930  eval $cacheid=yes
5931else
5932  eval $cacheid=no
5933fi
5934rm -f core conftest.err conftest.$ac_objext \
5935    conftest$ac_exeext conftest.$ac_ext
5936fi
5937
5938
5939		CFLAGS="$xorg_testset_save_CFLAGS"
5940
5941		eval supported=\$$cacheid
5942		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5943$as_echo "$supported" >&6; }
5944		if test "$supported" = "yes" ; then
5945			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5946			found="yes"
5947		fi
5948	fi
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964xorg_testset_save_CFLAGS="$CFLAGS"
5965
5966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5971  $as_echo_n "(cached) " >&6
5972else
5973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974/* end confdefs.h.  */
5975int i;
5976_ACEOF
5977if ac_fn_c_try_compile "$LINENO"; then :
5978  xorg_cv_cc_flag_unknown_warning_option=yes
5979else
5980  xorg_cv_cc_flag_unknown_warning_option=no
5981fi
5982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983fi
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5987	CFLAGS="$xorg_testset_save_CFLAGS"
5988fi
5989
5990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5993	fi
5994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5998  $as_echo_n "(cached) " >&6
5999else
6000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001/* end confdefs.h.  */
6002int i;
6003_ACEOF
6004if ac_fn_c_try_compile "$LINENO"; then :
6005  xorg_cv_cc_flag_unused_command_line_argument=yes
6006else
6007  xorg_cv_cc_flag_unused_command_line_argument=no
6008fi
6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6014	CFLAGS="$xorg_testset_save_CFLAGS"
6015fi
6016
6017found="no"
6018
6019	if test $found = "no" ; then
6020		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6022		fi
6023
6024		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6026		fi
6027
6028		CFLAGS="$CFLAGS -Wshadow"
6029
6030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6031$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6032		cacheid=xorg_cv_cc_flag__Wshadow
6033		if eval \${$cacheid+:} false; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037/* end confdefs.h.  */
6038int i;
6039int
6040main ()
6041{
6042
6043  ;
6044  return 0;
6045}
6046_ACEOF
6047if ac_fn_c_try_link "$LINENO"; then :
6048  eval $cacheid=yes
6049else
6050  eval $cacheid=no
6051fi
6052rm -f core conftest.err conftest.$ac_objext \
6053    conftest$ac_exeext conftest.$ac_ext
6054fi
6055
6056
6057		CFLAGS="$xorg_testset_save_CFLAGS"
6058
6059		eval supported=\$$cacheid
6060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6061$as_echo "$supported" >&6; }
6062		if test "$supported" = "yes" ; then
6063			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6064			found="yes"
6065		fi
6066	fi
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082xorg_testset_save_CFLAGS="$CFLAGS"
6083
6084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092/* end confdefs.h.  */
6093int i;
6094_ACEOF
6095if ac_fn_c_try_compile "$LINENO"; then :
6096  xorg_cv_cc_flag_unknown_warning_option=yes
6097else
6098  xorg_cv_cc_flag_unknown_warning_option=no
6099fi
6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101fi
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6105	CFLAGS="$xorg_testset_save_CFLAGS"
6106fi
6107
6108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111	fi
6112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6116  $as_echo_n "(cached) " >&6
6117else
6118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119/* end confdefs.h.  */
6120int i;
6121_ACEOF
6122if ac_fn_c_try_compile "$LINENO"; then :
6123  xorg_cv_cc_flag_unused_command_line_argument=yes
6124else
6125  xorg_cv_cc_flag_unused_command_line_argument=no
6126fi
6127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128fi
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6132	CFLAGS="$xorg_testset_save_CFLAGS"
6133fi
6134
6135found="no"
6136
6137	if test $found = "no" ; then
6138		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6140		fi
6141
6142		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6144		fi
6145
6146		CFLAGS="$CFLAGS -Wcast-qual"
6147
6148		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6149$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6150		cacheid=xorg_cv_cc_flag__Wcast_qual
6151		if eval \${$cacheid+:} false; then :
6152  $as_echo_n "(cached) " >&6
6153else
6154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h.  */
6156int i;
6157int
6158main ()
6159{
6160
6161  ;
6162  return 0;
6163}
6164_ACEOF
6165if ac_fn_c_try_link "$LINENO"; then :
6166  eval $cacheid=yes
6167else
6168  eval $cacheid=no
6169fi
6170rm -f core conftest.err conftest.$ac_objext \
6171    conftest$ac_exeext conftest.$ac_ext
6172fi
6173
6174
6175		CFLAGS="$xorg_testset_save_CFLAGS"
6176
6177		eval supported=\$$cacheid
6178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6179$as_echo "$supported" >&6; }
6180		if test "$supported" = "yes" ; then
6181			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6182			found="yes"
6183		fi
6184	fi
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200xorg_testset_save_CFLAGS="$CFLAGS"
6201
6202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6207  $as_echo_n "(cached) " >&6
6208else
6209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h.  */
6211int i;
6212_ACEOF
6213if ac_fn_c_try_compile "$LINENO"; then :
6214  xorg_cv_cc_flag_unknown_warning_option=yes
6215else
6216  xorg_cv_cc_flag_unknown_warning_option=no
6217fi
6218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6223	CFLAGS="$xorg_testset_save_CFLAGS"
6224fi
6225
6226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229	fi
6230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6234  $as_echo_n "(cached) " >&6
6235else
6236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237/* end confdefs.h.  */
6238int i;
6239_ACEOF
6240if ac_fn_c_try_compile "$LINENO"; then :
6241  xorg_cv_cc_flag_unused_command_line_argument=yes
6242else
6243  xorg_cv_cc_flag_unused_command_line_argument=no
6244fi
6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246fi
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6250	CFLAGS="$xorg_testset_save_CFLAGS"
6251fi
6252
6253found="no"
6254
6255	if test $found = "no" ; then
6256		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6258		fi
6259
6260		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6262		fi
6263
6264		CFLAGS="$CFLAGS -Wmissing-noreturn"
6265
6266		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6267$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6268		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6269		if eval \${$cacheid+:} false; then :
6270  $as_echo_n "(cached) " >&6
6271else
6272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h.  */
6274int i;
6275int
6276main ()
6277{
6278
6279  ;
6280  return 0;
6281}
6282_ACEOF
6283if ac_fn_c_try_link "$LINENO"; then :
6284  eval $cacheid=yes
6285else
6286  eval $cacheid=no
6287fi
6288rm -f core conftest.err conftest.$ac_objext \
6289    conftest$ac_exeext conftest.$ac_ext
6290fi
6291
6292
6293		CFLAGS="$xorg_testset_save_CFLAGS"
6294
6295		eval supported=\$$cacheid
6296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6297$as_echo "$supported" >&6; }
6298		if test "$supported" = "yes" ; then
6299			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6300			found="yes"
6301		fi
6302	fi
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318xorg_testset_save_CFLAGS="$CFLAGS"
6319
6320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329int i;
6330_ACEOF
6331if ac_fn_c_try_compile "$LINENO"; then :
6332  xorg_cv_cc_flag_unknown_warning_option=yes
6333else
6334  xorg_cv_cc_flag_unknown_warning_option=no
6335fi
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337fi
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6341	CFLAGS="$xorg_testset_save_CFLAGS"
6342fi
6343
6344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347	fi
6348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355/* end confdefs.h.  */
6356int i;
6357_ACEOF
6358if ac_fn_c_try_compile "$LINENO"; then :
6359  xorg_cv_cc_flag_unused_command_line_argument=yes
6360else
6361  xorg_cv_cc_flag_unused_command_line_argument=no
6362fi
6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364fi
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6368	CFLAGS="$xorg_testset_save_CFLAGS"
6369fi
6370
6371found="no"
6372
6373	if test $found = "no" ; then
6374		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376		fi
6377
6378		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380		fi
6381
6382		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6383
6384		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6385$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6386		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6387		if eval \${$cacheid+:} false; then :
6388  $as_echo_n "(cached) " >&6
6389else
6390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h.  */
6392int i;
6393int
6394main ()
6395{
6396
6397  ;
6398  return 0;
6399}
6400_ACEOF
6401if ac_fn_c_try_link "$LINENO"; then :
6402  eval $cacheid=yes
6403else
6404  eval $cacheid=no
6405fi
6406rm -f core conftest.err conftest.$ac_objext \
6407    conftest$ac_exeext conftest.$ac_ext
6408fi
6409
6410
6411		CFLAGS="$xorg_testset_save_CFLAGS"
6412
6413		eval supported=\$$cacheid
6414		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6415$as_echo "$supported" >&6; }
6416		if test "$supported" = "yes" ; then
6417			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6418			found="yes"
6419		fi
6420	fi
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436xorg_testset_save_CFLAGS="$CFLAGS"
6437
6438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446/* end confdefs.h.  */
6447int i;
6448_ACEOF
6449if ac_fn_c_try_compile "$LINENO"; then :
6450  xorg_cv_cc_flag_unknown_warning_option=yes
6451else
6452  xorg_cv_cc_flag_unknown_warning_option=no
6453fi
6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455fi
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6459	CFLAGS="$xorg_testset_save_CFLAGS"
6460fi
6461
6462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465	fi
6466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6470  $as_echo_n "(cached) " >&6
6471else
6472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473/* end confdefs.h.  */
6474int i;
6475_ACEOF
6476if ac_fn_c_try_compile "$LINENO"; then :
6477  xorg_cv_cc_flag_unused_command_line_argument=yes
6478else
6479  xorg_cv_cc_flag_unused_command_line_argument=no
6480fi
6481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482fi
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6486	CFLAGS="$xorg_testset_save_CFLAGS"
6487fi
6488
6489found="no"
6490
6491	if test $found = "no" ; then
6492		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6494		fi
6495
6496		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6498		fi
6499
6500		CFLAGS="$CFLAGS -Wredundant-decls"
6501
6502		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6503$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6504		cacheid=xorg_cv_cc_flag__Wredundant_decls
6505		if eval \${$cacheid+:} false; then :
6506  $as_echo_n "(cached) " >&6
6507else
6508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h.  */
6510int i;
6511int
6512main ()
6513{
6514
6515  ;
6516  return 0;
6517}
6518_ACEOF
6519if ac_fn_c_try_link "$LINENO"; then :
6520  eval $cacheid=yes
6521else
6522  eval $cacheid=no
6523fi
6524rm -f core conftest.err conftest.$ac_objext \
6525    conftest$ac_exeext conftest.$ac_ext
6526fi
6527
6528
6529		CFLAGS="$xorg_testset_save_CFLAGS"
6530
6531		eval supported=\$$cacheid
6532		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6533$as_echo "$supported" >&6; }
6534		if test "$supported" = "yes" ; then
6535			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6536			found="yes"
6537		fi
6538	fi
6539
6540
6541
6542# These are currently disabled because they are noisy.  They will be enabled
6543# in the future once the codebase is sufficiently modernized to silence
6544# them.  For now, I don't want them to drown out the other warnings.
6545# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6546# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6547# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6548
6549# Turn some warnings into errors, so we don't accidently get successful builds
6550# when there are problems that should be fixed.
6551
6552if test "x$SELECTIVE_WERROR" = "xyes" ; then
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566xorg_testset_save_CFLAGS="$CFLAGS"
6567
6568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6569	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6570	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6571$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6572if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6573  $as_echo_n "(cached) " >&6
6574else
6575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576/* end confdefs.h.  */
6577int i;
6578_ACEOF
6579if ac_fn_c_try_compile "$LINENO"; then :
6580  xorg_cv_cc_flag_unknown_warning_option=yes
6581else
6582  xorg_cv_cc_flag_unknown_warning_option=no
6583fi
6584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585fi
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6587$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6589	CFLAGS="$xorg_testset_save_CFLAGS"
6590fi
6591
6592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6595	fi
6596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6598$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6599if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6600  $as_echo_n "(cached) " >&6
6601else
6602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603/* end confdefs.h.  */
6604int i;
6605_ACEOF
6606if ac_fn_c_try_compile "$LINENO"; then :
6607  xorg_cv_cc_flag_unused_command_line_argument=yes
6608else
6609  xorg_cv_cc_flag_unused_command_line_argument=no
6610fi
6611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612fi
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6614$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6615	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6616	CFLAGS="$xorg_testset_save_CFLAGS"
6617fi
6618
6619found="no"
6620
6621	if test $found = "no" ; then
6622		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6623			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6624		fi
6625
6626		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6627			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6628		fi
6629
6630		CFLAGS="$CFLAGS -Werror=implicit"
6631
6632		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6633$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6634		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6635		if eval \${$cacheid+:} false; then :
6636  $as_echo_n "(cached) " >&6
6637else
6638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h.  */
6640int i;
6641int
6642main ()
6643{
6644
6645  ;
6646  return 0;
6647}
6648_ACEOF
6649if ac_fn_c_try_link "$LINENO"; then :
6650  eval $cacheid=yes
6651else
6652  eval $cacheid=no
6653fi
6654rm -f core conftest.err conftest.$ac_objext \
6655    conftest$ac_exeext conftest.$ac_ext
6656fi
6657
6658
6659		CFLAGS="$xorg_testset_save_CFLAGS"
6660
6661		eval supported=\$$cacheid
6662		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6663$as_echo "$supported" >&6; }
6664		if test "$supported" = "yes" ; then
6665			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6666			found="yes"
6667		fi
6668	fi
6669
6670	if test $found = "no" ; then
6671		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6673		fi
6674
6675		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677		fi
6678
6679		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6680
6681		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6682$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6683		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6684		if eval \${$cacheid+:} false; then :
6685  $as_echo_n "(cached) " >&6
6686else
6687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688/* end confdefs.h.  */
6689int i;
6690int
6691main ()
6692{
6693
6694  ;
6695  return 0;
6696}
6697_ACEOF
6698if ac_fn_c_try_link "$LINENO"; then :
6699  eval $cacheid=yes
6700else
6701  eval $cacheid=no
6702fi
6703rm -f core conftest.err conftest.$ac_objext \
6704    conftest$ac_exeext conftest.$ac_ext
6705fi
6706
6707
6708		CFLAGS="$xorg_testset_save_CFLAGS"
6709
6710		eval supported=\$$cacheid
6711		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6712$as_echo "$supported" >&6; }
6713		if test "$supported" = "yes" ; then
6714			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6715			found="yes"
6716		fi
6717	fi
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733xorg_testset_save_CFLAGS="$CFLAGS"
6734
6735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6740  $as_echo_n "(cached) " >&6
6741else
6742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743/* end confdefs.h.  */
6744int i;
6745_ACEOF
6746if ac_fn_c_try_compile "$LINENO"; then :
6747  xorg_cv_cc_flag_unknown_warning_option=yes
6748else
6749  xorg_cv_cc_flag_unknown_warning_option=no
6750fi
6751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752fi
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6756	CFLAGS="$xorg_testset_save_CFLAGS"
6757fi
6758
6759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6762	fi
6763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6767  $as_echo_n "(cached) " >&6
6768else
6769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770/* end confdefs.h.  */
6771int i;
6772_ACEOF
6773if ac_fn_c_try_compile "$LINENO"; then :
6774  xorg_cv_cc_flag_unused_command_line_argument=yes
6775else
6776  xorg_cv_cc_flag_unused_command_line_argument=no
6777fi
6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779fi
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6783	CFLAGS="$xorg_testset_save_CFLAGS"
6784fi
6785
6786found="no"
6787
6788	if test $found = "no" ; then
6789		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791		fi
6792
6793		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6795		fi
6796
6797		CFLAGS="$CFLAGS -Werror=nonnull"
6798
6799		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6800$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6801		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6802		if eval \${$cacheid+:} false; then :
6803  $as_echo_n "(cached) " >&6
6804else
6805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806/* end confdefs.h.  */
6807int i;
6808int
6809main ()
6810{
6811
6812  ;
6813  return 0;
6814}
6815_ACEOF
6816if ac_fn_c_try_link "$LINENO"; then :
6817  eval $cacheid=yes
6818else
6819  eval $cacheid=no
6820fi
6821rm -f core conftest.err conftest.$ac_objext \
6822    conftest$ac_exeext conftest.$ac_ext
6823fi
6824
6825
6826		CFLAGS="$xorg_testset_save_CFLAGS"
6827
6828		eval supported=\$$cacheid
6829		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6830$as_echo "$supported" >&6; }
6831		if test "$supported" = "yes" ; then
6832			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6833			found="yes"
6834		fi
6835	fi
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851xorg_testset_save_CFLAGS="$CFLAGS"
6852
6853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6856$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6857if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6858  $as_echo_n "(cached) " >&6
6859else
6860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861/* end confdefs.h.  */
6862int i;
6863_ACEOF
6864if ac_fn_c_try_compile "$LINENO"; then :
6865  xorg_cv_cc_flag_unknown_warning_option=yes
6866else
6867  xorg_cv_cc_flag_unknown_warning_option=no
6868fi
6869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870fi
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6872$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6873	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6874	CFLAGS="$xorg_testset_save_CFLAGS"
6875fi
6876
6877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6878	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6879		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6880	fi
6881	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6883$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6884if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6885  $as_echo_n "(cached) " >&6
6886else
6887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888/* end confdefs.h.  */
6889int i;
6890_ACEOF
6891if ac_fn_c_try_compile "$LINENO"; then :
6892  xorg_cv_cc_flag_unused_command_line_argument=yes
6893else
6894  xorg_cv_cc_flag_unused_command_line_argument=no
6895fi
6896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897fi
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6899$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6901	CFLAGS="$xorg_testset_save_CFLAGS"
6902fi
6903
6904found="no"
6905
6906	if test $found = "no" ; then
6907		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6909		fi
6910
6911		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6913		fi
6914
6915		CFLAGS="$CFLAGS -Werror=init-self"
6916
6917		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6918$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6919		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6920		if eval \${$cacheid+:} false; then :
6921  $as_echo_n "(cached) " >&6
6922else
6923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924/* end confdefs.h.  */
6925int i;
6926int
6927main ()
6928{
6929
6930  ;
6931  return 0;
6932}
6933_ACEOF
6934if ac_fn_c_try_link "$LINENO"; then :
6935  eval $cacheid=yes
6936else
6937  eval $cacheid=no
6938fi
6939rm -f core conftest.err conftest.$ac_objext \
6940    conftest$ac_exeext conftest.$ac_ext
6941fi
6942
6943
6944		CFLAGS="$xorg_testset_save_CFLAGS"
6945
6946		eval supported=\$$cacheid
6947		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6948$as_echo "$supported" >&6; }
6949		if test "$supported" = "yes" ; then
6950			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6951			found="yes"
6952		fi
6953	fi
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969xorg_testset_save_CFLAGS="$CFLAGS"
6970
6971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6974$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6975if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6976  $as_echo_n "(cached) " >&6
6977else
6978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979/* end confdefs.h.  */
6980int i;
6981_ACEOF
6982if ac_fn_c_try_compile "$LINENO"; then :
6983  xorg_cv_cc_flag_unknown_warning_option=yes
6984else
6985  xorg_cv_cc_flag_unknown_warning_option=no
6986fi
6987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988fi
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6990$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6991	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6992	CFLAGS="$xorg_testset_save_CFLAGS"
6993fi
6994
6995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6996	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6998	fi
6999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7001$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7002if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h.  */
7007int i;
7008_ACEOF
7009if ac_fn_c_try_compile "$LINENO"; then :
7010  xorg_cv_cc_flag_unused_command_line_argument=yes
7011else
7012  xorg_cv_cc_flag_unused_command_line_argument=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7017$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7019	CFLAGS="$xorg_testset_save_CFLAGS"
7020fi
7021
7022found="no"
7023
7024	if test $found = "no" ; then
7025		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7027		fi
7028
7029		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7031		fi
7032
7033		CFLAGS="$CFLAGS -Werror=main"
7034
7035		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7036$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7037		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7038		if eval \${$cacheid+:} false; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042/* end confdefs.h.  */
7043int i;
7044int
7045main ()
7046{
7047
7048  ;
7049  return 0;
7050}
7051_ACEOF
7052if ac_fn_c_try_link "$LINENO"; then :
7053  eval $cacheid=yes
7054else
7055  eval $cacheid=no
7056fi
7057rm -f core conftest.err conftest.$ac_objext \
7058    conftest$ac_exeext conftest.$ac_ext
7059fi
7060
7061
7062		CFLAGS="$xorg_testset_save_CFLAGS"
7063
7064		eval supported=\$$cacheid
7065		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7066$as_echo "$supported" >&6; }
7067		if test "$supported" = "yes" ; then
7068			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7069			found="yes"
7070		fi
7071	fi
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087xorg_testset_save_CFLAGS="$CFLAGS"
7088
7089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7092$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7093if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7094  $as_echo_n "(cached) " >&6
7095else
7096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097/* end confdefs.h.  */
7098int i;
7099_ACEOF
7100if ac_fn_c_try_compile "$LINENO"; then :
7101  xorg_cv_cc_flag_unknown_warning_option=yes
7102else
7103  xorg_cv_cc_flag_unknown_warning_option=no
7104fi
7105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106fi
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7108$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7109	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7110	CFLAGS="$xorg_testset_save_CFLAGS"
7111fi
7112
7113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7114	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7115		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7116	fi
7117	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7118	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7119$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7120if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h.  */
7125int i;
7126_ACEOF
7127if ac_fn_c_try_compile "$LINENO"; then :
7128  xorg_cv_cc_flag_unused_command_line_argument=yes
7129else
7130  xorg_cv_cc_flag_unused_command_line_argument=no
7131fi
7132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133fi
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7135$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7136	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7137	CFLAGS="$xorg_testset_save_CFLAGS"
7138fi
7139
7140found="no"
7141
7142	if test $found = "no" ; then
7143		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7144			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7145		fi
7146
7147		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7148			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7149		fi
7150
7151		CFLAGS="$CFLAGS -Werror=missing-braces"
7152
7153		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7154$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7155		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7156		if eval \${$cacheid+:} false; then :
7157  $as_echo_n "(cached) " >&6
7158else
7159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160/* end confdefs.h.  */
7161int i;
7162int
7163main ()
7164{
7165
7166  ;
7167  return 0;
7168}
7169_ACEOF
7170if ac_fn_c_try_link "$LINENO"; then :
7171  eval $cacheid=yes
7172else
7173  eval $cacheid=no
7174fi
7175rm -f core conftest.err conftest.$ac_objext \
7176    conftest$ac_exeext conftest.$ac_ext
7177fi
7178
7179
7180		CFLAGS="$xorg_testset_save_CFLAGS"
7181
7182		eval supported=\$$cacheid
7183		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7184$as_echo "$supported" >&6; }
7185		if test "$supported" = "yes" ; then
7186			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7187			found="yes"
7188		fi
7189	fi
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205xorg_testset_save_CFLAGS="$CFLAGS"
7206
7207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7210$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7211if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215/* end confdefs.h.  */
7216int i;
7217_ACEOF
7218if ac_fn_c_try_compile "$LINENO"; then :
7219  xorg_cv_cc_flag_unknown_warning_option=yes
7220else
7221  xorg_cv_cc_flag_unknown_warning_option=no
7222fi
7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224fi
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7226$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7228	CFLAGS="$xorg_testset_save_CFLAGS"
7229fi
7230
7231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234	fi
7235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7237$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7238if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7239  $as_echo_n "(cached) " >&6
7240else
7241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h.  */
7243int i;
7244_ACEOF
7245if ac_fn_c_try_compile "$LINENO"; then :
7246  xorg_cv_cc_flag_unused_command_line_argument=yes
7247else
7248  xorg_cv_cc_flag_unused_command_line_argument=no
7249fi
7250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251fi
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7253$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7255	CFLAGS="$xorg_testset_save_CFLAGS"
7256fi
7257
7258found="no"
7259
7260	if test $found = "no" ; then
7261		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7263		fi
7264
7265		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7267		fi
7268
7269		CFLAGS="$CFLAGS -Werror=sequence-point"
7270
7271		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7272$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7273		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7274		if eval \${$cacheid+:} false; then :
7275  $as_echo_n "(cached) " >&6
7276else
7277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h.  */
7279int i;
7280int
7281main ()
7282{
7283
7284  ;
7285  return 0;
7286}
7287_ACEOF
7288if ac_fn_c_try_link "$LINENO"; then :
7289  eval $cacheid=yes
7290else
7291  eval $cacheid=no
7292fi
7293rm -f core conftest.err conftest.$ac_objext \
7294    conftest$ac_exeext conftest.$ac_ext
7295fi
7296
7297
7298		CFLAGS="$xorg_testset_save_CFLAGS"
7299
7300		eval supported=\$$cacheid
7301		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7302$as_echo "$supported" >&6; }
7303		if test "$supported" = "yes" ; then
7304			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7305			found="yes"
7306		fi
7307	fi
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323xorg_testset_save_CFLAGS="$CFLAGS"
7324
7325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7330  $as_echo_n "(cached) " >&6
7331else
7332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h.  */
7334int i;
7335_ACEOF
7336if ac_fn_c_try_compile "$LINENO"; then :
7337  xorg_cv_cc_flag_unknown_warning_option=yes
7338else
7339  xorg_cv_cc_flag_unknown_warning_option=no
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342fi
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7345	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7346	CFLAGS="$xorg_testset_save_CFLAGS"
7347fi
7348
7349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7350	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7351		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352	fi
7353	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360/* end confdefs.h.  */
7361int i;
7362_ACEOF
7363if ac_fn_c_try_compile "$LINENO"; then :
7364  xorg_cv_cc_flag_unused_command_line_argument=yes
7365else
7366  xorg_cv_cc_flag_unused_command_line_argument=no
7367fi
7368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369fi
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7373	CFLAGS="$xorg_testset_save_CFLAGS"
7374fi
7375
7376found="no"
7377
7378	if test $found = "no" ; then
7379		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381		fi
7382
7383		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7385		fi
7386
7387		CFLAGS="$CFLAGS -Werror=return-type"
7388
7389		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7390$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7391		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7392		if eval \${$cacheid+:} false; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396/* end confdefs.h.  */
7397int i;
7398int
7399main ()
7400{
7401
7402  ;
7403  return 0;
7404}
7405_ACEOF
7406if ac_fn_c_try_link "$LINENO"; then :
7407  eval $cacheid=yes
7408else
7409  eval $cacheid=no
7410fi
7411rm -f core conftest.err conftest.$ac_objext \
7412    conftest$ac_exeext conftest.$ac_ext
7413fi
7414
7415
7416		CFLAGS="$xorg_testset_save_CFLAGS"
7417
7418		eval supported=\$$cacheid
7419		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7420$as_echo "$supported" >&6; }
7421		if test "$supported" = "yes" ; then
7422			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7423			found="yes"
7424		fi
7425	fi
7426
7427	if test $found = "no" ; then
7428		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7430		fi
7431
7432		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7434		fi
7435
7436		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7437
7438		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7439$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7440		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7441		if eval \${$cacheid+:} false; then :
7442  $as_echo_n "(cached) " >&6
7443else
7444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445/* end confdefs.h.  */
7446int i;
7447int
7448main ()
7449{
7450
7451  ;
7452  return 0;
7453}
7454_ACEOF
7455if ac_fn_c_try_link "$LINENO"; then :
7456  eval $cacheid=yes
7457else
7458  eval $cacheid=no
7459fi
7460rm -f core conftest.err conftest.$ac_objext \
7461    conftest$ac_exeext conftest.$ac_ext
7462fi
7463
7464
7465		CFLAGS="$xorg_testset_save_CFLAGS"
7466
7467		eval supported=\$$cacheid
7468		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7469$as_echo "$supported" >&6; }
7470		if test "$supported" = "yes" ; then
7471			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7472			found="yes"
7473		fi
7474	fi
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490xorg_testset_save_CFLAGS="$CFLAGS"
7491
7492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7493	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7497  $as_echo_n "(cached) " >&6
7498else
7499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500/* end confdefs.h.  */
7501int i;
7502_ACEOF
7503if ac_fn_c_try_compile "$LINENO"; then :
7504  xorg_cv_cc_flag_unknown_warning_option=yes
7505else
7506  xorg_cv_cc_flag_unknown_warning_option=no
7507fi
7508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509fi
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7512	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7513	CFLAGS="$xorg_testset_save_CFLAGS"
7514fi
7515
7516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7517	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7518		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7519	fi
7520	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7524  $as_echo_n "(cached) " >&6
7525else
7526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527/* end confdefs.h.  */
7528int i;
7529_ACEOF
7530if ac_fn_c_try_compile "$LINENO"; then :
7531  xorg_cv_cc_flag_unused_command_line_argument=yes
7532else
7533  xorg_cv_cc_flag_unused_command_line_argument=no
7534fi
7535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536fi
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7540	CFLAGS="$xorg_testset_save_CFLAGS"
7541fi
7542
7543found="no"
7544
7545	if test $found = "no" ; then
7546		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7548		fi
7549
7550		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7552		fi
7553
7554		CFLAGS="$CFLAGS -Werror=trigraphs"
7555
7556		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7557$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7558		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7559		if eval \${$cacheid+:} false; then :
7560  $as_echo_n "(cached) " >&6
7561else
7562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563/* end confdefs.h.  */
7564int i;
7565int
7566main ()
7567{
7568
7569  ;
7570  return 0;
7571}
7572_ACEOF
7573if ac_fn_c_try_link "$LINENO"; then :
7574  eval $cacheid=yes
7575else
7576  eval $cacheid=no
7577fi
7578rm -f core conftest.err conftest.$ac_objext \
7579    conftest$ac_exeext conftest.$ac_ext
7580fi
7581
7582
7583		CFLAGS="$xorg_testset_save_CFLAGS"
7584
7585		eval supported=\$$cacheid
7586		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7587$as_echo "$supported" >&6; }
7588		if test "$supported" = "yes" ; then
7589			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
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	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7615  $as_echo_n "(cached) " >&6
7616else
7617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h.  */
7619int i;
7620_ACEOF
7621if ac_fn_c_try_compile "$LINENO"; then :
7622  xorg_cv_cc_flag_unknown_warning_option=yes
7623else
7624  xorg_cv_cc_flag_unknown_warning_option=no
7625fi
7626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627fi
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7630	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7631	CFLAGS="$xorg_testset_save_CFLAGS"
7632fi
7633
7634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7635	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7636		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7637	fi
7638	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7642  $as_echo_n "(cached) " >&6
7643else
7644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645/* end confdefs.h.  */
7646int i;
7647_ACEOF
7648if ac_fn_c_try_compile "$LINENO"; then :
7649  xorg_cv_cc_flag_unused_command_line_argument=yes
7650else
7651  xorg_cv_cc_flag_unused_command_line_argument=no
7652fi
7653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7657	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7658	CFLAGS="$xorg_testset_save_CFLAGS"
7659fi
7660
7661found="no"
7662
7663	if test $found = "no" ; then
7664		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7666		fi
7667
7668		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7670		fi
7671
7672		CFLAGS="$CFLAGS -Werror=array-bounds"
7673
7674		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7675$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7676		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7677		if eval \${$cacheid+:} false; then :
7678  $as_echo_n "(cached) " >&6
7679else
7680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681/* end confdefs.h.  */
7682int i;
7683int
7684main ()
7685{
7686
7687  ;
7688  return 0;
7689}
7690_ACEOF
7691if ac_fn_c_try_link "$LINENO"; then :
7692  eval $cacheid=yes
7693else
7694  eval $cacheid=no
7695fi
7696rm -f core conftest.err conftest.$ac_objext \
7697    conftest$ac_exeext conftest.$ac_ext
7698fi
7699
7700
7701		CFLAGS="$xorg_testset_save_CFLAGS"
7702
7703		eval supported=\$$cacheid
7704		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7705$as_echo "$supported" >&6; }
7706		if test "$supported" = "yes" ; then
7707			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7708			found="yes"
7709		fi
7710	fi
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726xorg_testset_save_CFLAGS="$CFLAGS"
7727
7728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7733  $as_echo_n "(cached) " >&6
7734else
7735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737int i;
7738_ACEOF
7739if ac_fn_c_try_compile "$LINENO"; then :
7740  xorg_cv_cc_flag_unknown_warning_option=yes
7741else
7742  xorg_cv_cc_flag_unknown_warning_option=no
7743fi
7744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745fi
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7748	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7749	CFLAGS="$xorg_testset_save_CFLAGS"
7750fi
7751
7752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7753	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7754		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7755	fi
7756	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7760  $as_echo_n "(cached) " >&6
7761else
7762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763/* end confdefs.h.  */
7764int i;
7765_ACEOF
7766if ac_fn_c_try_compile "$LINENO"; then :
7767  xorg_cv_cc_flag_unused_command_line_argument=yes
7768else
7769  xorg_cv_cc_flag_unused_command_line_argument=no
7770fi
7771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7775	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7776	CFLAGS="$xorg_testset_save_CFLAGS"
7777fi
7778
7779found="no"
7780
7781	if test $found = "no" ; then
7782		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7783			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784		fi
7785
7786		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7787			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7788		fi
7789
7790		CFLAGS="$CFLAGS -Werror=write-strings"
7791
7792		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7793$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7794		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7795		if eval \${$cacheid+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h.  */
7800int i;
7801int
7802main ()
7803{
7804
7805  ;
7806  return 0;
7807}
7808_ACEOF
7809if ac_fn_c_try_link "$LINENO"; then :
7810  eval $cacheid=yes
7811else
7812  eval $cacheid=no
7813fi
7814rm -f core conftest.err conftest.$ac_objext \
7815    conftest$ac_exeext conftest.$ac_ext
7816fi
7817
7818
7819		CFLAGS="$xorg_testset_save_CFLAGS"
7820
7821		eval supported=\$$cacheid
7822		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7823$as_echo "$supported" >&6; }
7824		if test "$supported" = "yes" ; then
7825			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7826			found="yes"
7827		fi
7828	fi
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844xorg_testset_save_CFLAGS="$CFLAGS"
7845
7846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7847	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7851  $as_echo_n "(cached) " >&6
7852else
7853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854/* end confdefs.h.  */
7855int i;
7856_ACEOF
7857if ac_fn_c_try_compile "$LINENO"; then :
7858  xorg_cv_cc_flag_unknown_warning_option=yes
7859else
7860  xorg_cv_cc_flag_unknown_warning_option=no
7861fi
7862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863fi
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7867	CFLAGS="$xorg_testset_save_CFLAGS"
7868fi
7869
7870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7873	fi
7874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7878  $as_echo_n "(cached) " >&6
7879else
7880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881/* end confdefs.h.  */
7882int i;
7883_ACEOF
7884if ac_fn_c_try_compile "$LINENO"; then :
7885  xorg_cv_cc_flag_unused_command_line_argument=yes
7886else
7887  xorg_cv_cc_flag_unused_command_line_argument=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890fi
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7893	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7894	CFLAGS="$xorg_testset_save_CFLAGS"
7895fi
7896
7897found="no"
7898
7899	if test $found = "no" ; then
7900		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7901			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7902		fi
7903
7904		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7905			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7906		fi
7907
7908		CFLAGS="$CFLAGS -Werror=address"
7909
7910		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7911$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7912		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7913		if eval \${$cacheid+:} false; then :
7914  $as_echo_n "(cached) " >&6
7915else
7916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917/* end confdefs.h.  */
7918int i;
7919int
7920main ()
7921{
7922
7923  ;
7924  return 0;
7925}
7926_ACEOF
7927if ac_fn_c_try_link "$LINENO"; then :
7928  eval $cacheid=yes
7929else
7930  eval $cacheid=no
7931fi
7932rm -f core conftest.err conftest.$ac_objext \
7933    conftest$ac_exeext conftest.$ac_ext
7934fi
7935
7936
7937		CFLAGS="$xorg_testset_save_CFLAGS"
7938
7939		eval supported=\$$cacheid
7940		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7941$as_echo "$supported" >&6; }
7942		if test "$supported" = "yes" ; then
7943			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7944			found="yes"
7945		fi
7946	fi
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962xorg_testset_save_CFLAGS="$CFLAGS"
7963
7964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7969  $as_echo_n "(cached) " >&6
7970else
7971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h.  */
7973int i;
7974_ACEOF
7975if ac_fn_c_try_compile "$LINENO"; then :
7976  xorg_cv_cc_flag_unknown_warning_option=yes
7977else
7978  xorg_cv_cc_flag_unknown_warning_option=no
7979fi
7980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981fi
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7984	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7985	CFLAGS="$xorg_testset_save_CFLAGS"
7986fi
7987
7988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7989	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7990		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7991	fi
7992	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999/* end confdefs.h.  */
8000int i;
8001_ACEOF
8002if ac_fn_c_try_compile "$LINENO"; then :
8003  xorg_cv_cc_flag_unused_command_line_argument=yes
8004else
8005  xorg_cv_cc_flag_unused_command_line_argument=no
8006fi
8007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008fi
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8012	CFLAGS="$xorg_testset_save_CFLAGS"
8013fi
8014
8015found="no"
8016
8017	if test $found = "no" ; then
8018		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020		fi
8021
8022		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8024		fi
8025
8026		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8027
8028		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8029$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8030		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8031		if eval \${$cacheid+:} false; then :
8032  $as_echo_n "(cached) " >&6
8033else
8034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035/* end confdefs.h.  */
8036int i;
8037int
8038main ()
8039{
8040
8041  ;
8042  return 0;
8043}
8044_ACEOF
8045if ac_fn_c_try_link "$LINENO"; then :
8046  eval $cacheid=yes
8047else
8048  eval $cacheid=no
8049fi
8050rm -f core conftest.err conftest.$ac_objext \
8051    conftest$ac_exeext conftest.$ac_ext
8052fi
8053
8054
8055		CFLAGS="$xorg_testset_save_CFLAGS"
8056
8057		eval supported=\$$cacheid
8058		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8059$as_echo "$supported" >&6; }
8060		if test "$supported" = "yes" ; then
8061			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8062			found="yes"
8063		fi
8064	fi
8065
8066	if test $found = "no" ; then
8067		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8069		fi
8070
8071		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8073		fi
8074
8075		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8076
8077		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8078$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8079		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8080		if eval \${$cacheid+:} false; then :
8081  $as_echo_n "(cached) " >&6
8082else
8083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084/* end confdefs.h.  */
8085int i;
8086int
8087main ()
8088{
8089
8090  ;
8091  return 0;
8092}
8093_ACEOF
8094if ac_fn_c_try_link "$LINENO"; then :
8095  eval $cacheid=yes
8096else
8097  eval $cacheid=no
8098fi
8099rm -f core conftest.err conftest.$ac_objext \
8100    conftest$ac_exeext conftest.$ac_ext
8101fi
8102
8103
8104		CFLAGS="$xorg_testset_save_CFLAGS"
8105
8106		eval supported=\$$cacheid
8107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8108$as_echo "$supported" >&6; }
8109		if test "$supported" = "yes" ; then
8110			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8111			found="yes"
8112		fi
8113	fi
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129xorg_testset_save_CFLAGS="$CFLAGS"
8130
8131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8136  $as_echo_n "(cached) " >&6
8137else
8138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139/* end confdefs.h.  */
8140int i;
8141_ACEOF
8142if ac_fn_c_try_compile "$LINENO"; then :
8143  xorg_cv_cc_flag_unknown_warning_option=yes
8144else
8145  xorg_cv_cc_flag_unknown_warning_option=no
8146fi
8147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148fi
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8151	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8152	CFLAGS="$xorg_testset_save_CFLAGS"
8153fi
8154
8155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8156	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8157		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8158	fi
8159	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8163  $as_echo_n "(cached) " >&6
8164else
8165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h.  */
8167int i;
8168_ACEOF
8169if ac_fn_c_try_compile "$LINENO"; then :
8170  xorg_cv_cc_flag_unused_command_line_argument=yes
8171else
8172  xorg_cv_cc_flag_unused_command_line_argument=no
8173fi
8174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175fi
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8179	CFLAGS="$xorg_testset_save_CFLAGS"
8180fi
8181
8182found="no"
8183
8184	if test $found = "no" ; then
8185		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8187		fi
8188
8189		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8191		fi
8192
8193		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8194
8195		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8196$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8197		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8198		if eval \${$cacheid+:} false; then :
8199  $as_echo_n "(cached) " >&6
8200else
8201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202/* end confdefs.h.  */
8203int i;
8204int
8205main ()
8206{
8207
8208  ;
8209  return 0;
8210}
8211_ACEOF
8212if ac_fn_c_try_link "$LINENO"; then :
8213  eval $cacheid=yes
8214else
8215  eval $cacheid=no
8216fi
8217rm -f core conftest.err conftest.$ac_objext \
8218    conftest$ac_exeext conftest.$ac_ext
8219fi
8220
8221
8222		CFLAGS="$xorg_testset_save_CFLAGS"
8223
8224		eval supported=\$$cacheid
8225		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8226$as_echo "$supported" >&6; }
8227		if test "$supported" = "yes" ; then
8228			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8229			found="yes"
8230		fi
8231	fi
8232
8233 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8234else
8235{ $as_echo "$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
8236$as_echo "$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;}
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250xorg_testset_save_CFLAGS="$CFLAGS"
8251
8252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8253	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8257  $as_echo_n "(cached) " >&6
8258else
8259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260/* end confdefs.h.  */
8261int i;
8262_ACEOF
8263if ac_fn_c_try_compile "$LINENO"; then :
8264  xorg_cv_cc_flag_unknown_warning_option=yes
8265else
8266  xorg_cv_cc_flag_unknown_warning_option=no
8267fi
8268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269fi
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8273	CFLAGS="$xorg_testset_save_CFLAGS"
8274fi
8275
8276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8279	fi
8280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8284  $as_echo_n "(cached) " >&6
8285else
8286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h.  */
8288int i;
8289_ACEOF
8290if ac_fn_c_try_compile "$LINENO"; then :
8291  xorg_cv_cc_flag_unused_command_line_argument=yes
8292else
8293  xorg_cv_cc_flag_unused_command_line_argument=no
8294fi
8295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296fi
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8299	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8300	CFLAGS="$xorg_testset_save_CFLAGS"
8301fi
8302
8303found="no"
8304
8305	if test $found = "no" ; then
8306		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8307			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8308		fi
8309
8310		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8311			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8312		fi
8313
8314		CFLAGS="$CFLAGS -Wimplicit"
8315
8316		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8317$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8318		cacheid=xorg_cv_cc_flag__Wimplicit
8319		if eval \${$cacheid+:} false; then :
8320  $as_echo_n "(cached) " >&6
8321else
8322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323/* end confdefs.h.  */
8324int i;
8325int
8326main ()
8327{
8328
8329  ;
8330  return 0;
8331}
8332_ACEOF
8333if ac_fn_c_try_link "$LINENO"; then :
8334  eval $cacheid=yes
8335else
8336  eval $cacheid=no
8337fi
8338rm -f core conftest.err conftest.$ac_objext \
8339    conftest$ac_exeext conftest.$ac_ext
8340fi
8341
8342
8343		CFLAGS="$xorg_testset_save_CFLAGS"
8344
8345		eval supported=\$$cacheid
8346		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8347$as_echo "$supported" >&6; }
8348		if test "$supported" = "yes" ; then
8349			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8350			found="yes"
8351		fi
8352	fi
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368xorg_testset_save_CFLAGS="$CFLAGS"
8369
8370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8375  $as_echo_n "(cached) " >&6
8376else
8377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378/* end confdefs.h.  */
8379int i;
8380_ACEOF
8381if ac_fn_c_try_compile "$LINENO"; then :
8382  xorg_cv_cc_flag_unknown_warning_option=yes
8383else
8384  xorg_cv_cc_flag_unknown_warning_option=no
8385fi
8386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387fi
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8391	CFLAGS="$xorg_testset_save_CFLAGS"
8392fi
8393
8394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397	fi
8398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8402  $as_echo_n "(cached) " >&6
8403else
8404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405/* end confdefs.h.  */
8406int i;
8407_ACEOF
8408if ac_fn_c_try_compile "$LINENO"; then :
8409  xorg_cv_cc_flag_unused_command_line_argument=yes
8410else
8411  xorg_cv_cc_flag_unused_command_line_argument=no
8412fi
8413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414fi
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8417	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8418	CFLAGS="$xorg_testset_save_CFLAGS"
8419fi
8420
8421found="no"
8422
8423	if test $found = "no" ; then
8424		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8426		fi
8427
8428		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8430		fi
8431
8432		CFLAGS="$CFLAGS -Wnonnull"
8433
8434		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8435$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8436		cacheid=xorg_cv_cc_flag__Wnonnull
8437		if eval \${$cacheid+:} false; then :
8438  $as_echo_n "(cached) " >&6
8439else
8440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441/* end confdefs.h.  */
8442int i;
8443int
8444main ()
8445{
8446
8447  ;
8448  return 0;
8449}
8450_ACEOF
8451if ac_fn_c_try_link "$LINENO"; then :
8452  eval $cacheid=yes
8453else
8454  eval $cacheid=no
8455fi
8456rm -f core conftest.err conftest.$ac_objext \
8457    conftest$ac_exeext conftest.$ac_ext
8458fi
8459
8460
8461		CFLAGS="$xorg_testset_save_CFLAGS"
8462
8463		eval supported=\$$cacheid
8464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8465$as_echo "$supported" >&6; }
8466		if test "$supported" = "yes" ; then
8467			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8468			found="yes"
8469		fi
8470	fi
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486xorg_testset_save_CFLAGS="$CFLAGS"
8487
8488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496/* end confdefs.h.  */
8497int i;
8498_ACEOF
8499if ac_fn_c_try_compile "$LINENO"; then :
8500  xorg_cv_cc_flag_unknown_warning_option=yes
8501else
8502  xorg_cv_cc_flag_unknown_warning_option=no
8503fi
8504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505fi
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8509	CFLAGS="$xorg_testset_save_CFLAGS"
8510fi
8511
8512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8515	fi
8516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8520  $as_echo_n "(cached) " >&6
8521else
8522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523/* end confdefs.h.  */
8524int i;
8525_ACEOF
8526if ac_fn_c_try_compile "$LINENO"; then :
8527  xorg_cv_cc_flag_unused_command_line_argument=yes
8528else
8529  xorg_cv_cc_flag_unused_command_line_argument=no
8530fi
8531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532fi
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8536	CFLAGS="$xorg_testset_save_CFLAGS"
8537fi
8538
8539found="no"
8540
8541	if test $found = "no" ; then
8542		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544		fi
8545
8546		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8548		fi
8549
8550		CFLAGS="$CFLAGS -Winit-self"
8551
8552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8553$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8554		cacheid=xorg_cv_cc_flag__Winit_self
8555		if eval \${$cacheid+:} false; then :
8556  $as_echo_n "(cached) " >&6
8557else
8558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h.  */
8560int i;
8561int
8562main ()
8563{
8564
8565  ;
8566  return 0;
8567}
8568_ACEOF
8569if ac_fn_c_try_link "$LINENO"; then :
8570  eval $cacheid=yes
8571else
8572  eval $cacheid=no
8573fi
8574rm -f core conftest.err conftest.$ac_objext \
8575    conftest$ac_exeext conftest.$ac_ext
8576fi
8577
8578
8579		CFLAGS="$xorg_testset_save_CFLAGS"
8580
8581		eval supported=\$$cacheid
8582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8583$as_echo "$supported" >&6; }
8584		if test "$supported" = "yes" ; then
8585			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8586			found="yes"
8587		fi
8588	fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604xorg_testset_save_CFLAGS="$CFLAGS"
8605
8606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8611  $as_echo_n "(cached) " >&6
8612else
8613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h.  */
8615int i;
8616_ACEOF
8617if ac_fn_c_try_compile "$LINENO"; then :
8618  xorg_cv_cc_flag_unknown_warning_option=yes
8619else
8620  xorg_cv_cc_flag_unknown_warning_option=no
8621fi
8622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623fi
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8627	CFLAGS="$xorg_testset_save_CFLAGS"
8628fi
8629
8630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633	fi
8634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8638  $as_echo_n "(cached) " >&6
8639else
8640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641/* end confdefs.h.  */
8642int i;
8643_ACEOF
8644if ac_fn_c_try_compile "$LINENO"; then :
8645  xorg_cv_cc_flag_unused_command_line_argument=yes
8646else
8647  xorg_cv_cc_flag_unused_command_line_argument=no
8648fi
8649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650fi
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8654	CFLAGS="$xorg_testset_save_CFLAGS"
8655fi
8656
8657found="no"
8658
8659	if test $found = "no" ; then
8660		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662		fi
8663
8664		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8666		fi
8667
8668		CFLAGS="$CFLAGS -Wmain"
8669
8670		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8671$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8672		cacheid=xorg_cv_cc_flag__Wmain
8673		if eval \${$cacheid+:} false; then :
8674  $as_echo_n "(cached) " >&6
8675else
8676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h.  */
8678int i;
8679int
8680main ()
8681{
8682
8683  ;
8684  return 0;
8685}
8686_ACEOF
8687if ac_fn_c_try_link "$LINENO"; then :
8688  eval $cacheid=yes
8689else
8690  eval $cacheid=no
8691fi
8692rm -f core conftest.err conftest.$ac_objext \
8693    conftest$ac_exeext conftest.$ac_ext
8694fi
8695
8696
8697		CFLAGS="$xorg_testset_save_CFLAGS"
8698
8699		eval supported=\$$cacheid
8700		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8701$as_echo "$supported" >&6; }
8702		if test "$supported" = "yes" ; then
8703			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8704			found="yes"
8705		fi
8706	fi
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722xorg_testset_save_CFLAGS="$CFLAGS"
8723
8724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8729  $as_echo_n "(cached) " >&6
8730else
8731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h.  */
8733int i;
8734_ACEOF
8735if ac_fn_c_try_compile "$LINENO"; then :
8736  xorg_cv_cc_flag_unknown_warning_option=yes
8737else
8738  xorg_cv_cc_flag_unknown_warning_option=no
8739fi
8740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741fi
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8745	CFLAGS="$xorg_testset_save_CFLAGS"
8746fi
8747
8748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751	fi
8752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8756  $as_echo_n "(cached) " >&6
8757else
8758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759/* end confdefs.h.  */
8760int i;
8761_ACEOF
8762if ac_fn_c_try_compile "$LINENO"; then :
8763  xorg_cv_cc_flag_unused_command_line_argument=yes
8764else
8765  xorg_cv_cc_flag_unused_command_line_argument=no
8766fi
8767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768fi
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8772	CFLAGS="$xorg_testset_save_CFLAGS"
8773fi
8774
8775found="no"
8776
8777	if test $found = "no" ; then
8778		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780		fi
8781
8782		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8784		fi
8785
8786		CFLAGS="$CFLAGS -Wmissing-braces"
8787
8788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8789$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8790		cacheid=xorg_cv_cc_flag__Wmissing_braces
8791		if eval \${$cacheid+:} false; then :
8792  $as_echo_n "(cached) " >&6
8793else
8794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795/* end confdefs.h.  */
8796int i;
8797int
8798main ()
8799{
8800
8801  ;
8802  return 0;
8803}
8804_ACEOF
8805if ac_fn_c_try_link "$LINENO"; then :
8806  eval $cacheid=yes
8807else
8808  eval $cacheid=no
8809fi
8810rm -f core conftest.err conftest.$ac_objext \
8811    conftest$ac_exeext conftest.$ac_ext
8812fi
8813
8814
8815		CFLAGS="$xorg_testset_save_CFLAGS"
8816
8817		eval supported=\$$cacheid
8818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8819$as_echo "$supported" >&6; }
8820		if test "$supported" = "yes" ; then
8821			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8822			found="yes"
8823		fi
8824	fi
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840xorg_testset_save_CFLAGS="$CFLAGS"
8841
8842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8847  $as_echo_n "(cached) " >&6
8848else
8849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850/* end confdefs.h.  */
8851int i;
8852_ACEOF
8853if ac_fn_c_try_compile "$LINENO"; then :
8854  xorg_cv_cc_flag_unknown_warning_option=yes
8855else
8856  xorg_cv_cc_flag_unknown_warning_option=no
8857fi
8858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859fi
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8863	CFLAGS="$xorg_testset_save_CFLAGS"
8864fi
8865
8866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8869	fi
8870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877/* end confdefs.h.  */
8878int i;
8879_ACEOF
8880if ac_fn_c_try_compile "$LINENO"; then :
8881  xorg_cv_cc_flag_unused_command_line_argument=yes
8882else
8883  xorg_cv_cc_flag_unused_command_line_argument=no
8884fi
8885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886fi
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8890	CFLAGS="$xorg_testset_save_CFLAGS"
8891fi
8892
8893found="no"
8894
8895	if test $found = "no" ; then
8896		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898		fi
8899
8900		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8902		fi
8903
8904		CFLAGS="$CFLAGS -Wsequence-point"
8905
8906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8907$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8908		cacheid=xorg_cv_cc_flag__Wsequence_point
8909		if eval \${$cacheid+:} false; then :
8910  $as_echo_n "(cached) " >&6
8911else
8912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h.  */
8914int i;
8915int
8916main ()
8917{
8918
8919  ;
8920  return 0;
8921}
8922_ACEOF
8923if ac_fn_c_try_link "$LINENO"; then :
8924  eval $cacheid=yes
8925else
8926  eval $cacheid=no
8927fi
8928rm -f core conftest.err conftest.$ac_objext \
8929    conftest$ac_exeext conftest.$ac_ext
8930fi
8931
8932
8933		CFLAGS="$xorg_testset_save_CFLAGS"
8934
8935		eval supported=\$$cacheid
8936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8937$as_echo "$supported" >&6; }
8938		if test "$supported" = "yes" ; then
8939			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8940			found="yes"
8941		fi
8942	fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958xorg_testset_save_CFLAGS="$CFLAGS"
8959
8960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8965  $as_echo_n "(cached) " >&6
8966else
8967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968/* end confdefs.h.  */
8969int i;
8970_ACEOF
8971if ac_fn_c_try_compile "$LINENO"; then :
8972  xorg_cv_cc_flag_unknown_warning_option=yes
8973else
8974  xorg_cv_cc_flag_unknown_warning_option=no
8975fi
8976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977fi
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8981	CFLAGS="$xorg_testset_save_CFLAGS"
8982fi
8983
8984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8987	fi
8988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8992  $as_echo_n "(cached) " >&6
8993else
8994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h.  */
8996int i;
8997_ACEOF
8998if ac_fn_c_try_compile "$LINENO"; then :
8999  xorg_cv_cc_flag_unused_command_line_argument=yes
9000else
9001  xorg_cv_cc_flag_unused_command_line_argument=no
9002fi
9003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004fi
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9008	CFLAGS="$xorg_testset_save_CFLAGS"
9009fi
9010
9011found="no"
9012
9013	if test $found = "no" ; then
9014		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9016		fi
9017
9018		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9020		fi
9021
9022		CFLAGS="$CFLAGS -Wreturn-type"
9023
9024		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9025$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9026		cacheid=xorg_cv_cc_flag__Wreturn_type
9027		if eval \${$cacheid+:} false; then :
9028  $as_echo_n "(cached) " >&6
9029else
9030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031/* end confdefs.h.  */
9032int i;
9033int
9034main ()
9035{
9036
9037  ;
9038  return 0;
9039}
9040_ACEOF
9041if ac_fn_c_try_link "$LINENO"; then :
9042  eval $cacheid=yes
9043else
9044  eval $cacheid=no
9045fi
9046rm -f core conftest.err conftest.$ac_objext \
9047    conftest$ac_exeext conftest.$ac_ext
9048fi
9049
9050
9051		CFLAGS="$xorg_testset_save_CFLAGS"
9052
9053		eval supported=\$$cacheid
9054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9055$as_echo "$supported" >&6; }
9056		if test "$supported" = "yes" ; then
9057			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9058			found="yes"
9059		fi
9060	fi
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076xorg_testset_save_CFLAGS="$CFLAGS"
9077
9078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087int i;
9088_ACEOF
9089if ac_fn_c_try_compile "$LINENO"; then :
9090  xorg_cv_cc_flag_unknown_warning_option=yes
9091else
9092  xorg_cv_cc_flag_unknown_warning_option=no
9093fi
9094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095fi
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9099	CFLAGS="$xorg_testset_save_CFLAGS"
9100fi
9101
9102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9105	fi
9106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9107	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9110  $as_echo_n "(cached) " >&6
9111else
9112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113/* end confdefs.h.  */
9114int i;
9115_ACEOF
9116if ac_fn_c_try_compile "$LINENO"; then :
9117  xorg_cv_cc_flag_unused_command_line_argument=yes
9118else
9119  xorg_cv_cc_flag_unused_command_line_argument=no
9120fi
9121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9122fi
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9126	CFLAGS="$xorg_testset_save_CFLAGS"
9127fi
9128
9129found="no"
9130
9131	if test $found = "no" ; then
9132		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134		fi
9135
9136		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9138		fi
9139
9140		CFLAGS="$CFLAGS -Wtrigraphs"
9141
9142		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9143$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9144		cacheid=xorg_cv_cc_flag__Wtrigraphs
9145		if eval \${$cacheid+:} false; then :
9146  $as_echo_n "(cached) " >&6
9147else
9148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149/* end confdefs.h.  */
9150int i;
9151int
9152main ()
9153{
9154
9155  ;
9156  return 0;
9157}
9158_ACEOF
9159if ac_fn_c_try_link "$LINENO"; then :
9160  eval $cacheid=yes
9161else
9162  eval $cacheid=no
9163fi
9164rm -f core conftest.err conftest.$ac_objext \
9165    conftest$ac_exeext conftest.$ac_ext
9166fi
9167
9168
9169		CFLAGS="$xorg_testset_save_CFLAGS"
9170
9171		eval supported=\$$cacheid
9172		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9173$as_echo "$supported" >&6; }
9174		if test "$supported" = "yes" ; then
9175			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9176			found="yes"
9177		fi
9178	fi
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194xorg_testset_save_CFLAGS="$CFLAGS"
9195
9196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9201  $as_echo_n "(cached) " >&6
9202else
9203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h.  */
9205int i;
9206_ACEOF
9207if ac_fn_c_try_compile "$LINENO"; then :
9208  xorg_cv_cc_flag_unknown_warning_option=yes
9209else
9210  xorg_cv_cc_flag_unknown_warning_option=no
9211fi
9212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213fi
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9217	CFLAGS="$xorg_testset_save_CFLAGS"
9218fi
9219
9220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223	fi
9224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9228  $as_echo_n "(cached) " >&6
9229else
9230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231/* end confdefs.h.  */
9232int i;
9233_ACEOF
9234if ac_fn_c_try_compile "$LINENO"; then :
9235  xorg_cv_cc_flag_unused_command_line_argument=yes
9236else
9237  xorg_cv_cc_flag_unused_command_line_argument=no
9238fi
9239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240fi
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9244	CFLAGS="$xorg_testset_save_CFLAGS"
9245fi
9246
9247found="no"
9248
9249	if test $found = "no" ; then
9250		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252		fi
9253
9254		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256		fi
9257
9258		CFLAGS="$CFLAGS -Warray-bounds"
9259
9260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9261$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9262		cacheid=xorg_cv_cc_flag__Warray_bounds
9263		if eval \${$cacheid+:} false; then :
9264  $as_echo_n "(cached) " >&6
9265else
9266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267/* end confdefs.h.  */
9268int i;
9269int
9270main ()
9271{
9272
9273  ;
9274  return 0;
9275}
9276_ACEOF
9277if ac_fn_c_try_link "$LINENO"; then :
9278  eval $cacheid=yes
9279else
9280  eval $cacheid=no
9281fi
9282rm -f core conftest.err conftest.$ac_objext \
9283    conftest$ac_exeext conftest.$ac_ext
9284fi
9285
9286
9287		CFLAGS="$xorg_testset_save_CFLAGS"
9288
9289		eval supported=\$$cacheid
9290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9291$as_echo "$supported" >&6; }
9292		if test "$supported" = "yes" ; then
9293			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9294			found="yes"
9295		fi
9296	fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312xorg_testset_save_CFLAGS="$CFLAGS"
9313
9314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323int i;
9324_ACEOF
9325if ac_fn_c_try_compile "$LINENO"; then :
9326  xorg_cv_cc_flag_unknown_warning_option=yes
9327else
9328  xorg_cv_cc_flag_unknown_warning_option=no
9329fi
9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331fi
9332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9335	CFLAGS="$xorg_testset_save_CFLAGS"
9336fi
9337
9338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341	fi
9342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9346  $as_echo_n "(cached) " >&6
9347else
9348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349/* end confdefs.h.  */
9350int i;
9351_ACEOF
9352if ac_fn_c_try_compile "$LINENO"; then :
9353  xorg_cv_cc_flag_unused_command_line_argument=yes
9354else
9355  xorg_cv_cc_flag_unused_command_line_argument=no
9356fi
9357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9358fi
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9361	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9362	CFLAGS="$xorg_testset_save_CFLAGS"
9363fi
9364
9365found="no"
9366
9367	if test $found = "no" ; then
9368		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9370		fi
9371
9372		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9374		fi
9375
9376		CFLAGS="$CFLAGS -Wwrite-strings"
9377
9378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9379$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9380		cacheid=xorg_cv_cc_flag__Wwrite_strings
9381		if eval \${$cacheid+:} false; then :
9382  $as_echo_n "(cached) " >&6
9383else
9384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385/* end confdefs.h.  */
9386int i;
9387int
9388main ()
9389{
9390
9391  ;
9392  return 0;
9393}
9394_ACEOF
9395if ac_fn_c_try_link "$LINENO"; then :
9396  eval $cacheid=yes
9397else
9398  eval $cacheid=no
9399fi
9400rm -f core conftest.err conftest.$ac_objext \
9401    conftest$ac_exeext conftest.$ac_ext
9402fi
9403
9404
9405		CFLAGS="$xorg_testset_save_CFLAGS"
9406
9407		eval supported=\$$cacheid
9408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9409$as_echo "$supported" >&6; }
9410		if test "$supported" = "yes" ; then
9411			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9412			found="yes"
9413		fi
9414	fi
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430xorg_testset_save_CFLAGS="$CFLAGS"
9431
9432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9437  $as_echo_n "(cached) " >&6
9438else
9439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h.  */
9441int i;
9442_ACEOF
9443if ac_fn_c_try_compile "$LINENO"; then :
9444  xorg_cv_cc_flag_unknown_warning_option=yes
9445else
9446  xorg_cv_cc_flag_unknown_warning_option=no
9447fi
9448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449fi
9450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9453	CFLAGS="$xorg_testset_save_CFLAGS"
9454fi
9455
9456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459	fi
9460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9464  $as_echo_n "(cached) " >&6
9465else
9466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467/* end confdefs.h.  */
9468int i;
9469_ACEOF
9470if ac_fn_c_try_compile "$LINENO"; then :
9471  xorg_cv_cc_flag_unused_command_line_argument=yes
9472else
9473  xorg_cv_cc_flag_unused_command_line_argument=no
9474fi
9475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9476fi
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9480	CFLAGS="$xorg_testset_save_CFLAGS"
9481fi
9482
9483found="no"
9484
9485	if test $found = "no" ; then
9486		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488		fi
9489
9490		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492		fi
9493
9494		CFLAGS="$CFLAGS -Waddress"
9495
9496		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9497$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9498		cacheid=xorg_cv_cc_flag__Waddress
9499		if eval \${$cacheid+:} false; then :
9500  $as_echo_n "(cached) " >&6
9501else
9502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503/* end confdefs.h.  */
9504int i;
9505int
9506main ()
9507{
9508
9509  ;
9510  return 0;
9511}
9512_ACEOF
9513if ac_fn_c_try_link "$LINENO"; then :
9514  eval $cacheid=yes
9515else
9516  eval $cacheid=no
9517fi
9518rm -f core conftest.err conftest.$ac_objext \
9519    conftest$ac_exeext conftest.$ac_ext
9520fi
9521
9522
9523		CFLAGS="$xorg_testset_save_CFLAGS"
9524
9525		eval supported=\$$cacheid
9526		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9527$as_echo "$supported" >&6; }
9528		if test "$supported" = "yes" ; then
9529			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9530			found="yes"
9531		fi
9532	fi
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548xorg_testset_save_CFLAGS="$CFLAGS"
9549
9550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9555  $as_echo_n "(cached) " >&6
9556else
9557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h.  */
9559int i;
9560_ACEOF
9561if ac_fn_c_try_compile "$LINENO"; then :
9562  xorg_cv_cc_flag_unknown_warning_option=yes
9563else
9564  xorg_cv_cc_flag_unknown_warning_option=no
9565fi
9566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567fi
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9570	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9571	CFLAGS="$xorg_testset_save_CFLAGS"
9572fi
9573
9574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9575	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9576		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577	fi
9578	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9582  $as_echo_n "(cached) " >&6
9583else
9584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h.  */
9586int i;
9587_ACEOF
9588if ac_fn_c_try_compile "$LINENO"; then :
9589  xorg_cv_cc_flag_unused_command_line_argument=yes
9590else
9591  xorg_cv_cc_flag_unused_command_line_argument=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594fi
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9598	CFLAGS="$xorg_testset_save_CFLAGS"
9599fi
9600
9601found="no"
9602
9603	if test $found = "no" ; then
9604		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606		fi
9607
9608		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610		fi
9611
9612		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9613
9614		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9615$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9616		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9617		if eval \${$cacheid+:} false; then :
9618  $as_echo_n "(cached) " >&6
9619else
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622int i;
9623int
9624main ()
9625{
9626
9627  ;
9628  return 0;
9629}
9630_ACEOF
9631if ac_fn_c_try_link "$LINENO"; then :
9632  eval $cacheid=yes
9633else
9634  eval $cacheid=no
9635fi
9636rm -f core conftest.err conftest.$ac_objext \
9637    conftest$ac_exeext conftest.$ac_ext
9638fi
9639
9640
9641		CFLAGS="$xorg_testset_save_CFLAGS"
9642
9643		eval supported=\$$cacheid
9644		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9645$as_echo "$supported" >&6; }
9646		if test "$supported" = "yes" ; then
9647			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9648			found="yes"
9649		fi
9650	fi
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666xorg_testset_save_CFLAGS="$CFLAGS"
9667
9668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9673  $as_echo_n "(cached) " >&6
9674else
9675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676/* end confdefs.h.  */
9677int i;
9678_ACEOF
9679if ac_fn_c_try_compile "$LINENO"; then :
9680  xorg_cv_cc_flag_unknown_warning_option=yes
9681else
9682  xorg_cv_cc_flag_unknown_warning_option=no
9683fi
9684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685fi
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9689	CFLAGS="$xorg_testset_save_CFLAGS"
9690fi
9691
9692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695	fi
9696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9700  $as_echo_n "(cached) " >&6
9701else
9702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h.  */
9704int i;
9705_ACEOF
9706if ac_fn_c_try_compile "$LINENO"; then :
9707  xorg_cv_cc_flag_unused_command_line_argument=yes
9708else
9709  xorg_cv_cc_flag_unused_command_line_argument=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712fi
9713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9716	CFLAGS="$xorg_testset_save_CFLAGS"
9717fi
9718
9719found="no"
9720
9721	if test $found = "no" ; then
9722		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724		fi
9725
9726		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728		fi
9729
9730		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9731
9732		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9733$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9734		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9735		if eval \${$cacheid+:} false; then :
9736  $as_echo_n "(cached) " >&6
9737else
9738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739/* end confdefs.h.  */
9740int i;
9741int
9742main ()
9743{
9744
9745  ;
9746  return 0;
9747}
9748_ACEOF
9749if ac_fn_c_try_link "$LINENO"; then :
9750  eval $cacheid=yes
9751else
9752  eval $cacheid=no
9753fi
9754rm -f core conftest.err conftest.$ac_objext \
9755    conftest$ac_exeext conftest.$ac_ext
9756fi
9757
9758
9759		CFLAGS="$xorg_testset_save_CFLAGS"
9760
9761		eval supported=\$$cacheid
9762		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9763$as_echo "$supported" >&6; }
9764		if test "$supported" = "yes" ; then
9765			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9766			found="yes"
9767		fi
9768	fi
9769
9770
9771fi
9772
9773
9774
9775
9776
9777
9778
9779		CWARNFLAGS="$BASE_CFLAGS"
9780		if  test "x$GCC" = xyes ; then
9781		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9782		fi
9783
9784
9785
9786
9787
9788
9789
9790
9791# Check whether --enable-strict-compilation was given.
9792if test "${enable_strict_compilation+set}" = set; then :
9793  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9794else
9795  STRICT_COMPILE=no
9796fi
9797
9798
9799
9800
9801
9802
9803STRICT_CFLAGS=""
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817xorg_testset_save_CFLAGS="$CFLAGS"
9818
9819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9824  $as_echo_n "(cached) " >&6
9825else
9826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h.  */
9828int i;
9829_ACEOF
9830if ac_fn_c_try_compile "$LINENO"; then :
9831  xorg_cv_cc_flag_unknown_warning_option=yes
9832else
9833  xorg_cv_cc_flag_unknown_warning_option=no
9834fi
9835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9836fi
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9840	CFLAGS="$xorg_testset_save_CFLAGS"
9841fi
9842
9843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9846	fi
9847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9851  $as_echo_n "(cached) " >&6
9852else
9853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854/* end confdefs.h.  */
9855int i;
9856_ACEOF
9857if ac_fn_c_try_compile "$LINENO"; then :
9858  xorg_cv_cc_flag_unused_command_line_argument=yes
9859else
9860  xorg_cv_cc_flag_unused_command_line_argument=no
9861fi
9862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9863fi
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9867	CFLAGS="$xorg_testset_save_CFLAGS"
9868fi
9869
9870found="no"
9871
9872	if test $found = "no" ; then
9873		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9875		fi
9876
9877		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9879		fi
9880
9881		CFLAGS="$CFLAGS -pedantic"
9882
9883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9884$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9885		cacheid=xorg_cv_cc_flag__pedantic
9886		if eval \${$cacheid+:} false; then :
9887  $as_echo_n "(cached) " >&6
9888else
9889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890/* end confdefs.h.  */
9891int i;
9892int
9893main ()
9894{
9895
9896  ;
9897  return 0;
9898}
9899_ACEOF
9900if ac_fn_c_try_link "$LINENO"; then :
9901  eval $cacheid=yes
9902else
9903  eval $cacheid=no
9904fi
9905rm -f core conftest.err conftest.$ac_objext \
9906    conftest$ac_exeext conftest.$ac_ext
9907fi
9908
9909
9910		CFLAGS="$xorg_testset_save_CFLAGS"
9911
9912		eval supported=\$$cacheid
9913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9914$as_echo "$supported" >&6; }
9915		if test "$supported" = "yes" ; then
9916			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9917			found="yes"
9918		fi
9919	fi
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935xorg_testset_save_CFLAGS="$CFLAGS"
9936
9937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9938	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9942  $as_echo_n "(cached) " >&6
9943else
9944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945/* end confdefs.h.  */
9946int i;
9947_ACEOF
9948if ac_fn_c_try_compile "$LINENO"; then :
9949  xorg_cv_cc_flag_unknown_warning_option=yes
9950else
9951  xorg_cv_cc_flag_unknown_warning_option=no
9952fi
9953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954fi
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9958	CFLAGS="$xorg_testset_save_CFLAGS"
9959fi
9960
9961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9964	fi
9965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9969  $as_echo_n "(cached) " >&6
9970else
9971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972/* end confdefs.h.  */
9973int i;
9974_ACEOF
9975if ac_fn_c_try_compile "$LINENO"; then :
9976  xorg_cv_cc_flag_unused_command_line_argument=yes
9977else
9978  xorg_cv_cc_flag_unused_command_line_argument=no
9979fi
9980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981fi
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9985	CFLAGS="$xorg_testset_save_CFLAGS"
9986fi
9987
9988found="no"
9989
9990	if test $found = "no" ; then
9991		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9993		fi
9994
9995		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9997		fi
9998
9999		CFLAGS="$CFLAGS -Werror"
10000
10001		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10002$as_echo_n "checking if $CC supports -Werror... " >&6; }
10003		cacheid=xorg_cv_cc_flag__Werror
10004		if eval \${$cacheid+:} false; then :
10005  $as_echo_n "(cached) " >&6
10006else
10007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008/* end confdefs.h.  */
10009int i;
10010int
10011main ()
10012{
10013
10014  ;
10015  return 0;
10016}
10017_ACEOF
10018if ac_fn_c_try_link "$LINENO"; then :
10019  eval $cacheid=yes
10020else
10021  eval $cacheid=no
10022fi
10023rm -f core conftest.err conftest.$ac_objext \
10024    conftest$ac_exeext conftest.$ac_ext
10025fi
10026
10027
10028		CFLAGS="$xorg_testset_save_CFLAGS"
10029
10030		eval supported=\$$cacheid
10031		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10032$as_echo "$supported" >&6; }
10033		if test "$supported" = "yes" ; then
10034			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10035			found="yes"
10036		fi
10037	fi
10038
10039	if test $found = "no" ; then
10040		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10042		fi
10043
10044		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10046		fi
10047
10048		CFLAGS="$CFLAGS -errwarn"
10049
10050		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10051$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10052		cacheid=xorg_cv_cc_flag__errwarn
10053		if eval \${$cacheid+:} false; then :
10054  $as_echo_n "(cached) " >&6
10055else
10056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h.  */
10058int i;
10059int
10060main ()
10061{
10062
10063  ;
10064  return 0;
10065}
10066_ACEOF
10067if ac_fn_c_try_link "$LINENO"; then :
10068  eval $cacheid=yes
10069else
10070  eval $cacheid=no
10071fi
10072rm -f core conftest.err conftest.$ac_objext \
10073    conftest$ac_exeext conftest.$ac_ext
10074fi
10075
10076
10077		CFLAGS="$xorg_testset_save_CFLAGS"
10078
10079		eval supported=\$$cacheid
10080		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10081$as_echo "$supported" >&6; }
10082		if test "$supported" = "yes" ; then
10083			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10084			found="yes"
10085		fi
10086	fi
10087
10088
10089
10090# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10091# activate it with -Werror, so we add it here explicitly.
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105xorg_testset_save_CFLAGS="$CFLAGS"
10106
10107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10110$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10111if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10112  $as_echo_n "(cached) " >&6
10113else
10114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115/* end confdefs.h.  */
10116int i;
10117_ACEOF
10118if ac_fn_c_try_compile "$LINENO"; then :
10119  xorg_cv_cc_flag_unknown_warning_option=yes
10120else
10121  xorg_cv_cc_flag_unknown_warning_option=no
10122fi
10123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10124fi
10125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10126$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10128	CFLAGS="$xorg_testset_save_CFLAGS"
10129fi
10130
10131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10134	fi
10135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10136	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10137$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10138if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10139  $as_echo_n "(cached) " >&6
10140else
10141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142/* end confdefs.h.  */
10143int i;
10144_ACEOF
10145if ac_fn_c_try_compile "$LINENO"; then :
10146  xorg_cv_cc_flag_unused_command_line_argument=yes
10147else
10148  xorg_cv_cc_flag_unused_command_line_argument=no
10149fi
10150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151fi
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10153$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10155	CFLAGS="$xorg_testset_save_CFLAGS"
10156fi
10157
10158found="no"
10159
10160	if test $found = "no" ; then
10161		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10163		fi
10164
10165		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10167		fi
10168
10169		CFLAGS="$CFLAGS -Werror=attributes"
10170
10171		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10172$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10173		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10174		if eval \${$cacheid+:} false; then :
10175  $as_echo_n "(cached) " >&6
10176else
10177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178/* end confdefs.h.  */
10179int i;
10180int
10181main ()
10182{
10183
10184  ;
10185  return 0;
10186}
10187_ACEOF
10188if ac_fn_c_try_link "$LINENO"; then :
10189  eval $cacheid=yes
10190else
10191  eval $cacheid=no
10192fi
10193rm -f core conftest.err conftest.$ac_objext \
10194    conftest$ac_exeext conftest.$ac_ext
10195fi
10196
10197
10198		CFLAGS="$xorg_testset_save_CFLAGS"
10199
10200		eval supported=\$$cacheid
10201		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10202$as_echo "$supported" >&6; }
10203		if test "$supported" = "yes" ; then
10204			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10205			found="yes"
10206		fi
10207	fi
10208
10209
10210
10211if test "x$STRICT_COMPILE" = "xyes"; then
10212    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10213    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10214fi
10215
10216
10217
10218
10219
10220
10221cat >>confdefs.h <<_ACEOF
10222#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10223_ACEOF
10224
10225	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10226	if test "x$PVM" = "x"; then
10227		PVM="0"
10228	fi
10229
10230cat >>confdefs.h <<_ACEOF
10231#define PACKAGE_VERSION_MINOR $PVM
10232_ACEOF
10233
10234	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10235	if test "x$PVP" = "x"; then
10236		PVP="0"
10237	fi
10238
10239cat >>confdefs.h <<_ACEOF
10240#define PACKAGE_VERSION_PATCHLEVEL $PVP
10241_ACEOF
10242
10243
10244
10245CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10246mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10247|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10248echo 'git directory not found: installing possibly empty changelog.' >&2)"
10249
10250
10251
10252
10253macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10254INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10255mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10256|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10257echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10258
10259
10260
10261
10262
10263
10264if test x$APP_MAN_SUFFIX = x    ; then
10265    APP_MAN_SUFFIX=1
10266fi
10267if test x$APP_MAN_DIR = x    ; then
10268    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10269fi
10270
10271if test x$LIB_MAN_SUFFIX = x    ; then
10272    LIB_MAN_SUFFIX=3
10273fi
10274if test x$LIB_MAN_DIR = x    ; then
10275    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10276fi
10277
10278if test x$FILE_MAN_SUFFIX = x    ; then
10279    case $host_os in
10280	solaris*)	FILE_MAN_SUFFIX=4  ;;
10281	*)		FILE_MAN_SUFFIX=5  ;;
10282    esac
10283fi
10284if test x$FILE_MAN_DIR = x    ; then
10285    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10286fi
10287
10288if test x$MISC_MAN_SUFFIX = x    ; then
10289    case $host_os in
10290	solaris*)	MISC_MAN_SUFFIX=5  ;;
10291	*)		MISC_MAN_SUFFIX=7  ;;
10292    esac
10293fi
10294if test x$MISC_MAN_DIR = x    ; then
10295    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10296fi
10297
10298if test x$DRIVER_MAN_SUFFIX = x    ; then
10299    case $host_os in
10300	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10301	*)		DRIVER_MAN_SUFFIX=4  ;;
10302    esac
10303fi
10304if test x$DRIVER_MAN_DIR = x    ; then
10305    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10306fi
10307
10308if test x$ADMIN_MAN_SUFFIX = x    ; then
10309    case $host_os in
10310	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10311	*)		ADMIN_MAN_SUFFIX=8  ;;
10312    esac
10313fi
10314if test x$ADMIN_MAN_DIR = x    ; then
10315    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10316fi
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332XORG_MAN_PAGE="X Version 11"
10333
10334MAN_SUBSTS="\
10335	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10336	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10337	-e 's|__xservername__|Xorg|g' \
10338	-e 's|__xconfigfile__|xorg.conf|g' \
10339	-e 's|__projectroot__|\$(prefix)|g' \
10340	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10341	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10342	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10343	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10344	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10345	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10346	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10347
10348
10349
10350# Check whether --enable-silent-rules was given.
10351if test "${enable_silent_rules+set}" = set; then :
10352  enableval=$enable_silent_rules;
10353fi
10354
10355case $enable_silent_rules in
10356yes) AM_DEFAULT_VERBOSITY=0;;
10357no)  AM_DEFAULT_VERBOSITY=1;;
10358*)   AM_DEFAULT_VERBOSITY=0;;
10359esac
10360AM_BACKSLASH='\'
10361
10362
10363
10364ac_config_headers="$ac_config_headers config.h"
10365
10366
10367
10368pkg_failed=no
10369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VIEWRES" >&5
10370$as_echo_n "checking for VIEWRES... " >&6; }
10371
10372if test -n "$VIEWRES_CFLAGS"; then
10373    pkg_cv_VIEWRES_CFLAGS="$VIEWRES_CFLAGS"
10374 elif test -n "$PKG_CONFIG"; then
10375    if test -n "$PKG_CONFIG" && \
10376    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt\""; } >&5
10377  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt") 2>&5
10378  ac_status=$?
10379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10380  test $ac_status = 0; }; then
10381  pkg_cv_VIEWRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt" 2>/dev/null`
10382else
10383  pkg_failed=yes
10384fi
10385 else
10386    pkg_failed=untried
10387fi
10388if test -n "$VIEWRES_LIBS"; then
10389    pkg_cv_VIEWRES_LIBS="$VIEWRES_LIBS"
10390 elif test -n "$PKG_CONFIG"; then
10391    if test -n "$PKG_CONFIG" && \
10392    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt\""; } >&5
10393  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt") 2>&5
10394  ac_status=$?
10395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10396  test $ac_status = 0; }; then
10397  pkg_cv_VIEWRES_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt" 2>/dev/null`
10398else
10399  pkg_failed=yes
10400fi
10401 else
10402    pkg_failed=untried
10403fi
10404
10405
10406
10407if test $pkg_failed = yes; then
10408
10409if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10410        _pkg_short_errors_supported=yes
10411else
10412        _pkg_short_errors_supported=no
10413fi
10414        if test $_pkg_short_errors_supported = yes; then
10415	        VIEWRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt" 2>&1`
10416        else
10417	        VIEWRES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt" 2>&1`
10418        fi
10419	# Put the nasty error message in config.log where it belongs
10420	echo "$VIEWRES_PKG_ERRORS" >&5
10421
10422	as_fn_error $? "Package requirements (xaw7 xmu xt) were not met:
10423
10424$VIEWRES_PKG_ERRORS
10425
10426Consider adjusting the PKG_CONFIG_PATH environment variable if you
10427installed software in a non-standard prefix.
10428
10429Alternatively, you may set the environment variables VIEWRES_CFLAGS
10430and VIEWRES_LIBS to avoid the need to call pkg-config.
10431See the pkg-config man page for more details.
10432" "$LINENO" 5
10433elif test $pkg_failed = untried; then
10434	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10436as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10437is in your PATH or set the PKG_CONFIG environment variable to the full
10438path to pkg-config.
10439
10440Alternatively, you may set the environment variables VIEWRES_CFLAGS
10441and VIEWRES_LIBS to avoid the need to call pkg-config.
10442See the pkg-config man page for more details.
10443
10444To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10445See \`config.log' for more details" "$LINENO" 5; }
10446else
10447	VIEWRES_CFLAGS=$pkg_cv_VIEWRES_CFLAGS
10448	VIEWRES_LIBS=$pkg_cv_VIEWRES_LIBS
10449        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10450$as_echo "yes" >&6; }
10451	:
10452fi
10453
10454xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10455
10456# Check whether --with-appdefaultdir was given.
10457if test "${with_appdefaultdir+set}" = set; then :
10458  withval=$with_appdefaultdir; appdefaultdir="$withval"
10459else
10460  appdefaultdir="${xt_appdefaultdir}"
10461fi
10462
10463
10464
10465
10466ac_config_files="$ac_config_files Makefile man/Makefile"
10467
10468cat >confcache <<\_ACEOF
10469# This file is a shell script that caches the results of configure
10470# tests run on this system so they can be shared between configure
10471# scripts and configure runs, see configure's option --config-cache.
10472# It is not useful on other systems.  If it contains results you don't
10473# want to keep, you may remove or edit it.
10474#
10475# config.status only pays attention to the cache file if you give it
10476# the --recheck option to rerun configure.
10477#
10478# `ac_cv_env_foo' variables (set or unset) will be overridden when
10479# loading this file, other *unset* `ac_cv_foo' will be assigned the
10480# following values.
10481
10482_ACEOF
10483
10484# The following way of writing the cache mishandles newlines in values,
10485# but we know of no workaround that is simple, portable, and efficient.
10486# So, we kill variables containing newlines.
10487# Ultrix sh set writes to stderr and can't be redirected directly,
10488# and sets the high bit in the cache file unless we assign to the vars.
10489(
10490  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10491    eval ac_val=\$$ac_var
10492    case $ac_val in #(
10493    *${as_nl}*)
10494      case $ac_var in #(
10495      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10496$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10497      esac
10498      case $ac_var in #(
10499      _ | IFS | as_nl) ;; #(
10500      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10501      *) { eval $ac_var=; unset $ac_var;} ;;
10502      esac ;;
10503    esac
10504  done
10505
10506  (set) 2>&1 |
10507    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10508    *${as_nl}ac_space=\ *)
10509      # `set' does not quote correctly, so add quotes: double-quote
10510      # substitution turns \\\\ into \\, and sed turns \\ into \.
10511      sed -n \
10512	"s/'/'\\\\''/g;
10513	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10514      ;; #(
10515    *)
10516      # `set' quotes correctly as required by POSIX, so do not add quotes.
10517      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10518      ;;
10519    esac |
10520    sort
10521) |
10522  sed '
10523     /^ac_cv_env_/b end
10524     t clear
10525     :clear
10526     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10527     t end
10528     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10529     :end' >>confcache
10530if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10531  if test -w "$cache_file"; then
10532    if test "x$cache_file" != "x/dev/null"; then
10533      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10534$as_echo "$as_me: updating cache $cache_file" >&6;}
10535      if test ! -f "$cache_file" || test -h "$cache_file"; then
10536	cat confcache >"$cache_file"
10537      else
10538        case $cache_file in #(
10539        */* | ?:*)
10540	  mv -f confcache "$cache_file"$$ &&
10541	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10542        *)
10543	  mv -f confcache "$cache_file" ;;
10544	esac
10545      fi
10546    fi
10547  else
10548    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10549$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10550  fi
10551fi
10552rm -f confcache
10553
10554test "x$prefix" = xNONE && prefix=$ac_default_prefix
10555# Let make expand exec_prefix.
10556test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10557
10558DEFS=-DHAVE_CONFIG_H
10559
10560ac_libobjs=
10561ac_ltlibobjs=
10562U=
10563for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10564  # 1. Remove the extension, and $U if already installed.
10565  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10566  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10567  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10568  #    will be set to the directory where LIBOBJS objects are built.
10569  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10570  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10571done
10572LIBOBJS=$ac_libobjs
10573
10574LTLIBOBJS=$ac_ltlibobjs
10575
10576
10577 if test -n "$EXEEXT"; then
10578  am__EXEEXT_TRUE=
10579  am__EXEEXT_FALSE='#'
10580else
10581  am__EXEEXT_TRUE='#'
10582  am__EXEEXT_FALSE=
10583fi
10584
10585if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10586  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10587Usually this means the macro was only invoked conditionally." "$LINENO" 5
10588fi
10589if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10590  as_fn_error $? "conditional \"AMDEP\" was never defined.
10591Usually this means the macro was only invoked conditionally." "$LINENO" 5
10592fi
10593if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10594  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10595Usually this means the macro was only invoked conditionally." "$LINENO" 5
10596fi
10597
10598: "${CONFIG_STATUS=./config.status}"
10599ac_write_fail=0
10600ac_clean_files_save=$ac_clean_files
10601ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10602{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10603$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10604as_write_fail=0
10605cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10606#! $SHELL
10607# Generated by $as_me.
10608# Run this file to recreate the current configuration.
10609# Compiler output produced by configure, useful for debugging
10610# configure, is in config.log if it exists.
10611
10612debug=false
10613ac_cs_recheck=false
10614ac_cs_silent=false
10615
10616SHELL=\${CONFIG_SHELL-$SHELL}
10617export SHELL
10618_ASEOF
10619cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10620## -------------------- ##
10621## M4sh Initialization. ##
10622## -------------------- ##
10623
10624# Be more Bourne compatible
10625DUALCASE=1; export DUALCASE # for MKS sh
10626if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10627  emulate sh
10628  NULLCMD=:
10629  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10630  # is contrary to our usage.  Disable this feature.
10631  alias -g '${1+"$@"}'='"$@"'
10632  setopt NO_GLOB_SUBST
10633else
10634  case `(set -o) 2>/dev/null` in #(
10635  *posix*) :
10636    set -o posix ;; #(
10637  *) :
10638     ;;
10639esac
10640fi
10641
10642
10643as_nl='
10644'
10645export as_nl
10646# Printing a long string crashes Solaris 7 /usr/bin/printf.
10647as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10648as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10649as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10650# Prefer a ksh shell builtin over an external printf program on Solaris,
10651# but without wasting forks for bash or zsh.
10652if test -z "$BASH_VERSION$ZSH_VERSION" \
10653    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10654  as_echo='print -r --'
10655  as_echo_n='print -rn --'
10656elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10657  as_echo='printf %s\n'
10658  as_echo_n='printf %s'
10659else
10660  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10661    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10662    as_echo_n='/usr/ucb/echo -n'
10663  else
10664    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10665    as_echo_n_body='eval
10666      arg=$1;
10667      case $arg in #(
10668      *"$as_nl"*)
10669	expr "X$arg" : "X\\(.*\\)$as_nl";
10670	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10671      esac;
10672      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10673    '
10674    export as_echo_n_body
10675    as_echo_n='sh -c $as_echo_n_body as_echo'
10676  fi
10677  export as_echo_body
10678  as_echo='sh -c $as_echo_body as_echo'
10679fi
10680
10681# The user is always right.
10682if test "${PATH_SEPARATOR+set}" != set; then
10683  PATH_SEPARATOR=:
10684  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10685    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10686      PATH_SEPARATOR=';'
10687  }
10688fi
10689
10690
10691# IFS
10692# We need space, tab and new line, in precisely that order.  Quoting is
10693# there to prevent editors from complaining about space-tab.
10694# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10695# splitting by setting IFS to empty value.)
10696IFS=" ""	$as_nl"
10697
10698# Find who we are.  Look in the path if we contain no directory separator.
10699as_myself=
10700case $0 in #((
10701  *[\\/]* ) as_myself=$0 ;;
10702  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703for as_dir in $PATH
10704do
10705  IFS=$as_save_IFS
10706  test -z "$as_dir" && as_dir=.
10707    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10708  done
10709IFS=$as_save_IFS
10710
10711     ;;
10712esac
10713# We did not find ourselves, most probably we were run as `sh COMMAND'
10714# in which case we are not to be found in the path.
10715if test "x$as_myself" = x; then
10716  as_myself=$0
10717fi
10718if test ! -f "$as_myself"; then
10719  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10720  exit 1
10721fi
10722
10723# Unset variables that we do not need and which cause bugs (e.g. in
10724# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10725# suppresses any "Segmentation fault" message there.  '((' could
10726# trigger a bug in pdksh 5.2.14.
10727for as_var in BASH_ENV ENV MAIL MAILPATH
10728do eval test x\${$as_var+set} = xset \
10729  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10730done
10731PS1='$ '
10732PS2='> '
10733PS4='+ '
10734
10735# NLS nuisances.
10736LC_ALL=C
10737export LC_ALL
10738LANGUAGE=C
10739export LANGUAGE
10740
10741# CDPATH.
10742(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10743
10744
10745# as_fn_error STATUS ERROR [LINENO LOG_FD]
10746# ----------------------------------------
10747# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10748# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10749# script with STATUS, using 1 if that was 0.
10750as_fn_error ()
10751{
10752  as_status=$1; test $as_status -eq 0 && as_status=1
10753  if test "$4"; then
10754    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10755    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10756  fi
10757  $as_echo "$as_me: error: $2" >&2
10758  as_fn_exit $as_status
10759} # as_fn_error
10760
10761
10762# as_fn_set_status STATUS
10763# -----------------------
10764# Set $? to STATUS, without forking.
10765as_fn_set_status ()
10766{
10767  return $1
10768} # as_fn_set_status
10769
10770# as_fn_exit STATUS
10771# -----------------
10772# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10773as_fn_exit ()
10774{
10775  set +e
10776  as_fn_set_status $1
10777  exit $1
10778} # as_fn_exit
10779
10780# as_fn_unset VAR
10781# ---------------
10782# Portably unset VAR.
10783as_fn_unset ()
10784{
10785  { eval $1=; unset $1;}
10786}
10787as_unset=as_fn_unset
10788# as_fn_append VAR VALUE
10789# ----------------------
10790# Append the text in VALUE to the end of the definition contained in VAR. Take
10791# advantage of any shell optimizations that allow amortized linear growth over
10792# repeated appends, instead of the typical quadratic growth present in naive
10793# implementations.
10794if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10795  eval 'as_fn_append ()
10796  {
10797    eval $1+=\$2
10798  }'
10799else
10800  as_fn_append ()
10801  {
10802    eval $1=\$$1\$2
10803  }
10804fi # as_fn_append
10805
10806# as_fn_arith ARG...
10807# ------------------
10808# Perform arithmetic evaluation on the ARGs, and store the result in the
10809# global $as_val. Take advantage of shells that can avoid forks. The arguments
10810# must be portable across $(()) and expr.
10811if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10812  eval 'as_fn_arith ()
10813  {
10814    as_val=$(( $* ))
10815  }'
10816else
10817  as_fn_arith ()
10818  {
10819    as_val=`expr "$@" || test $? -eq 1`
10820  }
10821fi # as_fn_arith
10822
10823
10824if expr a : '\(a\)' >/dev/null 2>&1 &&
10825   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10826  as_expr=expr
10827else
10828  as_expr=false
10829fi
10830
10831if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10832  as_basename=basename
10833else
10834  as_basename=false
10835fi
10836
10837if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10838  as_dirname=dirname
10839else
10840  as_dirname=false
10841fi
10842
10843as_me=`$as_basename -- "$0" ||
10844$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10845	 X"$0" : 'X\(//\)$' \| \
10846	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10847$as_echo X/"$0" |
10848    sed '/^.*\/\([^/][^/]*\)\/*$/{
10849	    s//\1/
10850	    q
10851	  }
10852	  /^X\/\(\/\/\)$/{
10853	    s//\1/
10854	    q
10855	  }
10856	  /^X\/\(\/\).*/{
10857	    s//\1/
10858	    q
10859	  }
10860	  s/.*/./; q'`
10861
10862# Avoid depending upon Character Ranges.
10863as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10864as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10865as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10866as_cr_digits='0123456789'
10867as_cr_alnum=$as_cr_Letters$as_cr_digits
10868
10869ECHO_C= ECHO_N= ECHO_T=
10870case `echo -n x` in #(((((
10871-n*)
10872  case `echo 'xy\c'` in
10873  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10874  xy)  ECHO_C='\c';;
10875  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10876       ECHO_T='	';;
10877  esac;;
10878*)
10879  ECHO_N='-n';;
10880esac
10881
10882rm -f conf$$ conf$$.exe conf$$.file
10883if test -d conf$$.dir; then
10884  rm -f conf$$.dir/conf$$.file
10885else
10886  rm -f conf$$.dir
10887  mkdir conf$$.dir 2>/dev/null
10888fi
10889if (echo >conf$$.file) 2>/dev/null; then
10890  if ln -s conf$$.file conf$$ 2>/dev/null; then
10891    as_ln_s='ln -s'
10892    # ... but there are two gotchas:
10893    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10894    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10895    # In both cases, we have to default to `cp -p'.
10896    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10897      as_ln_s='cp -p'
10898  elif ln conf$$.file conf$$ 2>/dev/null; then
10899    as_ln_s=ln
10900  else
10901    as_ln_s='cp -p'
10902  fi
10903else
10904  as_ln_s='cp -p'
10905fi
10906rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10907rmdir conf$$.dir 2>/dev/null
10908
10909
10910# as_fn_mkdir_p
10911# -------------
10912# Create "$as_dir" as a directory, including parents if necessary.
10913as_fn_mkdir_p ()
10914{
10915
10916  case $as_dir in #(
10917  -*) as_dir=./$as_dir;;
10918  esac
10919  test -d "$as_dir" || eval $as_mkdir_p || {
10920    as_dirs=
10921    while :; do
10922      case $as_dir in #(
10923      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10924      *) as_qdir=$as_dir;;
10925      esac
10926      as_dirs="'$as_qdir' $as_dirs"
10927      as_dir=`$as_dirname -- "$as_dir" ||
10928$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10929	 X"$as_dir" : 'X\(//\)[^/]' \| \
10930	 X"$as_dir" : 'X\(//\)$' \| \
10931	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10932$as_echo X"$as_dir" |
10933    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10934	    s//\1/
10935	    q
10936	  }
10937	  /^X\(\/\/\)[^/].*/{
10938	    s//\1/
10939	    q
10940	  }
10941	  /^X\(\/\/\)$/{
10942	    s//\1/
10943	    q
10944	  }
10945	  /^X\(\/\).*/{
10946	    s//\1/
10947	    q
10948	  }
10949	  s/.*/./; q'`
10950      test -d "$as_dir" && break
10951    done
10952    test -z "$as_dirs" || eval "mkdir $as_dirs"
10953  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10954
10955
10956} # as_fn_mkdir_p
10957if mkdir -p . 2>/dev/null; then
10958  as_mkdir_p='mkdir -p "$as_dir"'
10959else
10960  test -d ./-p && rmdir ./-p
10961  as_mkdir_p=false
10962fi
10963
10964if test -x / >/dev/null 2>&1; then
10965  as_test_x='test -x'
10966else
10967  if ls -dL / >/dev/null 2>&1; then
10968    as_ls_L_option=L
10969  else
10970    as_ls_L_option=
10971  fi
10972  as_test_x='
10973    eval sh -c '\''
10974      if test -d "$1"; then
10975	test -d "$1/.";
10976      else
10977	case $1 in #(
10978	-*)set "./$1";;
10979	esac;
10980	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10981	???[sx]*):;;*)false;;esac;fi
10982    '\'' sh
10983  '
10984fi
10985as_executable_p=$as_test_x
10986
10987# Sed expression to map a string onto a valid CPP name.
10988as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10989
10990# Sed expression to map a string onto a valid variable name.
10991as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10992
10993
10994exec 6>&1
10995## ----------------------------------- ##
10996## Main body of $CONFIG_STATUS script. ##
10997## ----------------------------------- ##
10998_ASEOF
10999test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11000
11001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11002# Save the log message, to keep $0 and so on meaningful, and to
11003# report actual input values of CONFIG_FILES etc. instead of their
11004# values after options handling.
11005ac_log="
11006This file was extended by viewres $as_me 1.0.4, which was
11007generated by GNU Autoconf 2.68.  Invocation command line was
11008
11009  CONFIG_FILES    = $CONFIG_FILES
11010  CONFIG_HEADERS  = $CONFIG_HEADERS
11011  CONFIG_LINKS    = $CONFIG_LINKS
11012  CONFIG_COMMANDS = $CONFIG_COMMANDS
11013  $ $0 $@
11014
11015on `(hostname || uname -n) 2>/dev/null | sed 1q`
11016"
11017
11018_ACEOF
11019
11020case $ac_config_files in *"
11021"*) set x $ac_config_files; shift; ac_config_files=$*;;
11022esac
11023
11024case $ac_config_headers in *"
11025"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11026esac
11027
11028
11029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11030# Files that config.status was made for.
11031config_files="$ac_config_files"
11032config_headers="$ac_config_headers"
11033config_commands="$ac_config_commands"
11034
11035_ACEOF
11036
11037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11038ac_cs_usage="\
11039\`$as_me' instantiates files and other configuration actions
11040from templates according to the current configuration.  Unless the files
11041and actions are specified as TAGs, all are instantiated by default.
11042
11043Usage: $0 [OPTION]... [TAG]...
11044
11045  -h, --help       print this help, then exit
11046  -V, --version    print version number and configuration settings, then exit
11047      --config     print configuration, then exit
11048  -q, --quiet, --silent
11049                   do not print progress messages
11050  -d, --debug      don't remove temporary files
11051      --recheck    update $as_me by reconfiguring in the same conditions
11052      --file=FILE[:TEMPLATE]
11053                   instantiate the configuration file FILE
11054      --header=FILE[:TEMPLATE]
11055                   instantiate the configuration header FILE
11056
11057Configuration files:
11058$config_files
11059
11060Configuration headers:
11061$config_headers
11062
11063Configuration commands:
11064$config_commands
11065
11066Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11067
11068_ACEOF
11069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11070ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11071ac_cs_version="\\
11072viewres config.status 1.0.4
11073configured by $0, generated by GNU Autoconf 2.68,
11074  with options \\"\$ac_cs_config\\"
11075
11076Copyright (C) 2010 Free Software Foundation, Inc.
11077This config.status script is free software; the Free Software Foundation
11078gives unlimited permission to copy, distribute and modify it."
11079
11080ac_pwd='$ac_pwd'
11081srcdir='$srcdir'
11082INSTALL='$INSTALL'
11083MKDIR_P='$MKDIR_P'
11084AWK='$AWK'
11085test -n "\$AWK" || AWK=awk
11086_ACEOF
11087
11088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11089# The default lists apply if the user does not specify any file.
11090ac_need_defaults=:
11091while test $# != 0
11092do
11093  case $1 in
11094  --*=?*)
11095    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11096    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11097    ac_shift=:
11098    ;;
11099  --*=)
11100    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11101    ac_optarg=
11102    ac_shift=:
11103    ;;
11104  *)
11105    ac_option=$1
11106    ac_optarg=$2
11107    ac_shift=shift
11108    ;;
11109  esac
11110
11111  case $ac_option in
11112  # Handling of the options.
11113  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11114    ac_cs_recheck=: ;;
11115  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11116    $as_echo "$ac_cs_version"; exit ;;
11117  --config | --confi | --conf | --con | --co | --c )
11118    $as_echo "$ac_cs_config"; exit ;;
11119  --debug | --debu | --deb | --de | --d | -d )
11120    debug=: ;;
11121  --file | --fil | --fi | --f )
11122    $ac_shift
11123    case $ac_optarg in
11124    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11125    '') as_fn_error $? "missing file argument" ;;
11126    esac
11127    as_fn_append CONFIG_FILES " '$ac_optarg'"
11128    ac_need_defaults=false;;
11129  --header | --heade | --head | --hea )
11130    $ac_shift
11131    case $ac_optarg in
11132    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11133    esac
11134    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11135    ac_need_defaults=false;;
11136  --he | --h)
11137    # Conflict between --help and --header
11138    as_fn_error $? "ambiguous option: \`$1'
11139Try \`$0 --help' for more information.";;
11140  --help | --hel | -h )
11141    $as_echo "$ac_cs_usage"; exit ;;
11142  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11143  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11144    ac_cs_silent=: ;;
11145
11146  # This is an error.
11147  -*) as_fn_error $? "unrecognized option: \`$1'
11148Try \`$0 --help' for more information." ;;
11149
11150  *) as_fn_append ac_config_targets " $1"
11151     ac_need_defaults=false ;;
11152
11153  esac
11154  shift
11155done
11156
11157ac_configure_extra_args=
11158
11159if $ac_cs_silent; then
11160  exec 6>/dev/null
11161  ac_configure_extra_args="$ac_configure_extra_args --silent"
11162fi
11163
11164_ACEOF
11165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11166if \$ac_cs_recheck; then
11167  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11168  shift
11169  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11170  CONFIG_SHELL='$SHELL'
11171  export CONFIG_SHELL
11172  exec "\$@"
11173fi
11174
11175_ACEOF
11176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11177exec 5>>config.log
11178{
11179  echo
11180  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11181## Running $as_me. ##
11182_ASBOX
11183  $as_echo "$ac_log"
11184} >&5
11185
11186_ACEOF
11187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11188#
11189# INIT-COMMANDS
11190#
11191AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11192
11193_ACEOF
11194
11195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11196
11197# Handling of arguments.
11198for ac_config_target in $ac_config_targets
11199do
11200  case $ac_config_target in
11201    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11202    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11203    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11204    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11205
11206  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11207  esac
11208done
11209
11210
11211# If the user did not use the arguments to specify the items to instantiate,
11212# then the envvar interface is used.  Set only those that are not.
11213# We use the long form for the default assignment because of an extremely
11214# bizarre bug on SunOS 4.1.3.
11215if $ac_need_defaults; then
11216  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11217  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11218  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11219fi
11220
11221# Have a temporary directory for convenience.  Make it in the build tree
11222# simply because there is no reason against having it here, and in addition,
11223# creating and moving files from /tmp can sometimes cause problems.
11224# Hook for its removal unless debugging.
11225# Note that there is a small window in which the directory will not be cleaned:
11226# after its creation but before its name has been assigned to `$tmp'.
11227$debug ||
11228{
11229  tmp= ac_tmp=
11230  trap 'exit_status=$?
11231  : "${ac_tmp:=$tmp}"
11232  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11233' 0
11234  trap 'as_fn_exit 1' 1 2 13 15
11235}
11236# Create a (secure) tmp directory for tmp files.
11237
11238{
11239  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11240  test -d "$tmp"
11241}  ||
11242{
11243  tmp=./conf$$-$RANDOM
11244  (umask 077 && mkdir "$tmp")
11245} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11246ac_tmp=$tmp
11247
11248# Set up the scripts for CONFIG_FILES section.
11249# No need to generate them if there are no CONFIG_FILES.
11250# This happens for instance with `./config.status config.h'.
11251if test -n "$CONFIG_FILES"; then
11252
11253
11254ac_cr=`echo X | tr X '\015'`
11255# On cygwin, bash can eat \r inside `` if the user requested igncr.
11256# But we know of no other shell where ac_cr would be empty at this
11257# point, so we can use a bashism as a fallback.
11258if test "x$ac_cr" = x; then
11259  eval ac_cr=\$\'\\r\'
11260fi
11261ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11262if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11263  ac_cs_awk_cr='\\r'
11264else
11265  ac_cs_awk_cr=$ac_cr
11266fi
11267
11268echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11269_ACEOF
11270
11271
11272{
11273  echo "cat >conf$$subs.awk <<_ACEOF" &&
11274  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11275  echo "_ACEOF"
11276} >conf$$subs.sh ||
11277  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11278ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11279ac_delim='%!_!# '
11280for ac_last_try in false false false false false :; do
11281  . ./conf$$subs.sh ||
11282    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11283
11284  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11285  if test $ac_delim_n = $ac_delim_num; then
11286    break
11287  elif $ac_last_try; then
11288    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11289  else
11290    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11291  fi
11292done
11293rm -f conf$$subs.sh
11294
11295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11296cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11297_ACEOF
11298sed -n '
11299h
11300s/^/S["/; s/!.*/"]=/
11301p
11302g
11303s/^[^!]*!//
11304:repl
11305t repl
11306s/'"$ac_delim"'$//
11307t delim
11308:nl
11309h
11310s/\(.\{148\}\)..*/\1/
11311t more1
11312s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11313p
11314n
11315b repl
11316:more1
11317s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11318p
11319g
11320s/.\{148\}//
11321t nl
11322:delim
11323h
11324s/\(.\{148\}\)..*/\1/
11325t more2
11326s/["\\]/\\&/g; s/^/"/; s/$/"/
11327p
11328b
11329:more2
11330s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11331p
11332g
11333s/.\{148\}//
11334t delim
11335' <conf$$subs.awk | sed '
11336/^[^""]/{
11337  N
11338  s/\n//
11339}
11340' >>$CONFIG_STATUS || ac_write_fail=1
11341rm -f conf$$subs.awk
11342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11343_ACAWK
11344cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11345  for (key in S) S_is_set[key] = 1
11346  FS = ""
11347
11348}
11349{
11350  line = $ 0
11351  nfields = split(line, field, "@")
11352  substed = 0
11353  len = length(field[1])
11354  for (i = 2; i < nfields; i++) {
11355    key = field[i]
11356    keylen = length(key)
11357    if (S_is_set[key]) {
11358      value = S[key]
11359      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11360      len += length(value) + length(field[++i])
11361      substed = 1
11362    } else
11363      len += 1 + keylen
11364  }
11365
11366  print line
11367}
11368
11369_ACAWK
11370_ACEOF
11371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11372if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11373  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11374else
11375  cat
11376fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11377  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11378_ACEOF
11379
11380# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11381# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11382# trailing colons and then remove the whole line if VPATH becomes empty
11383# (actually we leave an empty line to preserve line numbers).
11384if test "x$srcdir" = x.; then
11385  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11386h
11387s///
11388s/^/:/
11389s/[	 ]*$/:/
11390s/:\$(srcdir):/:/g
11391s/:\${srcdir}:/:/g
11392s/:@srcdir@:/:/g
11393s/^:*//
11394s/:*$//
11395x
11396s/\(=[	 ]*\).*/\1/
11397G
11398s/\n//
11399s/^[^=]*=[	 ]*$//
11400}'
11401fi
11402
11403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11404fi # test -n "$CONFIG_FILES"
11405
11406# Set up the scripts for CONFIG_HEADERS section.
11407# No need to generate them if there are no CONFIG_HEADERS.
11408# This happens for instance with `./config.status Makefile'.
11409if test -n "$CONFIG_HEADERS"; then
11410cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11411BEGIN {
11412_ACEOF
11413
11414# Transform confdefs.h into an awk script `defines.awk', embedded as
11415# here-document in config.status, that substitutes the proper values into
11416# config.h.in to produce config.h.
11417
11418# Create a delimiter string that does not exist in confdefs.h, to ease
11419# handling of long lines.
11420ac_delim='%!_!# '
11421for ac_last_try in false false :; do
11422  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11423  if test -z "$ac_tt"; then
11424    break
11425  elif $ac_last_try; then
11426    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11427  else
11428    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11429  fi
11430done
11431
11432# For the awk script, D is an array of macro values keyed by name,
11433# likewise P contains macro parameters if any.  Preserve backslash
11434# newline sequences.
11435
11436ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11437sed -n '
11438s/.\{148\}/&'"$ac_delim"'/g
11439t rset
11440:rset
11441s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11442t def
11443d
11444:def
11445s/\\$//
11446t bsnl
11447s/["\\]/\\&/g
11448s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11449D["\1"]=" \3"/p
11450s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11451d
11452:bsnl
11453s/["\\]/\\&/g
11454s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11455D["\1"]=" \3\\\\\\n"\\/p
11456t cont
11457s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11458t cont
11459d
11460:cont
11461n
11462s/.\{148\}/&'"$ac_delim"'/g
11463t clear
11464:clear
11465s/\\$//
11466t bsnlc
11467s/["\\]/\\&/g; s/^/"/; s/$/"/p
11468d
11469:bsnlc
11470s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11471b cont
11472' <confdefs.h | sed '
11473s/'"$ac_delim"'/"\\\
11474"/g' >>$CONFIG_STATUS || ac_write_fail=1
11475
11476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11477  for (key in D) D_is_set[key] = 1
11478  FS = ""
11479}
11480/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11481  line = \$ 0
11482  split(line, arg, " ")
11483  if (arg[1] == "#") {
11484    defundef = arg[2]
11485    mac1 = arg[3]
11486  } else {
11487    defundef = substr(arg[1], 2)
11488    mac1 = arg[2]
11489  }
11490  split(mac1, mac2, "(") #)
11491  macro = mac2[1]
11492  prefix = substr(line, 1, index(line, defundef) - 1)
11493  if (D_is_set[macro]) {
11494    # Preserve the white space surrounding the "#".
11495    print prefix "define", macro P[macro] D[macro]
11496    next
11497  } else {
11498    # Replace #undef with comments.  This is necessary, for example,
11499    # in the case of _POSIX_SOURCE, which is predefined and required
11500    # on some systems where configure will not decide to define it.
11501    if (defundef == "undef") {
11502      print "/*", prefix defundef, macro, "*/"
11503      next
11504    }
11505  }
11506}
11507{ print }
11508_ACAWK
11509_ACEOF
11510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11511  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11512fi # test -n "$CONFIG_HEADERS"
11513
11514
11515eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11516shift
11517for ac_tag
11518do
11519  case $ac_tag in
11520  :[FHLC]) ac_mode=$ac_tag; continue;;
11521  esac
11522  case $ac_mode$ac_tag in
11523  :[FHL]*:*);;
11524  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11525  :[FH]-) ac_tag=-:-;;
11526  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11527  esac
11528  ac_save_IFS=$IFS
11529  IFS=:
11530  set x $ac_tag
11531  IFS=$ac_save_IFS
11532  shift
11533  ac_file=$1
11534  shift
11535
11536  case $ac_mode in
11537  :L) ac_source=$1;;
11538  :[FH])
11539    ac_file_inputs=
11540    for ac_f
11541    do
11542      case $ac_f in
11543      -) ac_f="$ac_tmp/stdin";;
11544      *) # Look for the file first in the build tree, then in the source tree
11545	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11546	 # because $ac_f cannot contain `:'.
11547	 test -f "$ac_f" ||
11548	   case $ac_f in
11549	   [\\/$]*) false;;
11550	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11551	   esac ||
11552	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11553      esac
11554      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11555      as_fn_append ac_file_inputs " '$ac_f'"
11556    done
11557
11558    # Let's still pretend it is `configure' which instantiates (i.e., don't
11559    # use $as_me), people would be surprised to read:
11560    #    /* config.h.  Generated by config.status.  */
11561    configure_input='Generated from '`
11562	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11563	`' by configure.'
11564    if test x"$ac_file" != x-; then
11565      configure_input="$ac_file.  $configure_input"
11566      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11567$as_echo "$as_me: creating $ac_file" >&6;}
11568    fi
11569    # Neutralize special characters interpreted by sed in replacement strings.
11570    case $configure_input in #(
11571    *\&* | *\|* | *\\* )
11572       ac_sed_conf_input=`$as_echo "$configure_input" |
11573       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11574    *) ac_sed_conf_input=$configure_input;;
11575    esac
11576
11577    case $ac_tag in
11578    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11579      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11580    esac
11581    ;;
11582  esac
11583
11584  ac_dir=`$as_dirname -- "$ac_file" ||
11585$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11586	 X"$ac_file" : 'X\(//\)[^/]' \| \
11587	 X"$ac_file" : 'X\(//\)$' \| \
11588	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11589$as_echo X"$ac_file" |
11590    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11591	    s//\1/
11592	    q
11593	  }
11594	  /^X\(\/\/\)[^/].*/{
11595	    s//\1/
11596	    q
11597	  }
11598	  /^X\(\/\/\)$/{
11599	    s//\1/
11600	    q
11601	  }
11602	  /^X\(\/\).*/{
11603	    s//\1/
11604	    q
11605	  }
11606	  s/.*/./; q'`
11607  as_dir="$ac_dir"; as_fn_mkdir_p
11608  ac_builddir=.
11609
11610case "$ac_dir" in
11611.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11612*)
11613  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11614  # A ".." for each directory in $ac_dir_suffix.
11615  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11616  case $ac_top_builddir_sub in
11617  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11618  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11619  esac ;;
11620esac
11621ac_abs_top_builddir=$ac_pwd
11622ac_abs_builddir=$ac_pwd$ac_dir_suffix
11623# for backward compatibility:
11624ac_top_builddir=$ac_top_build_prefix
11625
11626case $srcdir in
11627  .)  # We are building in place.
11628    ac_srcdir=.
11629    ac_top_srcdir=$ac_top_builddir_sub
11630    ac_abs_top_srcdir=$ac_pwd ;;
11631  [\\/]* | ?:[\\/]* )  # Absolute name.
11632    ac_srcdir=$srcdir$ac_dir_suffix;
11633    ac_top_srcdir=$srcdir
11634    ac_abs_top_srcdir=$srcdir ;;
11635  *) # Relative name.
11636    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11637    ac_top_srcdir=$ac_top_build_prefix$srcdir
11638    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11639esac
11640ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11641
11642
11643  case $ac_mode in
11644  :F)
11645  #
11646  # CONFIG_FILE
11647  #
11648
11649  case $INSTALL in
11650  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11651  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11652  esac
11653  ac_MKDIR_P=$MKDIR_P
11654  case $MKDIR_P in
11655  [\\/$]* | ?:[\\/]* ) ;;
11656  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11657  esac
11658_ACEOF
11659
11660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11661# If the template does not know about datarootdir, expand it.
11662# FIXME: This hack should be removed a few years after 2.60.
11663ac_datarootdir_hack=; ac_datarootdir_seen=
11664ac_sed_dataroot='
11665/datarootdir/ {
11666  p
11667  q
11668}
11669/@datadir@/p
11670/@docdir@/p
11671/@infodir@/p
11672/@localedir@/p
11673/@mandir@/p'
11674case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11675*datarootdir*) ac_datarootdir_seen=yes;;
11676*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11677  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11678$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11679_ACEOF
11680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11681  ac_datarootdir_hack='
11682  s&@datadir@&$datadir&g
11683  s&@docdir@&$docdir&g
11684  s&@infodir@&$infodir&g
11685  s&@localedir@&$localedir&g
11686  s&@mandir@&$mandir&g
11687  s&\\\${datarootdir}&$datarootdir&g' ;;
11688esac
11689_ACEOF
11690
11691# Neutralize VPATH when `$srcdir' = `.'.
11692# Shell code in configure.ac might set extrasub.
11693# FIXME: do we really want to maintain this feature?
11694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11695ac_sed_extra="$ac_vpsub
11696$extrasub
11697_ACEOF
11698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11699:t
11700/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11701s|@configure_input@|$ac_sed_conf_input|;t t
11702s&@top_builddir@&$ac_top_builddir_sub&;t t
11703s&@top_build_prefix@&$ac_top_build_prefix&;t t
11704s&@srcdir@&$ac_srcdir&;t t
11705s&@abs_srcdir@&$ac_abs_srcdir&;t t
11706s&@top_srcdir@&$ac_top_srcdir&;t t
11707s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11708s&@builddir@&$ac_builddir&;t t
11709s&@abs_builddir@&$ac_abs_builddir&;t t
11710s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11711s&@INSTALL@&$ac_INSTALL&;t t
11712s&@MKDIR_P@&$ac_MKDIR_P&;t t
11713$ac_datarootdir_hack
11714"
11715eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11716  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11717
11718test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11719  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11720  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11721      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11722  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11723which seems to be undefined.  Please make sure it is defined" >&5
11724$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11725which seems to be undefined.  Please make sure it is defined" >&2;}
11726
11727  rm -f "$ac_tmp/stdin"
11728  case $ac_file in
11729  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11730  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11731  esac \
11732  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11733 ;;
11734  :H)
11735  #
11736  # CONFIG_HEADER
11737  #
11738  if test x"$ac_file" != x-; then
11739    {
11740      $as_echo "/* $configure_input  */" \
11741      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11742    } >"$ac_tmp/config.h" \
11743      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11744    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11745      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11746$as_echo "$as_me: $ac_file is unchanged" >&6;}
11747    else
11748      rm -f "$ac_file"
11749      mv "$ac_tmp/config.h" "$ac_file" \
11750	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11751    fi
11752  else
11753    $as_echo "/* $configure_input  */" \
11754      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11755      || as_fn_error $? "could not create -" "$LINENO" 5
11756  fi
11757# Compute "$ac_file"'s index in $config_headers.
11758_am_arg="$ac_file"
11759_am_stamp_count=1
11760for _am_header in $config_headers :; do
11761  case $_am_header in
11762    $_am_arg | $_am_arg:* )
11763      break ;;
11764    * )
11765      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11766  esac
11767done
11768echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11769$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11770	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11771	 X"$_am_arg" : 'X\(//\)$' \| \
11772	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11773$as_echo X"$_am_arg" |
11774    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11775	    s//\1/
11776	    q
11777	  }
11778	  /^X\(\/\/\)[^/].*/{
11779	    s//\1/
11780	    q
11781	  }
11782	  /^X\(\/\/\)$/{
11783	    s//\1/
11784	    q
11785	  }
11786	  /^X\(\/\).*/{
11787	    s//\1/
11788	    q
11789	  }
11790	  s/.*/./; q'`/stamp-h$_am_stamp_count
11791 ;;
11792
11793  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11794$as_echo "$as_me: executing $ac_file commands" >&6;}
11795 ;;
11796  esac
11797
11798
11799  case $ac_file$ac_mode in
11800    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11801  # Autoconf 2.62 quotes --file arguments for eval, but not when files
11802  # are listed without --file.  Let's play safe and only enable the eval
11803  # if we detect the quoting.
11804  case $CONFIG_FILES in
11805  *\'*) eval set x "$CONFIG_FILES" ;;
11806  *)   set x $CONFIG_FILES ;;
11807  esac
11808  shift
11809  for mf
11810  do
11811    # Strip MF so we end up with the name of the file.
11812    mf=`echo "$mf" | sed -e 's/:.*$//'`
11813    # Check whether this is an Automake generated Makefile or not.
11814    # We used to match only the files named `Makefile.in', but
11815    # some people rename them; so instead we look at the file content.
11816    # Grep'ing the first line is not enough: some people post-process
11817    # each Makefile.in and add a new line on top of each file to say so.
11818    # Grep'ing the whole file is not good either: AIX grep has a line
11819    # limit of 2048, but all sed's we know have understand at least 4000.
11820    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11821      dirpart=`$as_dirname -- "$mf" ||
11822$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11823	 X"$mf" : 'X\(//\)[^/]' \| \
11824	 X"$mf" : 'X\(//\)$' \| \
11825	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11826$as_echo X"$mf" |
11827    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11828	    s//\1/
11829	    q
11830	  }
11831	  /^X\(\/\/\)[^/].*/{
11832	    s//\1/
11833	    q
11834	  }
11835	  /^X\(\/\/\)$/{
11836	    s//\1/
11837	    q
11838	  }
11839	  /^X\(\/\).*/{
11840	    s//\1/
11841	    q
11842	  }
11843	  s/.*/./; q'`
11844    else
11845      continue
11846    fi
11847    # Extract the definition of DEPDIR, am__include, and am__quote
11848    # from the Makefile without running `make'.
11849    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11850    test -z "$DEPDIR" && continue
11851    am__include=`sed -n 's/^am__include = //p' < "$mf"`
11852    test -z "am__include" && continue
11853    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11854    # When using ansi2knr, U may be empty or an underscore; expand it
11855    U=`sed -n 's/^U = //p' < "$mf"`
11856    # Find all dependency output files, they are included files with
11857    # $(DEPDIR) in their names.  We invoke sed twice because it is the
11858    # simplest approach to changing $(DEPDIR) to its actual value in the
11859    # expansion.
11860    for file in `sed -n "
11861      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11862	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11863      # Make sure the directory exists.
11864      test -f "$dirpart/$file" && continue
11865      fdir=`$as_dirname -- "$file" ||
11866$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11867	 X"$file" : 'X\(//\)[^/]' \| \
11868	 X"$file" : 'X\(//\)$' \| \
11869	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11870$as_echo X"$file" |
11871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11872	    s//\1/
11873	    q
11874	  }
11875	  /^X\(\/\/\)[^/].*/{
11876	    s//\1/
11877	    q
11878	  }
11879	  /^X\(\/\/\)$/{
11880	    s//\1/
11881	    q
11882	  }
11883	  /^X\(\/\).*/{
11884	    s//\1/
11885	    q
11886	  }
11887	  s/.*/./; q'`
11888      as_dir=$dirpart/$fdir; as_fn_mkdir_p
11889      # echo "creating $dirpart/$file"
11890      echo '# dummy' > "$dirpart/$file"
11891    done
11892  done
11893}
11894 ;;
11895
11896  esac
11897done # for ac_tag
11898
11899
11900as_fn_exit 0
11901_ACEOF
11902ac_clean_files=$ac_clean_files_save
11903
11904test $ac_write_fail = 0 ||
11905  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11906
11907
11908# configure is writing to config.log, and then calls config.status.
11909# config.status does its own redirection, appending to config.log.
11910# Unfortunately, on DOS this fails, as config.log is still kept open
11911# by configure, so config.status won't be able to write to it; its
11912# output is simply discarded.  So we exec the FD to /dev/null,
11913# effectively closing config.log, so it can be properly (re)opened and
11914# appended to by config.status.  When coming back to configure, we
11915# need to make the FD available again.
11916if test "$no_create" != yes; then
11917  ac_cs_success=:
11918  ac_config_status_args=
11919  test "$silent" = yes &&
11920    ac_config_status_args="$ac_config_status_args --quiet"
11921  exec 5>/dev/null
11922  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11923  exec 5>>config.log
11924  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11925  # would make configure fail if this is the last instruction.
11926  $ac_cs_success || as_fn_exit 1
11927fi
11928if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11929  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11930$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11931fi
11932
11933