configure revision 309c398a
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xclock 1.0.6.
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='xclock'
563PACKAGE_TARNAME='xclock'
564PACKAGE_VERSION='1.0.6'
565PACKAGE_STRING='xclock 1.0.6'
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
610APPDEFS_LIBS
611APPDEFS_CFLAGS
612XKB_LIBS
613XKB_CFLAGS
614XFT_LIBS
615XFT_CFLAGS
616XCLOCK_LIBS
617XCLOCK_CFLAGS
618LTLIBICONV
619LIBICONV
620AM_BACKSLASH
621AM_DEFAULT_VERBOSITY
622MAN_SUBSTS
623XORG_MAN_PAGE
624ADMIN_MAN_DIR
625DRIVER_MAN_DIR
626MISC_MAN_DIR
627FILE_MAN_DIR
628LIB_MAN_DIR
629APP_MAN_DIR
630ADMIN_MAN_SUFFIX
631DRIVER_MAN_SUFFIX
632MISC_MAN_SUFFIX
633FILE_MAN_SUFFIX
634LIB_MAN_SUFFIX
635APP_MAN_SUFFIX
636SED
637host_os
638host_vendor
639host_cpu
640host
641build_os
642build_vendor
643build_cpu
644build
645INSTALL_CMD
646PKG_CONFIG
647CHANGELOG_CMD
648STRICT_CFLAGS
649CWARNFLAGS
650BASE_CFLAGS
651EGREP
652GREP
653CPP
654am__fastdepCC_FALSE
655am__fastdepCC_TRUE
656CCDEPMODE
657AMDEPBACKSLASH
658AMDEP_FALSE
659AMDEP_TRUE
660am__quote
661am__include
662DEPDIR
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670MAINT
671MAINTAINER_MODE_FALSE
672MAINTAINER_MODE_TRUE
673am__untar
674am__tar
675AMTAR
676am__leading_dot
677SET_MAKE
678AWK
679mkdir_p
680MKDIR_P
681INSTALL_STRIP_PROGRAM
682STRIP
683install_sh
684MAKEINFO
685AUTOHEADER
686AUTOMAKE
687AUTOCONF
688ACLOCAL
689VERSION
690PACKAGE
691CYGPATH_W
692am__isrc
693INSTALL_DATA
694INSTALL_SCRIPT
695INSTALL_PROGRAM
696target_alias
697host_alias
698build_alias
699LIBS
700ECHO_T
701ECHO_N
702ECHO_C
703DEFS
704mandir
705localedir
706libdir
707psdir
708pdfdir
709dvidir
710htmldir
711infodir
712docdir
713oldincludedir
714includedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files=''
735ac_user_opts='
736enable_option_checking
737enable_maintainer_mode
738enable_dependency_tracking
739enable_selective_werror
740enable_strict_compilation
741enable_silent_rules
742with_gnu_ld
743enable_rpath
744with_libiconv_prefix
745with_xft
746with_xkb
747with_appdefaultdir
748'
749      ac_precious_vars='build_alias
750host_alias
751target_alias
752CC
753CFLAGS
754LDFLAGS
755LIBS
756CPPFLAGS
757CPP
758PKG_CONFIG
759XCLOCK_CFLAGS
760XCLOCK_LIBS
761XFT_CFLAGS
762XFT_LIBS
763XKB_CFLAGS
764XKB_LIBS
765APPDEFS_CFLAGS
766APPDEFS_LIBS'
767
768
769# Initialize some variables set by options.
770ac_init_help=
771ac_init_version=false
772ac_unrecognized_opts=
773ac_unrecognized_sep=
774# The variables have the same names as the options, with
775# dashes changed to underlines.
776cache_file=/dev/null
777exec_prefix=NONE
778no_create=
779no_recursion=
780prefix=NONE
781program_prefix=NONE
782program_suffix=NONE
783program_transform_name=s,x,x,
784silent=
785site=
786srcdir=
787verbose=
788x_includes=NONE
789x_libraries=NONE
790
791# Installation directory options.
792# These are left unexpanded so users can "make install exec_prefix=/foo"
793# and all the variables that are supposed to be based on exec_prefix
794# by default will actually change.
795# Use braces instead of parens because sh, perl, etc. also accept them.
796# (The list follows the same order as the GNU Coding Standards.)
797bindir='${exec_prefix}/bin'
798sbindir='${exec_prefix}/sbin'
799libexecdir='${exec_prefix}/libexec'
800datarootdir='${prefix}/share'
801datadir='${datarootdir}'
802sysconfdir='${prefix}/etc'
803sharedstatedir='${prefix}/com'
804localstatedir='${prefix}/var'
805includedir='${prefix}/include'
806oldincludedir='/usr/include'
807docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808infodir='${datarootdir}/info'
809htmldir='${docdir}'
810dvidir='${docdir}'
811pdfdir='${docdir}'
812psdir='${docdir}'
813libdir='${exec_prefix}/lib'
814localedir='${datarootdir}/locale'
815mandir='${datarootdir}/man'
816
817ac_prev=
818ac_dashdash=
819for ac_option
820do
821  # If the previous option needs an argument, assign it.
822  if test -n "$ac_prev"; then
823    eval $ac_prev=\$ac_option
824    ac_prev=
825    continue
826  fi
827
828  case $ac_option in
829  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830  *=)   ac_optarg= ;;
831  *)    ac_optarg=yes ;;
832  esac
833
834  # Accept the important Cygnus configure options, so we can diagnose typos.
835
836  case $ac_dashdash$ac_option in
837  --)
838    ac_dashdash=yes ;;
839
840  -bindir | --bindir | --bindi | --bind | --bin | --bi)
841    ac_prev=bindir ;;
842  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843    bindir=$ac_optarg ;;
844
845  -build | --build | --buil | --bui | --bu)
846    ac_prev=build_alias ;;
847  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848    build_alias=$ac_optarg ;;
849
850  -cache-file | --cache-file | --cache-fil | --cache-fi \
851  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852    ac_prev=cache_file ;;
853  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855    cache_file=$ac_optarg ;;
856
857  --config-cache | -C)
858    cache_file=config.cache ;;
859
860  -datadir | --datadir | --datadi | --datad)
861    ac_prev=datadir ;;
862  -datadir=* | --datadir=* | --datadi=* | --datad=*)
863    datadir=$ac_optarg ;;
864
865  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866  | --dataroo | --dataro | --datar)
867    ac_prev=datarootdir ;;
868  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870    datarootdir=$ac_optarg ;;
871
872  -disable-* | --disable-*)
873    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874    # Reject names that are not valid shell variable names.
875    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876      as_fn_error $? "invalid feature name: $ac_useropt"
877    ac_useropt_orig=$ac_useropt
878    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879    case $ac_user_opts in
880      *"
881"enable_$ac_useropt"
882"*) ;;
883      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884	 ac_unrecognized_sep=', ';;
885    esac
886    eval enable_$ac_useropt=no ;;
887
888  -docdir | --docdir | --docdi | --doc | --do)
889    ac_prev=docdir ;;
890  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891    docdir=$ac_optarg ;;
892
893  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894    ac_prev=dvidir ;;
895  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896    dvidir=$ac_optarg ;;
897
898  -enable-* | --enable-*)
899    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900    # Reject names that are not valid shell variable names.
901    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902      as_fn_error $? "invalid feature name: $ac_useropt"
903    ac_useropt_orig=$ac_useropt
904    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905    case $ac_user_opts in
906      *"
907"enable_$ac_useropt"
908"*) ;;
909      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910	 ac_unrecognized_sep=', ';;
911    esac
912    eval enable_$ac_useropt=\$ac_optarg ;;
913
914  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916  | --exec | --exe | --ex)
917    ac_prev=exec_prefix ;;
918  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920  | --exec=* | --exe=* | --ex=*)
921    exec_prefix=$ac_optarg ;;
922
923  -gas | --gas | --ga | --g)
924    # Obsolete; use --with-gas.
925    with_gas=yes ;;
926
927  -help | --help | --hel | --he | -h)
928    ac_init_help=long ;;
929  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930    ac_init_help=recursive ;;
931  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932    ac_init_help=short ;;
933
934  -host | --host | --hos | --ho)
935    ac_prev=host_alias ;;
936  -host=* | --host=* | --hos=* | --ho=*)
937    host_alias=$ac_optarg ;;
938
939  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940    ac_prev=htmldir ;;
941  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942  | --ht=*)
943    htmldir=$ac_optarg ;;
944
945  -includedir | --includedir | --includedi | --included | --include \
946  | --includ | --inclu | --incl | --inc)
947    ac_prev=includedir ;;
948  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949  | --includ=* | --inclu=* | --incl=* | --inc=*)
950    includedir=$ac_optarg ;;
951
952  -infodir | --infodir | --infodi | --infod | --info | --inf)
953    ac_prev=infodir ;;
954  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955    infodir=$ac_optarg ;;
956
957  -libdir | --libdir | --libdi | --libd)
958    ac_prev=libdir ;;
959  -libdir=* | --libdir=* | --libdi=* | --libd=*)
960    libdir=$ac_optarg ;;
961
962  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963  | --libexe | --libex | --libe)
964    ac_prev=libexecdir ;;
965  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966  | --libexe=* | --libex=* | --libe=*)
967    libexecdir=$ac_optarg ;;
968
969  -localedir | --localedir | --localedi | --localed | --locale)
970    ac_prev=localedir ;;
971  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972    localedir=$ac_optarg ;;
973
974  -localstatedir | --localstatedir | --localstatedi | --localstated \
975  | --localstate | --localstat | --localsta | --localst | --locals)
976    ac_prev=localstatedir ;;
977  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979    localstatedir=$ac_optarg ;;
980
981  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982    ac_prev=mandir ;;
983  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984    mandir=$ac_optarg ;;
985
986  -nfp | --nfp | --nf)
987    # Obsolete; use --without-fp.
988    with_fp=no ;;
989
990  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991  | --no-cr | --no-c | -n)
992    no_create=yes ;;
993
994  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996    no_recursion=yes ;;
997
998  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000  | --oldin | --oldi | --old | --ol | --o)
1001    ac_prev=oldincludedir ;;
1002  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005    oldincludedir=$ac_optarg ;;
1006
1007  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008    ac_prev=prefix ;;
1009  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010    prefix=$ac_optarg ;;
1011
1012  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013  | --program-pre | --program-pr | --program-p)
1014    ac_prev=program_prefix ;;
1015  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017    program_prefix=$ac_optarg ;;
1018
1019  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020  | --program-suf | --program-su | --program-s)
1021    ac_prev=program_suffix ;;
1022  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024    program_suffix=$ac_optarg ;;
1025
1026  -program-transform-name | --program-transform-name \
1027  | --program-transform-nam | --program-transform-na \
1028  | --program-transform-n | --program-transform- \
1029  | --program-transform | --program-transfor \
1030  | --program-transfo | --program-transf \
1031  | --program-trans | --program-tran \
1032  | --progr-tra | --program-tr | --program-t)
1033    ac_prev=program_transform_name ;;
1034  -program-transform-name=* | --program-transform-name=* \
1035  | --program-transform-nam=* | --program-transform-na=* \
1036  | --program-transform-n=* | --program-transform-=* \
1037  | --program-transform=* | --program-transfor=* \
1038  | --program-transfo=* | --program-transf=* \
1039  | --program-trans=* | --program-tran=* \
1040  | --progr-tra=* | --program-tr=* | --program-t=*)
1041    program_transform_name=$ac_optarg ;;
1042
1043  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044    ac_prev=pdfdir ;;
1045  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046    pdfdir=$ac_optarg ;;
1047
1048  -psdir | --psdir | --psdi | --psd | --ps)
1049    ac_prev=psdir ;;
1050  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051    psdir=$ac_optarg ;;
1052
1053  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054  | -silent | --silent | --silen | --sile | --sil)
1055    silent=yes ;;
1056
1057  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058    ac_prev=sbindir ;;
1059  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060  | --sbi=* | --sb=*)
1061    sbindir=$ac_optarg ;;
1062
1063  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065  | --sharedst | --shareds | --shared | --share | --shar \
1066  | --sha | --sh)
1067    ac_prev=sharedstatedir ;;
1068  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071  | --sha=* | --sh=*)
1072    sharedstatedir=$ac_optarg ;;
1073
1074  -site | --site | --sit)
1075    ac_prev=site ;;
1076  -site=* | --site=* | --sit=*)
1077    site=$ac_optarg ;;
1078
1079  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080    ac_prev=srcdir ;;
1081  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082    srcdir=$ac_optarg ;;
1083
1084  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085  | --syscon | --sysco | --sysc | --sys | --sy)
1086    ac_prev=sysconfdir ;;
1087  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089    sysconfdir=$ac_optarg ;;
1090
1091  -target | --target | --targe | --targ | --tar | --ta | --t)
1092    ac_prev=target_alias ;;
1093  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094    target_alias=$ac_optarg ;;
1095
1096  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097    verbose=yes ;;
1098
1099  -version | --version | --versio | --versi | --vers | -V)
1100    ac_init_version=: ;;
1101
1102  -with-* | --with-*)
1103    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104    # Reject names that are not valid shell variable names.
1105    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106      as_fn_error $? "invalid package name: $ac_useropt"
1107    ac_useropt_orig=$ac_useropt
1108    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109    case $ac_user_opts in
1110      *"
1111"with_$ac_useropt"
1112"*) ;;
1113      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114	 ac_unrecognized_sep=', ';;
1115    esac
1116    eval with_$ac_useropt=\$ac_optarg ;;
1117
1118  -without-* | --without-*)
1119    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120    # Reject names that are not valid shell variable names.
1121    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122      as_fn_error $? "invalid package name: $ac_useropt"
1123    ac_useropt_orig=$ac_useropt
1124    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125    case $ac_user_opts in
1126      *"
1127"with_$ac_useropt"
1128"*) ;;
1129      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130	 ac_unrecognized_sep=', ';;
1131    esac
1132    eval with_$ac_useropt=no ;;
1133
1134  --x)
1135    # Obsolete; use --with-x.
1136    with_x=yes ;;
1137
1138  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139  | --x-incl | --x-inc | --x-in | --x-i)
1140    ac_prev=x_includes ;;
1141  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143    x_includes=$ac_optarg ;;
1144
1145  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147    ac_prev=x_libraries ;;
1148  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150    x_libraries=$ac_optarg ;;
1151
1152  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1153Try \`$0 --help' for more information"
1154    ;;
1155
1156  *=*)
1157    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158    # Reject names that are not valid shell variable names.
1159    case $ac_envvar in #(
1160      '' | [0-9]* | *[!_$as_cr_alnum]* )
1161      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1162    esac
1163    eval $ac_envvar=\$ac_optarg
1164    export $ac_envvar ;;
1165
1166  *)
1167    # FIXME: should be removed in autoconf 3.0.
1168    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1172    ;;
1173
1174  esac
1175done
1176
1177if test -n "$ac_prev"; then
1178  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179  as_fn_error $? "missing argument to $ac_option"
1180fi
1181
1182if test -n "$ac_unrecognized_opts"; then
1183  case $enable_option_checking in
1184    no) ;;
1185    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1186    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187  esac
1188fi
1189
1190# Check all directory arguments for consistency.
1191for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192		datadir sysconfdir sharedstatedir localstatedir includedir \
1193		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194		libdir localedir mandir
1195do
1196  eval ac_val=\$$ac_var
1197  # Remove trailing slashes.
1198  case $ac_val in
1199    */ )
1200      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201      eval $ac_var=\$ac_val;;
1202  esac
1203  # Be sure to have absolute directory names.
1204  case $ac_val in
1205    [\\/$]* | ?:[\\/]* )  continue;;
1206    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207  esac
1208  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1209done
1210
1211# There might be people who depend on the old broken behavior: `$host'
1212# used to hold the argument of --host etc.
1213# FIXME: To remove some day.
1214build=$build_alias
1215host=$host_alias
1216target=$target_alias
1217
1218# FIXME: To remove some day.
1219if test "x$host_alias" != x; then
1220  if test "x$build_alias" = x; then
1221    cross_compiling=maybe
1222    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1223    If a cross compiler is detected then cross compile mode will be used" >&2
1224  elif test "x$build_alias" != "x$host_alias"; then
1225    cross_compiling=yes
1226  fi
1227fi
1228
1229ac_tool_prefix=
1230test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232test "$silent" = yes && exec 6>/dev/null
1233
1234
1235ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236ac_ls_di=`ls -di .` &&
1237ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238  as_fn_error $? "working directory cannot be determined"
1239test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240  as_fn_error $? "pwd does not report name of working directory"
1241
1242
1243# Find the source files, if location was not specified.
1244if test -z "$srcdir"; then
1245  ac_srcdir_defaulted=yes
1246  # Try the directory containing this script, then the parent directory.
1247  ac_confdir=`$as_dirname -- "$as_myself" ||
1248$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249	 X"$as_myself" : 'X\(//\)[^/]' \| \
1250	 X"$as_myself" : 'X\(//\)$' \| \
1251	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252$as_echo X"$as_myself" |
1253    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254	    s//\1/
1255	    q
1256	  }
1257	  /^X\(\/\/\)[^/].*/{
1258	    s//\1/
1259	    q
1260	  }
1261	  /^X\(\/\/\)$/{
1262	    s//\1/
1263	    q
1264	  }
1265	  /^X\(\/\).*/{
1266	    s//\1/
1267	    q
1268	  }
1269	  s/.*/./; q'`
1270  srcdir=$ac_confdir
1271  if test ! -r "$srcdir/$ac_unique_file"; then
1272    srcdir=..
1273  fi
1274else
1275  ac_srcdir_defaulted=no
1276fi
1277if test ! -r "$srcdir/$ac_unique_file"; then
1278  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1280fi
1281ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282ac_abs_confdir=`(
1283	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284	pwd)`
1285# When building in place, set srcdir=.
1286if test "$ac_abs_confdir" = "$ac_pwd"; then
1287  srcdir=.
1288fi
1289# Remove unnecessary trailing slashes from srcdir.
1290# Double slashes in file names in object file debugging info
1291# mess up M-x gdb in Emacs.
1292case $srcdir in
1293*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294esac
1295for ac_var in $ac_precious_vars; do
1296  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297  eval ac_env_${ac_var}_value=\$${ac_var}
1298  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300done
1301
1302#
1303# Report the --help message.
1304#
1305if test "$ac_init_help" = "long"; then
1306  # Omit some internal or obsolete options to make the list less imposing.
1307  # This message is too long to be a string in the A/UX 3.1 sh.
1308  cat <<_ACEOF
1309\`configure' configures xclock 1.0.6 to adapt to many kinds of systems.
1310
1311Usage: $0 [OPTION]... [VAR=VALUE]...
1312
1313To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314VAR=VALUE.  See below for descriptions of some of the useful variables.
1315
1316Defaults for the options are specified in brackets.
1317
1318Configuration:
1319  -h, --help              display this help and exit
1320      --help=short        display options specific to this package
1321      --help=recursive    display the short help of all the included packages
1322  -V, --version           display version information and exit
1323  -q, --quiet, --silent   do not print \`checking ...' messages
1324      --cache-file=FILE   cache test results in FILE [disabled]
1325  -C, --config-cache      alias for \`--cache-file=config.cache'
1326  -n, --no-create         do not create output files
1327      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1328
1329Installation directories:
1330  --prefix=PREFIX         install architecture-independent files in PREFIX
1331                          [$ac_default_prefix]
1332  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1333                          [PREFIX]
1334
1335By default, \`make install' will install all the files in
1336\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1337an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338for instance \`--prefix=\$HOME'.
1339
1340For better control, use the options below.
1341
1342Fine tuning of the installation directories:
1343  --bindir=DIR            user executables [EPREFIX/bin]
1344  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1345  --libexecdir=DIR        program executables [EPREFIX/libexec]
1346  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1347  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1348  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1349  --libdir=DIR            object code libraries [EPREFIX/lib]
1350  --includedir=DIR        C header files [PREFIX/include]
1351  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1352  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1353  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1354  --infodir=DIR           info documentation [DATAROOTDIR/info]
1355  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1356  --mandir=DIR            man documentation [DATAROOTDIR/man]
1357  --docdir=DIR            documentation root [DATAROOTDIR/doc/xclock]
1358  --htmldir=DIR           html documentation [DOCDIR]
1359  --dvidir=DIR            dvi documentation [DOCDIR]
1360  --pdfdir=DIR            pdf documentation [DOCDIR]
1361  --psdir=DIR             ps documentation [DOCDIR]
1362_ACEOF
1363
1364  cat <<\_ACEOF
1365
1366Program names:
1367  --program-prefix=PREFIX            prepend PREFIX to installed program names
1368  --program-suffix=SUFFIX            append SUFFIX to installed program names
1369  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1370
1371System types:
1372  --build=BUILD     configure for building on BUILD [guessed]
1373  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1374_ACEOF
1375fi
1376
1377if test -n "$ac_init_help"; then
1378  case $ac_init_help in
1379     short | recursive ) echo "Configuration of xclock 1.0.6:";;
1380   esac
1381  cat <<\_ACEOF
1382
1383Optional Features:
1384  --disable-option-checking  ignore unrecognized --enable/--with options
1385  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1386  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1387  --enable-maintainer-mode  enable make rules and dependencies not useful
1388			  (and sometimes confusing) to the casual installer
1389  --disable-dependency-tracking  speeds up one-time build
1390  --enable-dependency-tracking   do not reject slow dependency extractors
1391  --disable-selective-werror
1392                          Turn off selective compiler errors. (default:
1393                          enabled)
1394  --enable-strict-compilation
1395                          Enable all warnings from compiler and make them
1396                          errors (default: disabled)
1397  --enable-silent-rules          less verbose build output (undo: `make V=1')
1398  --disable-silent-rules         verbose build output (undo: `make V=0')
1399  --disable-rpath         do not hardcode runtime library paths
1400
1401Optional Packages:
1402  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1403  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1404  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1405  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1406  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1407  --with-xft              Use Xft2 and Xrender for rendering (Default is YES)
1408  --with-xkb              Use XKB to sound bells (Default is YES)
1409  --with-appdefaultdir=<pathname>
1410                          specify directory for app-defaults files (default is
1411                          autodetected)
1412
1413Some influential environment variables:
1414  CC          C compiler command
1415  CFLAGS      C compiler flags
1416  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1417              nonstandard directory <lib dir>
1418  LIBS        libraries to pass to the linker, e.g. -l<library>
1419  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1420              you have headers in a nonstandard directory <include dir>
1421  CPP         C preprocessor
1422  PKG_CONFIG  path to pkg-config utility
1423  XCLOCK_CFLAGS
1424              C compiler flags for XCLOCK, overriding pkg-config
1425  XCLOCK_LIBS linker flags for XCLOCK, overriding pkg-config
1426  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1427  XFT_LIBS    linker flags for XFT, overriding pkg-config
1428  XKB_CFLAGS  C compiler flags for XKB, overriding pkg-config
1429  XKB_LIBS    linker flags for XKB, overriding pkg-config
1430  APPDEFS_CFLAGS
1431              C compiler flags for APPDEFS, overriding pkg-config
1432  APPDEFS_LIBS
1433              linker flags for APPDEFS, overriding pkg-config
1434
1435Use these variables to override the choices made by `configure' or to help
1436it to find libraries and programs with nonstandard names/locations.
1437
1438Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1439_ACEOF
1440ac_status=$?
1441fi
1442
1443if test "$ac_init_help" = "recursive"; then
1444  # If there are subdirs, report their specific --help.
1445  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446    test -d "$ac_dir" ||
1447      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448      continue
1449    ac_builddir=.
1450
1451case "$ac_dir" in
1452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453*)
1454  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455  # A ".." for each directory in $ac_dir_suffix.
1456  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457  case $ac_top_builddir_sub in
1458  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460  esac ;;
1461esac
1462ac_abs_top_builddir=$ac_pwd
1463ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464# for backward compatibility:
1465ac_top_builddir=$ac_top_build_prefix
1466
1467case $srcdir in
1468  .)  # We are building in place.
1469    ac_srcdir=.
1470    ac_top_srcdir=$ac_top_builddir_sub
1471    ac_abs_top_srcdir=$ac_pwd ;;
1472  [\\/]* | ?:[\\/]* )  # Absolute name.
1473    ac_srcdir=$srcdir$ac_dir_suffix;
1474    ac_top_srcdir=$srcdir
1475    ac_abs_top_srcdir=$srcdir ;;
1476  *) # Relative name.
1477    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478    ac_top_srcdir=$ac_top_build_prefix$srcdir
1479    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480esac
1481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483    cd "$ac_dir" || { ac_status=$?; continue; }
1484    # Check for guested configure.
1485    if test -f "$ac_srcdir/configure.gnu"; then
1486      echo &&
1487      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488    elif test -f "$ac_srcdir/configure"; then
1489      echo &&
1490      $SHELL "$ac_srcdir/configure" --help=recursive
1491    else
1492      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493    fi || ac_status=$?
1494    cd "$ac_pwd" || { ac_status=$?; break; }
1495  done
1496fi
1497
1498test -n "$ac_init_help" && exit $ac_status
1499if $ac_init_version; then
1500  cat <<\_ACEOF
1501xclock configure 1.0.6
1502generated by GNU Autoconf 2.68
1503
1504Copyright (C) 2010 Free Software Foundation, Inc.
1505This configure script is free software; the Free Software Foundation
1506gives unlimited permission to copy, distribute and modify it.
1507_ACEOF
1508  exit
1509fi
1510
1511## ------------------------ ##
1512## Autoconf initialization. ##
1513## ------------------------ ##
1514
1515# ac_fn_c_try_compile LINENO
1516# --------------------------
1517# Try to compile conftest.$ac_ext, and return whether this succeeded.
1518ac_fn_c_try_compile ()
1519{
1520  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521  rm -f conftest.$ac_objext
1522  if { { ac_try="$ac_compile"
1523case "(($ac_try" in
1524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525  *) ac_try_echo=$ac_try;;
1526esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5
1529  (eval "$ac_compile") 2>conftest.err
1530  ac_status=$?
1531  if test -s conftest.err; then
1532    grep -v '^ *+' conftest.err >conftest.er1
1533    cat conftest.er1 >&5
1534    mv -f conftest.er1 conftest.err
1535  fi
1536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537  test $ac_status = 0; } && {
1538	 test -z "$ac_c_werror_flag" ||
1539	 test ! -s conftest.err
1540       } && test -s conftest.$ac_objext; then :
1541  ac_retval=0
1542else
1543  $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5
1545
1546	ac_retval=1
1547fi
1548  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549  as_fn_set_status $ac_retval
1550
1551} # ac_fn_c_try_compile
1552
1553# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1554# ---------------------------------------------
1555# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1556# accordingly.
1557ac_fn_c_check_decl ()
1558{
1559  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560  as_decl_name=`echo $2|sed 's/ *(.*//'`
1561  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1563$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1564if eval \${$3+:} false; then :
1565  $as_echo_n "(cached) " >&6
1566else
1567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568/* end confdefs.h.  */
1569$4
1570int
1571main ()
1572{
1573#ifndef $as_decl_name
1574#ifdef __cplusplus
1575  (void) $as_decl_use;
1576#else
1577  (void) $as_decl_name;
1578#endif
1579#endif
1580
1581  ;
1582  return 0;
1583}
1584_ACEOF
1585if ac_fn_c_try_compile "$LINENO"; then :
1586  eval "$3=yes"
1587else
1588  eval "$3=no"
1589fi
1590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1591fi
1592eval ac_res=\$$3
1593	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594$as_echo "$ac_res" >&6; }
1595  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596
1597} # ac_fn_c_check_decl
1598
1599# ac_fn_c_try_cpp LINENO
1600# ----------------------
1601# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602ac_fn_c_try_cpp ()
1603{
1604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605  if { { ac_try="$ac_cpp conftest.$ac_ext"
1606case "(($ac_try" in
1607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608  *) ac_try_echo=$ac_try;;
1609esac
1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611$as_echo "$ac_try_echo"; } >&5
1612  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613  ac_status=$?
1614  if test -s conftest.err; then
1615    grep -v '^ *+' conftest.err >conftest.er1
1616    cat conftest.er1 >&5
1617    mv -f conftest.er1 conftest.err
1618  fi
1619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620  test $ac_status = 0; } > conftest.i && {
1621	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1622	 test ! -s conftest.err
1623       }; then :
1624  ac_retval=0
1625else
1626  $as_echo "$as_me: failed program was:" >&5
1627sed 's/^/| /' conftest.$ac_ext >&5
1628
1629    ac_retval=1
1630fi
1631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632  as_fn_set_status $ac_retval
1633
1634} # ac_fn_c_try_cpp
1635
1636# ac_fn_c_try_run LINENO
1637# ----------------------
1638# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1639# that executables *can* be run.
1640ac_fn_c_try_run ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  if { { ac_try="$ac_link"
1644case "(($ac_try" in
1645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646  *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649$as_echo "$ac_try_echo"; } >&5
1650  (eval "$ac_link") 2>&5
1651  ac_status=$?
1652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1654  { { case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_try") 2>&5
1661  ac_status=$?
1662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663  test $ac_status = 0; }; }; then :
1664  ac_retval=0
1665else
1666  $as_echo "$as_me: program exited with status $ac_status" >&5
1667       $as_echo "$as_me: failed program was:" >&5
1668sed 's/^/| /' conftest.$ac_ext >&5
1669
1670       ac_retval=$ac_status
1671fi
1672  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674  as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_run
1677
1678# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679# -------------------------------------------------------
1680# Tests whether HEADER exists and can be compiled using the include files in
1681# INCLUDES, setting the cache variable VAR accordingly.
1682ac_fn_c_check_header_compile ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686$as_echo_n "checking for $2... " >&6; }
1687if eval \${$3+:} false; then :
1688  $as_echo_n "(cached) " >&6
1689else
1690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691/* end confdefs.h.  */
1692$4
1693#include <$2>
1694_ACEOF
1695if ac_fn_c_try_compile "$LINENO"; then :
1696  eval "$3=yes"
1697else
1698  eval "$3=no"
1699fi
1700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701fi
1702eval ac_res=\$$3
1703	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704$as_echo "$ac_res" >&6; }
1705  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707} # ac_fn_c_check_header_compile
1708
1709# ac_fn_c_try_link LINENO
1710# -----------------------
1711# Try to link conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_link ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  rm -f conftest.$ac_objext conftest$ac_exeext
1716  if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_link") 2>conftest.err
1724  ac_status=$?
1725  if test -s conftest.err; then
1726    grep -v '^ *+' conftest.err >conftest.er1
1727    cat conftest.er1 >&5
1728    mv -f conftest.er1 conftest.err
1729  fi
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && {
1732	 test -z "$ac_c_werror_flag" ||
1733	 test ! -s conftest.err
1734       } && test -s conftest$ac_exeext && {
1735	 test "$cross_compiling" = yes ||
1736	 $as_test_x conftest$ac_exeext
1737       }; then :
1738  ac_retval=0
1739else
1740  $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743	ac_retval=1
1744fi
1745  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747  # interfere with the next link command; also delete a directory that is
1748  # left behind by Apple's compiler.  We do this before executing the actions.
1749  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751  as_fn_set_status $ac_retval
1752
1753} # ac_fn_c_try_link
1754
1755# ac_fn_c_check_func LINENO FUNC VAR
1756# ----------------------------------
1757# Tests whether FUNC exists, setting the cache variable VAR accordingly
1758ac_fn_c_check_func ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if eval \${$3+:} false; then :
1764  $as_echo_n "(cached) " >&6
1765else
1766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h.  */
1768/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1770#define $2 innocuous_$2
1771
1772/* System header to define __stub macros and hopefully few prototypes,
1773    which can conflict with char $2 (); below.
1774    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775    <limits.h> exists even on freestanding compilers.  */
1776
1777#ifdef __STDC__
1778# include <limits.h>
1779#else
1780# include <assert.h>
1781#endif
1782
1783#undef $2
1784
1785/* Override any GCC internal prototype to avoid an error.
1786   Use char because int might match the return type of a GCC
1787   builtin and then its argument prototype would still apply.  */
1788#ifdef __cplusplus
1789extern "C"
1790#endif
1791char $2 ();
1792/* The GNU C library defines this for functions which it implements
1793    to always fail with ENOSYS.  Some functions are actually named
1794    something starting with __ and the normal name is an alias.  */
1795#if defined __stub_$2 || defined __stub___$2
1796choke me
1797#endif
1798
1799int
1800main ()
1801{
1802return $2 ();
1803  ;
1804  return 0;
1805}
1806_ACEOF
1807if ac_fn_c_try_link "$LINENO"; then :
1808  eval "$3=yes"
1809else
1810  eval "$3=no"
1811fi
1812rm -f core conftest.err conftest.$ac_objext \
1813    conftest$ac_exeext conftest.$ac_ext
1814fi
1815eval ac_res=\$$3
1816	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817$as_echo "$ac_res" >&6; }
1818  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820} # ac_fn_c_check_func
1821cat >config.log <<_ACEOF
1822This file contains any messages produced by compilers while
1823running configure, to aid debugging if configure makes a mistake.
1824
1825It was created by xclock $as_me 1.0.6, which was
1826generated by GNU Autoconf 2.68.  Invocation command line was
1827
1828  $ $0 $@
1829
1830_ACEOF
1831exec 5>>config.log
1832{
1833cat <<_ASUNAME
1834## --------- ##
1835## Platform. ##
1836## --------- ##
1837
1838hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1839uname -m = `(uname -m) 2>/dev/null || echo unknown`
1840uname -r = `(uname -r) 2>/dev/null || echo unknown`
1841uname -s = `(uname -s) 2>/dev/null || echo unknown`
1842uname -v = `(uname -v) 2>/dev/null || echo unknown`
1843
1844/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1845/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1846
1847/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1848/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1849/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1850/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1851/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1852/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1853/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1854
1855_ASUNAME
1856
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860  IFS=$as_save_IFS
1861  test -z "$as_dir" && as_dir=.
1862    $as_echo "PATH: $as_dir"
1863  done
1864IFS=$as_save_IFS
1865
1866} >&5
1867
1868cat >&5 <<_ACEOF
1869
1870
1871## ----------- ##
1872## Core tests. ##
1873## ----------- ##
1874
1875_ACEOF
1876
1877
1878# Keep a trace of the command line.
1879# Strip out --no-create and --no-recursion so they do not pile up.
1880# Strip out --silent because we don't want to record it for future runs.
1881# Also quote any args containing shell meta-characters.
1882# Make two passes to allow for proper duplicate-argument suppression.
1883ac_configure_args=
1884ac_configure_args0=
1885ac_configure_args1=
1886ac_must_keep_next=false
1887for ac_pass in 1 2
1888do
1889  for ac_arg
1890  do
1891    case $ac_arg in
1892    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1893    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894    | -silent | --silent | --silen | --sile | --sil)
1895      continue ;;
1896    *\'*)
1897      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898    esac
1899    case $ac_pass in
1900    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1901    2)
1902      as_fn_append ac_configure_args1 " '$ac_arg'"
1903      if test $ac_must_keep_next = true; then
1904	ac_must_keep_next=false # Got value, back to normal.
1905      else
1906	case $ac_arg in
1907	  *=* | --config-cache | -C | -disable-* | --disable-* \
1908	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1909	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1910	  | -with-* | --with-* | -without-* | --without-* | --x)
1911	    case "$ac_configure_args0 " in
1912	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1913	    esac
1914	    ;;
1915	  -* ) ac_must_keep_next=true ;;
1916	esac
1917      fi
1918      as_fn_append ac_configure_args " '$ac_arg'"
1919      ;;
1920    esac
1921  done
1922done
1923{ ac_configure_args0=; unset ac_configure_args0;}
1924{ ac_configure_args1=; unset ac_configure_args1;}
1925
1926# When interrupted or exit'd, cleanup temporary files, and complete
1927# config.log.  We remove comments because anyway the quotes in there
1928# would cause problems or look ugly.
1929# WARNING: Use '\'' to represent an apostrophe within the trap.
1930# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1931trap 'exit_status=$?
1932  # Save into config.log some information that might help in debugging.
1933  {
1934    echo
1935
1936    $as_echo "## ---------------- ##
1937## Cache variables. ##
1938## ---------------- ##"
1939    echo
1940    # The following way of writing the cache mishandles newlines in values,
1941(
1942  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1943    eval ac_val=\$$ac_var
1944    case $ac_val in #(
1945    *${as_nl}*)
1946      case $ac_var in #(
1947      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1948$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1949      esac
1950      case $ac_var in #(
1951      _ | IFS | as_nl) ;; #(
1952      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1953      *) { eval $ac_var=; unset $ac_var;} ;;
1954      esac ;;
1955    esac
1956  done
1957  (set) 2>&1 |
1958    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1959    *${as_nl}ac_space=\ *)
1960      sed -n \
1961	"s/'\''/'\''\\\\'\'''\''/g;
1962	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1963      ;; #(
1964    *)
1965      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1966      ;;
1967    esac |
1968    sort
1969)
1970    echo
1971
1972    $as_echo "## ----------------- ##
1973## Output variables. ##
1974## ----------------- ##"
1975    echo
1976    for ac_var in $ac_subst_vars
1977    do
1978      eval ac_val=\$$ac_var
1979      case $ac_val in
1980      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981      esac
1982      $as_echo "$ac_var='\''$ac_val'\''"
1983    done | sort
1984    echo
1985
1986    if test -n "$ac_subst_files"; then
1987      $as_echo "## ------------------- ##
1988## File substitutions. ##
1989## ------------------- ##"
1990      echo
1991      for ac_var in $ac_subst_files
1992      do
1993	eval ac_val=\$$ac_var
1994	case $ac_val in
1995	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996	esac
1997	$as_echo "$ac_var='\''$ac_val'\''"
1998      done | sort
1999      echo
2000    fi
2001
2002    if test -s confdefs.h; then
2003      $as_echo "## ----------- ##
2004## confdefs.h. ##
2005## ----------- ##"
2006      echo
2007      cat confdefs.h
2008      echo
2009    fi
2010    test "$ac_signal" != 0 &&
2011      $as_echo "$as_me: caught signal $ac_signal"
2012    $as_echo "$as_me: exit $exit_status"
2013  } >&5
2014  rm -f core *.core core.conftest.* &&
2015    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2016    exit $exit_status
2017' 0
2018for ac_signal in 1 2 13 15; do
2019  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2020done
2021ac_signal=0
2022
2023# confdefs.h avoids OS command line length limits that DEFS can exceed.
2024rm -f -r conftest* confdefs.h
2025
2026$as_echo "/* confdefs.h */" > confdefs.h
2027
2028# Predefined preprocessor variables.
2029
2030cat >>confdefs.h <<_ACEOF
2031#define PACKAGE_NAME "$PACKAGE_NAME"
2032_ACEOF
2033
2034cat >>confdefs.h <<_ACEOF
2035#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2036_ACEOF
2037
2038cat >>confdefs.h <<_ACEOF
2039#define PACKAGE_VERSION "$PACKAGE_VERSION"
2040_ACEOF
2041
2042cat >>confdefs.h <<_ACEOF
2043#define PACKAGE_STRING "$PACKAGE_STRING"
2044_ACEOF
2045
2046cat >>confdefs.h <<_ACEOF
2047#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2048_ACEOF
2049
2050cat >>confdefs.h <<_ACEOF
2051#define PACKAGE_URL "$PACKAGE_URL"
2052_ACEOF
2053
2054
2055# Let the site file select an alternate cache file if it wants to.
2056# Prefer an explicitly selected file to automatically selected ones.
2057ac_site_file1=NONE
2058ac_site_file2=NONE
2059if test -n "$CONFIG_SITE"; then
2060  # We do not want a PATH search for config.site.
2061  case $CONFIG_SITE in #((
2062    -*)  ac_site_file1=./$CONFIG_SITE;;
2063    */*) ac_site_file1=$CONFIG_SITE;;
2064    *)   ac_site_file1=./$CONFIG_SITE;;
2065  esac
2066elif test "x$prefix" != xNONE; then
2067  ac_site_file1=$prefix/share/config.site
2068  ac_site_file2=$prefix/etc/config.site
2069else
2070  ac_site_file1=$ac_default_prefix/share/config.site
2071  ac_site_file2=$ac_default_prefix/etc/config.site
2072fi
2073for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2074do
2075  test "x$ac_site_file" = xNONE && continue
2076  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2077    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2078$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2079    sed 's/^/| /' "$ac_site_file" >&5
2080    . "$ac_site_file" \
2081      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2083as_fn_error $? "failed to load site script $ac_site_file
2084See \`config.log' for more details" "$LINENO" 5; }
2085  fi
2086done
2087
2088if test -r "$cache_file"; then
2089  # Some versions of bash will fail to source /dev/null (special files
2090  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2091  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2092    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2093$as_echo "$as_me: loading cache $cache_file" >&6;}
2094    case $cache_file in
2095      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2096      *)                      . "./$cache_file";;
2097    esac
2098  fi
2099else
2100  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2101$as_echo "$as_me: creating cache $cache_file" >&6;}
2102  >$cache_file
2103fi
2104
2105# Check that the precious variables saved in the cache have kept the same
2106# value.
2107ac_cache_corrupted=false
2108for ac_var in $ac_precious_vars; do
2109  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2110  eval ac_new_set=\$ac_env_${ac_var}_set
2111  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2112  eval ac_new_val=\$ac_env_${ac_var}_value
2113  case $ac_old_set,$ac_new_set in
2114    set,)
2115      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2116$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2117      ac_cache_corrupted=: ;;
2118    ,set)
2119      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2120$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2121      ac_cache_corrupted=: ;;
2122    ,);;
2123    *)
2124      if test "x$ac_old_val" != "x$ac_new_val"; then
2125	# differences in whitespace do not lead to failure.
2126	ac_old_val_w=`echo x $ac_old_val`
2127	ac_new_val_w=`echo x $ac_new_val`
2128	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2129	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2130$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2131	  ac_cache_corrupted=:
2132	else
2133	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2134$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2135	  eval $ac_var=\$ac_old_val
2136	fi
2137	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2138$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2139	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2140$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2141      fi;;
2142  esac
2143  # Pass precious variables to config.status.
2144  if test "$ac_new_set" = set; then
2145    case $ac_new_val in
2146    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2147    *) ac_arg=$ac_var=$ac_new_val ;;
2148    esac
2149    case " $ac_configure_args " in
2150      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2151      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2152    esac
2153  fi
2154done
2155if $ac_cache_corrupted; then
2156  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2158  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2159$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2160  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2161fi
2162## -------------------- ##
2163## Main body of script. ##
2164## -------------------- ##
2165
2166ac_ext=c
2167ac_cpp='$CPP $CPPFLAGS'
2168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171
2172
2173am__api_version='1.11'
2174
2175ac_aux_dir=
2176for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2177  if test -f "$ac_dir/install-sh"; then
2178    ac_aux_dir=$ac_dir
2179    ac_install_sh="$ac_aux_dir/install-sh -c"
2180    break
2181  elif test -f "$ac_dir/install.sh"; then
2182    ac_aux_dir=$ac_dir
2183    ac_install_sh="$ac_aux_dir/install.sh -c"
2184    break
2185  elif test -f "$ac_dir/shtool"; then
2186    ac_aux_dir=$ac_dir
2187    ac_install_sh="$ac_aux_dir/shtool install -c"
2188    break
2189  fi
2190done
2191if test -z "$ac_aux_dir"; then
2192  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2193fi
2194
2195# These three variables are undocumented and unsupported,
2196# and are intended to be withdrawn in a future Autoconf release.
2197# They can cause serious problems if a builder's source tree is in a directory
2198# whose full name contains unusual characters.
2199ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2200ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2201ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2202
2203
2204# Find a good install program.  We prefer a C program (faster),
2205# so one script is as good as another.  But avoid the broken or
2206# incompatible versions:
2207# SysV /etc/install, /usr/sbin/install
2208# SunOS /usr/etc/install
2209# IRIX /sbin/install
2210# AIX /bin/install
2211# AmigaOS /C/install, which installs bootblocks on floppy discs
2212# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2213# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2214# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2215# OS/2's system install, which has a completely different semantic
2216# ./install, which can be erroneously created by make from ./install.sh.
2217# Reject install programs that cannot install multiple files.
2218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2219$as_echo_n "checking for a BSD-compatible install... " >&6; }
2220if test -z "$INSTALL"; then
2221if ${ac_cv_path_install+:} false; then :
2222  $as_echo_n "(cached) " >&6
2223else
2224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225for as_dir in $PATH
2226do
2227  IFS=$as_save_IFS
2228  test -z "$as_dir" && as_dir=.
2229    # Account for people who put trailing slashes in PATH elements.
2230case $as_dir/ in #((
2231  ./ | .// | /[cC]/* | \
2232  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2233  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2234  /usr/ucb/* ) ;;
2235  *)
2236    # OSF1 and SCO ODT 3.0 have their own names for install.
2237    # Don't use installbsd from OSF since it installs stuff as root
2238    # by default.
2239    for ac_prog in ginstall scoinst install; do
2240      for ac_exec_ext in '' $ac_executable_extensions; do
2241	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2242	  if test $ac_prog = install &&
2243	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244	    # AIX install.  It has an incompatible calling convention.
2245	    :
2246	  elif test $ac_prog = install &&
2247	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248	    # program-specific install script used by HP pwplus--don't use.
2249	    :
2250	  else
2251	    rm -rf conftest.one conftest.two conftest.dir
2252	    echo one > conftest.one
2253	    echo two > conftest.two
2254	    mkdir conftest.dir
2255	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2256	      test -s conftest.one && test -s conftest.two &&
2257	      test -s conftest.dir/conftest.one &&
2258	      test -s conftest.dir/conftest.two
2259	    then
2260	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2261	      break 3
2262	    fi
2263	  fi
2264	fi
2265      done
2266    done
2267    ;;
2268esac
2269
2270  done
2271IFS=$as_save_IFS
2272
2273rm -rf conftest.one conftest.two conftest.dir
2274
2275fi
2276  if test "${ac_cv_path_install+set}" = set; then
2277    INSTALL=$ac_cv_path_install
2278  else
2279    # As a last resort, use the slow shell script.  Don't cache a
2280    # value for INSTALL within a source directory, because that will
2281    # break other packages using the cache if that directory is
2282    # removed, or if the value is a relative name.
2283    INSTALL=$ac_install_sh
2284  fi
2285fi
2286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2287$as_echo "$INSTALL" >&6; }
2288
2289# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2290# It thinks the first close brace ends the variable substitution.
2291test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2292
2293test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2294
2295test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2296
2297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2298$as_echo_n "checking whether build environment is sane... " >&6; }
2299# Just in case
2300sleep 1
2301echo timestamp > conftest.file
2302# Reject unsafe characters in $srcdir or the absolute working directory
2303# name.  Accept space and tab only in the latter.
2304am_lf='
2305'
2306case `pwd` in
2307  *[\\\"\#\$\&\'\`$am_lf]*)
2308    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2309esac
2310case $srcdir in
2311  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2312    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2313esac
2314
2315# Do `set' in a subshell so we don't clobber the current shell's
2316# arguments.  Must try -L first in case configure is actually a
2317# symlink; some systems play weird games with the mod time of symlinks
2318# (eg FreeBSD returns the mod time of the symlink's containing
2319# directory).
2320if (
2321   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2322   if test "$*" = "X"; then
2323      # -L didn't work.
2324      set X `ls -t "$srcdir/configure" conftest.file`
2325   fi
2326   rm -f conftest.file
2327   if test "$*" != "X $srcdir/configure conftest.file" \
2328      && test "$*" != "X conftest.file $srcdir/configure"; then
2329
2330      # If neither matched, then we have a broken ls.  This can happen
2331      # if, for instance, CONFIG_SHELL is bash and it inherits a
2332      # broken ls alias from the environment.  This has actually
2333      # happened.  Such a system could not be considered "sane".
2334      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2335alias in your environment" "$LINENO" 5
2336   fi
2337
2338   test "$2" = conftest.file
2339   )
2340then
2341   # Ok.
2342   :
2343else
2344   as_fn_error $? "newly created file is older than distributed files!
2345Check your system clock" "$LINENO" 5
2346fi
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2348$as_echo "yes" >&6; }
2349test "$program_prefix" != NONE &&
2350  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2351# Use a double $ so make ignores it.
2352test "$program_suffix" != NONE &&
2353  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2354# Double any \ or $.
2355# By default was `s,x,x', remove it if useless.
2356ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2357program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2358
2359# expand $ac_aux_dir to an absolute path
2360am_aux_dir=`cd $ac_aux_dir && pwd`
2361
2362if test x"${MISSING+set}" != xset; then
2363  case $am_aux_dir in
2364  *\ * | *\	*)
2365    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2366  *)
2367    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2368  esac
2369fi
2370# Use eval to expand $SHELL
2371if eval "$MISSING --run true"; then
2372  am_missing_run="$MISSING --run "
2373else
2374  am_missing_run=
2375  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2376$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2377fi
2378
2379if test x"${install_sh}" != xset; then
2380  case $am_aux_dir in
2381  *\ * | *\	*)
2382    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2383  *)
2384    install_sh="\${SHELL} $am_aux_dir/install-sh"
2385  esac
2386fi
2387
2388# Installed binaries are usually stripped using `strip' when the user
2389# run `make install-strip'.  However `strip' might not be the right
2390# tool to use in cross-compilation environments, therefore Automake
2391# will honor the `STRIP' environment variable to overrule this program.
2392if test "$cross_compiling" != no; then
2393  if test -n "$ac_tool_prefix"; then
2394  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2395set dummy ${ac_tool_prefix}strip; ac_word=$2
2396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2397$as_echo_n "checking for $ac_word... " >&6; }
2398if ${ac_cv_prog_STRIP+:} false; then :
2399  $as_echo_n "(cached) " >&6
2400else
2401  if test -n "$STRIP"; then
2402  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2403else
2404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH
2406do
2407  IFS=$as_save_IFS
2408  test -z "$as_dir" && as_dir=.
2409    for ac_exec_ext in '' $ac_executable_extensions; do
2410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413    break 2
2414  fi
2415done
2416  done
2417IFS=$as_save_IFS
2418
2419fi
2420fi
2421STRIP=$ac_cv_prog_STRIP
2422if test -n "$STRIP"; then
2423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2424$as_echo "$STRIP" >&6; }
2425else
2426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427$as_echo "no" >&6; }
2428fi
2429
2430
2431fi
2432if test -z "$ac_cv_prog_STRIP"; then
2433  ac_ct_STRIP=$STRIP
2434  # Extract the first word of "strip", so it can be a program name with args.
2435set dummy strip; ac_word=$2
2436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2437$as_echo_n "checking for $ac_word... " >&6; }
2438if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2439  $as_echo_n "(cached) " >&6
2440else
2441  if test -n "$ac_ct_STRIP"; then
2442  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443else
2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447  IFS=$as_save_IFS
2448  test -z "$as_dir" && as_dir=.
2449    for ac_exec_ext in '' $ac_executable_extensions; do
2450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451    ac_cv_prog_ac_ct_STRIP="strip"
2452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2453    break 2
2454  fi
2455done
2456  done
2457IFS=$as_save_IFS
2458
2459fi
2460fi
2461ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2462if test -n "$ac_ct_STRIP"; then
2463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2464$as_echo "$ac_ct_STRIP" >&6; }
2465else
2466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2467$as_echo "no" >&6; }
2468fi
2469
2470  if test "x$ac_ct_STRIP" = x; then
2471    STRIP=":"
2472  else
2473    case $cross_compiling:$ac_tool_warned in
2474yes:)
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2477ac_tool_warned=yes ;;
2478esac
2479    STRIP=$ac_ct_STRIP
2480  fi
2481else
2482  STRIP="$ac_cv_prog_STRIP"
2483fi
2484
2485fi
2486INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2487
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2489$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2490if test -z "$MKDIR_P"; then
2491  if ${ac_cv_path_mkdir+:} false; then :
2492  $as_echo_n "(cached) " >&6
2493else
2494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2496do
2497  IFS=$as_save_IFS
2498  test -z "$as_dir" && as_dir=.
2499    for ac_prog in mkdir gmkdir; do
2500	 for ac_exec_ext in '' $ac_executable_extensions; do
2501	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2502	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2503	     'mkdir (GNU coreutils) '* | \
2504	     'mkdir (coreutils) '* | \
2505	     'mkdir (fileutils) '4.1*)
2506	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2507	       break 3;;
2508	   esac
2509	 done
2510       done
2511  done
2512IFS=$as_save_IFS
2513
2514fi
2515
2516  test -d ./--version && rmdir ./--version
2517  if test "${ac_cv_path_mkdir+set}" = set; then
2518    MKDIR_P="$ac_cv_path_mkdir -p"
2519  else
2520    # As a last resort, use the slow shell script.  Don't cache a
2521    # value for MKDIR_P within a source directory, because that will
2522    # break other packages using the cache if that directory is
2523    # removed, or if the value is a relative name.
2524    MKDIR_P="$ac_install_sh -d"
2525  fi
2526fi
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2528$as_echo "$MKDIR_P" >&6; }
2529
2530mkdir_p="$MKDIR_P"
2531case $mkdir_p in
2532  [\\/$]* | ?:[\\/]*) ;;
2533  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2534esac
2535
2536for ac_prog in gawk mawk nawk awk
2537do
2538  # Extract the first word of "$ac_prog", so it can be a program name with args.
2539set dummy $ac_prog; ac_word=$2
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541$as_echo_n "checking for $ac_word... " >&6; }
2542if ${ac_cv_prog_AWK+:} false; then :
2543  $as_echo_n "(cached) " >&6
2544else
2545  if test -n "$AWK"; then
2546  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2547else
2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549for as_dir in $PATH
2550do
2551  IFS=$as_save_IFS
2552  test -z "$as_dir" && as_dir=.
2553    for ac_exec_ext in '' $ac_executable_extensions; do
2554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555    ac_cv_prog_AWK="$ac_prog"
2556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557    break 2
2558  fi
2559done
2560  done
2561IFS=$as_save_IFS
2562
2563fi
2564fi
2565AWK=$ac_cv_prog_AWK
2566if test -n "$AWK"; then
2567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2568$as_echo "$AWK" >&6; }
2569else
2570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571$as_echo "no" >&6; }
2572fi
2573
2574
2575  test -n "$AWK" && break
2576done
2577
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2579$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2580set x ${MAKE-make}
2581ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2582if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2583  $as_echo_n "(cached) " >&6
2584else
2585  cat >conftest.make <<\_ACEOF
2586SHELL = /bin/sh
2587all:
2588	@echo '@@@%%%=$(MAKE)=@@@%%%'
2589_ACEOF
2590# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2591case `${MAKE-make} -f conftest.make 2>/dev/null` in
2592  *@@@%%%=?*=@@@%%%*)
2593    eval ac_cv_prog_make_${ac_make}_set=yes;;
2594  *)
2595    eval ac_cv_prog_make_${ac_make}_set=no;;
2596esac
2597rm -f conftest.make
2598fi
2599if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2601$as_echo "yes" >&6; }
2602  SET_MAKE=
2603else
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605$as_echo "no" >&6; }
2606  SET_MAKE="MAKE=${MAKE-make}"
2607fi
2608
2609rm -rf .tst 2>/dev/null
2610mkdir .tst 2>/dev/null
2611if test -d .tst; then
2612  am__leading_dot=.
2613else
2614  am__leading_dot=_
2615fi
2616rmdir .tst 2>/dev/null
2617
2618if test "`cd $srcdir && pwd`" != "`pwd`"; then
2619  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2620  # is not polluted with repeated "-I."
2621  am__isrc=' -I$(srcdir)'
2622  # test to see if srcdir already configured
2623  if test -f $srcdir/config.status; then
2624    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2625  fi
2626fi
2627
2628# test whether we have cygpath
2629if test -z "$CYGPATH_W"; then
2630  if (cygpath --version) >/dev/null 2>/dev/null; then
2631    CYGPATH_W='cygpath -w'
2632  else
2633    CYGPATH_W=echo
2634  fi
2635fi
2636
2637
2638# Define the identity of the package.
2639 PACKAGE='xclock'
2640 VERSION='1.0.6'
2641
2642
2643cat >>confdefs.h <<_ACEOF
2644#define PACKAGE "$PACKAGE"
2645_ACEOF
2646
2647
2648cat >>confdefs.h <<_ACEOF
2649#define VERSION "$VERSION"
2650_ACEOF
2651
2652# Some tools Automake needs.
2653
2654ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2655
2656
2657AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2658
2659
2660AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2661
2662
2663AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2664
2665
2666MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2667
2668# We need awk for the "check" target.  The system "awk" is bad on
2669# some platforms.
2670# Always define AMTAR for backward compatibility.
2671
2672AMTAR=${AMTAR-"${am_missing_run}tar"}
2673
2674am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2675
2676
2677
2678
2679
2680
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2682$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2683    # Check whether --enable-maintainer-mode was given.
2684if test "${enable_maintainer_mode+set}" = set; then :
2685  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2686else
2687  USE_MAINTAINER_MODE=no
2688fi
2689
2690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2691$as_echo "$USE_MAINTAINER_MODE" >&6; }
2692   if test $USE_MAINTAINER_MODE = yes; then
2693  MAINTAINER_MODE_TRUE=
2694  MAINTAINER_MODE_FALSE='#'
2695else
2696  MAINTAINER_MODE_TRUE='#'
2697  MAINTAINER_MODE_FALSE=
2698fi
2699
2700  MAINT=$MAINTAINER_MODE_TRUE
2701
2702
2703
2704# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716DEPDIR="${am__leading_dot}deps"
2717
2718ac_config_commands="$ac_config_commands depfiles"
2719
2720
2721am_make=${MAKE-make}
2722cat > confinc << 'END'
2723am__doit:
2724	@echo this is the am__doit target
2725.PHONY: am__doit
2726END
2727# If we don't find an include directive, just comment out the code.
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2729$as_echo_n "checking for style of include used by $am_make... " >&6; }
2730am__include="#"
2731am__quote=
2732_am_result=none
2733# First try GNU make style include.
2734echo "include confinc" > confmf
2735# Ignore all kinds of additional output from `make'.
2736case `$am_make -s -f confmf 2> /dev/null` in #(
2737*the\ am__doit\ target*)
2738  am__include=include
2739  am__quote=
2740  _am_result=GNU
2741  ;;
2742esac
2743# Now try BSD make style include.
2744if test "$am__include" = "#"; then
2745   echo '.include "confinc"' > confmf
2746   case `$am_make -s -f confmf 2> /dev/null` in #(
2747   *the\ am__doit\ target*)
2748     am__include=.include
2749     am__quote="\""
2750     _am_result=BSD
2751     ;;
2752   esac
2753fi
2754
2755
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2757$as_echo "$_am_result" >&6; }
2758rm -f confinc confmf
2759
2760# Check whether --enable-dependency-tracking was given.
2761if test "${enable_dependency_tracking+set}" = set; then :
2762  enableval=$enable_dependency_tracking;
2763fi
2764
2765if test "x$enable_dependency_tracking" != xno; then
2766  am_depcomp="$ac_aux_dir/depcomp"
2767  AMDEPBACKSLASH='\'
2768fi
2769 if test "x$enable_dependency_tracking" != xno; then
2770  AMDEP_TRUE=
2771  AMDEP_FALSE='#'
2772else
2773  AMDEP_TRUE='#'
2774  AMDEP_FALSE=
2775fi
2776
2777
2778ac_ext=c
2779ac_cpp='$CPP $CPPFLAGS'
2780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783if test -n "$ac_tool_prefix"; then
2784  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2785set dummy ${ac_tool_prefix}gcc; ac_word=$2
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; }
2788if ${ac_cv_prog_CC+:} false; then :
2789  $as_echo_n "(cached) " >&6
2790else
2791  if test -n "$CC"; then
2792  ac_cv_prog_CC="$CC" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797  IFS=$as_save_IFS
2798  test -z "$as_dir" && as_dir=.
2799    for ac_exec_ext in '' $ac_executable_extensions; do
2800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803    break 2
2804  fi
2805done
2806  done
2807IFS=$as_save_IFS
2808
2809fi
2810fi
2811CC=$ac_cv_prog_CC
2812if test -n "$CC"; then
2813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2814$as_echo "$CC" >&6; }
2815else
2816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817$as_echo "no" >&6; }
2818fi
2819
2820
2821fi
2822if test -z "$ac_cv_prog_CC"; then
2823  ac_ct_CC=$CC
2824  # Extract the first word of "gcc", so it can be a program name with args.
2825set dummy gcc; ac_word=$2
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827$as_echo_n "checking for $ac_word... " >&6; }
2828if ${ac_cv_prog_ac_ct_CC+:} false; then :
2829  $as_echo_n "(cached) " >&6
2830else
2831  if test -n "$ac_ct_CC"; then
2832  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837  IFS=$as_save_IFS
2838  test -z "$as_dir" && as_dir=.
2839    for ac_exec_ext in '' $ac_executable_extensions; do
2840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841    ac_cv_prog_ac_ct_CC="gcc"
2842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843    break 2
2844  fi
2845done
2846  done
2847IFS=$as_save_IFS
2848
2849fi
2850fi
2851ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852if test -n "$ac_ct_CC"; then
2853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854$as_echo "$ac_ct_CC" >&6; }
2855else
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
2858fi
2859
2860  if test "x$ac_ct_CC" = x; then
2861    CC=""
2862  else
2863    case $cross_compiling:$ac_tool_warned in
2864yes:)
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867ac_tool_warned=yes ;;
2868esac
2869    CC=$ac_ct_CC
2870  fi
2871else
2872  CC="$ac_cv_prog_CC"
2873fi
2874
2875if test -z "$CC"; then
2876          if test -n "$ac_tool_prefix"; then
2877    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2878set dummy ${ac_tool_prefix}cc; ac_word=$2
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880$as_echo_n "checking for $ac_word... " >&6; }
2881if ${ac_cv_prog_CC+:} false; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  if test -n "$CC"; then
2885  ac_cv_prog_CC="$CC" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892    for ac_exec_ext in '' $ac_executable_extensions; do
2893  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894    ac_cv_prog_CC="${ac_tool_prefix}cc"
2895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899  done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904CC=$ac_cv_prog_CC
2905if test -n "$CC"; then
2906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907$as_echo "$CC" >&6; }
2908else
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910$as_echo "no" >&6; }
2911fi
2912
2913
2914  fi
2915fi
2916if test -z "$CC"; then
2917  # Extract the first word of "cc", so it can be a program name with args.
2918set dummy cc; ac_word=$2
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920$as_echo_n "checking for $ac_word... " >&6; }
2921if ${ac_cv_prog_CC+:} false; then :
2922  $as_echo_n "(cached) " >&6
2923else
2924  if test -n "$CC"; then
2925  ac_cv_prog_CC="$CC" # Let the user override the test.
2926else
2927  ac_prog_rejected=no
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931  IFS=$as_save_IFS
2932  test -z "$as_dir" && as_dir=.
2933    for ac_exec_ext in '' $ac_executable_extensions; do
2934  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2936       ac_prog_rejected=yes
2937       continue
2938     fi
2939    ac_cv_prog_CC="cc"
2940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941    break 2
2942  fi
2943done
2944  done
2945IFS=$as_save_IFS
2946
2947if test $ac_prog_rejected = yes; then
2948  # We found a bogon in the path, so make sure we never use it.
2949  set dummy $ac_cv_prog_CC
2950  shift
2951  if test $# != 0; then
2952    # We chose a different compiler from the bogus one.
2953    # However, it has the same basename, so the bogon will be chosen
2954    # first if we set CC to just the basename; use the full file name.
2955    shift
2956    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2957  fi
2958fi
2959fi
2960fi
2961CC=$ac_cv_prog_CC
2962if test -n "$CC"; then
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964$as_echo "$CC" >&6; }
2965else
2966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967$as_echo "no" >&6; }
2968fi
2969
2970
2971fi
2972if test -z "$CC"; then
2973  if test -n "$ac_tool_prefix"; then
2974  for ac_prog in cl.exe
2975  do
2976    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2977set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979$as_echo_n "checking for $ac_word... " >&6; }
2980if ${ac_cv_prog_CC+:} false; then :
2981  $as_echo_n "(cached) " >&6
2982else
2983  if test -n "$CC"; then
2984  ac_cv_prog_CC="$CC" # Let the user override the test.
2985else
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989  IFS=$as_save_IFS
2990  test -z "$as_dir" && as_dir=.
2991    for ac_exec_ext in '' $ac_executable_extensions; do
2992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995    break 2
2996  fi
2997done
2998  done
2999IFS=$as_save_IFS
3000
3001fi
3002fi
3003CC=$ac_cv_prog_CC
3004if test -n "$CC"; then
3005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006$as_echo "$CC" >&6; }
3007else
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009$as_echo "no" >&6; }
3010fi
3011
3012
3013    test -n "$CC" && break
3014  done
3015fi
3016if test -z "$CC"; then
3017  ac_ct_CC=$CC
3018  for ac_prog in cl.exe
3019do
3020  # Extract the first word of "$ac_prog", so it can be a program name with args.
3021set dummy $ac_prog; ac_word=$2
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023$as_echo_n "checking for $ac_word... " >&6; }
3024if ${ac_cv_prog_ac_ct_CC+:} false; then :
3025  $as_echo_n "(cached) " >&6
3026else
3027  if test -n "$ac_ct_CC"; then
3028  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029else
3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031for as_dir in $PATH
3032do
3033  IFS=$as_save_IFS
3034  test -z "$as_dir" && as_dir=.
3035    for ac_exec_ext in '' $ac_executable_extensions; do
3036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037    ac_cv_prog_ac_ct_CC="$ac_prog"
3038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039    break 2
3040  fi
3041done
3042  done
3043IFS=$as_save_IFS
3044
3045fi
3046fi
3047ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048if test -n "$ac_ct_CC"; then
3049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3050$as_echo "$ac_ct_CC" >&6; }
3051else
3052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053$as_echo "no" >&6; }
3054fi
3055
3056
3057  test -n "$ac_ct_CC" && break
3058done
3059
3060  if test "x$ac_ct_CC" = x; then
3061    CC=""
3062  else
3063    case $cross_compiling:$ac_tool_warned in
3064yes:)
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067ac_tool_warned=yes ;;
3068esac
3069    CC=$ac_ct_CC
3070  fi
3071fi
3072
3073fi
3074
3075
3076test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078as_fn_error $? "no acceptable C compiler found in \$PATH
3079See \`config.log' for more details" "$LINENO" 5; }
3080
3081# Provide some information about the compiler.
3082$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3083set X $ac_compile
3084ac_compiler=$2
3085for ac_option in --version -v -V -qversion; do
3086  { { ac_try="$ac_compiler $ac_option >&5"
3087case "(($ac_try" in
3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089  *) ac_try_echo=$ac_try;;
3090esac
3091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092$as_echo "$ac_try_echo"; } >&5
3093  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3094  ac_status=$?
3095  if test -s conftest.err; then
3096    sed '10a\
3097... rest of stderr output deleted ...
3098         10q' conftest.err >conftest.er1
3099    cat conftest.er1 >&5
3100  fi
3101  rm -f conftest.er1 conftest.err
3102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103  test $ac_status = 0; }
3104done
3105
3106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107/* end confdefs.h.  */
3108
3109int
3110main ()
3111{
3112
3113  ;
3114  return 0;
3115}
3116_ACEOF
3117ac_clean_files_save=$ac_clean_files
3118ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3119# Try to create an executable without -o first, disregard a.out.
3120# It will help us diagnose broken compilers, and finding out an intuition
3121# of exeext.
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3123$as_echo_n "checking whether the C compiler works... " >&6; }
3124ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125
3126# The possible output files:
3127ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128
3129ac_rmfiles=
3130for ac_file in $ac_files
3131do
3132  case $ac_file in
3133    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3135  esac
3136done
3137rm -f $ac_rmfiles
3138
3139if { { ac_try="$ac_link_default"
3140case "(($ac_try" in
3141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142  *) ac_try_echo=$ac_try;;
3143esac
3144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145$as_echo "$ac_try_echo"; } >&5
3146  (eval "$ac_link_default") 2>&5
3147  ac_status=$?
3148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149  test $ac_status = 0; }; then :
3150  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3151# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3152# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3153# so that the user can short-circuit this test for compilers unknown to
3154# Autoconf.
3155for ac_file in $ac_files ''
3156do
3157  test -f "$ac_file" || continue
3158  case $ac_file in
3159    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3160	;;
3161    [ab].out )
3162	# We found the default executable, but exeext='' is most
3163	# certainly right.
3164	break;;
3165    *.* )
3166	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3167	then :; else
3168	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169	fi
3170	# We set ac_cv_exeext here because the later test for it is not
3171	# safe: cross compilers may not add the suffix if given an `-o'
3172	# argument, so we may need to know it at that point already.
3173	# Even if this section looks crufty: it has the advantage of
3174	# actually working.
3175	break;;
3176    * )
3177	break;;
3178  esac
3179done
3180test "$ac_cv_exeext" = no && ac_cv_exeext=
3181
3182else
3183  ac_file=''
3184fi
3185if test -z "$ac_file"; then :
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188$as_echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193as_fn_error 77 "C compiler cannot create executables
3194See \`config.log' for more details" "$LINENO" 5; }
3195else
3196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3197$as_echo "yes" >&6; }
3198fi
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3200$as_echo_n "checking for C compiler default output file name... " >&6; }
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3202$as_echo "$ac_file" >&6; }
3203ac_exeext=$ac_cv_exeext
3204
3205rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3206ac_clean_files=$ac_clean_files_save
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208$as_echo_n "checking for suffix of executables... " >&6; }
3209if { { ac_try="$ac_link"
3210case "(($ac_try" in
3211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212  *) ac_try_echo=$ac_try;;
3213esac
3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215$as_echo "$ac_try_echo"; } >&5
3216  (eval "$ac_link") 2>&5
3217  ac_status=$?
3218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219  test $ac_status = 0; }; then :
3220  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3222# work properly (i.e., refer to `conftest.exe'), while it won't with
3223# `rm'.
3224for ac_file in conftest.exe conftest conftest.*; do
3225  test -f "$ac_file" || continue
3226  case $ac_file in
3227    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229	  break;;
3230    * ) break;;
3231  esac
3232done
3233else
3234  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3237See \`config.log' for more details" "$LINENO" 5; }
3238fi
3239rm -f conftest conftest$ac_cv_exeext
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241$as_echo "$ac_cv_exeext" >&6; }
3242
3243rm -f conftest.$ac_ext
3244EXEEXT=$ac_cv_exeext
3245ac_exeext=$EXEEXT
3246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247/* end confdefs.h.  */
3248#include <stdio.h>
3249int
3250main ()
3251{
3252FILE *f = fopen ("conftest.out", "w");
3253 return ferror (f) || fclose (f) != 0;
3254
3255  ;
3256  return 0;
3257}
3258_ACEOF
3259ac_clean_files="$ac_clean_files conftest.out"
3260# Check that the compiler produces executables we can run.  If not, either
3261# the compiler is broken, or we cross compile.
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3263$as_echo_n "checking whether we are cross compiling... " >&6; }
3264if test "$cross_compiling" != yes; then
3265  { { ac_try="$ac_link"
3266case "(($ac_try" in
3267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268  *) ac_try_echo=$ac_try;;
3269esac
3270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271$as_echo "$ac_try_echo"; } >&5
3272  (eval "$ac_link") 2>&5
3273  ac_status=$?
3274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275  test $ac_status = 0; }
3276  if { ac_try='./conftest$ac_cv_exeext'
3277  { { case "(($ac_try" in
3278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279  *) ac_try_echo=$ac_try;;
3280esac
3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282$as_echo "$ac_try_echo"; } >&5
3283  (eval "$ac_try") 2>&5
3284  ac_status=$?
3285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286  test $ac_status = 0; }; }; then
3287    cross_compiling=no
3288  else
3289    if test "$cross_compiling" = maybe; then
3290	cross_compiling=yes
3291    else
3292	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294as_fn_error $? "cannot run C compiled programs.
3295If you meant to cross compile, use \`--host'.
3296See \`config.log' for more details" "$LINENO" 5; }
3297    fi
3298  fi
3299fi
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3301$as_echo "$cross_compiling" >&6; }
3302
3303rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3304ac_clean_files=$ac_clean_files_save
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3306$as_echo_n "checking for suffix of object files... " >&6; }
3307if ${ac_cv_objext+:} false; then :
3308  $as_echo_n "(cached) " >&6
3309else
3310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311/* end confdefs.h.  */
3312
3313int
3314main ()
3315{
3316
3317  ;
3318  return 0;
3319}
3320_ACEOF
3321rm -f conftest.o conftest.obj
3322if { { ac_try="$ac_compile"
3323case "(($ac_try" in
3324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325  *) ac_try_echo=$ac_try;;
3326esac
3327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328$as_echo "$ac_try_echo"; } >&5
3329  (eval "$ac_compile") 2>&5
3330  ac_status=$?
3331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332  test $ac_status = 0; }; then :
3333  for ac_file in conftest.o conftest.obj conftest.*; do
3334  test -f "$ac_file" || continue;
3335  case $ac_file in
3336    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3337    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3338       break;;
3339  esac
3340done
3341else
3342  $as_echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347as_fn_error $? "cannot compute suffix of object files: cannot compile
3348See \`config.log' for more details" "$LINENO" 5; }
3349fi
3350rm -f conftest.$ac_cv_objext conftest.$ac_ext
3351fi
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3353$as_echo "$ac_cv_objext" >&6; }
3354OBJEXT=$ac_cv_objext
3355ac_objext=$OBJEXT
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3357$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3358if ${ac_cv_c_compiler_gnu+:} false; then :
3359  $as_echo_n "(cached) " >&6
3360else
3361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362/* end confdefs.h.  */
3363
3364int
3365main ()
3366{
3367#ifndef __GNUC__
3368       choke me
3369#endif
3370
3371  ;
3372  return 0;
3373}
3374_ACEOF
3375if ac_fn_c_try_compile "$LINENO"; then :
3376  ac_compiler_gnu=yes
3377else
3378  ac_compiler_gnu=no
3379fi
3380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381ac_cv_c_compiler_gnu=$ac_compiler_gnu
3382
3383fi
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3385$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3386if test $ac_compiler_gnu = yes; then
3387  GCC=yes
3388else
3389  GCC=
3390fi
3391ac_test_CFLAGS=${CFLAGS+set}
3392ac_save_CFLAGS=$CFLAGS
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3394$as_echo_n "checking whether $CC accepts -g... " >&6; }
3395if ${ac_cv_prog_cc_g+:} false; then :
3396  $as_echo_n "(cached) " >&6
3397else
3398  ac_save_c_werror_flag=$ac_c_werror_flag
3399   ac_c_werror_flag=yes
3400   ac_cv_prog_cc_g=no
3401   CFLAGS="-g"
3402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403/* end confdefs.h.  */
3404
3405int
3406main ()
3407{
3408
3409  ;
3410  return 0;
3411}
3412_ACEOF
3413if ac_fn_c_try_compile "$LINENO"; then :
3414  ac_cv_prog_cc_g=yes
3415else
3416  CFLAGS=""
3417      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h.  */
3419
3420int
3421main ()
3422{
3423
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428if ac_fn_c_try_compile "$LINENO"; then :
3429
3430else
3431  ac_c_werror_flag=$ac_save_c_werror_flag
3432	 CFLAGS="-g"
3433	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434/* end confdefs.h.  */
3435
3436int
3437main ()
3438{
3439
3440  ;
3441  return 0;
3442}
3443_ACEOF
3444if ac_fn_c_try_compile "$LINENO"; then :
3445  ac_cv_prog_cc_g=yes
3446fi
3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448fi
3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450fi
3451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452   ac_c_werror_flag=$ac_save_c_werror_flag
3453fi
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3455$as_echo "$ac_cv_prog_cc_g" >&6; }
3456if test "$ac_test_CFLAGS" = set; then
3457  CFLAGS=$ac_save_CFLAGS
3458elif test $ac_cv_prog_cc_g = yes; then
3459  if test "$GCC" = yes; then
3460    CFLAGS="-g -O2"
3461  else
3462    CFLAGS="-g"
3463  fi
3464else
3465  if test "$GCC" = yes; then
3466    CFLAGS="-O2"
3467  else
3468    CFLAGS=
3469  fi
3470fi
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3472$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3473if ${ac_cv_prog_cc_c89+:} false; then :
3474  $as_echo_n "(cached) " >&6
3475else
3476  ac_cv_prog_cc_c89=no
3477ac_save_CC=$CC
3478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479/* end confdefs.h.  */
3480#include <stdarg.h>
3481#include <stdio.h>
3482#include <sys/types.h>
3483#include <sys/stat.h>
3484/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3485struct buf { int x; };
3486FILE * (*rcsopen) (struct buf *, struct stat *, int);
3487static char *e (p, i)
3488     char **p;
3489     int i;
3490{
3491  return p[i];
3492}
3493static char *f (char * (*g) (char **, int), char **p, ...)
3494{
3495  char *s;
3496  va_list v;
3497  va_start (v,p);
3498  s = g (p, va_arg (v,int));
3499  va_end (v);
3500  return s;
3501}
3502
3503/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3504   function prototypes and stuff, but not '\xHH' hex character constants.
3505   These don't provoke an error unfortunately, instead are silently treated
3506   as 'x'.  The following induces an error, until -std is added to get
3507   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3508   array size at least.  It's necessary to write '\x00'==0 to get something
3509   that's true only with -std.  */
3510int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3511
3512/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3513   inside strings and character constants.  */
3514#define FOO(x) 'x'
3515int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3516
3517int test (int i, double x);
3518struct s1 {int (*f) (int a);};
3519struct s2 {int (*f) (double a);};
3520int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3521int argc;
3522char **argv;
3523int
3524main ()
3525{
3526return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3527  ;
3528  return 0;
3529}
3530_ACEOF
3531for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3532	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3533do
3534  CC="$ac_save_CC $ac_arg"
3535  if ac_fn_c_try_compile "$LINENO"; then :
3536  ac_cv_prog_cc_c89=$ac_arg
3537fi
3538rm -f core conftest.err conftest.$ac_objext
3539  test "x$ac_cv_prog_cc_c89" != "xno" && break
3540done
3541rm -f conftest.$ac_ext
3542CC=$ac_save_CC
3543
3544fi
3545# AC_CACHE_VAL
3546case "x$ac_cv_prog_cc_c89" in
3547  x)
3548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3549$as_echo "none needed" >&6; } ;;
3550  xno)
3551    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3552$as_echo "unsupported" >&6; } ;;
3553  *)
3554    CC="$CC $ac_cv_prog_cc_c89"
3555    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3556$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3557esac
3558if test "x$ac_cv_prog_cc_c89" != xno; then :
3559
3560fi
3561
3562ac_ext=c
3563ac_cpp='$CPP $CPPFLAGS'
3564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567
3568depcc="$CC"   am_compiler_list=
3569
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3571$as_echo_n "checking dependency style of $depcc... " >&6; }
3572if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3573  $as_echo_n "(cached) " >&6
3574else
3575  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3576  # We make a subdir and do the tests there.  Otherwise we can end up
3577  # making bogus files that we don't know about and never remove.  For
3578  # instance it was reported that on HP-UX the gcc test will end up
3579  # making a dummy file named `D' -- because `-MD' means `put the output
3580  # in D'.
3581  mkdir conftest.dir
3582  # Copy depcomp to subdir because otherwise we won't find it if we're
3583  # using a relative directory.
3584  cp "$am_depcomp" conftest.dir
3585  cd conftest.dir
3586  # We will build objects and dependencies in a subdirectory because
3587  # it helps to detect inapplicable dependency modes.  For instance
3588  # both Tru64's cc and ICC support -MD to output dependencies as a
3589  # side effect of compilation, but ICC will put the dependencies in
3590  # the current directory while Tru64 will put them in the object
3591  # directory.
3592  mkdir sub
3593
3594  am_cv_CC_dependencies_compiler_type=none
3595  if test "$am_compiler_list" = ""; then
3596     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3597  fi
3598  am__universal=false
3599  case " $depcc " in #(
3600     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3601     esac
3602
3603  for depmode in $am_compiler_list; do
3604    # Setup a source with many dependencies, because some compilers
3605    # like to wrap large dependency lists on column 80 (with \), and
3606    # we should not choose a depcomp mode which is confused by this.
3607    #
3608    # We need to recreate these files for each test, as the compiler may
3609    # overwrite some of them when testing with obscure command lines.
3610    # This happens at least with the AIX C compiler.
3611    : > sub/conftest.c
3612    for i in 1 2 3 4 5 6; do
3613      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615      # Solaris 8's {/usr,}/bin/sh.
3616      touch sub/conftst$i.h
3617    done
3618    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3619
3620    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3621    # mode.  It turns out that the SunPro C++ compiler does not properly
3622    # handle `-M -o', and we need to detect this.  Also, some Intel
3623    # versions had trouble with output in subdirs
3624    am__obj=sub/conftest.${OBJEXT-o}
3625    am__minus_obj="-o $am__obj"
3626    case $depmode in
3627    gcc)
3628      # This depmode causes a compiler race in universal mode.
3629      test "$am__universal" = false || continue
3630      ;;
3631    nosideeffect)
3632      # after this tag, mechanisms are not by side-effect, so they'll
3633      # only be used when explicitly requested
3634      if test "x$enable_dependency_tracking" = xyes; then
3635	continue
3636      else
3637	break
3638      fi
3639      ;;
3640    msvisualcpp | msvcmsys)
3641      # This compiler won't grok `-c -o', but also, the minuso test has
3642      # not run yet.  These depmodes are late enough in the game, and
3643      # so weak that their functioning should not be impacted.
3644      am__obj=conftest.${OBJEXT-o}
3645      am__minus_obj=
3646      ;;
3647    none) break ;;
3648    esac
3649    if depmode=$depmode \
3650       source=sub/conftest.c object=$am__obj \
3651       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3652       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3653         >/dev/null 2>conftest.err &&
3654       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3655       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3656       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3657       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3658      # icc doesn't choke on unknown options, it will just issue warnings
3659      # or remarks (even with -Werror).  So we grep stderr for any message
3660      # that says an option was ignored or not supported.
3661      # When given -MP, icc 7.0 and 7.1 complain thusly:
3662      #   icc: Command line warning: ignoring option '-M'; no argument required
3663      # The diagnosis changed in icc 8.0:
3664      #   icc: Command line remark: option '-MP' not supported
3665      if (grep 'ignoring option' conftest.err ||
3666          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3667        am_cv_CC_dependencies_compiler_type=$depmode
3668        break
3669      fi
3670    fi
3671  done
3672
3673  cd ..
3674  rm -rf conftest.dir
3675else
3676  am_cv_CC_dependencies_compiler_type=none
3677fi
3678
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3681$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3682CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3683
3684 if
3685  test "x$enable_dependency_tracking" != xno \
3686  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3687  am__fastdepCC_TRUE=
3688  am__fastdepCC_FALSE='#'
3689else
3690  am__fastdepCC_TRUE='#'
3691  am__fastdepCC_FALSE=
3692fi
3693
3694
3695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3696$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3697if ${ac_cv_prog_cc_c99+:} false; then :
3698  $as_echo_n "(cached) " >&6
3699else
3700  ac_cv_prog_cc_c99=no
3701ac_save_CC=$CC
3702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704#include <stdarg.h>
3705#include <stdbool.h>
3706#include <stdlib.h>
3707#include <wchar.h>
3708#include <stdio.h>
3709
3710// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3711#define debug(...) fprintf (stderr, __VA_ARGS__)
3712#define showlist(...) puts (#__VA_ARGS__)
3713#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3714static void
3715test_varargs_macros (void)
3716{
3717  int x = 1234;
3718  int y = 5678;
3719  debug ("Flag");
3720  debug ("X = %d\n", x);
3721  showlist (The first, second, and third items.);
3722  report (x>y, "x is %d but y is %d", x, y);
3723}
3724
3725// Check long long types.
3726#define BIG64 18446744073709551615ull
3727#define BIG32 4294967295ul
3728#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3729#if !BIG_OK
3730  your preprocessor is broken;
3731#endif
3732#if BIG_OK
3733#else
3734  your preprocessor is broken;
3735#endif
3736static long long int bignum = -9223372036854775807LL;
3737static unsigned long long int ubignum = BIG64;
3738
3739struct incomplete_array
3740{
3741  int datasize;
3742  double data[];
3743};
3744
3745struct named_init {
3746  int number;
3747  const wchar_t *name;
3748  double average;
3749};
3750
3751typedef const char *ccp;
3752
3753static inline int
3754test_restrict (ccp restrict text)
3755{
3756  // See if C++-style comments work.
3757  // Iterate through items via the restricted pointer.
3758  // Also check for declarations in for loops.
3759  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3760    continue;
3761  return 0;
3762}
3763
3764// Check varargs and va_copy.
3765static void
3766test_varargs (const char *format, ...)
3767{
3768  va_list args;
3769  va_start (args, format);
3770  va_list args_copy;
3771  va_copy (args_copy, args);
3772
3773  const char *str;
3774  int number;
3775  float fnumber;
3776
3777  while (*format)
3778    {
3779      switch (*format++)
3780	{
3781	case 's': // string
3782	  str = va_arg (args_copy, const char *);
3783	  break;
3784	case 'd': // int
3785	  number = va_arg (args_copy, int);
3786	  break;
3787	case 'f': // float
3788	  fnumber = va_arg (args_copy, double);
3789	  break;
3790	default:
3791	  break;
3792	}
3793    }
3794  va_end (args_copy);
3795  va_end (args);
3796}
3797
3798int
3799main ()
3800{
3801
3802  // Check bool.
3803  _Bool success = false;
3804
3805  // Check restrict.
3806  if (test_restrict ("String literal") == 0)
3807    success = true;
3808  char *restrict newvar = "Another string";
3809
3810  // Check varargs.
3811  test_varargs ("s, d' f .", "string", 65, 34.234);
3812  test_varargs_macros ();
3813
3814  // Check flexible array members.
3815  struct incomplete_array *ia =
3816    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3817  ia->datasize = 10;
3818  for (int i = 0; i < ia->datasize; ++i)
3819    ia->data[i] = i * 1.234;
3820
3821  // Check named initializers.
3822  struct named_init ni = {
3823    .number = 34,
3824    .name = L"Test wide string",
3825    .average = 543.34343,
3826  };
3827
3828  ni.number = 58;
3829
3830  int dynamic_array[ni.number];
3831  dynamic_array[ni.number - 1] = 543;
3832
3833  // work around unused variable warnings
3834  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3835	  || dynamic_array[ni.number - 1] != 543);
3836
3837  ;
3838  return 0;
3839}
3840_ACEOF
3841for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3842do
3843  CC="$ac_save_CC $ac_arg"
3844  if ac_fn_c_try_compile "$LINENO"; then :
3845  ac_cv_prog_cc_c99=$ac_arg
3846fi
3847rm -f core conftest.err conftest.$ac_objext
3848  test "x$ac_cv_prog_cc_c99" != "xno" && break
3849done
3850rm -f conftest.$ac_ext
3851CC=$ac_save_CC
3852
3853fi
3854# AC_CACHE_VAL
3855case "x$ac_cv_prog_cc_c99" in
3856  x)
3857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3858$as_echo "none needed" >&6; } ;;
3859  xno)
3860    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3861$as_echo "unsupported" >&6; } ;;
3862  *)
3863    CC="$CC $ac_cv_prog_cc_c99"
3864    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3865$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3866esac
3867if test "x$ac_cv_prog_cc_c99" != xno; then :
3868
3869fi
3870
3871
3872
3873ac_ext=c
3874ac_cpp='$CPP $CPPFLAGS'
3875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3879$as_echo_n "checking how to run the C preprocessor... " >&6; }
3880# On Suns, sometimes $CPP names a directory.
3881if test -n "$CPP" && test -d "$CPP"; then
3882  CPP=
3883fi
3884if test -z "$CPP"; then
3885  if ${ac_cv_prog_CPP+:} false; then :
3886  $as_echo_n "(cached) " >&6
3887else
3888      # Double quotes because CPP needs to be expanded
3889    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3890    do
3891      ac_preproc_ok=false
3892for ac_c_preproc_warn_flag in '' yes
3893do
3894  # Use a header file that comes with gcc, so configuring glibc
3895  # with a fresh cross-compiler works.
3896  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897  # <limits.h> exists even on freestanding compilers.
3898  # On the NeXT, cc -E runs the code through the compiler's parser,
3899  # not just through cpp. "Syntax error" is here to catch this case.
3900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901/* end confdefs.h.  */
3902#ifdef __STDC__
3903# include <limits.h>
3904#else
3905# include <assert.h>
3906#endif
3907		     Syntax error
3908_ACEOF
3909if ac_fn_c_try_cpp "$LINENO"; then :
3910
3911else
3912  # Broken: fails on valid input.
3913continue
3914fi
3915rm -f conftest.err conftest.i conftest.$ac_ext
3916
3917  # OK, works on sane cases.  Now check whether nonexistent headers
3918  # can be detected and how.
3919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h.  */
3921#include <ac_nonexistent.h>
3922_ACEOF
3923if ac_fn_c_try_cpp "$LINENO"; then :
3924  # Broken: success on invalid input.
3925continue
3926else
3927  # Passes both tests.
3928ac_preproc_ok=:
3929break
3930fi
3931rm -f conftest.err conftest.i conftest.$ac_ext
3932
3933done
3934# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3935rm -f conftest.i conftest.err conftest.$ac_ext
3936if $ac_preproc_ok; then :
3937  break
3938fi
3939
3940    done
3941    ac_cv_prog_CPP=$CPP
3942
3943fi
3944  CPP=$ac_cv_prog_CPP
3945else
3946  ac_cv_prog_CPP=$CPP
3947fi
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3949$as_echo "$CPP" >&6; }
3950ac_preproc_ok=false
3951for ac_c_preproc_warn_flag in '' yes
3952do
3953  # Use a header file that comes with gcc, so configuring glibc
3954  # with a fresh cross-compiler works.
3955  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3956  # <limits.h> exists even on freestanding compilers.
3957  # On the NeXT, cc -E runs the code through the compiler's parser,
3958  # not just through cpp. "Syntax error" is here to catch this case.
3959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960/* end confdefs.h.  */
3961#ifdef __STDC__
3962# include <limits.h>
3963#else
3964# include <assert.h>
3965#endif
3966		     Syntax error
3967_ACEOF
3968if ac_fn_c_try_cpp "$LINENO"; then :
3969
3970else
3971  # Broken: fails on valid input.
3972continue
3973fi
3974rm -f conftest.err conftest.i conftest.$ac_ext
3975
3976  # OK, works on sane cases.  Now check whether nonexistent headers
3977  # can be detected and how.
3978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h.  */
3980#include <ac_nonexistent.h>
3981_ACEOF
3982if ac_fn_c_try_cpp "$LINENO"; then :
3983  # Broken: success on invalid input.
3984continue
3985else
3986  # Passes both tests.
3987ac_preproc_ok=:
3988break
3989fi
3990rm -f conftest.err conftest.i conftest.$ac_ext
3991
3992done
3993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3994rm -f conftest.i conftest.err conftest.$ac_ext
3995if $ac_preproc_ok; then :
3996
3997else
3998  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4001See \`config.log' for more details" "$LINENO" 5; }
4002fi
4003
4004ac_ext=c
4005ac_cpp='$CPP $CPPFLAGS'
4006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
4010
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4012$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4013if ${ac_cv_path_GREP+:} false; then :
4014  $as_echo_n "(cached) " >&6
4015else
4016  if test -z "$GREP"; then
4017  ac_path_GREP_found=false
4018  # Loop through the user's path and test for each of PROGNAME-LIST
4019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4021do
4022  IFS=$as_save_IFS
4023  test -z "$as_dir" && as_dir=.
4024    for ac_prog in grep ggrep; do
4025    for ac_exec_ext in '' $ac_executable_extensions; do
4026      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4027      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4028# Check for GNU ac_path_GREP and select it if it is found.
4029  # Check for GNU $ac_path_GREP
4030case `"$ac_path_GREP" --version 2>&1` in
4031*GNU*)
4032  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4033*)
4034  ac_count=0
4035  $as_echo_n 0123456789 >"conftest.in"
4036  while :
4037  do
4038    cat "conftest.in" "conftest.in" >"conftest.tmp"
4039    mv "conftest.tmp" "conftest.in"
4040    cp "conftest.in" "conftest.nl"
4041    $as_echo 'GREP' >> "conftest.nl"
4042    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4043    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4044    as_fn_arith $ac_count + 1 && ac_count=$as_val
4045    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4046      # Best one so far, save it but keep looking for a better one
4047      ac_cv_path_GREP="$ac_path_GREP"
4048      ac_path_GREP_max=$ac_count
4049    fi
4050    # 10*(2^10) chars as input seems more than enough
4051    test $ac_count -gt 10 && break
4052  done
4053  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4054esac
4055
4056      $ac_path_GREP_found && break 3
4057    done
4058  done
4059  done
4060IFS=$as_save_IFS
4061  if test -z "$ac_cv_path_GREP"; then
4062    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4063  fi
4064else
4065  ac_cv_path_GREP=$GREP
4066fi
4067
4068fi
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4070$as_echo "$ac_cv_path_GREP" >&6; }
4071 GREP="$ac_cv_path_GREP"
4072
4073
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4075$as_echo_n "checking for egrep... " >&6; }
4076if ${ac_cv_path_EGREP+:} false; then :
4077  $as_echo_n "(cached) " >&6
4078else
4079  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4080   then ac_cv_path_EGREP="$GREP -E"
4081   else
4082     if test -z "$EGREP"; then
4083  ac_path_EGREP_found=false
4084  # Loop through the user's path and test for each of PROGNAME-LIST
4085  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087do
4088  IFS=$as_save_IFS
4089  test -z "$as_dir" && as_dir=.
4090    for ac_prog in egrep; do
4091    for ac_exec_ext in '' $ac_executable_extensions; do
4092      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4093      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4094# Check for GNU ac_path_EGREP and select it if it is found.
4095  # Check for GNU $ac_path_EGREP
4096case `"$ac_path_EGREP" --version 2>&1` in
4097*GNU*)
4098  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4099*)
4100  ac_count=0
4101  $as_echo_n 0123456789 >"conftest.in"
4102  while :
4103  do
4104    cat "conftest.in" "conftest.in" >"conftest.tmp"
4105    mv "conftest.tmp" "conftest.in"
4106    cp "conftest.in" "conftest.nl"
4107    $as_echo 'EGREP' >> "conftest.nl"
4108    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110    as_fn_arith $ac_count + 1 && ac_count=$as_val
4111    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4112      # Best one so far, save it but keep looking for a better one
4113      ac_cv_path_EGREP="$ac_path_EGREP"
4114      ac_path_EGREP_max=$ac_count
4115    fi
4116    # 10*(2^10) chars as input seems more than enough
4117    test $ac_count -gt 10 && break
4118  done
4119  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120esac
4121
4122      $ac_path_EGREP_found && break 3
4123    done
4124  done
4125  done
4126IFS=$as_save_IFS
4127  if test -z "$ac_cv_path_EGREP"; then
4128    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4129  fi
4130else
4131  ac_cv_path_EGREP=$EGREP
4132fi
4133
4134   fi
4135fi
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4137$as_echo "$ac_cv_path_EGREP" >&6; }
4138 EGREP="$ac_cv_path_EGREP"
4139
4140
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4142$as_echo_n "checking for ANSI C header files... " >&6; }
4143if ${ac_cv_header_stdc+:} false; then :
4144  $as_echo_n "(cached) " >&6
4145else
4146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147/* end confdefs.h.  */
4148#include <stdlib.h>
4149#include <stdarg.h>
4150#include <string.h>
4151#include <float.h>
4152
4153int
4154main ()
4155{
4156
4157  ;
4158  return 0;
4159}
4160_ACEOF
4161if ac_fn_c_try_compile "$LINENO"; then :
4162  ac_cv_header_stdc=yes
4163else
4164  ac_cv_header_stdc=no
4165fi
4166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167
4168if test $ac_cv_header_stdc = yes; then
4169  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171/* end confdefs.h.  */
4172#include <string.h>
4173
4174_ACEOF
4175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176  $EGREP "memchr" >/dev/null 2>&1; then :
4177
4178else
4179  ac_cv_header_stdc=no
4180fi
4181rm -f conftest*
4182
4183fi
4184
4185if test $ac_cv_header_stdc = yes; then
4186  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h.  */
4189#include <stdlib.h>
4190
4191_ACEOF
4192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193  $EGREP "free" >/dev/null 2>&1; then :
4194
4195else
4196  ac_cv_header_stdc=no
4197fi
4198rm -f conftest*
4199
4200fi
4201
4202if test $ac_cv_header_stdc = yes; then
4203  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4204  if test "$cross_compiling" = yes; then :
4205  :
4206else
4207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h.  */
4209#include <ctype.h>
4210#include <stdlib.h>
4211#if ((' ' & 0x0FF) == 0x020)
4212# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4213# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4214#else
4215# define ISLOWER(c) \
4216		   (('a' <= (c) && (c) <= 'i') \
4217		     || ('j' <= (c) && (c) <= 'r') \
4218		     || ('s' <= (c) && (c) <= 'z'))
4219# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4220#endif
4221
4222#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4223int
4224main ()
4225{
4226  int i;
4227  for (i = 0; i < 256; i++)
4228    if (XOR (islower (i), ISLOWER (i))
4229	|| toupper (i) != TOUPPER (i))
4230      return 2;
4231  return 0;
4232}
4233_ACEOF
4234if ac_fn_c_try_run "$LINENO"; then :
4235
4236else
4237  ac_cv_header_stdc=no
4238fi
4239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4240  conftest.$ac_objext conftest.beam conftest.$ac_ext
4241fi
4242
4243fi
4244fi
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4246$as_echo "$ac_cv_header_stdc" >&6; }
4247if test $ac_cv_header_stdc = yes; then
4248
4249$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4250
4251fi
4252
4253# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255		  inttypes.h stdint.h unistd.h
4256do :
4257  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4259"
4260if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4261  cat >>confdefs.h <<_ACEOF
4262#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4263_ACEOF
4264
4265fi
4266
4267done
4268
4269
4270
4271
4272ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4273if test "x$ac_cv_have_decl___clang__" = xyes; then :
4274  CLANGCC="yes"
4275else
4276  CLANGCC="no"
4277fi
4278
4279ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4280if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4281  INTELCC="yes"
4282else
4283  INTELCC="no"
4284fi
4285
4286ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4287if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4288  SUNCC="yes"
4289else
4290  SUNCC="no"
4291fi
4292
4293
4294
4295
4296if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4297	if test -n "$ac_tool_prefix"; then
4298  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4299set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301$as_echo_n "checking for $ac_word... " >&6; }
4302if ${ac_cv_path_PKG_CONFIG+:} false; then :
4303  $as_echo_n "(cached) " >&6
4304else
4305  case $PKG_CONFIG in
4306  [\\/]* | ?:[\\/]*)
4307  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4308  ;;
4309  *)
4310  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313  IFS=$as_save_IFS
4314  test -z "$as_dir" && as_dir=.
4315    for ac_exec_ext in '' $ac_executable_extensions; do
4316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319    break 2
4320  fi
4321done
4322  done
4323IFS=$as_save_IFS
4324
4325  ;;
4326esac
4327fi
4328PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4329if test -n "$PKG_CONFIG"; then
4330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4331$as_echo "$PKG_CONFIG" >&6; }
4332else
4333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334$as_echo "no" >&6; }
4335fi
4336
4337
4338fi
4339if test -z "$ac_cv_path_PKG_CONFIG"; then
4340  ac_pt_PKG_CONFIG=$PKG_CONFIG
4341  # Extract the first word of "pkg-config", so it can be a program name with args.
4342set dummy pkg-config; ac_word=$2
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344$as_echo_n "checking for $ac_word... " >&6; }
4345if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4346  $as_echo_n "(cached) " >&6
4347else
4348  case $ac_pt_PKG_CONFIG in
4349  [\\/]* | ?:[\\/]*)
4350  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4351  ;;
4352  *)
4353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH
4355do
4356  IFS=$as_save_IFS
4357  test -z "$as_dir" && as_dir=.
4358    for ac_exec_ext in '' $ac_executable_extensions; do
4359  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362    break 2
4363  fi
4364done
4365  done
4366IFS=$as_save_IFS
4367
4368  ;;
4369esac
4370fi
4371ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4372if test -n "$ac_pt_PKG_CONFIG"; then
4373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4374$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4375else
4376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377$as_echo "no" >&6; }
4378fi
4379
4380  if test "x$ac_pt_PKG_CONFIG" = x; then
4381    PKG_CONFIG=""
4382  else
4383    case $cross_compiling:$ac_tool_warned in
4384yes:)
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4387ac_tool_warned=yes ;;
4388esac
4389    PKG_CONFIG=$ac_pt_PKG_CONFIG
4390  fi
4391else
4392  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4393fi
4394
4395fi
4396if test -n "$PKG_CONFIG"; then
4397	_pkg_min_version=0.9.0
4398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4399$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4400	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4401		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4402$as_echo "yes" >&6; }
4403	else
4404		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405$as_echo "no" >&6; }
4406		PKG_CONFIG=""
4407	fi
4408
4409fi
4410# Make sure we can run config.sub.
4411$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4412  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4413
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4415$as_echo_n "checking build system type... " >&6; }
4416if ${ac_cv_build+:} false; then :
4417  $as_echo_n "(cached) " >&6
4418else
4419  ac_build_alias=$build_alias
4420test "x$ac_build_alias" = x &&
4421  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4422test "x$ac_build_alias" = x &&
4423  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4424ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4425  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4426
4427fi
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4429$as_echo "$ac_cv_build" >&6; }
4430case $ac_cv_build in
4431*-*-*) ;;
4432*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4433esac
4434build=$ac_cv_build
4435ac_save_IFS=$IFS; IFS='-'
4436set x $ac_cv_build
4437shift
4438build_cpu=$1
4439build_vendor=$2
4440shift; shift
4441# Remember, the first character of IFS is used to create $*,
4442# except with old shells:
4443build_os=$*
4444IFS=$ac_save_IFS
4445case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4446
4447
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4449$as_echo_n "checking host system type... " >&6; }
4450if ${ac_cv_host+:} false; then :
4451  $as_echo_n "(cached) " >&6
4452else
4453  if test "x$host_alias" = x; then
4454  ac_cv_host=$ac_cv_build
4455else
4456  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4457    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4458fi
4459
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4462$as_echo "$ac_cv_host" >&6; }
4463case $ac_cv_host in
4464*-*-*) ;;
4465*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4466esac
4467host=$ac_cv_host
4468ac_save_IFS=$IFS; IFS='-'
4469set x $ac_cv_host
4470shift
4471host_cpu=$1
4472host_vendor=$2
4473shift; shift
4474# Remember, the first character of IFS is used to create $*,
4475# except with old shells:
4476host_os=$*
4477IFS=$ac_save_IFS
4478case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4479
4480
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4482$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4483if ${ac_cv_path_SED+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4487     for ac_i in 1 2 3 4 5 6 7; do
4488       ac_script="$ac_script$as_nl$ac_script"
4489     done
4490     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4491     { ac_script=; unset ac_script;}
4492     if test -z "$SED"; then
4493  ac_path_SED_found=false
4494  # Loop through the user's path and test for each of PROGNAME-LIST
4495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496for as_dir in $PATH
4497do
4498  IFS=$as_save_IFS
4499  test -z "$as_dir" && as_dir=.
4500    for ac_prog in sed gsed; do
4501    for ac_exec_ext in '' $ac_executable_extensions; do
4502      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4503      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4504# Check for GNU ac_path_SED and select it if it is found.
4505  # Check for GNU $ac_path_SED
4506case `"$ac_path_SED" --version 2>&1` in
4507*GNU*)
4508  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4509*)
4510  ac_count=0
4511  $as_echo_n 0123456789 >"conftest.in"
4512  while :
4513  do
4514    cat "conftest.in" "conftest.in" >"conftest.tmp"
4515    mv "conftest.tmp" "conftest.in"
4516    cp "conftest.in" "conftest.nl"
4517    $as_echo '' >> "conftest.nl"
4518    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4519    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4520    as_fn_arith $ac_count + 1 && ac_count=$as_val
4521    if test $ac_count -gt ${ac_path_SED_max-0}; then
4522      # Best one so far, save it but keep looking for a better one
4523      ac_cv_path_SED="$ac_path_SED"
4524      ac_path_SED_max=$ac_count
4525    fi
4526    # 10*(2^10) chars as input seems more than enough
4527    test $ac_count -gt 10 && break
4528  done
4529  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4530esac
4531
4532      $ac_path_SED_found && break 3
4533    done
4534  done
4535  done
4536IFS=$as_save_IFS
4537  if test -z "$ac_cv_path_SED"; then
4538    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4539  fi
4540else
4541  ac_cv_path_SED=$SED
4542fi
4543
4544fi
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4546$as_echo "$ac_cv_path_SED" >&6; }
4547 SED="$ac_cv_path_SED"
4548  rm -f conftest.sed
4549
4550
4551
4552
4553
4554
4555# Check whether --enable-selective-werror was given.
4556if test "${enable_selective_werror+set}" = set; then :
4557  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4558else
4559  SELECTIVE_WERROR=yes
4560fi
4561
4562
4563# -v is too short to test reliably with XORG_TESTSET_CFLAG
4564if test "x$SUNCC" = "xyes"; then
4565    BASE_CFLAGS="-v"
4566else
4567    BASE_CFLAGS=""
4568fi
4569
4570# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4571
4572
4573
4574
4575
4576xorg_testset_save_CFLAGS="$CFLAGS"
4577
4578if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4579	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4583  $as_echo_n "(cached) " >&6
4584else
4585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h.  */
4587int i;
4588_ACEOF
4589if ac_fn_c_try_compile "$LINENO"; then :
4590  xorg_cv_cc_flag_unknown_warning_option=yes
4591else
4592  xorg_cv_cc_flag_unknown_warning_option=no
4593fi
4594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595fi
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4598	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4599	CFLAGS="$xorg_testset_save_CFLAGS"
4600fi
4601
4602if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4603	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4604		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4605	fi
4606	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4610  $as_echo_n "(cached) " >&6
4611else
4612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h.  */
4614int i;
4615_ACEOF
4616if ac_fn_c_try_compile "$LINENO"; then :
4617  xorg_cv_cc_flag_unused_command_line_argument=yes
4618else
4619  xorg_cv_cc_flag_unused_command_line_argument=no
4620fi
4621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622fi
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4625	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4626	CFLAGS="$xorg_testset_save_CFLAGS"
4627fi
4628
4629found="no"
4630
4631	if test $found = "no" ; then
4632		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4634		fi
4635
4636		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4638		fi
4639
4640		CFLAGS="$CFLAGS -Wall"
4641
4642		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4643$as_echo_n "checking if $CC supports -Wall... " >&6; }
4644		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall`
4645		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4646  $as_echo_n "(cached) " >&6
4647else
4648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649/* end confdefs.h.  */
4650int i;
4651int
4652main ()
4653{
4654
4655  ;
4656  return 0;
4657}
4658_ACEOF
4659if ac_fn_c_try_link "$LINENO"; then :
4660  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4661else
4662  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4663fi
4664rm -f core conftest.err conftest.$ac_objext \
4665    conftest$ac_exeext conftest.$ac_ext
4666fi
4667
4668
4669		CFLAGS="$xorg_testset_save_CFLAGS"
4670
4671		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4672		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4673$as_echo "$supported" >&6; }
4674		if test "$supported" = "yes" ; then
4675			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4676			found="yes"
4677		fi
4678	fi
4679
4680
4681
4682
4683
4684
4685
4686xorg_testset_save_CFLAGS="$CFLAGS"
4687
4688if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4693  $as_echo_n "(cached) " >&6
4694else
4695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h.  */
4697int i;
4698_ACEOF
4699if ac_fn_c_try_compile "$LINENO"; then :
4700  xorg_cv_cc_flag_unknown_warning_option=yes
4701else
4702  xorg_cv_cc_flag_unknown_warning_option=no
4703fi
4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705fi
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4708	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4709	CFLAGS="$xorg_testset_save_CFLAGS"
4710fi
4711
4712if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4713	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4715	fi
4716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4720  $as_echo_n "(cached) " >&6
4721else
4722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h.  */
4724int i;
4725_ACEOF
4726if ac_fn_c_try_compile "$LINENO"; then :
4727  xorg_cv_cc_flag_unused_command_line_argument=yes
4728else
4729  xorg_cv_cc_flag_unused_command_line_argument=no
4730fi
4731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732fi
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4735	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4736	CFLAGS="$xorg_testset_save_CFLAGS"
4737fi
4738
4739found="no"
4740
4741	if test $found = "no" ; then
4742		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4744		fi
4745
4746		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4748		fi
4749
4750		CFLAGS="$CFLAGS -Wpointer-arith"
4751
4752		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4753$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4754		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith`
4755		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4756  $as_echo_n "(cached) " >&6
4757else
4758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759/* end confdefs.h.  */
4760int i;
4761int
4762main ()
4763{
4764
4765  ;
4766  return 0;
4767}
4768_ACEOF
4769if ac_fn_c_try_link "$LINENO"; then :
4770  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4771else
4772  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4773fi
4774rm -f core conftest.err conftest.$ac_objext \
4775    conftest$ac_exeext conftest.$ac_ext
4776fi
4777
4778
4779		CFLAGS="$xorg_testset_save_CFLAGS"
4780
4781		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4782		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4783$as_echo "$supported" >&6; }
4784		if test "$supported" = "yes" ; then
4785			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4786			found="yes"
4787		fi
4788	fi
4789
4790
4791
4792
4793
4794
4795
4796xorg_testset_save_CFLAGS="$CFLAGS"
4797
4798if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h.  */
4807int i;
4808_ACEOF
4809if ac_fn_c_try_compile "$LINENO"; then :
4810  xorg_cv_cc_flag_unknown_warning_option=yes
4811else
4812  xorg_cv_cc_flag_unknown_warning_option=no
4813fi
4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815fi
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4818	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4819	CFLAGS="$xorg_testset_save_CFLAGS"
4820fi
4821
4822if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4823	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4825	fi
4826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4830  $as_echo_n "(cached) " >&6
4831else
4832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834int i;
4835_ACEOF
4836if ac_fn_c_try_compile "$LINENO"; then :
4837  xorg_cv_cc_flag_unused_command_line_argument=yes
4838else
4839  xorg_cv_cc_flag_unused_command_line_argument=no
4840fi
4841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842fi
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4845	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4846	CFLAGS="$xorg_testset_save_CFLAGS"
4847fi
4848
4849found="no"
4850
4851	if test $found = "no" ; then
4852		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4854		fi
4855
4856		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858		fi
4859
4860		CFLAGS="$CFLAGS -Wstrict-prototypes"
4861
4862		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4863$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4864		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes`
4865		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869/* end confdefs.h.  */
4870int i;
4871int
4872main ()
4873{
4874
4875  ;
4876  return 0;
4877}
4878_ACEOF
4879if ac_fn_c_try_link "$LINENO"; then :
4880  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4881else
4882  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4883fi
4884rm -f core conftest.err conftest.$ac_objext \
4885    conftest$ac_exeext conftest.$ac_ext
4886fi
4887
4888
4889		CFLAGS="$xorg_testset_save_CFLAGS"
4890
4891		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4893$as_echo "$supported" >&6; }
4894		if test "$supported" = "yes" ; then
4895			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4896			found="yes"
4897		fi
4898	fi
4899
4900
4901
4902
4903
4904
4905
4906xorg_testset_save_CFLAGS="$CFLAGS"
4907
4908if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4913  $as_echo_n "(cached) " >&6
4914else
4915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916/* end confdefs.h.  */
4917int i;
4918_ACEOF
4919if ac_fn_c_try_compile "$LINENO"; then :
4920  xorg_cv_cc_flag_unknown_warning_option=yes
4921else
4922  xorg_cv_cc_flag_unknown_warning_option=no
4923fi
4924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925fi
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4928	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4929	CFLAGS="$xorg_testset_save_CFLAGS"
4930fi
4931
4932if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4933	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4935	fi
4936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4940  $as_echo_n "(cached) " >&6
4941else
4942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h.  */
4944int i;
4945_ACEOF
4946if ac_fn_c_try_compile "$LINENO"; then :
4947  xorg_cv_cc_flag_unused_command_line_argument=yes
4948else
4949  xorg_cv_cc_flag_unused_command_line_argument=no
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952fi
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4955	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4956	CFLAGS="$xorg_testset_save_CFLAGS"
4957fi
4958
4959found="no"
4960
4961	if test $found = "no" ; then
4962		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4964		fi
4965
4966		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4968		fi
4969
4970		CFLAGS="$CFLAGS -Wmissing-prototypes"
4971
4972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4973$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4974		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes`
4975		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979/* end confdefs.h.  */
4980int i;
4981int
4982main ()
4983{
4984
4985  ;
4986  return 0;
4987}
4988_ACEOF
4989if ac_fn_c_try_link "$LINENO"; then :
4990  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4991else
4992  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4993fi
4994rm -f core conftest.err conftest.$ac_objext \
4995    conftest$ac_exeext conftest.$ac_ext
4996fi
4997
4998
4999		CFLAGS="$xorg_testset_save_CFLAGS"
5000
5001		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5003$as_echo "$supported" >&6; }
5004		if test "$supported" = "yes" ; then
5005			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5006			found="yes"
5007		fi
5008	fi
5009
5010
5011
5012
5013
5014
5015
5016xorg_testset_save_CFLAGS="$CFLAGS"
5017
5018if test "x$xorg_testset_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_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5039	CFLAGS="$xorg_testset_save_CFLAGS"
5040fi
5041
5042if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5043	if test "x$xorg_testset_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_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 -Wmissing-declarations"
5081
5082		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5083$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5084		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations`
5085		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 `$as_echo "$cacheid" | $as_tr_sh`=yes
5101else
5102  eval `$as_echo "$cacheid" | $as_tr_sh`=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=$`$as_echo "$cacheid" | $as_tr_sh`
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 -Wmissing-declarations"
5116			found="yes"
5117		fi
5118	fi
5119
5120
5121
5122
5123
5124
5125
5126xorg_testset_save_CFLAGS="$CFLAGS"
5127
5128if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5129	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136/* end confdefs.h.  */
5137int i;
5138_ACEOF
5139if ac_fn_c_try_compile "$LINENO"; then :
5140  xorg_cv_cc_flag_unknown_warning_option=yes
5141else
5142  xorg_cv_cc_flag_unknown_warning_option=no
5143fi
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145fi
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5148	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5149	CFLAGS="$xorg_testset_save_CFLAGS"
5150fi
5151
5152if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5153	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155	fi
5156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5160  $as_echo_n "(cached) " >&6
5161else
5162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163/* end confdefs.h.  */
5164int i;
5165_ACEOF
5166if ac_fn_c_try_compile "$LINENO"; then :
5167  xorg_cv_cc_flag_unused_command_line_argument=yes
5168else
5169  xorg_cv_cc_flag_unused_command_line_argument=no
5170fi
5171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172fi
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5175	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5176	CFLAGS="$xorg_testset_save_CFLAGS"
5177fi
5178
5179found="no"
5180
5181	if test $found = "no" ; then
5182		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184		fi
5185
5186		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5188		fi
5189
5190		CFLAGS="$CFLAGS -Wnested-externs"
5191
5192		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5193$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5194		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs`
5195		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5196  $as_echo_n "(cached) " >&6
5197else
5198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h.  */
5200int i;
5201int
5202main ()
5203{
5204
5205  ;
5206  return 0;
5207}
5208_ACEOF
5209if ac_fn_c_try_link "$LINENO"; then :
5210  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5211else
5212  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5213fi
5214rm -f core conftest.err conftest.$ac_objext \
5215    conftest$ac_exeext conftest.$ac_ext
5216fi
5217
5218
5219		CFLAGS="$xorg_testset_save_CFLAGS"
5220
5221		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5223$as_echo "$supported" >&6; }
5224		if test "$supported" = "yes" ; then
5225			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5226			found="yes"
5227		fi
5228	fi
5229
5230
5231
5232
5233
5234
5235
5236xorg_testset_save_CFLAGS="$CFLAGS"
5237
5238if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5243  $as_echo_n "(cached) " >&6
5244else
5245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246/* end confdefs.h.  */
5247int i;
5248_ACEOF
5249if ac_fn_c_try_compile "$LINENO"; then :
5250  xorg_cv_cc_flag_unknown_warning_option=yes
5251else
5252  xorg_cv_cc_flag_unknown_warning_option=no
5253fi
5254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255fi
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5258	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5259	CFLAGS="$xorg_testset_save_CFLAGS"
5260fi
5261
5262if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5263	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5264		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5265	fi
5266	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5270  $as_echo_n "(cached) " >&6
5271else
5272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273/* end confdefs.h.  */
5274int i;
5275_ACEOF
5276if ac_fn_c_try_compile "$LINENO"; then :
5277  xorg_cv_cc_flag_unused_command_line_argument=yes
5278else
5279  xorg_cv_cc_flag_unused_command_line_argument=no
5280fi
5281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282fi
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5285	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5286	CFLAGS="$xorg_testset_save_CFLAGS"
5287fi
5288
5289found="no"
5290
5291	if test $found = "no" ; then
5292		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5293			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5294		fi
5295
5296		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5297			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5298		fi
5299
5300		CFLAGS="$CFLAGS -Wbad-function-cast"
5301
5302		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5303$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5304		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast`
5305		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5306  $as_echo_n "(cached) " >&6
5307else
5308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309/* end confdefs.h.  */
5310int i;
5311int
5312main ()
5313{
5314
5315  ;
5316  return 0;
5317}
5318_ACEOF
5319if ac_fn_c_try_link "$LINENO"; then :
5320  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5321else
5322  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5323fi
5324rm -f core conftest.err conftest.$ac_objext \
5325    conftest$ac_exeext conftest.$ac_ext
5326fi
5327
5328
5329		CFLAGS="$xorg_testset_save_CFLAGS"
5330
5331		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5332		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5333$as_echo "$supported" >&6; }
5334		if test "$supported" = "yes" ; then
5335			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5336			found="yes"
5337		fi
5338	fi
5339
5340
5341
5342
5343
5344
5345
5346xorg_testset_save_CFLAGS="$CFLAGS"
5347
5348if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5349	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5351$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5352if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5353  $as_echo_n "(cached) " >&6
5354else
5355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356/* end confdefs.h.  */
5357int i;
5358_ACEOF
5359if ac_fn_c_try_compile "$LINENO"; then :
5360  xorg_cv_cc_flag_unknown_warning_option=yes
5361else
5362  xorg_cv_cc_flag_unknown_warning_option=no
5363fi
5364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5367$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5368	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5369	CFLAGS="$xorg_testset_save_CFLAGS"
5370fi
5371
5372if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5373	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5374		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5375	fi
5376	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5377	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5378$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5379if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5380  $as_echo_n "(cached) " >&6
5381else
5382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h.  */
5384int i;
5385_ACEOF
5386if ac_fn_c_try_compile "$LINENO"; then :
5387  xorg_cv_cc_flag_unused_command_line_argument=yes
5388else
5389  xorg_cv_cc_flag_unused_command_line_argument=no
5390fi
5391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392fi
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5394$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5395	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5396	CFLAGS="$xorg_testset_save_CFLAGS"
5397fi
5398
5399found="no"
5400
5401	if test $found = "no" ; then
5402		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5403			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404		fi
5405
5406		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5407			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5408		fi
5409
5410		CFLAGS="$CFLAGS -Wformat=2"
5411
5412		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5413$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5414		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2`
5415		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5416  $as_echo_n "(cached) " >&6
5417else
5418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419/* end confdefs.h.  */
5420int i;
5421int
5422main ()
5423{
5424
5425  ;
5426  return 0;
5427}
5428_ACEOF
5429if ac_fn_c_try_link "$LINENO"; then :
5430  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5431else
5432  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5433fi
5434rm -f core conftest.err conftest.$ac_objext \
5435    conftest$ac_exeext conftest.$ac_ext
5436fi
5437
5438
5439		CFLAGS="$xorg_testset_save_CFLAGS"
5440
5441		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5442		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5443$as_echo "$supported" >&6; }
5444		if test "$supported" = "yes" ; then
5445			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5446			found="yes"
5447		fi
5448	fi
5449
5450	if test $found = "no" ; then
5451		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5452			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5453		fi
5454
5455		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5456			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457		fi
5458
5459		CFLAGS="$CFLAGS -Wformat"
5460
5461		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5462$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5463		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat`
5464		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5465  $as_echo_n "(cached) " >&6
5466else
5467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h.  */
5469int i;
5470int
5471main ()
5472{
5473
5474  ;
5475  return 0;
5476}
5477_ACEOF
5478if ac_fn_c_try_link "$LINENO"; then :
5479  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5480else
5481  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5482fi
5483rm -f core conftest.err conftest.$ac_objext \
5484    conftest$ac_exeext conftest.$ac_ext
5485fi
5486
5487
5488		CFLAGS="$xorg_testset_save_CFLAGS"
5489
5490		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5491		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5492$as_echo "$supported" >&6; }
5493		if test "$supported" = "yes" ; then
5494			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5495			found="yes"
5496		fi
5497	fi
5498
5499
5500
5501
5502
5503
5504
5505xorg_testset_save_CFLAGS="$CFLAGS"
5506
5507if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5512  $as_echo_n "(cached) " >&6
5513else
5514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h.  */
5516int i;
5517_ACEOF
5518if ac_fn_c_try_compile "$LINENO"; then :
5519  xorg_cv_cc_flag_unknown_warning_option=yes
5520else
5521  xorg_cv_cc_flag_unknown_warning_option=no
5522fi
5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524fi
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5527	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5528	CFLAGS="$xorg_testset_save_CFLAGS"
5529fi
5530
5531if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5532	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5533		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5534	fi
5535	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5539  $as_echo_n "(cached) " >&6
5540else
5541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542/* end confdefs.h.  */
5543int i;
5544_ACEOF
5545if ac_fn_c_try_compile "$LINENO"; then :
5546  xorg_cv_cc_flag_unused_command_line_argument=yes
5547else
5548  xorg_cv_cc_flag_unused_command_line_argument=no
5549fi
5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551fi
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5554	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5555	CFLAGS="$xorg_testset_save_CFLAGS"
5556fi
5557
5558found="no"
5559
5560	if test $found = "no" ; then
5561		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563		fi
5564
5565		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567		fi
5568
5569		CFLAGS="$CFLAGS -Wold-style-definition"
5570
5571		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5572$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5573		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition`
5574		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5575  $as_echo_n "(cached) " >&6
5576else
5577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h.  */
5579int i;
5580int
5581main ()
5582{
5583
5584  ;
5585  return 0;
5586}
5587_ACEOF
5588if ac_fn_c_try_link "$LINENO"; then :
5589  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5590else
5591  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5592fi
5593rm -f core conftest.err conftest.$ac_objext \
5594    conftest$ac_exeext conftest.$ac_ext
5595fi
5596
5597
5598		CFLAGS="$xorg_testset_save_CFLAGS"
5599
5600		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5602$as_echo "$supported" >&6; }
5603		if test "$supported" = "yes" ; then
5604			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5605			found="yes"
5606		fi
5607	fi
5608
5609
5610
5611
5612
5613
5614
5615xorg_testset_save_CFLAGS="$CFLAGS"
5616
5617if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626int i;
5627_ACEOF
5628if ac_fn_c_try_compile "$LINENO"; then :
5629  xorg_cv_cc_flag_unknown_warning_option=yes
5630else
5631  xorg_cv_cc_flag_unknown_warning_option=no
5632fi
5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634fi
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5637	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5638	CFLAGS="$xorg_testset_save_CFLAGS"
5639fi
5640
5641if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5642	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644	fi
5645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h.  */
5653int i;
5654_ACEOF
5655if ac_fn_c_try_compile "$LINENO"; then :
5656  xorg_cv_cc_flag_unused_command_line_argument=yes
5657else
5658  xorg_cv_cc_flag_unused_command_line_argument=no
5659fi
5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661fi
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5664	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5665	CFLAGS="$xorg_testset_save_CFLAGS"
5666fi
5667
5668found="no"
5669
5670	if test $found = "no" ; then
5671		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673		fi
5674
5675		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5677		fi
5678
5679		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5680
5681		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5682$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5683		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement`
5684		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h.  */
5689int i;
5690int
5691main ()
5692{
5693
5694  ;
5695  return 0;
5696}
5697_ACEOF
5698if ac_fn_c_try_link "$LINENO"; then :
5699  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5700else
5701  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5702fi
5703rm -f core conftest.err conftest.$ac_objext \
5704    conftest$ac_exeext conftest.$ac_ext
5705fi
5706
5707
5708		CFLAGS="$xorg_testset_save_CFLAGS"
5709
5710		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5711		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5712$as_echo "$supported" >&6; }
5713		if test "$supported" = "yes" ; then
5714			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5715			found="yes"
5716		fi
5717	fi
5718
5719
5720
5721# This chunk adds additional warnings that could catch undesired effects.
5722
5723
5724
5725
5726
5727xorg_testset_save_CFLAGS="$CFLAGS"
5728
5729if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5730	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5732$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5733if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5734  $as_echo_n "(cached) " >&6
5735else
5736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737/* end confdefs.h.  */
5738int i;
5739_ACEOF
5740if ac_fn_c_try_compile "$LINENO"; then :
5741  xorg_cv_cc_flag_unknown_warning_option=yes
5742else
5743  xorg_cv_cc_flag_unknown_warning_option=no
5744fi
5745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746fi
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5748$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5749	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5750	CFLAGS="$xorg_testset_save_CFLAGS"
5751fi
5752
5753if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5754	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5755		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756	fi
5757	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5759$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5760if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5761  $as_echo_n "(cached) " >&6
5762else
5763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764/* end confdefs.h.  */
5765int i;
5766_ACEOF
5767if ac_fn_c_try_compile "$LINENO"; then :
5768  xorg_cv_cc_flag_unused_command_line_argument=yes
5769else
5770  xorg_cv_cc_flag_unused_command_line_argument=no
5771fi
5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773fi
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5775$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5776	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5777	CFLAGS="$xorg_testset_save_CFLAGS"
5778fi
5779
5780found="no"
5781
5782	if test $found = "no" ; then
5783		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785		fi
5786
5787		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5789		fi
5790
5791		CFLAGS="$CFLAGS -Wunused"
5792
5793		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5794$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5795		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused`
5796		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5797  $as_echo_n "(cached) " >&6
5798else
5799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h.  */
5801int i;
5802int
5803main ()
5804{
5805
5806  ;
5807  return 0;
5808}
5809_ACEOF
5810if ac_fn_c_try_link "$LINENO"; then :
5811  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5812else
5813  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5814fi
5815rm -f core conftest.err conftest.$ac_objext \
5816    conftest$ac_exeext conftest.$ac_ext
5817fi
5818
5819
5820		CFLAGS="$xorg_testset_save_CFLAGS"
5821
5822		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5823		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5824$as_echo "$supported" >&6; }
5825		if test "$supported" = "yes" ; then
5826			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5827			found="yes"
5828		fi
5829	fi
5830
5831
5832
5833
5834
5835
5836
5837xorg_testset_save_CFLAGS="$CFLAGS"
5838
5839if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5844  $as_echo_n "(cached) " >&6
5845else
5846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847/* end confdefs.h.  */
5848int i;
5849_ACEOF
5850if ac_fn_c_try_compile "$LINENO"; then :
5851  xorg_cv_cc_flag_unknown_warning_option=yes
5852else
5853  xorg_cv_cc_flag_unknown_warning_option=no
5854fi
5855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856fi
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5859	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5860	CFLAGS="$xorg_testset_save_CFLAGS"
5861fi
5862
5863if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5864	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866	fi
5867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5871  $as_echo_n "(cached) " >&6
5872else
5873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h.  */
5875int i;
5876_ACEOF
5877if ac_fn_c_try_compile "$LINENO"; then :
5878  xorg_cv_cc_flag_unused_command_line_argument=yes
5879else
5880  xorg_cv_cc_flag_unused_command_line_argument=no
5881fi
5882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883fi
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5886	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5887	CFLAGS="$xorg_testset_save_CFLAGS"
5888fi
5889
5890found="no"
5891
5892	if test $found = "no" ; then
5893		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895		fi
5896
5897		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899		fi
5900
5901		CFLAGS="$CFLAGS -Wuninitialized"
5902
5903		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5904$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5905		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized`
5906		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5907  $as_echo_n "(cached) " >&6
5908else
5909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910/* end confdefs.h.  */
5911int i;
5912int
5913main ()
5914{
5915
5916  ;
5917  return 0;
5918}
5919_ACEOF
5920if ac_fn_c_try_link "$LINENO"; then :
5921  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5922else
5923  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5924fi
5925rm -f core conftest.err conftest.$ac_objext \
5926    conftest$ac_exeext conftest.$ac_ext
5927fi
5928
5929
5930		CFLAGS="$xorg_testset_save_CFLAGS"
5931
5932		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5933		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5934$as_echo "$supported" >&6; }
5935		if test "$supported" = "yes" ; then
5936			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5937			found="yes"
5938		fi
5939	fi
5940
5941
5942
5943
5944
5945
5946
5947xorg_testset_save_CFLAGS="$CFLAGS"
5948
5949if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5954  $as_echo_n "(cached) " >&6
5955else
5956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957/* end confdefs.h.  */
5958int i;
5959_ACEOF
5960if ac_fn_c_try_compile "$LINENO"; then :
5961  xorg_cv_cc_flag_unknown_warning_option=yes
5962else
5963  xorg_cv_cc_flag_unknown_warning_option=no
5964fi
5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5969	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5970	CFLAGS="$xorg_testset_save_CFLAGS"
5971fi
5972
5973if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5974	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976	fi
5977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5981  $as_echo_n "(cached) " >&6
5982else
5983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984/* end confdefs.h.  */
5985int i;
5986_ACEOF
5987if ac_fn_c_try_compile "$LINENO"; then :
5988  xorg_cv_cc_flag_unused_command_line_argument=yes
5989else
5990  xorg_cv_cc_flag_unused_command_line_argument=no
5991fi
5992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993fi
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5996	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5997	CFLAGS="$xorg_testset_save_CFLAGS"
5998fi
5999
6000found="no"
6001
6002	if test $found = "no" ; then
6003		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005		fi
6006
6007		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6009		fi
6010
6011		CFLAGS="$CFLAGS -Wshadow"
6012
6013		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6014$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6015		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow`
6016		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6017  $as_echo_n "(cached) " >&6
6018else
6019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020/* end confdefs.h.  */
6021int i;
6022int
6023main ()
6024{
6025
6026  ;
6027  return 0;
6028}
6029_ACEOF
6030if ac_fn_c_try_link "$LINENO"; then :
6031  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6032else
6033  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6034fi
6035rm -f core conftest.err conftest.$ac_objext \
6036    conftest$ac_exeext conftest.$ac_ext
6037fi
6038
6039
6040		CFLAGS="$xorg_testset_save_CFLAGS"
6041
6042		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6043		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6044$as_echo "$supported" >&6; }
6045		if test "$supported" = "yes" ; then
6046			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6047			found="yes"
6048		fi
6049	fi
6050
6051
6052
6053
6054
6055
6056
6057xorg_testset_save_CFLAGS="$CFLAGS"
6058
6059if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6060	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6063if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6064  $as_echo_n "(cached) " >&6
6065else
6066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067/* end confdefs.h.  */
6068int i;
6069_ACEOF
6070if ac_fn_c_try_compile "$LINENO"; then :
6071  xorg_cv_cc_flag_unknown_warning_option=yes
6072else
6073  xorg_cv_cc_flag_unknown_warning_option=no
6074fi
6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076fi
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6078$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6079	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6080	CFLAGS="$xorg_testset_save_CFLAGS"
6081fi
6082
6083if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6084	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086	fi
6087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6090if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6091  $as_echo_n "(cached) " >&6
6092else
6093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094/* end confdefs.h.  */
6095int i;
6096_ACEOF
6097if ac_fn_c_try_compile "$LINENO"; then :
6098  xorg_cv_cc_flag_unused_command_line_argument=yes
6099else
6100  xorg_cv_cc_flag_unused_command_line_argument=no
6101fi
6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103fi
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6105$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6106	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6107	CFLAGS="$xorg_testset_save_CFLAGS"
6108fi
6109
6110found="no"
6111
6112	if test $found = "no" ; then
6113		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6114			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6115		fi
6116
6117		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6118			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119		fi
6120
6121		CFLAGS="$CFLAGS -Wcast-qual"
6122
6123		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6124$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6125		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual`
6126		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6127  $as_echo_n "(cached) " >&6
6128else
6129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130/* end confdefs.h.  */
6131int i;
6132int
6133main ()
6134{
6135
6136  ;
6137  return 0;
6138}
6139_ACEOF
6140if ac_fn_c_try_link "$LINENO"; then :
6141  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6142else
6143  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6144fi
6145rm -f core conftest.err conftest.$ac_objext \
6146    conftest$ac_exeext conftest.$ac_ext
6147fi
6148
6149
6150		CFLAGS="$xorg_testset_save_CFLAGS"
6151
6152		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6153		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6154$as_echo "$supported" >&6; }
6155		if test "$supported" = "yes" ; then
6156			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6157			found="yes"
6158		fi
6159	fi
6160
6161
6162
6163
6164
6165
6166
6167xorg_testset_save_CFLAGS="$CFLAGS"
6168
6169if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6170	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6174  $as_echo_n "(cached) " >&6
6175else
6176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177/* end confdefs.h.  */
6178int i;
6179_ACEOF
6180if ac_fn_c_try_compile "$LINENO"; then :
6181  xorg_cv_cc_flag_unknown_warning_option=yes
6182else
6183  xorg_cv_cc_flag_unknown_warning_option=no
6184fi
6185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186fi
6187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6189	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6190	CFLAGS="$xorg_testset_save_CFLAGS"
6191fi
6192
6193if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6194	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6196	fi
6197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6201  $as_echo_n "(cached) " >&6
6202else
6203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204/* end confdefs.h.  */
6205int i;
6206_ACEOF
6207if ac_fn_c_try_compile "$LINENO"; then :
6208  xorg_cv_cc_flag_unused_command_line_argument=yes
6209else
6210  xorg_cv_cc_flag_unused_command_line_argument=no
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213fi
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6216	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6217	CFLAGS="$xorg_testset_save_CFLAGS"
6218fi
6219
6220found="no"
6221
6222	if test $found = "no" ; then
6223		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225		fi
6226
6227		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229		fi
6230
6231		CFLAGS="$CFLAGS -Wmissing-noreturn"
6232
6233		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6234$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6235		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn`
6236		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6237  $as_echo_n "(cached) " >&6
6238else
6239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240/* end confdefs.h.  */
6241int i;
6242int
6243main ()
6244{
6245
6246  ;
6247  return 0;
6248}
6249_ACEOF
6250if ac_fn_c_try_link "$LINENO"; then :
6251  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6252else
6253  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6254fi
6255rm -f core conftest.err conftest.$ac_objext \
6256    conftest$ac_exeext conftest.$ac_ext
6257fi
6258
6259
6260		CFLAGS="$xorg_testset_save_CFLAGS"
6261
6262		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6263		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6264$as_echo "$supported" >&6; }
6265		if test "$supported" = "yes" ; then
6266			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6267			found="yes"
6268		fi
6269	fi
6270
6271
6272
6273
6274
6275
6276
6277xorg_testset_save_CFLAGS="$CFLAGS"
6278
6279if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6280	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6284  $as_echo_n "(cached) " >&6
6285else
6286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287/* end confdefs.h.  */
6288int i;
6289_ACEOF
6290if ac_fn_c_try_compile "$LINENO"; then :
6291  xorg_cv_cc_flag_unknown_warning_option=yes
6292else
6293  xorg_cv_cc_flag_unknown_warning_option=no
6294fi
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296fi
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6299	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6300	CFLAGS="$xorg_testset_save_CFLAGS"
6301fi
6302
6303if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6304	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6305		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6306	fi
6307	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314/* end confdefs.h.  */
6315int i;
6316_ACEOF
6317if ac_fn_c_try_compile "$LINENO"; then :
6318  xorg_cv_cc_flag_unused_command_line_argument=yes
6319else
6320  xorg_cv_cc_flag_unused_command_line_argument=no
6321fi
6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323fi
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6326	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6327	CFLAGS="$xorg_testset_save_CFLAGS"
6328fi
6329
6330found="no"
6331
6332	if test $found = "no" ; then
6333		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335		fi
6336
6337		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6339		fi
6340
6341		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6342
6343		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6344$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6345		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute`
6346		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6347  $as_echo_n "(cached) " >&6
6348else
6349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h.  */
6351int i;
6352int
6353main ()
6354{
6355
6356  ;
6357  return 0;
6358}
6359_ACEOF
6360if ac_fn_c_try_link "$LINENO"; then :
6361  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6362else
6363  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6364fi
6365rm -f core conftest.err conftest.$ac_objext \
6366    conftest$ac_exeext conftest.$ac_ext
6367fi
6368
6369
6370		CFLAGS="$xorg_testset_save_CFLAGS"
6371
6372		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6374$as_echo "$supported" >&6; }
6375		if test "$supported" = "yes" ; then
6376			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6377			found="yes"
6378		fi
6379	fi
6380
6381
6382
6383
6384
6385
6386
6387xorg_testset_save_CFLAGS="$CFLAGS"
6388
6389if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397/* end confdefs.h.  */
6398int i;
6399_ACEOF
6400if ac_fn_c_try_compile "$LINENO"; then :
6401  xorg_cv_cc_flag_unknown_warning_option=yes
6402else
6403  xorg_cv_cc_flag_unknown_warning_option=no
6404fi
6405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406fi
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6409	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6410	CFLAGS="$xorg_testset_save_CFLAGS"
6411fi
6412
6413if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6414	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6416	fi
6417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6421  $as_echo_n "(cached) " >&6
6422else
6423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424/* end confdefs.h.  */
6425int i;
6426_ACEOF
6427if ac_fn_c_try_compile "$LINENO"; then :
6428  xorg_cv_cc_flag_unused_command_line_argument=yes
6429else
6430  xorg_cv_cc_flag_unused_command_line_argument=no
6431fi
6432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433fi
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6436	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6437	CFLAGS="$xorg_testset_save_CFLAGS"
6438fi
6439
6440found="no"
6441
6442	if test $found = "no" ; then
6443		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6444			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6445		fi
6446
6447		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6448			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6449		fi
6450
6451		CFLAGS="$CFLAGS -Wredundant-decls"
6452
6453		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6454$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6455		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls`
6456		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6457  $as_echo_n "(cached) " >&6
6458else
6459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460/* end confdefs.h.  */
6461int i;
6462int
6463main ()
6464{
6465
6466  ;
6467  return 0;
6468}
6469_ACEOF
6470if ac_fn_c_try_link "$LINENO"; then :
6471  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6472else
6473  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6474fi
6475rm -f core conftest.err conftest.$ac_objext \
6476    conftest$ac_exeext conftest.$ac_ext
6477fi
6478
6479
6480		CFLAGS="$xorg_testset_save_CFLAGS"
6481
6482		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6483		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6484$as_echo "$supported" >&6; }
6485		if test "$supported" = "yes" ; then
6486			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6487			found="yes"
6488		fi
6489	fi
6490
6491
6492
6493# These are currently disabled because they are noisy.  They will be enabled
6494# in the future once the codebase is sufficiently modernized to silence
6495# them.  For now, I don't want them to drown out the other warnings.
6496# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6497# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6498# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6499
6500# Turn some warnings into errors, so we don't accidently get successful builds
6501# when there are problems that should be fixed.
6502
6503if test "x$SELECTIVE_WERROR" = "xyes" ; then
6504
6505
6506
6507
6508
6509xorg_testset_save_CFLAGS="$CFLAGS"
6510
6511if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6512	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6513	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6514$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6515if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6516  $as_echo_n "(cached) " >&6
6517else
6518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519/* end confdefs.h.  */
6520int i;
6521_ACEOF
6522if ac_fn_c_try_compile "$LINENO"; then :
6523  xorg_cv_cc_flag_unknown_warning_option=yes
6524else
6525  xorg_cv_cc_flag_unknown_warning_option=no
6526fi
6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528fi
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6530$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6531	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6532	CFLAGS="$xorg_testset_save_CFLAGS"
6533fi
6534
6535if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6536	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6537		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6538	fi
6539	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6541$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6542if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6543  $as_echo_n "(cached) " >&6
6544else
6545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546/* end confdefs.h.  */
6547int i;
6548_ACEOF
6549if ac_fn_c_try_compile "$LINENO"; then :
6550  xorg_cv_cc_flag_unused_command_line_argument=yes
6551else
6552  xorg_cv_cc_flag_unused_command_line_argument=no
6553fi
6554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555fi
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6557$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6558	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6559	CFLAGS="$xorg_testset_save_CFLAGS"
6560fi
6561
6562found="no"
6563
6564	if test $found = "no" ; then
6565		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6566			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6567		fi
6568
6569		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6570			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6571		fi
6572
6573		CFLAGS="$CFLAGS -Werror=implicit"
6574
6575		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6576$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6577		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit`
6578		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6579  $as_echo_n "(cached) " >&6
6580else
6581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582/* end confdefs.h.  */
6583int i;
6584int
6585main ()
6586{
6587
6588  ;
6589  return 0;
6590}
6591_ACEOF
6592if ac_fn_c_try_link "$LINENO"; then :
6593  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6594else
6595  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6596fi
6597rm -f core conftest.err conftest.$ac_objext \
6598    conftest$ac_exeext conftest.$ac_ext
6599fi
6600
6601
6602		CFLAGS="$xorg_testset_save_CFLAGS"
6603
6604		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6605		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6606$as_echo "$supported" >&6; }
6607		if test "$supported" = "yes" ; then
6608			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6609			found="yes"
6610		fi
6611	fi
6612
6613	if test $found = "no" ; then
6614		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6616		fi
6617
6618		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620		fi
6621
6622		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6623
6624		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6625$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6626		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6627		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6628  $as_echo_n "(cached) " >&6
6629else
6630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631/* end confdefs.h.  */
6632int i;
6633int
6634main ()
6635{
6636
6637  ;
6638  return 0;
6639}
6640_ACEOF
6641if ac_fn_c_try_link "$LINENO"; then :
6642  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6643else
6644  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6645fi
6646rm -f core conftest.err conftest.$ac_objext \
6647    conftest$ac_exeext conftest.$ac_ext
6648fi
6649
6650
6651		CFLAGS="$xorg_testset_save_CFLAGS"
6652
6653		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6654		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6655$as_echo "$supported" >&6; }
6656		if test "$supported" = "yes" ; then
6657			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6658			found="yes"
6659		fi
6660	fi
6661
6662
6663
6664
6665
6666
6667
6668xorg_testset_save_CFLAGS="$CFLAGS"
6669
6670if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6673$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6674if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6675  $as_echo_n "(cached) " >&6
6676else
6677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678/* end confdefs.h.  */
6679int i;
6680_ACEOF
6681if ac_fn_c_try_compile "$LINENO"; then :
6682  xorg_cv_cc_flag_unknown_warning_option=yes
6683else
6684  xorg_cv_cc_flag_unknown_warning_option=no
6685fi
6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687fi
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6689$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6690	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6691	CFLAGS="$xorg_testset_save_CFLAGS"
6692fi
6693
6694if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6695	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6697	fi
6698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6700$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6701if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6702  $as_echo_n "(cached) " >&6
6703else
6704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705/* end confdefs.h.  */
6706int i;
6707_ACEOF
6708if ac_fn_c_try_compile "$LINENO"; then :
6709  xorg_cv_cc_flag_unused_command_line_argument=yes
6710else
6711  xorg_cv_cc_flag_unused_command_line_argument=no
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714fi
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6716$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6717	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6718	CFLAGS="$xorg_testset_save_CFLAGS"
6719fi
6720
6721found="no"
6722
6723	if test $found = "no" ; then
6724		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726		fi
6727
6728		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730		fi
6731
6732		CFLAGS="$CFLAGS -Werror=nonnull"
6733
6734		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6735$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6736		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull`
6737		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6738  $as_echo_n "(cached) " >&6
6739else
6740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741/* end confdefs.h.  */
6742int i;
6743int
6744main ()
6745{
6746
6747  ;
6748  return 0;
6749}
6750_ACEOF
6751if ac_fn_c_try_link "$LINENO"; then :
6752  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6753else
6754  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6755fi
6756rm -f core conftest.err conftest.$ac_objext \
6757    conftest$ac_exeext conftest.$ac_ext
6758fi
6759
6760
6761		CFLAGS="$xorg_testset_save_CFLAGS"
6762
6763		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6764		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6765$as_echo "$supported" >&6; }
6766		if test "$supported" = "yes" ; then
6767			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6768			found="yes"
6769		fi
6770	fi
6771
6772
6773
6774
6775
6776
6777
6778xorg_testset_save_CFLAGS="$CFLAGS"
6779
6780if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6781	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788/* end confdefs.h.  */
6789int i;
6790_ACEOF
6791if ac_fn_c_try_compile "$LINENO"; then :
6792  xorg_cv_cc_flag_unknown_warning_option=yes
6793else
6794  xorg_cv_cc_flag_unknown_warning_option=no
6795fi
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797fi
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6800	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6801	CFLAGS="$xorg_testset_save_CFLAGS"
6802fi
6803
6804if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6805	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6806		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6807	fi
6808	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6809	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6812  $as_echo_n "(cached) " >&6
6813else
6814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815/* end confdefs.h.  */
6816int i;
6817_ACEOF
6818if ac_fn_c_try_compile "$LINENO"; then :
6819  xorg_cv_cc_flag_unused_command_line_argument=yes
6820else
6821  xorg_cv_cc_flag_unused_command_line_argument=no
6822fi
6823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824fi
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6827	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6828	CFLAGS="$xorg_testset_save_CFLAGS"
6829fi
6830
6831found="no"
6832
6833	if test $found = "no" ; then
6834		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6835			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6836		fi
6837
6838		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6839			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840		fi
6841
6842		CFLAGS="$CFLAGS -Werror=init-self"
6843
6844		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6845$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6846		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self`
6847		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6848  $as_echo_n "(cached) " >&6
6849else
6850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h.  */
6852int i;
6853int
6854main ()
6855{
6856
6857  ;
6858  return 0;
6859}
6860_ACEOF
6861if ac_fn_c_try_link "$LINENO"; then :
6862  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6863else
6864  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6865fi
6866rm -f core conftest.err conftest.$ac_objext \
6867    conftest$ac_exeext conftest.$ac_ext
6868fi
6869
6870
6871		CFLAGS="$xorg_testset_save_CFLAGS"
6872
6873		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6874		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6875$as_echo "$supported" >&6; }
6876		if test "$supported" = "yes" ; then
6877			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6878			found="yes"
6879		fi
6880	fi
6881
6882
6883
6884
6885
6886
6887
6888xorg_testset_save_CFLAGS="$CFLAGS"
6889
6890if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6891	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6895  $as_echo_n "(cached) " >&6
6896else
6897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898/* end confdefs.h.  */
6899int i;
6900_ACEOF
6901if ac_fn_c_try_compile "$LINENO"; then :
6902  xorg_cv_cc_flag_unknown_warning_option=yes
6903else
6904  xorg_cv_cc_flag_unknown_warning_option=no
6905fi
6906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907fi
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6910	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6911	CFLAGS="$xorg_testset_save_CFLAGS"
6912fi
6913
6914if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6915	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6916		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917	fi
6918	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6922  $as_echo_n "(cached) " >&6
6923else
6924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925/* end confdefs.h.  */
6926int i;
6927_ACEOF
6928if ac_fn_c_try_compile "$LINENO"; then :
6929  xorg_cv_cc_flag_unused_command_line_argument=yes
6930else
6931  xorg_cv_cc_flag_unused_command_line_argument=no
6932fi
6933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934fi
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6937	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6938	CFLAGS="$xorg_testset_save_CFLAGS"
6939fi
6940
6941found="no"
6942
6943	if test $found = "no" ; then
6944		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6945			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946		fi
6947
6948		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6949			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6950		fi
6951
6952		CFLAGS="$CFLAGS -Werror=main"
6953
6954		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6955$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6956		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main`
6957		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6958  $as_echo_n "(cached) " >&6
6959else
6960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961/* end confdefs.h.  */
6962int i;
6963int
6964main ()
6965{
6966
6967  ;
6968  return 0;
6969}
6970_ACEOF
6971if ac_fn_c_try_link "$LINENO"; then :
6972  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6973else
6974  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6975fi
6976rm -f core conftest.err conftest.$ac_objext \
6977    conftest$ac_exeext conftest.$ac_ext
6978fi
6979
6980
6981		CFLAGS="$xorg_testset_save_CFLAGS"
6982
6983		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6984		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6985$as_echo "$supported" >&6; }
6986		if test "$supported" = "yes" ; then
6987			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6988			found="yes"
6989		fi
6990	fi
6991
6992
6993
6994
6995
6996
6997
6998xorg_testset_save_CFLAGS="$CFLAGS"
6999
7000if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7001	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7003$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7004if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7005  $as_echo_n "(cached) " >&6
7006else
7007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008/* end confdefs.h.  */
7009int i;
7010_ACEOF
7011if ac_fn_c_try_compile "$LINENO"; then :
7012  xorg_cv_cc_flag_unknown_warning_option=yes
7013else
7014  xorg_cv_cc_flag_unknown_warning_option=no
7015fi
7016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017fi
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7019$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7020	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7021	CFLAGS="$xorg_testset_save_CFLAGS"
7022fi
7023
7024if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7025	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7026		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7027	fi
7028	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7030$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7031if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7032  $as_echo_n "(cached) " >&6
7033else
7034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035/* end confdefs.h.  */
7036int i;
7037_ACEOF
7038if ac_fn_c_try_compile "$LINENO"; then :
7039  xorg_cv_cc_flag_unused_command_line_argument=yes
7040else
7041  xorg_cv_cc_flag_unused_command_line_argument=no
7042fi
7043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044fi
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7046$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7047	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7048	CFLAGS="$xorg_testset_save_CFLAGS"
7049fi
7050
7051found="no"
7052
7053	if test $found = "no" ; then
7054		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7056		fi
7057
7058		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060		fi
7061
7062		CFLAGS="$CFLAGS -Werror=missing-braces"
7063
7064		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7065$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7066		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces`
7067		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7068  $as_echo_n "(cached) " >&6
7069else
7070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071/* end confdefs.h.  */
7072int i;
7073int
7074main ()
7075{
7076
7077  ;
7078  return 0;
7079}
7080_ACEOF
7081if ac_fn_c_try_link "$LINENO"; then :
7082  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7083else
7084  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7085fi
7086rm -f core conftest.err conftest.$ac_objext \
7087    conftest$ac_exeext conftest.$ac_ext
7088fi
7089
7090
7091		CFLAGS="$xorg_testset_save_CFLAGS"
7092
7093		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7094		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7095$as_echo "$supported" >&6; }
7096		if test "$supported" = "yes" ; then
7097			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7098			found="yes"
7099		fi
7100	fi
7101
7102
7103
7104
7105
7106
7107
7108xorg_testset_save_CFLAGS="$CFLAGS"
7109
7110if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7111	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7113$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7114if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7115  $as_echo_n "(cached) " >&6
7116else
7117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118/* end confdefs.h.  */
7119int i;
7120_ACEOF
7121if ac_fn_c_try_compile "$LINENO"; then :
7122  xorg_cv_cc_flag_unknown_warning_option=yes
7123else
7124  xorg_cv_cc_flag_unknown_warning_option=no
7125fi
7126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127fi
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7129$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7130	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7131	CFLAGS="$xorg_testset_save_CFLAGS"
7132fi
7133
7134if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7135	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7137	fi
7138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7140$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7141if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7142  $as_echo_n "(cached) " >&6
7143else
7144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145/* end confdefs.h.  */
7146int i;
7147_ACEOF
7148if ac_fn_c_try_compile "$LINENO"; then :
7149  xorg_cv_cc_flag_unused_command_line_argument=yes
7150else
7151  xorg_cv_cc_flag_unused_command_line_argument=no
7152fi
7153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154fi
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7156$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7157	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7158	CFLAGS="$xorg_testset_save_CFLAGS"
7159fi
7160
7161found="no"
7162
7163	if test $found = "no" ; then
7164		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7165			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166		fi
7167
7168		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7169			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7170		fi
7171
7172		CFLAGS="$CFLAGS -Werror=sequence-point"
7173
7174		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7175$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7176		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point`
7177		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7178  $as_echo_n "(cached) " >&6
7179else
7180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h.  */
7182int i;
7183int
7184main ()
7185{
7186
7187  ;
7188  return 0;
7189}
7190_ACEOF
7191if ac_fn_c_try_link "$LINENO"; then :
7192  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7193else
7194  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7195fi
7196rm -f core conftest.err conftest.$ac_objext \
7197    conftest$ac_exeext conftest.$ac_ext
7198fi
7199
7200
7201		CFLAGS="$xorg_testset_save_CFLAGS"
7202
7203		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7204		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7205$as_echo "$supported" >&6; }
7206		if test "$supported" = "yes" ; then
7207			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7208			found="yes"
7209		fi
7210	fi
7211
7212
7213
7214
7215
7216
7217
7218xorg_testset_save_CFLAGS="$CFLAGS"
7219
7220if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228/* end confdefs.h.  */
7229int i;
7230_ACEOF
7231if ac_fn_c_try_compile "$LINENO"; then :
7232  xorg_cv_cc_flag_unknown_warning_option=yes
7233else
7234  xorg_cv_cc_flag_unknown_warning_option=no
7235fi
7236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237fi
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7240	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7241	CFLAGS="$xorg_testset_save_CFLAGS"
7242fi
7243
7244if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7245	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7246		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247	fi
7248	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7252  $as_echo_n "(cached) " >&6
7253else
7254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h.  */
7256int i;
7257_ACEOF
7258if ac_fn_c_try_compile "$LINENO"; then :
7259  xorg_cv_cc_flag_unused_command_line_argument=yes
7260else
7261  xorg_cv_cc_flag_unused_command_line_argument=no
7262fi
7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264fi
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7267	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7268	CFLAGS="$xorg_testset_save_CFLAGS"
7269fi
7270
7271found="no"
7272
7273	if test $found = "no" ; then
7274		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276		fi
7277
7278		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7280		fi
7281
7282		CFLAGS="$CFLAGS -Werror=return-type"
7283
7284		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7285$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7286		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type`
7287		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7288  $as_echo_n "(cached) " >&6
7289else
7290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h.  */
7292int i;
7293int
7294main ()
7295{
7296
7297  ;
7298  return 0;
7299}
7300_ACEOF
7301if ac_fn_c_try_link "$LINENO"; then :
7302  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7303else
7304  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7305fi
7306rm -f core conftest.err conftest.$ac_objext \
7307    conftest$ac_exeext conftest.$ac_ext
7308fi
7309
7310
7311		CFLAGS="$xorg_testset_save_CFLAGS"
7312
7313		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7315$as_echo "$supported" >&6; }
7316		if test "$supported" = "yes" ; then
7317			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7318			found="yes"
7319		fi
7320	fi
7321
7322	if test $found = "no" ; then
7323		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325		fi
7326
7327		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329		fi
7330
7331		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7332
7333		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7334$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7335		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7336		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340/* end confdefs.h.  */
7341int i;
7342int
7343main ()
7344{
7345
7346  ;
7347  return 0;
7348}
7349_ACEOF
7350if ac_fn_c_try_link "$LINENO"; then :
7351  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7352else
7353  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7354fi
7355rm -f core conftest.err conftest.$ac_objext \
7356    conftest$ac_exeext conftest.$ac_ext
7357fi
7358
7359
7360		CFLAGS="$xorg_testset_save_CFLAGS"
7361
7362		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7363		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7364$as_echo "$supported" >&6; }
7365		if test "$supported" = "yes" ; then
7366			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7367			found="yes"
7368		fi
7369	fi
7370
7371
7372
7373
7374
7375
7376
7377xorg_testset_save_CFLAGS="$CFLAGS"
7378
7379if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7380	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7384  $as_echo_n "(cached) " >&6
7385else
7386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387/* end confdefs.h.  */
7388int i;
7389_ACEOF
7390if ac_fn_c_try_compile "$LINENO"; then :
7391  xorg_cv_cc_flag_unknown_warning_option=yes
7392else
7393  xorg_cv_cc_flag_unknown_warning_option=no
7394fi
7395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396fi
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7399	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7400	CFLAGS="$xorg_testset_save_CFLAGS"
7401fi
7402
7403if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7404	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7405		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406	fi
7407	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7411  $as_echo_n "(cached) " >&6
7412else
7413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414/* end confdefs.h.  */
7415int i;
7416_ACEOF
7417if ac_fn_c_try_compile "$LINENO"; then :
7418  xorg_cv_cc_flag_unused_command_line_argument=yes
7419else
7420  xorg_cv_cc_flag_unused_command_line_argument=no
7421fi
7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423fi
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7426	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7427	CFLAGS="$xorg_testset_save_CFLAGS"
7428fi
7429
7430found="no"
7431
7432	if test $found = "no" ; then
7433		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7435		fi
7436
7437		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7439		fi
7440
7441		CFLAGS="$CFLAGS -Werror=trigraphs"
7442
7443		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7444$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7445		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs`
7446		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7447  $as_echo_n "(cached) " >&6
7448else
7449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450/* end confdefs.h.  */
7451int i;
7452int
7453main ()
7454{
7455
7456  ;
7457  return 0;
7458}
7459_ACEOF
7460if ac_fn_c_try_link "$LINENO"; then :
7461  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7462else
7463  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7464fi
7465rm -f core conftest.err conftest.$ac_objext \
7466    conftest$ac_exeext conftest.$ac_ext
7467fi
7468
7469
7470		CFLAGS="$xorg_testset_save_CFLAGS"
7471
7472		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7473		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7474$as_echo "$supported" >&6; }
7475		if test "$supported" = "yes" ; then
7476			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7477			found="yes"
7478		fi
7479	fi
7480
7481
7482
7483
7484
7485
7486
7487xorg_testset_save_CFLAGS="$CFLAGS"
7488
7489if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7490	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7491	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7492$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7493if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7494  $as_echo_n "(cached) " >&6
7495else
7496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497/* end confdefs.h.  */
7498int i;
7499_ACEOF
7500if ac_fn_c_try_compile "$LINENO"; then :
7501  xorg_cv_cc_flag_unknown_warning_option=yes
7502else
7503  xorg_cv_cc_flag_unknown_warning_option=no
7504fi
7505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506fi
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7508$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7509	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7510	CFLAGS="$xorg_testset_save_CFLAGS"
7511fi
7512
7513if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7514	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7515		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7516	fi
7517	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7519$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7520if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7521  $as_echo_n "(cached) " >&6
7522else
7523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524/* end confdefs.h.  */
7525int i;
7526_ACEOF
7527if ac_fn_c_try_compile "$LINENO"; then :
7528  xorg_cv_cc_flag_unused_command_line_argument=yes
7529else
7530  xorg_cv_cc_flag_unused_command_line_argument=no
7531fi
7532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533fi
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7535$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7536	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7537	CFLAGS="$xorg_testset_save_CFLAGS"
7538fi
7539
7540found="no"
7541
7542	if test $found = "no" ; then
7543		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545		fi
7546
7547		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549		fi
7550
7551		CFLAGS="$CFLAGS -Werror=array-bounds"
7552
7553		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7554$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7555		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds`
7556		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7557  $as_echo_n "(cached) " >&6
7558else
7559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560/* end confdefs.h.  */
7561int i;
7562int
7563main ()
7564{
7565
7566  ;
7567  return 0;
7568}
7569_ACEOF
7570if ac_fn_c_try_link "$LINENO"; then :
7571  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7572else
7573  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7574fi
7575rm -f core conftest.err conftest.$ac_objext \
7576    conftest$ac_exeext conftest.$ac_ext
7577fi
7578
7579
7580		CFLAGS="$xorg_testset_save_CFLAGS"
7581
7582		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7583		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7584$as_echo "$supported" >&6; }
7585		if test "$supported" = "yes" ; then
7586			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7587			found="yes"
7588		fi
7589	fi
7590
7591
7592
7593
7594
7595
7596
7597xorg_testset_save_CFLAGS="$CFLAGS"
7598
7599if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607/* end confdefs.h.  */
7608int i;
7609_ACEOF
7610if ac_fn_c_try_compile "$LINENO"; then :
7611  xorg_cv_cc_flag_unknown_warning_option=yes
7612else
7613  xorg_cv_cc_flag_unknown_warning_option=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616fi
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7619	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7620	CFLAGS="$xorg_testset_save_CFLAGS"
7621fi
7622
7623if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7624	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7625		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626	fi
7627	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7631  $as_echo_n "(cached) " >&6
7632else
7633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634/* end confdefs.h.  */
7635int i;
7636_ACEOF
7637if ac_fn_c_try_compile "$LINENO"; then :
7638  xorg_cv_cc_flag_unused_command_line_argument=yes
7639else
7640  xorg_cv_cc_flag_unused_command_line_argument=no
7641fi
7642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643fi
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7646	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7647	CFLAGS="$xorg_testset_save_CFLAGS"
7648fi
7649
7650found="no"
7651
7652	if test $found = "no" ; then
7653		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655		fi
7656
7657		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7659		fi
7660
7661		CFLAGS="$CFLAGS -Werror=write-strings"
7662
7663		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7664$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7665		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings`
7666		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7667  $as_echo_n "(cached) " >&6
7668else
7669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670/* end confdefs.h.  */
7671int i;
7672int
7673main ()
7674{
7675
7676  ;
7677  return 0;
7678}
7679_ACEOF
7680if ac_fn_c_try_link "$LINENO"; then :
7681  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7682else
7683  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7684fi
7685rm -f core conftest.err conftest.$ac_objext \
7686    conftest$ac_exeext conftest.$ac_ext
7687fi
7688
7689
7690		CFLAGS="$xorg_testset_save_CFLAGS"
7691
7692		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7693		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7694$as_echo "$supported" >&6; }
7695		if test "$supported" = "yes" ; then
7696			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7697			found="yes"
7698		fi
7699	fi
7700
7701
7702
7703
7704
7705
7706
7707xorg_testset_save_CFLAGS="$CFLAGS"
7708
7709if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7710	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7712$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7713if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7714  $as_echo_n "(cached) " >&6
7715else
7716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717/* end confdefs.h.  */
7718int i;
7719_ACEOF
7720if ac_fn_c_try_compile "$LINENO"; then :
7721  xorg_cv_cc_flag_unknown_warning_option=yes
7722else
7723  xorg_cv_cc_flag_unknown_warning_option=no
7724fi
7725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726fi
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7728$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7729	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7730	CFLAGS="$xorg_testset_save_CFLAGS"
7731fi
7732
7733if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7734	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7735		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7736	fi
7737	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7738	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7739$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7740if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7741  $as_echo_n "(cached) " >&6
7742else
7743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h.  */
7745int i;
7746_ACEOF
7747if ac_fn_c_try_compile "$LINENO"; then :
7748  xorg_cv_cc_flag_unused_command_line_argument=yes
7749else
7750  xorg_cv_cc_flag_unused_command_line_argument=no
7751fi
7752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753fi
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7755$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7756	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7757	CFLAGS="$xorg_testset_save_CFLAGS"
7758fi
7759
7760found="no"
7761
7762	if test $found = "no" ; then
7763		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7764			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7765		fi
7766
7767		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7768			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769		fi
7770
7771		CFLAGS="$CFLAGS -Werror=address"
7772
7773		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7774$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7775		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address`
7776		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7777  $as_echo_n "(cached) " >&6
7778else
7779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h.  */
7781int i;
7782int
7783main ()
7784{
7785
7786  ;
7787  return 0;
7788}
7789_ACEOF
7790if ac_fn_c_try_link "$LINENO"; then :
7791  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7792else
7793  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7794fi
7795rm -f core conftest.err conftest.$ac_objext \
7796    conftest$ac_exeext conftest.$ac_ext
7797fi
7798
7799
7800		CFLAGS="$xorg_testset_save_CFLAGS"
7801
7802		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7803		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7804$as_echo "$supported" >&6; }
7805		if test "$supported" = "yes" ; then
7806			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7807			found="yes"
7808		fi
7809	fi
7810
7811
7812
7813
7814
7815
7816
7817xorg_testset_save_CFLAGS="$CFLAGS"
7818
7819if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7824  $as_echo_n "(cached) " >&6
7825else
7826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827/* end confdefs.h.  */
7828int i;
7829_ACEOF
7830if ac_fn_c_try_compile "$LINENO"; then :
7831  xorg_cv_cc_flag_unknown_warning_option=yes
7832else
7833  xorg_cv_cc_flag_unknown_warning_option=no
7834fi
7835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7839	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7840	CFLAGS="$xorg_testset_save_CFLAGS"
7841fi
7842
7843if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7844	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846	fi
7847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7850if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
7859else
7860  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
7865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7866	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7867	CFLAGS="$xorg_testset_save_CFLAGS"
7868fi
7869
7870found="no"
7871
7872	if test $found = "no" ; then
7873		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7875		fi
7876
7877		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7879		fi
7880
7881		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7882
7883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7884$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7885		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
7886		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7887  $as_echo_n "(cached) " >&6
7888else
7889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h.  */
7891int i;
7892int
7893main ()
7894{
7895
7896  ;
7897  return 0;
7898}
7899_ACEOF
7900if ac_fn_c_try_link "$LINENO"; then :
7901  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7902else
7903  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7904fi
7905rm -f core conftest.err conftest.$ac_objext \
7906    conftest$ac_exeext conftest.$ac_ext
7907fi
7908
7909
7910		CFLAGS="$xorg_testset_save_CFLAGS"
7911
7912		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7914$as_echo "$supported" >&6; }
7915		if test "$supported" = "yes" ; then
7916			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7917			found="yes"
7918		fi
7919	fi
7920
7921	if test $found = "no" ; then
7922		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924		fi
7925
7926		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7928		fi
7929
7930		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7931
7932		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7933$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7934		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
7935		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939/* end confdefs.h.  */
7940int i;
7941int
7942main ()
7943{
7944
7945  ;
7946  return 0;
7947}
7948_ACEOF
7949if ac_fn_c_try_link "$LINENO"; then :
7950  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7951else
7952  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7953fi
7954rm -f core conftest.err conftest.$ac_objext \
7955    conftest$ac_exeext conftest.$ac_ext
7956fi
7957
7958
7959		CFLAGS="$xorg_testset_save_CFLAGS"
7960
7961		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7962		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7963$as_echo "$supported" >&6; }
7964		if test "$supported" = "yes" ; then
7965			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7966			found="yes"
7967		fi
7968	fi
7969
7970
7971
7972
7973
7974
7975
7976xorg_testset_save_CFLAGS="$CFLAGS"
7977
7978if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7979	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7983  $as_echo_n "(cached) " >&6
7984else
7985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h.  */
7987int i;
7988_ACEOF
7989if ac_fn_c_try_compile "$LINENO"; then :
7990  xorg_cv_cc_flag_unknown_warning_option=yes
7991else
7992  xorg_cv_cc_flag_unknown_warning_option=no
7993fi
7994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995fi
7996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7998	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7999	CFLAGS="$xorg_testset_save_CFLAGS"
8000fi
8001
8002if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8003	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8005	fi
8006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8010  $as_echo_n "(cached) " >&6
8011else
8012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013/* end confdefs.h.  */
8014int i;
8015_ACEOF
8016if ac_fn_c_try_compile "$LINENO"; then :
8017  xorg_cv_cc_flag_unused_command_line_argument=yes
8018else
8019  xorg_cv_cc_flag_unused_command_line_argument=no
8020fi
8021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022fi
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8025	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8026	CFLAGS="$xorg_testset_save_CFLAGS"
8027fi
8028
8029found="no"
8030
8031	if test $found = "no" ; then
8032		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8033			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8034		fi
8035
8036		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8037			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8038		fi
8039
8040		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8041
8042		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8043$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8044		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
8045		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8046  $as_echo_n "(cached) " >&6
8047else
8048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049/* end confdefs.h.  */
8050int i;
8051int
8052main ()
8053{
8054
8055  ;
8056  return 0;
8057}
8058_ACEOF
8059if ac_fn_c_try_link "$LINENO"; then :
8060  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8061else
8062  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8063fi
8064rm -f core conftest.err conftest.$ac_objext \
8065    conftest$ac_exeext conftest.$ac_ext
8066fi
8067
8068
8069		CFLAGS="$xorg_testset_save_CFLAGS"
8070
8071		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8072		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8073$as_echo "$supported" >&6; }
8074		if test "$supported" = "yes" ; then
8075			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8076			found="yes"
8077		fi
8078	fi
8079
8080 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8081else
8082{ $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
8083$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;}
8084
8085
8086
8087
8088
8089xorg_testset_save_CFLAGS="$CFLAGS"
8090
8091if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8092	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h.  */
8100int i;
8101_ACEOF
8102if ac_fn_c_try_compile "$LINENO"; then :
8103  xorg_cv_cc_flag_unknown_warning_option=yes
8104else
8105  xorg_cv_cc_flag_unknown_warning_option=no
8106fi
8107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108fi
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8111	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8112	CFLAGS="$xorg_testset_save_CFLAGS"
8113fi
8114
8115if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8116	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8118	fi
8119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8123  $as_echo_n "(cached) " >&6
8124else
8125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126/* end confdefs.h.  */
8127int i;
8128_ACEOF
8129if ac_fn_c_try_compile "$LINENO"; then :
8130  xorg_cv_cc_flag_unused_command_line_argument=yes
8131else
8132  xorg_cv_cc_flag_unused_command_line_argument=no
8133fi
8134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135fi
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8138	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8139	CFLAGS="$xorg_testset_save_CFLAGS"
8140fi
8141
8142found="no"
8143
8144	if test $found = "no" ; then
8145		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147		fi
8148
8149		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151		fi
8152
8153		CFLAGS="$CFLAGS -Wimplicit"
8154
8155		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8156$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8157		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit`
8158		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8159  $as_echo_n "(cached) " >&6
8160else
8161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162/* end confdefs.h.  */
8163int i;
8164int
8165main ()
8166{
8167
8168  ;
8169  return 0;
8170}
8171_ACEOF
8172if ac_fn_c_try_link "$LINENO"; then :
8173  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8174else
8175  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8176fi
8177rm -f core conftest.err conftest.$ac_objext \
8178    conftest$ac_exeext conftest.$ac_ext
8179fi
8180
8181
8182		CFLAGS="$xorg_testset_save_CFLAGS"
8183
8184		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8185		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186$as_echo "$supported" >&6; }
8187		if test "$supported" = "yes" ; then
8188			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8189			found="yes"
8190		fi
8191	fi
8192
8193
8194
8195
8196
8197
8198
8199xorg_testset_save_CFLAGS="$CFLAGS"
8200
8201if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8206  $as_echo_n "(cached) " >&6
8207else
8208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209/* end confdefs.h.  */
8210int i;
8211_ACEOF
8212if ac_fn_c_try_compile "$LINENO"; then :
8213  xorg_cv_cc_flag_unknown_warning_option=yes
8214else
8215  xorg_cv_cc_flag_unknown_warning_option=no
8216fi
8217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218fi
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8221	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8222	CFLAGS="$xorg_testset_save_CFLAGS"
8223fi
8224
8225if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8226	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8227		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8228	fi
8229	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8233  $as_echo_n "(cached) " >&6
8234else
8235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236/* end confdefs.h.  */
8237int i;
8238_ACEOF
8239if ac_fn_c_try_compile "$LINENO"; then :
8240  xorg_cv_cc_flag_unused_command_line_argument=yes
8241else
8242  xorg_cv_cc_flag_unused_command_line_argument=no
8243fi
8244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245fi
8246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8248	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8249	CFLAGS="$xorg_testset_save_CFLAGS"
8250fi
8251
8252found="no"
8253
8254	if test $found = "no" ; then
8255		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257		fi
8258
8259		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261		fi
8262
8263		CFLAGS="$CFLAGS -Wnonnull"
8264
8265		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8266$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8267		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull`
8268		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8269  $as_echo_n "(cached) " >&6
8270else
8271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273int i;
8274int
8275main ()
8276{
8277
8278  ;
8279  return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_link "$LINENO"; then :
8283  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8284else
8285  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8286fi
8287rm -f core conftest.err conftest.$ac_objext \
8288    conftest$ac_exeext conftest.$ac_ext
8289fi
8290
8291
8292		CFLAGS="$xorg_testset_save_CFLAGS"
8293
8294		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8295		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8296$as_echo "$supported" >&6; }
8297		if test "$supported" = "yes" ; then
8298			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8299			found="yes"
8300		fi
8301	fi
8302
8303
8304
8305
8306
8307
8308
8309xorg_testset_save_CFLAGS="$CFLAGS"
8310
8311if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8312	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8316  $as_echo_n "(cached) " >&6
8317else
8318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319/* end confdefs.h.  */
8320int i;
8321_ACEOF
8322if ac_fn_c_try_compile "$LINENO"; then :
8323  xorg_cv_cc_flag_unknown_warning_option=yes
8324else
8325  xorg_cv_cc_flag_unknown_warning_option=no
8326fi
8327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328fi
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8331	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8332	CFLAGS="$xorg_testset_save_CFLAGS"
8333fi
8334
8335if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8336	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8338	fi
8339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8343  $as_echo_n "(cached) " >&6
8344else
8345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346/* end confdefs.h.  */
8347int i;
8348_ACEOF
8349if ac_fn_c_try_compile "$LINENO"; then :
8350  xorg_cv_cc_flag_unused_command_line_argument=yes
8351else
8352  xorg_cv_cc_flag_unused_command_line_argument=no
8353fi
8354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8355fi
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8358	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8359	CFLAGS="$xorg_testset_save_CFLAGS"
8360fi
8361
8362found="no"
8363
8364	if test $found = "no" ; then
8365		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367		fi
8368
8369		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8371		fi
8372
8373		CFLAGS="$CFLAGS -Winit-self"
8374
8375		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8376$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8377		cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self`
8378		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8379  $as_echo_n "(cached) " >&6
8380else
8381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h.  */
8383int i;
8384int
8385main ()
8386{
8387
8388  ;
8389  return 0;
8390}
8391_ACEOF
8392if ac_fn_c_try_link "$LINENO"; then :
8393  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8394else
8395  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8396fi
8397rm -f core conftest.err conftest.$ac_objext \
8398    conftest$ac_exeext conftest.$ac_ext
8399fi
8400
8401
8402		CFLAGS="$xorg_testset_save_CFLAGS"
8403
8404		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8405		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8406$as_echo "$supported" >&6; }
8407		if test "$supported" = "yes" ; then
8408			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8409			found="yes"
8410		fi
8411	fi
8412
8413
8414
8415
8416
8417
8418
8419xorg_testset_save_CFLAGS="$CFLAGS"
8420
8421if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8422	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8426  $as_echo_n "(cached) " >&6
8427else
8428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429/* end confdefs.h.  */
8430int i;
8431_ACEOF
8432if ac_fn_c_try_compile "$LINENO"; then :
8433  xorg_cv_cc_flag_unknown_warning_option=yes
8434else
8435  xorg_cv_cc_flag_unknown_warning_option=no
8436fi
8437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438fi
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8441	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8442	CFLAGS="$xorg_testset_save_CFLAGS"
8443fi
8444
8445if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8446	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8447		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448	fi
8449	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8453  $as_echo_n "(cached) " >&6
8454else
8455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456/* end confdefs.h.  */
8457int i;
8458_ACEOF
8459if ac_fn_c_try_compile "$LINENO"; then :
8460  xorg_cv_cc_flag_unused_command_line_argument=yes
8461else
8462  xorg_cv_cc_flag_unused_command_line_argument=no
8463fi
8464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465fi
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8468	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8469	CFLAGS="$xorg_testset_save_CFLAGS"
8470fi
8471
8472found="no"
8473
8474	if test $found = "no" ; then
8475		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8476			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477		fi
8478
8479		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8480			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8481		fi
8482
8483		CFLAGS="$CFLAGS -Wmain"
8484
8485		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8486$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8487		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain`
8488		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8489  $as_echo_n "(cached) " >&6
8490else
8491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492/* end confdefs.h.  */
8493int i;
8494int
8495main ()
8496{
8497
8498  ;
8499  return 0;
8500}
8501_ACEOF
8502if ac_fn_c_try_link "$LINENO"; then :
8503  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8504else
8505  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8506fi
8507rm -f core conftest.err conftest.$ac_objext \
8508    conftest$ac_exeext conftest.$ac_ext
8509fi
8510
8511
8512		CFLAGS="$xorg_testset_save_CFLAGS"
8513
8514		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8515		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8516$as_echo "$supported" >&6; }
8517		if test "$supported" = "yes" ; then
8518			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8519			found="yes"
8520		fi
8521	fi
8522
8523
8524
8525
8526
8527
8528
8529xorg_testset_save_CFLAGS="$CFLAGS"
8530
8531if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8536  $as_echo_n "(cached) " >&6
8537else
8538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539/* end confdefs.h.  */
8540int i;
8541_ACEOF
8542if ac_fn_c_try_compile "$LINENO"; then :
8543  xorg_cv_cc_flag_unknown_warning_option=yes
8544else
8545  xorg_cv_cc_flag_unknown_warning_option=no
8546fi
8547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548fi
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8551	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8552	CFLAGS="$xorg_testset_save_CFLAGS"
8553fi
8554
8555if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8556	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8557		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8558	fi
8559	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8563  $as_echo_n "(cached) " >&6
8564else
8565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566/* end confdefs.h.  */
8567int i;
8568_ACEOF
8569if ac_fn_c_try_compile "$LINENO"; then :
8570  xorg_cv_cc_flag_unused_command_line_argument=yes
8571else
8572  xorg_cv_cc_flag_unused_command_line_argument=no
8573fi
8574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575fi
8576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8578	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8579	CFLAGS="$xorg_testset_save_CFLAGS"
8580fi
8581
8582found="no"
8583
8584	if test $found = "no" ; then
8585		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8586			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587		fi
8588
8589		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8590			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8591		fi
8592
8593		CFLAGS="$CFLAGS -Wmissing-braces"
8594
8595		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8596$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8597		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces`
8598		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8599  $as_echo_n "(cached) " >&6
8600else
8601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602/* end confdefs.h.  */
8603int i;
8604int
8605main ()
8606{
8607
8608  ;
8609  return 0;
8610}
8611_ACEOF
8612if ac_fn_c_try_link "$LINENO"; then :
8613  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8614else
8615  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8616fi
8617rm -f core conftest.err conftest.$ac_objext \
8618    conftest$ac_exeext conftest.$ac_ext
8619fi
8620
8621
8622		CFLAGS="$xorg_testset_save_CFLAGS"
8623
8624		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8625		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8626$as_echo "$supported" >&6; }
8627		if test "$supported" = "yes" ; then
8628			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8629			found="yes"
8630		fi
8631	fi
8632
8633
8634
8635
8636
8637
8638
8639xorg_testset_save_CFLAGS="$CFLAGS"
8640
8641if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8642	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8644$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8645if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8646  $as_echo_n "(cached) " >&6
8647else
8648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649/* end confdefs.h.  */
8650int i;
8651_ACEOF
8652if ac_fn_c_try_compile "$LINENO"; then :
8653  xorg_cv_cc_flag_unknown_warning_option=yes
8654else
8655  xorg_cv_cc_flag_unknown_warning_option=no
8656fi
8657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658fi
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8660$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8661	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8662	CFLAGS="$xorg_testset_save_CFLAGS"
8663fi
8664
8665if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8666	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8668	fi
8669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8671$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8672if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8673  $as_echo_n "(cached) " >&6
8674else
8675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676/* end confdefs.h.  */
8677int i;
8678_ACEOF
8679if ac_fn_c_try_compile "$LINENO"; then :
8680  xorg_cv_cc_flag_unused_command_line_argument=yes
8681else
8682  xorg_cv_cc_flag_unused_command_line_argument=no
8683fi
8684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685fi
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8687$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8688	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8689	CFLAGS="$xorg_testset_save_CFLAGS"
8690fi
8691
8692found="no"
8693
8694	if test $found = "no" ; then
8695		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8696			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8697		fi
8698
8699		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8700			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8701		fi
8702
8703		CFLAGS="$CFLAGS -Wsequence-point"
8704
8705		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8706$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8707		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point`
8708		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8709  $as_echo_n "(cached) " >&6
8710else
8711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712/* end confdefs.h.  */
8713int i;
8714int
8715main ()
8716{
8717
8718  ;
8719  return 0;
8720}
8721_ACEOF
8722if ac_fn_c_try_link "$LINENO"; then :
8723  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8724else
8725  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8726fi
8727rm -f core conftest.err conftest.$ac_objext \
8728    conftest$ac_exeext conftest.$ac_ext
8729fi
8730
8731
8732		CFLAGS="$xorg_testset_save_CFLAGS"
8733
8734		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8735		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8736$as_echo "$supported" >&6; }
8737		if test "$supported" = "yes" ; then
8738			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8739			found="yes"
8740		fi
8741	fi
8742
8743
8744
8745
8746
8747
8748
8749xorg_testset_save_CFLAGS="$CFLAGS"
8750
8751if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8754$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8755if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
8764else
8765  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8770$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8771	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8772	CFLAGS="$xorg_testset_save_CFLAGS"
8773fi
8774
8775if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8776	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8777		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8778	fi
8779	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8780	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8781$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8782if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8783  $as_echo_n "(cached) " >&6
8784else
8785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786/* end confdefs.h.  */
8787int i;
8788_ACEOF
8789if ac_fn_c_try_compile "$LINENO"; then :
8790  xorg_cv_cc_flag_unused_command_line_argument=yes
8791else
8792  xorg_cv_cc_flag_unused_command_line_argument=no
8793fi
8794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795fi
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8797$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8798	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8799	CFLAGS="$xorg_testset_save_CFLAGS"
8800fi
8801
8802found="no"
8803
8804	if test $found = "no" ; then
8805		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8806			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8807		fi
8808
8809		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8810			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8811		fi
8812
8813		CFLAGS="$CFLAGS -Wreturn-type"
8814
8815		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8816$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8817		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type`
8818		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8819  $as_echo_n "(cached) " >&6
8820else
8821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822/* end confdefs.h.  */
8823int i;
8824int
8825main ()
8826{
8827
8828  ;
8829  return 0;
8830}
8831_ACEOF
8832if ac_fn_c_try_link "$LINENO"; then :
8833  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8834else
8835  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8836fi
8837rm -f core conftest.err conftest.$ac_objext \
8838    conftest$ac_exeext conftest.$ac_ext
8839fi
8840
8841
8842		CFLAGS="$xorg_testset_save_CFLAGS"
8843
8844		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8845		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8846$as_echo "$supported" >&6; }
8847		if test "$supported" = "yes" ; then
8848			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8849			found="yes"
8850		fi
8851	fi
8852
8853
8854
8855
8856
8857
8858
8859xorg_testset_save_CFLAGS="$CFLAGS"
8860
8861if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8866  $as_echo_n "(cached) " >&6
8867else
8868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869/* end confdefs.h.  */
8870int i;
8871_ACEOF
8872if ac_fn_c_try_compile "$LINENO"; then :
8873  xorg_cv_cc_flag_unknown_warning_option=yes
8874else
8875  xorg_cv_cc_flag_unknown_warning_option=no
8876fi
8877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878fi
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8881	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8882	CFLAGS="$xorg_testset_save_CFLAGS"
8883fi
8884
8885if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8886	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888	fi
8889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8893  $as_echo_n "(cached) " >&6
8894else
8895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896/* end confdefs.h.  */
8897int i;
8898_ACEOF
8899if ac_fn_c_try_compile "$LINENO"; then :
8900  xorg_cv_cc_flag_unused_command_line_argument=yes
8901else
8902  xorg_cv_cc_flag_unused_command_line_argument=no
8903fi
8904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905fi
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8908	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8909	CFLAGS="$xorg_testset_save_CFLAGS"
8910fi
8911
8912found="no"
8913
8914	if test $found = "no" ; then
8915		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8917		fi
8918
8919		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921		fi
8922
8923		CFLAGS="$CFLAGS -Wtrigraphs"
8924
8925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8926$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8927		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs`
8928		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8929  $as_echo_n "(cached) " >&6
8930else
8931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932/* end confdefs.h.  */
8933int i;
8934int
8935main ()
8936{
8937
8938  ;
8939  return 0;
8940}
8941_ACEOF
8942if ac_fn_c_try_link "$LINENO"; then :
8943  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8944else
8945  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8946fi
8947rm -f core conftest.err conftest.$ac_objext \
8948    conftest$ac_exeext conftest.$ac_ext
8949fi
8950
8951
8952		CFLAGS="$xorg_testset_save_CFLAGS"
8953
8954		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8956$as_echo "$supported" >&6; }
8957		if test "$supported" = "yes" ; then
8958			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8959			found="yes"
8960		fi
8961	fi
8962
8963
8964
8965
8966
8967
8968
8969xorg_testset_save_CFLAGS="$CFLAGS"
8970
8971if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8974$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8975if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8976  $as_echo_n "(cached) " >&6
8977else
8978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979/* end confdefs.h.  */
8980int i;
8981_ACEOF
8982if ac_fn_c_try_compile "$LINENO"; then :
8983  xorg_cv_cc_flag_unknown_warning_option=yes
8984else
8985  xorg_cv_cc_flag_unknown_warning_option=no
8986fi
8987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988fi
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8990$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8991	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8992	CFLAGS="$xorg_testset_save_CFLAGS"
8993fi
8994
8995if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8996	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998	fi
8999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9001$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9002if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9003  $as_echo_n "(cached) " >&6
9004else
9005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006/* end confdefs.h.  */
9007int i;
9008_ACEOF
9009if ac_fn_c_try_compile "$LINENO"; then :
9010  xorg_cv_cc_flag_unused_command_line_argument=yes
9011else
9012  xorg_cv_cc_flag_unused_command_line_argument=no
9013fi
9014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015fi
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9017$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9018	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9019	CFLAGS="$xorg_testset_save_CFLAGS"
9020fi
9021
9022found="no"
9023
9024	if test $found = "no" ; then
9025		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027		fi
9028
9029		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031		fi
9032
9033		CFLAGS="$CFLAGS -Warray-bounds"
9034
9035		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9036$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9037		cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds`
9038		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9039  $as_echo_n "(cached) " >&6
9040else
9041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042/* end confdefs.h.  */
9043int i;
9044int
9045main ()
9046{
9047
9048  ;
9049  return 0;
9050}
9051_ACEOF
9052if ac_fn_c_try_link "$LINENO"; then :
9053  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9054else
9055  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9056fi
9057rm -f core conftest.err conftest.$ac_objext \
9058    conftest$ac_exeext conftest.$ac_ext
9059fi
9060
9061
9062		CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9065		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066$as_echo "$supported" >&6; }
9067		if test "$supported" = "yes" ; then
9068			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9069			found="yes"
9070		fi
9071	fi
9072
9073
9074
9075
9076
9077
9078
9079xorg_testset_save_CFLAGS="$CFLAGS"
9080
9081if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9082	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9086  $as_echo_n "(cached) " >&6
9087else
9088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089/* end confdefs.h.  */
9090int i;
9091_ACEOF
9092if ac_fn_c_try_compile "$LINENO"; then :
9093  xorg_cv_cc_flag_unknown_warning_option=yes
9094else
9095  xorg_cv_cc_flag_unknown_warning_option=no
9096fi
9097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098fi
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9101	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9102	CFLAGS="$xorg_testset_save_CFLAGS"
9103fi
9104
9105if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9106	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9107		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108	fi
9109	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9113  $as_echo_n "(cached) " >&6
9114else
9115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116/* end confdefs.h.  */
9117int i;
9118_ACEOF
9119if ac_fn_c_try_compile "$LINENO"; then :
9120  xorg_cv_cc_flag_unused_command_line_argument=yes
9121else
9122  xorg_cv_cc_flag_unused_command_line_argument=no
9123fi
9124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125fi
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9128	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9129	CFLAGS="$xorg_testset_save_CFLAGS"
9130fi
9131
9132found="no"
9133
9134	if test $found = "no" ; then
9135		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9136			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137		fi
9138
9139		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9140			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141		fi
9142
9143		CFLAGS="$CFLAGS -Wwrite-strings"
9144
9145		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9146$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9147		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings`
9148		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9149  $as_echo_n "(cached) " >&6
9150else
9151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152/* end confdefs.h.  */
9153int i;
9154int
9155main ()
9156{
9157
9158  ;
9159  return 0;
9160}
9161_ACEOF
9162if ac_fn_c_try_link "$LINENO"; then :
9163  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9164else
9165  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9166fi
9167rm -f core conftest.err conftest.$ac_objext \
9168    conftest$ac_exeext conftest.$ac_ext
9169fi
9170
9171
9172		CFLAGS="$xorg_testset_save_CFLAGS"
9173
9174		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9175		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9176$as_echo "$supported" >&6; }
9177		if test "$supported" = "yes" ; then
9178			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9179			found="yes"
9180		fi
9181	fi
9182
9183
9184
9185
9186
9187
9188
9189xorg_testset_save_CFLAGS="$CFLAGS"
9190
9191if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9192	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9196  $as_echo_n "(cached) " >&6
9197else
9198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199/* end confdefs.h.  */
9200int i;
9201_ACEOF
9202if ac_fn_c_try_compile "$LINENO"; then :
9203  xorg_cv_cc_flag_unknown_warning_option=yes
9204else
9205  xorg_cv_cc_flag_unknown_warning_option=no
9206fi
9207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9208fi
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9211	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9212	CFLAGS="$xorg_testset_save_CFLAGS"
9213fi
9214
9215if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9216	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9218	fi
9219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226/* end confdefs.h.  */
9227int i;
9228_ACEOF
9229if ac_fn_c_try_compile "$LINENO"; then :
9230  xorg_cv_cc_flag_unused_command_line_argument=yes
9231else
9232  xorg_cv_cc_flag_unused_command_line_argument=no
9233fi
9234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235fi
9236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9238	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9239	CFLAGS="$xorg_testset_save_CFLAGS"
9240fi
9241
9242found="no"
9243
9244	if test $found = "no" ; then
9245		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247		fi
9248
9249		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251		fi
9252
9253		CFLAGS="$CFLAGS -Waddress"
9254
9255		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9256$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9257		cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress`
9258		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9259  $as_echo_n "(cached) " >&6
9260else
9261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262/* end confdefs.h.  */
9263int i;
9264int
9265main ()
9266{
9267
9268  ;
9269  return 0;
9270}
9271_ACEOF
9272if ac_fn_c_try_link "$LINENO"; then :
9273  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9274else
9275  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9276fi
9277rm -f core conftest.err conftest.$ac_objext \
9278    conftest$ac_exeext conftest.$ac_ext
9279fi
9280
9281
9282		CFLAGS="$xorg_testset_save_CFLAGS"
9283
9284		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9285		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9286$as_echo "$supported" >&6; }
9287		if test "$supported" = "yes" ; then
9288			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9289			found="yes"
9290		fi
9291	fi
9292
9293
9294
9295
9296
9297
9298
9299xorg_testset_save_CFLAGS="$CFLAGS"
9300
9301if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9302	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9306  $as_echo_n "(cached) " >&6
9307else
9308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309/* end confdefs.h.  */
9310int i;
9311_ACEOF
9312if ac_fn_c_try_compile "$LINENO"; then :
9313  xorg_cv_cc_flag_unknown_warning_option=yes
9314else
9315  xorg_cv_cc_flag_unknown_warning_option=no
9316fi
9317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318fi
9319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9321	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9322	CFLAGS="$xorg_testset_save_CFLAGS"
9323fi
9324
9325if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9326	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328	fi
9329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9333  $as_echo_n "(cached) " >&6
9334else
9335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336/* end confdefs.h.  */
9337int i;
9338_ACEOF
9339if ac_fn_c_try_compile "$LINENO"; then :
9340  xorg_cv_cc_flag_unused_command_line_argument=yes
9341else
9342  xorg_cv_cc_flag_unused_command_line_argument=no
9343fi
9344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345fi
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9348	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9349	CFLAGS="$xorg_testset_save_CFLAGS"
9350fi
9351
9352found="no"
9353
9354	if test $found = "no" ; then
9355		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9356			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357		fi
9358
9359		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9360			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361		fi
9362
9363		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9364
9365		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9366$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9367		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast`
9368		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9369  $as_echo_n "(cached) " >&6
9370else
9371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372/* end confdefs.h.  */
9373int i;
9374int
9375main ()
9376{
9377
9378  ;
9379  return 0;
9380}
9381_ACEOF
9382if ac_fn_c_try_link "$LINENO"; then :
9383  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9384else
9385  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9386fi
9387rm -f core conftest.err conftest.$ac_objext \
9388    conftest$ac_exeext conftest.$ac_ext
9389fi
9390
9391
9392		CFLAGS="$xorg_testset_save_CFLAGS"
9393
9394		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9395		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9396$as_echo "$supported" >&6; }
9397		if test "$supported" = "yes" ; then
9398			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9399			found="yes"
9400		fi
9401	fi
9402
9403
9404
9405
9406
9407
9408
9409xorg_testset_save_CFLAGS="$CFLAGS"
9410
9411if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9412	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9416  $as_echo_n "(cached) " >&6
9417else
9418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419/* end confdefs.h.  */
9420int i;
9421_ACEOF
9422if ac_fn_c_try_compile "$LINENO"; then :
9423  xorg_cv_cc_flag_unknown_warning_option=yes
9424else
9425  xorg_cv_cc_flag_unknown_warning_option=no
9426fi
9427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428fi
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9431	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9432	CFLAGS="$xorg_testset_save_CFLAGS"
9433fi
9434
9435if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9436	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9437		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9438	fi
9439	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9443  $as_echo_n "(cached) " >&6
9444else
9445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446/* end confdefs.h.  */
9447int i;
9448_ACEOF
9449if ac_fn_c_try_compile "$LINENO"; then :
9450  xorg_cv_cc_flag_unused_command_line_argument=yes
9451else
9452  xorg_cv_cc_flag_unused_command_line_argument=no
9453fi
9454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9455fi
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9458	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9459	CFLAGS="$xorg_testset_save_CFLAGS"
9460fi
9461
9462found="no"
9463
9464	if test $found = "no" ; then
9465		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9467		fi
9468
9469		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9471		fi
9472
9473		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9474
9475		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9476$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9477		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast`
9478		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9479  $as_echo_n "(cached) " >&6
9480else
9481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482/* end confdefs.h.  */
9483int i;
9484int
9485main ()
9486{
9487
9488  ;
9489  return 0;
9490}
9491_ACEOF
9492if ac_fn_c_try_link "$LINENO"; then :
9493  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9494else
9495  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9496fi
9497rm -f core conftest.err conftest.$ac_objext \
9498    conftest$ac_exeext conftest.$ac_ext
9499fi
9500
9501
9502		CFLAGS="$xorg_testset_save_CFLAGS"
9503
9504		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9505		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9506$as_echo "$supported" >&6; }
9507		if test "$supported" = "yes" ; then
9508			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9509			found="yes"
9510		fi
9511	fi
9512
9513
9514fi
9515
9516
9517
9518
9519
9520
9521CWARNFLAGS="$BASE_CFLAGS"
9522if  test "x$GCC" = xyes ; then
9523    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9524fi
9525
9526
9527
9528
9529
9530
9531# Check whether --enable-strict-compilation was given.
9532if test "${enable_strict_compilation+set}" = set; then :
9533  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9534else
9535  STRICT_COMPILE=no
9536fi
9537
9538
9539STRICT_CFLAGS=""
9540
9541
9542
9543
9544
9545xorg_testset_save_CFLAGS="$CFLAGS"
9546
9547if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9548	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9550$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9551if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9552  $as_echo_n "(cached) " >&6
9553else
9554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555/* end confdefs.h.  */
9556int i;
9557_ACEOF
9558if ac_fn_c_try_compile "$LINENO"; then :
9559  xorg_cv_cc_flag_unknown_warning_option=yes
9560else
9561  xorg_cv_cc_flag_unknown_warning_option=no
9562fi
9563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564fi
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9566$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9567	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9568	CFLAGS="$xorg_testset_save_CFLAGS"
9569fi
9570
9571if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9572	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9573		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9574	fi
9575	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9577$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9578if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9579  $as_echo_n "(cached) " >&6
9580else
9581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h.  */
9583int i;
9584_ACEOF
9585if ac_fn_c_try_compile "$LINENO"; then :
9586  xorg_cv_cc_flag_unused_command_line_argument=yes
9587else
9588  xorg_cv_cc_flag_unused_command_line_argument=no
9589fi
9590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591fi
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9593$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9594	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9595	CFLAGS="$xorg_testset_save_CFLAGS"
9596fi
9597
9598found="no"
9599
9600	if test $found = "no" ; then
9601		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9603		fi
9604
9605		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607		fi
9608
9609		CFLAGS="$CFLAGS -pedantic"
9610
9611		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9612$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9613		cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic`
9614		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9615  $as_echo_n "(cached) " >&6
9616else
9617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618/* end confdefs.h.  */
9619int i;
9620int
9621main ()
9622{
9623
9624  ;
9625  return 0;
9626}
9627_ACEOF
9628if ac_fn_c_try_link "$LINENO"; then :
9629  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9630else
9631  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9632fi
9633rm -f core conftest.err conftest.$ac_objext \
9634    conftest$ac_exeext conftest.$ac_ext
9635fi
9636
9637
9638		CFLAGS="$xorg_testset_save_CFLAGS"
9639
9640		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9641		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9642$as_echo "$supported" >&6; }
9643		if test "$supported" = "yes" ; then
9644			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9645			found="yes"
9646		fi
9647	fi
9648
9649
9650
9651
9652
9653
9654
9655xorg_testset_save_CFLAGS="$CFLAGS"
9656
9657if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9658	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9662  $as_echo_n "(cached) " >&6
9663else
9664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665/* end confdefs.h.  */
9666int i;
9667_ACEOF
9668if ac_fn_c_try_compile "$LINENO"; then :
9669  xorg_cv_cc_flag_unknown_warning_option=yes
9670else
9671  xorg_cv_cc_flag_unknown_warning_option=no
9672fi
9673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674fi
9675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9677	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9678	CFLAGS="$xorg_testset_save_CFLAGS"
9679fi
9680
9681if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9682	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9683		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9684	fi
9685	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9689  $as_echo_n "(cached) " >&6
9690else
9691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692/* end confdefs.h.  */
9693int i;
9694_ACEOF
9695if ac_fn_c_try_compile "$LINENO"; then :
9696  xorg_cv_cc_flag_unused_command_line_argument=yes
9697else
9698  xorg_cv_cc_flag_unused_command_line_argument=no
9699fi
9700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701fi
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9704	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9705	CFLAGS="$xorg_testset_save_CFLAGS"
9706fi
9707
9708found="no"
9709
9710	if test $found = "no" ; then
9711		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9713		fi
9714
9715		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9717		fi
9718
9719		CFLAGS="$CFLAGS -Werror"
9720
9721		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9722$as_echo_n "checking if $CC supports -Werror... " >&6; }
9723		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror`
9724		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9725  $as_echo_n "(cached) " >&6
9726else
9727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728/* end confdefs.h.  */
9729int i;
9730int
9731main ()
9732{
9733
9734  ;
9735  return 0;
9736}
9737_ACEOF
9738if ac_fn_c_try_link "$LINENO"; then :
9739  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9740else
9741  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9742fi
9743rm -f core conftest.err conftest.$ac_objext \
9744    conftest$ac_exeext conftest.$ac_ext
9745fi
9746
9747
9748		CFLAGS="$xorg_testset_save_CFLAGS"
9749
9750		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9751		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9752$as_echo "$supported" >&6; }
9753		if test "$supported" = "yes" ; then
9754			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9755			found="yes"
9756		fi
9757	fi
9758
9759	if test $found = "no" ; then
9760		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9761			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762		fi
9763
9764		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9765			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9766		fi
9767
9768		CFLAGS="$CFLAGS -errwarn"
9769
9770		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9771$as_echo_n "checking if $CC supports -errwarn... " >&6; }
9772		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn`
9773		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9774  $as_echo_n "(cached) " >&6
9775else
9776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h.  */
9778int i;
9779int
9780main ()
9781{
9782
9783  ;
9784  return 0;
9785}
9786_ACEOF
9787if ac_fn_c_try_link "$LINENO"; then :
9788  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9789else
9790  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9791fi
9792rm -f core conftest.err conftest.$ac_objext \
9793    conftest$ac_exeext conftest.$ac_ext
9794fi
9795
9796
9797		CFLAGS="$xorg_testset_save_CFLAGS"
9798
9799		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9800		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9801$as_echo "$supported" >&6; }
9802		if test "$supported" = "yes" ; then
9803			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9804			found="yes"
9805		fi
9806	fi
9807
9808
9809
9810# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9811# activate it with -Werror, so we add it here explicitly.
9812
9813
9814
9815
9816
9817xorg_testset_save_CFLAGS="$CFLAGS"
9818
9819if test "x$xorg_testset_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_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9840	CFLAGS="$xorg_testset_save_CFLAGS"
9841fi
9842
9843if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9844	if test "x$xorg_testset_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_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 -Werror=attributes"
9882
9883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9884$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9885		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes`
9886		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 `$as_echo "$cacheid" | $as_tr_sh`=yes
9902else
9903  eval `$as_echo "$cacheid" | $as_tr_sh`=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=$`$as_echo "$cacheid" | $as_tr_sh`
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 -Werror=attributes"
9917			found="yes"
9918		fi
9919	fi
9920
9921
9922
9923if test "x$STRICT_COMPILE" = "xyes"; then
9924    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9925    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9926fi
9927
9928
9929
9930
9931
9932
9933cat >>confdefs.h <<_ACEOF
9934#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9935_ACEOF
9936
9937	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9938	if test "x$PVM" = "x"; then
9939		PVM="0"
9940	fi
9941
9942cat >>confdefs.h <<_ACEOF
9943#define PACKAGE_VERSION_MINOR $PVM
9944_ACEOF
9945
9946	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9947	if test "x$PVP" = "x"; then
9948		PVP="0"
9949	fi
9950
9951cat >>confdefs.h <<_ACEOF
9952#define PACKAGE_VERSION_PATCHLEVEL $PVP
9953_ACEOF
9954
9955
9956
9957CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9958mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9959|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9960echo 'git directory not found: installing possibly empty changelog.' >&2)"
9961
9962
9963
9964
9965macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9966INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9967mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9968|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9969echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9970
9971
9972
9973
9974
9975
9976if test x$APP_MAN_SUFFIX = x    ; then
9977    APP_MAN_SUFFIX=1
9978fi
9979if test x$APP_MAN_DIR = x    ; then
9980    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9981fi
9982
9983if test x$LIB_MAN_SUFFIX = x    ; then
9984    LIB_MAN_SUFFIX=3
9985fi
9986if test x$LIB_MAN_DIR = x    ; then
9987    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9988fi
9989
9990if test x$FILE_MAN_SUFFIX = x    ; then
9991    case $host_os in
9992	solaris*)	FILE_MAN_SUFFIX=4  ;;
9993	*)		FILE_MAN_SUFFIX=5  ;;
9994    esac
9995fi
9996if test x$FILE_MAN_DIR = x    ; then
9997    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9998fi
9999
10000if test x$MISC_MAN_SUFFIX = x    ; then
10001    case $host_os in
10002	solaris*)	MISC_MAN_SUFFIX=5  ;;
10003	*)		MISC_MAN_SUFFIX=7  ;;
10004    esac
10005fi
10006if test x$MISC_MAN_DIR = x    ; then
10007    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10008fi
10009
10010if test x$DRIVER_MAN_SUFFIX = x    ; then
10011    case $host_os in
10012	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10013	*)		DRIVER_MAN_SUFFIX=4  ;;
10014    esac
10015fi
10016if test x$DRIVER_MAN_DIR = x    ; then
10017    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10018fi
10019
10020if test x$ADMIN_MAN_SUFFIX = x    ; then
10021    case $host_os in
10022	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10023	*)		ADMIN_MAN_SUFFIX=8  ;;
10024    esac
10025fi
10026if test x$ADMIN_MAN_DIR = x    ; then
10027    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10028fi
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044XORG_MAN_PAGE="X Version 11"
10045
10046MAN_SUBSTS="\
10047	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10048	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10049	-e 's|__xservername__|Xorg|g' \
10050	-e 's|__xconfigfile__|xorg.conf|g' \
10051	-e 's|__projectroot__|\$(prefix)|g' \
10052	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10053	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10054	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10055	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10056	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10057	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10058	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10059
10060
10061
10062# Check whether --enable-silent-rules was given.
10063if test "${enable_silent_rules+set}" = set; then :
10064  enableval=$enable_silent_rules;
10065fi
10066
10067case $enable_silent_rules in
10068yes) AM_DEFAULT_VERBOSITY=0;;
10069no)  AM_DEFAULT_VERBOSITY=1;;
10070*)   AM_DEFAULT_VERBOSITY=0;;
10071esac
10072AM_BACKSLASH='\'
10073
10074
10075
10076ac_config_headers="$ac_config_headers config.h"
10077
10078
10079
10080
10081for ac_func in strlcpy getpid
10082do :
10083  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10084ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10085if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10086  cat >>confdefs.h <<_ACEOF
10087#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10088_ACEOF
10089
10090fi
10091done
10092
10093
10094
10095      if test "X$prefix" = "XNONE"; then
10096    acl_final_prefix="$ac_default_prefix"
10097  else
10098    acl_final_prefix="$prefix"
10099  fi
10100  if test "X$exec_prefix" = "XNONE"; then
10101    acl_final_exec_prefix='${prefix}'
10102  else
10103    acl_final_exec_prefix="$exec_prefix"
10104  fi
10105  acl_save_prefix="$prefix"
10106  prefix="$acl_final_prefix"
10107  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10108  prefix="$acl_save_prefix"
10109
10110
10111# Check whether --with-gnu-ld was given.
10112if test "${with_gnu_ld+set}" = set; then :
10113  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10114else
10115  with_gnu_ld=no
10116fi
10117
10118# Prepare PATH_SEPARATOR.
10119# The user is always right.
10120if test "${PATH_SEPARATOR+set}" != set; then
10121  echo "#! /bin/sh" >conf$$.sh
10122  echo  "exit 0"   >>conf$$.sh
10123  chmod +x conf$$.sh
10124  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10125    PATH_SEPARATOR=';'
10126  else
10127    PATH_SEPARATOR=:
10128  fi
10129  rm -f conf$$.sh
10130fi
10131ac_prog=ld
10132if test "$GCC" = yes; then
10133  # Check if gcc -print-prog-name=ld gives a path.
10134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10135$as_echo_n "checking for ld used by GCC... " >&6; }
10136  case $host in
10137  *-*-mingw*)
10138    # gcc leaves a trailing carriage return which upsets mingw
10139    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10140  *)
10141    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10142  esac
10143  case $ac_prog in
10144    # Accept absolute paths.
10145    [\\/]* | [A-Za-z]:[\\/]*)
10146      re_direlt='/[^/][^/]*/\.\./'
10147      # Canonicalize the path of ld
10148      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10149      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10150	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10151      done
10152      test -z "$LD" && LD="$ac_prog"
10153      ;;
10154  "")
10155    # If it fails, then pretend we aren't using GCC.
10156    ac_prog=ld
10157    ;;
10158  *)
10159    # If it is relative, then search for the first ld in PATH.
10160    with_gnu_ld=unknown
10161    ;;
10162  esac
10163elif test "$with_gnu_ld" = yes; then
10164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10165$as_echo_n "checking for GNU ld... " >&6; }
10166else
10167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10168$as_echo_n "checking for non-GNU ld... " >&6; }
10169fi
10170if ${acl_cv_path_LD+:} false; then :
10171  $as_echo_n "(cached) " >&6
10172else
10173  if test -z "$LD"; then
10174  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10175  for ac_dir in $PATH; do
10176    test -z "$ac_dir" && ac_dir=.
10177    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10178      acl_cv_path_LD="$ac_dir/$ac_prog"
10179      # Check to see if the program is GNU ld.  I'd rather use --version,
10180      # but apparently some GNU ld's only accept -v.
10181      # Break only if it was the GNU/non-GNU ld that we prefer.
10182      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10183      *GNU* | *'with BFD'*)
10184	test "$with_gnu_ld" != no && break ;;
10185      *)
10186	test "$with_gnu_ld" != yes && break ;;
10187      esac
10188    fi
10189  done
10190  IFS="$ac_save_ifs"
10191else
10192  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10193fi
10194fi
10195
10196LD="$acl_cv_path_LD"
10197if test -n "$LD"; then
10198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10199$as_echo "$LD" >&6; }
10200else
10201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202$as_echo "no" >&6; }
10203fi
10204test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10206$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10207if ${acl_cv_prog_gnu_ld+:} false; then :
10208  $as_echo_n "(cached) " >&6
10209else
10210  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10211case `$LD -v 2>&1 </dev/null` in
10212*GNU* | *'with BFD'*)
10213  acl_cv_prog_gnu_ld=yes ;;
10214*)
10215  acl_cv_prog_gnu_ld=no ;;
10216esac
10217fi
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10219$as_echo "$acl_cv_prog_gnu_ld" >&6; }
10220with_gnu_ld=$acl_cv_prog_gnu_ld
10221
10222
10223
10224
10225                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10226$as_echo_n "checking for shared library run path origin... " >&6; }
10227if ${acl_cv_rpath+:} false; then :
10228  $as_echo_n "(cached) " >&6
10229else
10230
10231    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10232    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10233    . ./conftest.sh
10234    rm -f ./conftest.sh
10235    acl_cv_rpath=done
10236
10237fi
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10239$as_echo "$acl_cv_rpath" >&6; }
10240  wl="$acl_cv_wl"
10241  libext="$acl_cv_libext"
10242  shlibext="$acl_cv_shlibext"
10243  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10244  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10245  hardcode_direct="$acl_cv_hardcode_direct"
10246  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10247    # Check whether --enable-rpath was given.
10248if test "${enable_rpath+set}" = set; then :
10249  enableval=$enable_rpath; :
10250else
10251  enable_rpath=yes
10252fi
10253
10254
10255
10256                  acl_libdirstem=lib
10257  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10258  if test -n "$searchpath"; then
10259    acl_save_IFS="${IFS= 	}"; IFS=":"
10260    for searchdir in $searchpath; do
10261      if test -d "$searchdir"; then
10262        case "$searchdir" in
10263          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10264          *) searchdir=`cd "$searchdir" && pwd`
10265             case "$searchdir" in
10266               */lib64 ) acl_libdirstem=lib64 ;;
10267             esac ;;
10268        esac
10269      fi
10270    done
10271    IFS="$acl_save_IFS"
10272  fi
10273
10274
10275
10276
10277
10278
10279
10280
10281    use_additional=yes
10282
10283  acl_save_prefix="$prefix"
10284  prefix="$acl_final_prefix"
10285  acl_save_exec_prefix="$exec_prefix"
10286  exec_prefix="$acl_final_exec_prefix"
10287
10288    eval additional_includedir=\"$includedir\"
10289    eval additional_libdir=\"$libdir\"
10290
10291  exec_prefix="$acl_save_exec_prefix"
10292  prefix="$acl_save_prefix"
10293
10294
10295# Check whether --with-libiconv-prefix was given.
10296if test "${with_libiconv_prefix+set}" = set; then :
10297  withval=$with_libiconv_prefix;
10298    if test "X$withval" = "Xno"; then
10299      use_additional=no
10300    else
10301      if test "X$withval" = "X"; then
10302
10303  acl_save_prefix="$prefix"
10304  prefix="$acl_final_prefix"
10305  acl_save_exec_prefix="$exec_prefix"
10306  exec_prefix="$acl_final_exec_prefix"
10307
10308          eval additional_includedir=\"$includedir\"
10309          eval additional_libdir=\"$libdir\"
10310
10311  exec_prefix="$acl_save_exec_prefix"
10312  prefix="$acl_save_prefix"
10313
10314      else
10315        additional_includedir="$withval/include"
10316        additional_libdir="$withval/$acl_libdirstem"
10317      fi
10318    fi
10319
10320fi
10321
10322      LIBICONV=
10323  LTLIBICONV=
10324  INCICONV=
10325  rpathdirs=
10326  ltrpathdirs=
10327  names_already_handled=
10328  names_next_round='iconv '
10329  while test -n "$names_next_round"; do
10330    names_this_round="$names_next_round"
10331    names_next_round=
10332    for name in $names_this_round; do
10333      already_handled=
10334      for n in $names_already_handled; do
10335        if test "$n" = "$name"; then
10336          already_handled=yes
10337          break
10338        fi
10339      done
10340      if test -z "$already_handled"; then
10341        names_already_handled="$names_already_handled $name"
10342                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10343        eval value=\"\$HAVE_LIB$uppername\"
10344        if test -n "$value"; then
10345          if test "$value" = yes; then
10346            eval value=\"\$LIB$uppername\"
10347            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10348            eval value=\"\$LTLIB$uppername\"
10349            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10350          else
10351                                    :
10352          fi
10353        else
10354                              found_dir=
10355          found_la=
10356          found_so=
10357          found_a=
10358          if test $use_additional = yes; then
10359            if test -n "$shlibext" \
10360               && { test -f "$additional_libdir/lib$name.$shlibext" \
10361                    || { test "$shlibext" = dll \
10362                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
10363              found_dir="$additional_libdir"
10364              if test -f "$additional_libdir/lib$name.$shlibext"; then
10365                found_so="$additional_libdir/lib$name.$shlibext"
10366              else
10367                found_so="$additional_libdir/lib$name.dll.a"
10368              fi
10369              if test -f "$additional_libdir/lib$name.la"; then
10370                found_la="$additional_libdir/lib$name.la"
10371              fi
10372            else
10373              if test -f "$additional_libdir/lib$name.$libext"; then
10374                found_dir="$additional_libdir"
10375                found_a="$additional_libdir/lib$name.$libext"
10376                if test -f "$additional_libdir/lib$name.la"; then
10377                  found_la="$additional_libdir/lib$name.la"
10378                fi
10379              fi
10380            fi
10381          fi
10382          if test "X$found_dir" = "X"; then
10383            for x in $LDFLAGS $LTLIBICONV; do
10384
10385  acl_save_prefix="$prefix"
10386  prefix="$acl_final_prefix"
10387  acl_save_exec_prefix="$exec_prefix"
10388  exec_prefix="$acl_final_exec_prefix"
10389  eval x=\"$x\"
10390  exec_prefix="$acl_save_exec_prefix"
10391  prefix="$acl_save_prefix"
10392
10393              case "$x" in
10394                -L*)
10395                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10396                  if test -n "$shlibext" \
10397                     && { test -f "$dir/lib$name.$shlibext" \
10398                          || { test "$shlibext" = dll \
10399                               && test -f "$dir/lib$name.dll.a"; }; }; then
10400                    found_dir="$dir"
10401                    if test -f "$dir/lib$name.$shlibext"; then
10402                      found_so="$dir/lib$name.$shlibext"
10403                    else
10404                      found_so="$dir/lib$name.dll.a"
10405                    fi
10406                    if test -f "$dir/lib$name.la"; then
10407                      found_la="$dir/lib$name.la"
10408                    fi
10409                  else
10410                    if test -f "$dir/lib$name.$libext"; then
10411                      found_dir="$dir"
10412                      found_a="$dir/lib$name.$libext"
10413                      if test -f "$dir/lib$name.la"; then
10414                        found_la="$dir/lib$name.la"
10415                      fi
10416                    fi
10417                  fi
10418                  ;;
10419              esac
10420              if test "X$found_dir" != "X"; then
10421                break
10422              fi
10423            done
10424          fi
10425          if test "X$found_dir" != "X"; then
10426                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10427            if test "X$found_so" != "X"; then
10428                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10429                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10430              else
10431                                                                                haveit=
10432                for x in $ltrpathdirs; do
10433                  if test "X$x" = "X$found_dir"; then
10434                    haveit=yes
10435                    break
10436                  fi
10437                done
10438                if test -z "$haveit"; then
10439                  ltrpathdirs="$ltrpathdirs $found_dir"
10440                fi
10441                                if test "$hardcode_direct" = yes; then
10442                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10443                else
10444                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10445                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10446                                                            haveit=
10447                    for x in $rpathdirs; do
10448                      if test "X$x" = "X$found_dir"; then
10449                        haveit=yes
10450                        break
10451                      fi
10452                    done
10453                    if test -z "$haveit"; then
10454                      rpathdirs="$rpathdirs $found_dir"
10455                    fi
10456                  else
10457                                                                                haveit=
10458                    for x in $LDFLAGS $LIBICONV; do
10459
10460  acl_save_prefix="$prefix"
10461  prefix="$acl_final_prefix"
10462  acl_save_exec_prefix="$exec_prefix"
10463  exec_prefix="$acl_final_exec_prefix"
10464  eval x=\"$x\"
10465  exec_prefix="$acl_save_exec_prefix"
10466  prefix="$acl_save_prefix"
10467
10468                      if test "X$x" = "X-L$found_dir"; then
10469                        haveit=yes
10470                        break
10471                      fi
10472                    done
10473                    if test -z "$haveit"; then
10474                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10475                    fi
10476                    if test "$hardcode_minus_L" != no; then
10477                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10478                    else
10479                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10480                    fi
10481                  fi
10482                fi
10483              fi
10484            else
10485              if test "X$found_a" != "X"; then
10486                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10487              else
10488                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10489              fi
10490            fi
10491                        additional_includedir=
10492            case "$found_dir" in
10493              */$acl_libdirstem | */$acl_libdirstem/)
10494                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10495                additional_includedir="$basedir/include"
10496                ;;
10497            esac
10498            if test "X$additional_includedir" != "X"; then
10499                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10500                haveit=
10501                if test "X$additional_includedir" = "X/usr/local/include"; then
10502                  if test -n "$GCC"; then
10503                    case $host_os in
10504                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10505                    esac
10506                  fi
10507                fi
10508                if test -z "$haveit"; then
10509                  for x in $CPPFLAGS $INCICONV; do
10510
10511  acl_save_prefix="$prefix"
10512  prefix="$acl_final_prefix"
10513  acl_save_exec_prefix="$exec_prefix"
10514  exec_prefix="$acl_final_exec_prefix"
10515  eval x=\"$x\"
10516  exec_prefix="$acl_save_exec_prefix"
10517  prefix="$acl_save_prefix"
10518
10519                    if test "X$x" = "X-I$additional_includedir"; then
10520                      haveit=yes
10521                      break
10522                    fi
10523                  done
10524                  if test -z "$haveit"; then
10525                    if test -d "$additional_includedir"; then
10526                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10527                    fi
10528                  fi
10529                fi
10530              fi
10531            fi
10532                        if test -n "$found_la"; then
10533                                                        save_libdir="$libdir"
10534              case "$found_la" in
10535                */* | *\\*) . "$found_la" ;;
10536                *) . "./$found_la" ;;
10537              esac
10538              libdir="$save_libdir"
10539                            for dep in $dependency_libs; do
10540                case "$dep" in
10541                  -L*)
10542                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10543                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10544                      haveit=
10545                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10546                        if test -n "$GCC"; then
10547                          case $host_os in
10548                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10549                          esac
10550                        fi
10551                      fi
10552                      if test -z "$haveit"; then
10553                        haveit=
10554                        for x in $LDFLAGS $LIBICONV; do
10555
10556  acl_save_prefix="$prefix"
10557  prefix="$acl_final_prefix"
10558  acl_save_exec_prefix="$exec_prefix"
10559  exec_prefix="$acl_final_exec_prefix"
10560  eval x=\"$x\"
10561  exec_prefix="$acl_save_exec_prefix"
10562  prefix="$acl_save_prefix"
10563
10564                          if test "X$x" = "X-L$additional_libdir"; then
10565                            haveit=yes
10566                            break
10567                          fi
10568                        done
10569                        if test -z "$haveit"; then
10570                          if test -d "$additional_libdir"; then
10571                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10572                          fi
10573                        fi
10574                        haveit=
10575                        for x in $LDFLAGS $LTLIBICONV; do
10576
10577  acl_save_prefix="$prefix"
10578  prefix="$acl_final_prefix"
10579  acl_save_exec_prefix="$exec_prefix"
10580  exec_prefix="$acl_final_exec_prefix"
10581  eval x=\"$x\"
10582  exec_prefix="$acl_save_exec_prefix"
10583  prefix="$acl_save_prefix"
10584
10585                          if test "X$x" = "X-L$additional_libdir"; then
10586                            haveit=yes
10587                            break
10588                          fi
10589                        done
10590                        if test -z "$haveit"; then
10591                          if test -d "$additional_libdir"; then
10592                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10593                          fi
10594                        fi
10595                      fi
10596                    fi
10597                    ;;
10598                  -R*)
10599                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10600                    if test "$enable_rpath" != no; then
10601                                                                  haveit=
10602                      for x in $rpathdirs; do
10603                        if test "X$x" = "X$dir"; then
10604                          haveit=yes
10605                          break
10606                        fi
10607                      done
10608                      if test -z "$haveit"; then
10609                        rpathdirs="$rpathdirs $dir"
10610                      fi
10611                                                                  haveit=
10612                      for x in $ltrpathdirs; do
10613                        if test "X$x" = "X$dir"; then
10614                          haveit=yes
10615                          break
10616                        fi
10617                      done
10618                      if test -z "$haveit"; then
10619                        ltrpathdirs="$ltrpathdirs $dir"
10620                      fi
10621                    fi
10622                    ;;
10623                  -l*)
10624                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10625                    ;;
10626                  *.la)
10627                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10628                    ;;
10629                  *)
10630                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10631                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10632                    ;;
10633                esac
10634              done
10635            fi
10636          else
10637                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10638            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10639          fi
10640        fi
10641      fi
10642    done
10643  done
10644  if test "X$rpathdirs" != "X"; then
10645    if test -n "$hardcode_libdir_separator"; then
10646                        alldirs=
10647      for found_dir in $rpathdirs; do
10648        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10649      done
10650            acl_save_libdir="$libdir"
10651      libdir="$alldirs"
10652      eval flag=\"$hardcode_libdir_flag_spec\"
10653      libdir="$acl_save_libdir"
10654      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10655    else
10656            for found_dir in $rpathdirs; do
10657        acl_save_libdir="$libdir"
10658        libdir="$found_dir"
10659        eval flag=\"$hardcode_libdir_flag_spec\"
10660        libdir="$acl_save_libdir"
10661        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10662      done
10663    fi
10664  fi
10665  if test "X$ltrpathdirs" != "X"; then
10666            for found_dir in $ltrpathdirs; do
10667      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10668    done
10669  fi
10670
10671
10672
10673
10674
10675
10676
10677          am_save_CPPFLAGS="$CPPFLAGS"
10678
10679  for element in $INCICONV; do
10680    haveit=
10681    for x in $CPPFLAGS; do
10682
10683  acl_save_prefix="$prefix"
10684  prefix="$acl_final_prefix"
10685  acl_save_exec_prefix="$exec_prefix"
10686  exec_prefix="$acl_final_exec_prefix"
10687  eval x=\"$x\"
10688  exec_prefix="$acl_save_exec_prefix"
10689  prefix="$acl_save_prefix"
10690
10691      if test "X$x" = "X$element"; then
10692        haveit=yes
10693        break
10694      fi
10695    done
10696    if test -z "$haveit"; then
10697      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10698    fi
10699  done
10700
10701
10702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10703$as_echo_n "checking for iconv... " >&6; }
10704if ${am_cv_func_iconv+:} false; then :
10705  $as_echo_n "(cached) " >&6
10706else
10707
10708    am_cv_func_iconv="no, consider installing GNU libiconv"
10709    am_cv_lib_iconv=no
10710    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711/* end confdefs.h.  */
10712#include <stdlib.h>
10713#include <iconv.h>
10714int
10715main ()
10716{
10717iconv_t cd = iconv_open("","");
10718       iconv(cd,NULL,NULL,NULL,NULL);
10719       iconv_close(cd);
10720  ;
10721  return 0;
10722}
10723_ACEOF
10724if ac_fn_c_try_link "$LINENO"; then :
10725  am_cv_func_iconv=yes
10726fi
10727rm -f core conftest.err conftest.$ac_objext \
10728    conftest$ac_exeext conftest.$ac_ext
10729    if test "$am_cv_func_iconv" != yes; then
10730      am_save_LIBS="$LIBS"
10731      LIBS="$LIBS $LIBICONV"
10732      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733/* end confdefs.h.  */
10734#include <stdlib.h>
10735#include <iconv.h>
10736int
10737main ()
10738{
10739iconv_t cd = iconv_open("","");
10740         iconv(cd,NULL,NULL,NULL,NULL);
10741         iconv_close(cd);
10742  ;
10743  return 0;
10744}
10745_ACEOF
10746if ac_fn_c_try_link "$LINENO"; then :
10747  am_cv_lib_iconv=yes
10748        am_cv_func_iconv=yes
10749fi
10750rm -f core conftest.err conftest.$ac_objext \
10751    conftest$ac_exeext conftest.$ac_ext
10752      LIBS="$am_save_LIBS"
10753    fi
10754
10755fi
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10757$as_echo "$am_cv_func_iconv" >&6; }
10758  if test "$am_cv_func_iconv" = yes; then
10759
10760$as_echo "#define HAVE_ICONV 1" >>confdefs.h
10761
10762  fi
10763  if test "$am_cv_lib_iconv" = yes; then
10764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10765$as_echo_n "checking how to link with libiconv... " >&6; }
10766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10767$as_echo "$LIBICONV" >&6; }
10768  else
10769            CPPFLAGS="$am_save_CPPFLAGS"
10770    LIBICONV=
10771    LTLIBICONV=
10772  fi
10773
10774
10775
10776  if test "$am_cv_func_iconv" = yes; then
10777    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10778$as_echo_n "checking for iconv declaration... " >&6; }
10779    if ${am_cv_proto_iconv+:} false; then :
10780  $as_echo_n "(cached) " >&6
10781else
10782
10783      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784/* end confdefs.h.  */
10785
10786#include <stdlib.h>
10787#include <iconv.h>
10788extern
10789#ifdef __cplusplus
10790"C"
10791#endif
10792#if defined(__STDC__) || defined(__cplusplus)
10793size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10794#else
10795size_t iconv();
10796#endif
10797
10798int
10799main ()
10800{
10801
10802  ;
10803  return 0;
10804}
10805_ACEOF
10806if ac_fn_c_try_compile "$LINENO"; then :
10807  am_cv_proto_iconv_arg1=""
10808else
10809  am_cv_proto_iconv_arg1="const"
10810fi
10811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10812      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10813fi
10814
10815    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10817         }$am_cv_proto_iconv" >&5
10818$as_echo "${ac_t:-
10819         }$am_cv_proto_iconv" >&6; }
10820
10821cat >>confdefs.h <<_ACEOF
10822#define ICONV_CONST $am_cv_proto_iconv_arg1
10823_ACEOF
10824
10825  fi
10826
10827
10828
10829pkg_failed=no
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCLOCK" >&5
10831$as_echo_n "checking for XCLOCK... " >&6; }
10832
10833if test -n "$XCLOCK_CFLAGS"; then
10834    pkg_cv_XCLOCK_CFLAGS="$XCLOCK_CFLAGS"
10835 elif test -n "$PKG_CONFIG"; then
10836    if test -n "$PKG_CONFIG" && \
10837    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11\""; } >&5
10838  ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11") 2>&5
10839  ac_status=$?
10840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10841  test $ac_status = 0; }; then
10842  pkg_cv_XCLOCK_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu x11" 2>/dev/null`
10843else
10844  pkg_failed=yes
10845fi
10846 else
10847    pkg_failed=untried
10848fi
10849if test -n "$XCLOCK_LIBS"; then
10850    pkg_cv_XCLOCK_LIBS="$XCLOCK_LIBS"
10851 elif test -n "$PKG_CONFIG"; then
10852    if test -n "$PKG_CONFIG" && \
10853    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11\""; } >&5
10854  ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11") 2>&5
10855  ac_status=$?
10856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10857  test $ac_status = 0; }; then
10858  pkg_cv_XCLOCK_LIBS=`$PKG_CONFIG --libs "xaw7 xmu x11" 2>/dev/null`
10859else
10860  pkg_failed=yes
10861fi
10862 else
10863    pkg_failed=untried
10864fi
10865
10866
10867
10868if test $pkg_failed = yes; then
10869
10870if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10871        _pkg_short_errors_supported=yes
10872else
10873        _pkg_short_errors_supported=no
10874fi
10875        if test $_pkg_short_errors_supported = yes; then
10876	        XCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu x11" 2>&1`
10877        else
10878	        XCLOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu x11" 2>&1`
10879        fi
10880	# Put the nasty error message in config.log where it belongs
10881	echo "$XCLOCK_PKG_ERRORS" >&5
10882
10883	as_fn_error $? "Package requirements (xaw7 xmu x11) were not met:
10884
10885$XCLOCK_PKG_ERRORS
10886
10887Consider adjusting the PKG_CONFIG_PATH environment variable if you
10888installed software in a non-standard prefix.
10889
10890Alternatively, you may set the environment variables XCLOCK_CFLAGS
10891and XCLOCK_LIBS to avoid the need to call pkg-config.
10892See the pkg-config man page for more details.
10893" "$LINENO" 5
10894elif test $pkg_failed = untried; then
10895	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10897as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10898is in your PATH or set the PKG_CONFIG environment variable to the full
10899path to pkg-config.
10900
10901Alternatively, you may set the environment variables XCLOCK_CFLAGS
10902and XCLOCK_LIBS to avoid the need to call pkg-config.
10903See the pkg-config man page for more details.
10904
10905To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10906See \`config.log' for more details" "$LINENO" 5; }
10907else
10908	XCLOCK_CFLAGS=$pkg_cv_XCLOCK_CFLAGS
10909	XCLOCK_LIBS=$pkg_cv_XCLOCK_LIBS
10910        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10911$as_echo "yes" >&6; }
10912	:
10913fi
10914XCLOCK_LIBS="$XCLOCK_LIBS $LIBICONV"
10915
10916
10917# Check whether --with-xft was given.
10918if test "${with_xft+set}" = set; then :
10919  withval=$with_xft; use_xft="$withval"
10920else
10921  use_xft="try"
10922fi
10923
10924if test x$use_xft != xno ; then
10925
10926pkg_failed=no
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
10928$as_echo_n "checking for XFT... " >&6; }
10929
10930if test -n "$XFT_CFLAGS"; then
10931    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
10932 elif test -n "$PKG_CONFIG"; then
10933    if test -n "$PKG_CONFIG" && \
10934    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
10935  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
10936  ac_status=$?
10937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10938  test $ac_status = 0; }; then
10939  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xrender xft" 2>/dev/null`
10940else
10941  pkg_failed=yes
10942fi
10943 else
10944    pkg_failed=untried
10945fi
10946if test -n "$XFT_LIBS"; then
10947    pkg_cv_XFT_LIBS="$XFT_LIBS"
10948 elif test -n "$PKG_CONFIG"; then
10949    if test -n "$PKG_CONFIG" && \
10950    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
10951  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
10952  ac_status=$?
10953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10954  test $ac_status = 0; }; then
10955  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xrender xft" 2>/dev/null`
10956else
10957  pkg_failed=yes
10958fi
10959 else
10960    pkg_failed=untried
10961fi
10962
10963
10964
10965if test $pkg_failed = yes; then
10966
10967if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10968        _pkg_short_errors_supported=yes
10969else
10970        _pkg_short_errors_supported=no
10971fi
10972        if test $_pkg_short_errors_supported = yes; then
10973	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender xft" 2>&1`
10974        else
10975	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender xft" 2>&1`
10976        fi
10977	# Put the nasty error message in config.log where it belongs
10978	echo "$XFT_PKG_ERRORS" >&5
10979
10980	as_fn_error $? "Package requirements (xrender xft) were not met:
10981
10982$XFT_PKG_ERRORS
10983
10984Consider adjusting the PKG_CONFIG_PATH environment variable if you
10985installed software in a non-standard prefix.
10986
10987Alternatively, you may set the environment variables XFT_CFLAGS
10988and XFT_LIBS to avoid the need to call pkg-config.
10989See the pkg-config man page for more details.
10990" "$LINENO" 5
10991elif test $pkg_failed = untried; then
10992	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10994as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10995is in your PATH or set the PKG_CONFIG environment variable to the full
10996path to pkg-config.
10997
10998Alternatively, you may set the environment variables XFT_CFLAGS
10999and XFT_LIBS to avoid the need to call pkg-config.
11000See the pkg-config man page for more details.
11001
11002To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11003See \`config.log' for more details" "$LINENO" 5; }
11004else
11005	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
11006	XFT_LIBS=$pkg_cv_XFT_LIBS
11007        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11008$as_echo "yes" >&6; }
11009	:
11010fi
11011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
11012$as_echo_n "checking for library containing sqrt... " >&6; }
11013if ${ac_cv_search_sqrt+:} false; then :
11014  $as_echo_n "(cached) " >&6
11015else
11016  ac_func_search_save_LIBS=$LIBS
11017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018/* end confdefs.h.  */
11019
11020/* Override any GCC internal prototype to avoid an error.
11021   Use char because int might match the return type of a GCC
11022   builtin and then its argument prototype would still apply.  */
11023#ifdef __cplusplus
11024extern "C"
11025#endif
11026char sqrt ();
11027int
11028main ()
11029{
11030return sqrt ();
11031  ;
11032  return 0;
11033}
11034_ACEOF
11035for ac_lib in '' m; do
11036  if test -z "$ac_lib"; then
11037    ac_res="none required"
11038  else
11039    ac_res=-l$ac_lib
11040    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11041  fi
11042  if ac_fn_c_try_link "$LINENO"; then :
11043  ac_cv_search_sqrt=$ac_res
11044fi
11045rm -f core conftest.err conftest.$ac_objext \
11046    conftest$ac_exeext
11047  if ${ac_cv_search_sqrt+:} false; then :
11048  break
11049fi
11050done
11051if ${ac_cv_search_sqrt+:} false; then :
11052
11053else
11054  ac_cv_search_sqrt=no
11055fi
11056rm conftest.$ac_ext
11057LIBS=$ac_func_search_save_LIBS
11058fi
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
11060$as_echo "$ac_cv_search_sqrt" >&6; }
11061ac_res=$ac_cv_search_sqrt
11062if test "$ac_res" != no; then :
11063  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11064
11065fi
11066
11067	XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XFT_CFLAGS"
11068	XCLOCK_LIBS="$XCLOCK_LIBS $XFT_LIBS"
11069
11070$as_echo "#define XRENDER 1" >>confdefs.h
11071
11072
11073$as_echo "#define XFREE86_FT2 1" >>confdefs.h
11074
11075fi
11076
11077
11078# Check whether --with-xkb was given.
11079if test "${with_xkb+set}" = set; then :
11080  withval=$with_xkb; use_xkb="$withval"
11081else
11082  use_xkb="try"
11083fi
11084
11085if test x$use_xkb != xno ; then
11086
11087pkg_failed=no
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKB" >&5
11089$as_echo_n "checking for XKB... " >&6; }
11090
11091if test -n "$XKB_CFLAGS"; then
11092    pkg_cv_XKB_CFLAGS="$XKB_CFLAGS"
11093 elif test -n "$PKG_CONFIG"; then
11094    if test -n "$PKG_CONFIG" && \
11095    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
11096  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
11097  ac_status=$?
11098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11099  test $ac_status = 0; }; then
11100  pkg_cv_XKB_CFLAGS=`$PKG_CONFIG --cflags "xkbfile" 2>/dev/null`
11101else
11102  pkg_failed=yes
11103fi
11104 else
11105    pkg_failed=untried
11106fi
11107if test -n "$XKB_LIBS"; then
11108    pkg_cv_XKB_LIBS="$XKB_LIBS"
11109 elif test -n "$PKG_CONFIG"; then
11110    if test -n "$PKG_CONFIG" && \
11111    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
11112  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
11113  ac_status=$?
11114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11115  test $ac_status = 0; }; then
11116  pkg_cv_XKB_LIBS=`$PKG_CONFIG --libs "xkbfile" 2>/dev/null`
11117else
11118  pkg_failed=yes
11119fi
11120 else
11121    pkg_failed=untried
11122fi
11123
11124
11125
11126if test $pkg_failed = yes; then
11127
11128if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11129        _pkg_short_errors_supported=yes
11130else
11131        _pkg_short_errors_supported=no
11132fi
11133        if test $_pkg_short_errors_supported = yes; then
11134	        XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xkbfile" 2>&1`
11135        else
11136	        XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xkbfile" 2>&1`
11137        fi
11138	# Put the nasty error message in config.log where it belongs
11139	echo "$XKB_PKG_ERRORS" >&5
11140
11141	as_fn_error $? "Package requirements (xkbfile) were not met:
11142
11143$XKB_PKG_ERRORS
11144
11145Consider adjusting the PKG_CONFIG_PATH environment variable if you
11146installed software in a non-standard prefix.
11147
11148Alternatively, you may set the environment variables XKB_CFLAGS
11149and XKB_LIBS to avoid the need to call pkg-config.
11150See the pkg-config man page for more details.
11151" "$LINENO" 5
11152elif test $pkg_failed = untried; then
11153	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11155as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11156is in your PATH or set the PKG_CONFIG environment variable to the full
11157path to pkg-config.
11158
11159Alternatively, you may set the environment variables XKB_CFLAGS
11160and XKB_LIBS to avoid the need to call pkg-config.
11161See the pkg-config man page for more details.
11162
11163To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11164See \`config.log' for more details" "$LINENO" 5; }
11165else
11166	XKB_CFLAGS=$pkg_cv_XKB_CFLAGS
11167	XKB_LIBS=$pkg_cv_XKB_LIBS
11168        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11169$as_echo "yes" >&6; }
11170	:
11171fi
11172	XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XKB_CFLAGS"
11173	XCLOCK_LIBS="$XCLOCK_LIBS $XKB_LIBS"
11174
11175$as_echo "#define XKB 1" >>confdefs.h
11176
11177fi
11178
11179
11180
11181pkg_failed=no
11182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11183$as_echo_n "checking for APPDEFS... " >&6; }
11184
11185if test -n "$APPDEFS_CFLAGS"; then
11186    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11187 elif test -n "$PKG_CONFIG"; then
11188    if test -n "$PKG_CONFIG" && \
11189    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11190  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11191  ac_status=$?
11192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11193  test $ac_status = 0; }; then
11194  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11195else
11196  pkg_failed=yes
11197fi
11198 else
11199    pkg_failed=untried
11200fi
11201if test -n "$APPDEFS_LIBS"; then
11202    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11203 elif test -n "$PKG_CONFIG"; then
11204    if test -n "$PKG_CONFIG" && \
11205    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11206  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11207  ac_status=$?
11208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11209  test $ac_status = 0; }; then
11210  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11211else
11212  pkg_failed=yes
11213fi
11214 else
11215    pkg_failed=untried
11216fi
11217
11218
11219
11220if test $pkg_failed = yes; then
11221
11222if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11223        _pkg_short_errors_supported=yes
11224else
11225        _pkg_short_errors_supported=no
11226fi
11227        if test $_pkg_short_errors_supported = yes; then
11228	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
11229        else
11230	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
11231        fi
11232	# Put the nasty error message in config.log where it belongs
11233	echo "$APPDEFS_PKG_ERRORS" >&5
11234
11235	as_fn_error $? "Package requirements (xt) were not met:
11236
11237$APPDEFS_PKG_ERRORS
11238
11239Consider adjusting the PKG_CONFIG_PATH environment variable if you
11240installed software in a non-standard prefix.
11241
11242Alternatively, you may set the environment variables APPDEFS_CFLAGS
11243and APPDEFS_LIBS to avoid the need to call pkg-config.
11244See the pkg-config man page for more details.
11245" "$LINENO" 5
11246elif test $pkg_failed = untried; then
11247	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11249as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11250is in your PATH or set the PKG_CONFIG environment variable to the full
11251path to pkg-config.
11252
11253Alternatively, you may set the environment variables APPDEFS_CFLAGS
11254and APPDEFS_LIBS to avoid the need to call pkg-config.
11255See the pkg-config man page for more details.
11256
11257To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11258See \`config.log' for more details" "$LINENO" 5; }
11259else
11260	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11261	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11262        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263$as_echo "yes" >&6; }
11264	:
11265fi
11266xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11267
11268# Check whether --with-appdefaultdir was given.
11269if test "${with_appdefaultdir+set}" = set; then :
11270  withval=$with_appdefaultdir; appdefaultdir="$withval"
11271else
11272  appdefaultdir="${xt_appdefaultdir}"
11273fi
11274
11275
11276
11277ac_config_files="$ac_config_files Makefile man/Makefile"
11278
11279cat >confcache <<\_ACEOF
11280# This file is a shell script that caches the results of configure
11281# tests run on this system so they can be shared between configure
11282# scripts and configure runs, see configure's option --config-cache.
11283# It is not useful on other systems.  If it contains results you don't
11284# want to keep, you may remove or edit it.
11285#
11286# config.status only pays attention to the cache file if you give it
11287# the --recheck option to rerun configure.
11288#
11289# `ac_cv_env_foo' variables (set or unset) will be overridden when
11290# loading this file, other *unset* `ac_cv_foo' will be assigned the
11291# following values.
11292
11293_ACEOF
11294
11295# The following way of writing the cache mishandles newlines in values,
11296# but we know of no workaround that is simple, portable, and efficient.
11297# So, we kill variables containing newlines.
11298# Ultrix sh set writes to stderr and can't be redirected directly,
11299# and sets the high bit in the cache file unless we assign to the vars.
11300(
11301  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11302    eval ac_val=\$$ac_var
11303    case $ac_val in #(
11304    *${as_nl}*)
11305      case $ac_var in #(
11306      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11307$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11308      esac
11309      case $ac_var in #(
11310      _ | IFS | as_nl) ;; #(
11311      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11312      *) { eval $ac_var=; unset $ac_var;} ;;
11313      esac ;;
11314    esac
11315  done
11316
11317  (set) 2>&1 |
11318    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11319    *${as_nl}ac_space=\ *)
11320      # `set' does not quote correctly, so add quotes: double-quote
11321      # substitution turns \\\\ into \\, and sed turns \\ into \.
11322      sed -n \
11323	"s/'/'\\\\''/g;
11324	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11325      ;; #(
11326    *)
11327      # `set' quotes correctly as required by POSIX, so do not add quotes.
11328      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11329      ;;
11330    esac |
11331    sort
11332) |
11333  sed '
11334     /^ac_cv_env_/b end
11335     t clear
11336     :clear
11337     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11338     t end
11339     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11340     :end' >>confcache
11341if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11342  if test -w "$cache_file"; then
11343    if test "x$cache_file" != "x/dev/null"; then
11344      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11345$as_echo "$as_me: updating cache $cache_file" >&6;}
11346      if test ! -f "$cache_file" || test -h "$cache_file"; then
11347	cat confcache >"$cache_file"
11348      else
11349        case $cache_file in #(
11350        */* | ?:*)
11351	  mv -f confcache "$cache_file"$$ &&
11352	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11353        *)
11354	  mv -f confcache "$cache_file" ;;
11355	esac
11356      fi
11357    fi
11358  else
11359    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11360$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11361  fi
11362fi
11363rm -f confcache
11364
11365test "x$prefix" = xNONE && prefix=$ac_default_prefix
11366# Let make expand exec_prefix.
11367test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11368
11369DEFS=-DHAVE_CONFIG_H
11370
11371ac_libobjs=
11372ac_ltlibobjs=
11373U=
11374for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11375  # 1. Remove the extension, and $U if already installed.
11376  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11377  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11378  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11379  #    will be set to the directory where LIBOBJS objects are built.
11380  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11381  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11382done
11383LIBOBJS=$ac_libobjs
11384
11385LTLIBOBJS=$ac_ltlibobjs
11386
11387
11388 if test -n "$EXEEXT"; then
11389  am__EXEEXT_TRUE=
11390  am__EXEEXT_FALSE='#'
11391else
11392  am__EXEEXT_TRUE='#'
11393  am__EXEEXT_FALSE=
11394fi
11395
11396if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11397  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11398Usually this means the macro was only invoked conditionally." "$LINENO" 5
11399fi
11400if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11401  as_fn_error $? "conditional \"AMDEP\" was never defined.
11402Usually this means the macro was only invoked conditionally." "$LINENO" 5
11403fi
11404if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11405  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11406Usually this means the macro was only invoked conditionally." "$LINENO" 5
11407fi
11408
11409: "${CONFIG_STATUS=./config.status}"
11410ac_write_fail=0
11411ac_clean_files_save=$ac_clean_files
11412ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11414$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11415as_write_fail=0
11416cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11417#! $SHELL
11418# Generated by $as_me.
11419# Run this file to recreate the current configuration.
11420# Compiler output produced by configure, useful for debugging
11421# configure, is in config.log if it exists.
11422
11423debug=false
11424ac_cs_recheck=false
11425ac_cs_silent=false
11426
11427SHELL=\${CONFIG_SHELL-$SHELL}
11428export SHELL
11429_ASEOF
11430cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11431## -------------------- ##
11432## M4sh Initialization. ##
11433## -------------------- ##
11434
11435# Be more Bourne compatible
11436DUALCASE=1; export DUALCASE # for MKS sh
11437if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11438  emulate sh
11439  NULLCMD=:
11440  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11441  # is contrary to our usage.  Disable this feature.
11442  alias -g '${1+"$@"}'='"$@"'
11443  setopt NO_GLOB_SUBST
11444else
11445  case `(set -o) 2>/dev/null` in #(
11446  *posix*) :
11447    set -o posix ;; #(
11448  *) :
11449     ;;
11450esac
11451fi
11452
11453
11454as_nl='
11455'
11456export as_nl
11457# Printing a long string crashes Solaris 7 /usr/bin/printf.
11458as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11460as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11461# Prefer a ksh shell builtin over an external printf program on Solaris,
11462# but without wasting forks for bash or zsh.
11463if test -z "$BASH_VERSION$ZSH_VERSION" \
11464    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11465  as_echo='print -r --'
11466  as_echo_n='print -rn --'
11467elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11468  as_echo='printf %s\n'
11469  as_echo_n='printf %s'
11470else
11471  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11472    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11473    as_echo_n='/usr/ucb/echo -n'
11474  else
11475    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11476    as_echo_n_body='eval
11477      arg=$1;
11478      case $arg in #(
11479      *"$as_nl"*)
11480	expr "X$arg" : "X\\(.*\\)$as_nl";
11481	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11482      esac;
11483      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11484    '
11485    export as_echo_n_body
11486    as_echo_n='sh -c $as_echo_n_body as_echo'
11487  fi
11488  export as_echo_body
11489  as_echo='sh -c $as_echo_body as_echo'
11490fi
11491
11492# The user is always right.
11493if test "${PATH_SEPARATOR+set}" != set; then
11494  PATH_SEPARATOR=:
11495  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11496    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11497      PATH_SEPARATOR=';'
11498  }
11499fi
11500
11501
11502# IFS
11503# We need space, tab and new line, in precisely that order.  Quoting is
11504# there to prevent editors from complaining about space-tab.
11505# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11506# splitting by setting IFS to empty value.)
11507IFS=" ""	$as_nl"
11508
11509# Find who we are.  Look in the path if we contain no directory separator.
11510as_myself=
11511case $0 in #((
11512  *[\\/]* ) as_myself=$0 ;;
11513  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514for as_dir in $PATH
11515do
11516  IFS=$as_save_IFS
11517  test -z "$as_dir" && as_dir=.
11518    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11519  done
11520IFS=$as_save_IFS
11521
11522     ;;
11523esac
11524# We did not find ourselves, most probably we were run as `sh COMMAND'
11525# in which case we are not to be found in the path.
11526if test "x$as_myself" = x; then
11527  as_myself=$0
11528fi
11529if test ! -f "$as_myself"; then
11530  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11531  exit 1
11532fi
11533
11534# Unset variables that we do not need and which cause bugs (e.g. in
11535# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11536# suppresses any "Segmentation fault" message there.  '((' could
11537# trigger a bug in pdksh 5.2.14.
11538for as_var in BASH_ENV ENV MAIL MAILPATH
11539do eval test x\${$as_var+set} = xset \
11540  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11541done
11542PS1='$ '
11543PS2='> '
11544PS4='+ '
11545
11546# NLS nuisances.
11547LC_ALL=C
11548export LC_ALL
11549LANGUAGE=C
11550export LANGUAGE
11551
11552# CDPATH.
11553(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11554
11555
11556# as_fn_error STATUS ERROR [LINENO LOG_FD]
11557# ----------------------------------------
11558# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11559# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11560# script with STATUS, using 1 if that was 0.
11561as_fn_error ()
11562{
11563  as_status=$1; test $as_status -eq 0 && as_status=1
11564  if test "$4"; then
11565    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11566    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11567  fi
11568  $as_echo "$as_me: error: $2" >&2
11569  as_fn_exit $as_status
11570} # as_fn_error
11571
11572
11573# as_fn_set_status STATUS
11574# -----------------------
11575# Set $? to STATUS, without forking.
11576as_fn_set_status ()
11577{
11578  return $1
11579} # as_fn_set_status
11580
11581# as_fn_exit STATUS
11582# -----------------
11583# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11584as_fn_exit ()
11585{
11586  set +e
11587  as_fn_set_status $1
11588  exit $1
11589} # as_fn_exit
11590
11591# as_fn_unset VAR
11592# ---------------
11593# Portably unset VAR.
11594as_fn_unset ()
11595{
11596  { eval $1=; unset $1;}
11597}
11598as_unset=as_fn_unset
11599# as_fn_append VAR VALUE
11600# ----------------------
11601# Append the text in VALUE to the end of the definition contained in VAR. Take
11602# advantage of any shell optimizations that allow amortized linear growth over
11603# repeated appends, instead of the typical quadratic growth present in naive
11604# implementations.
11605if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11606  eval 'as_fn_append ()
11607  {
11608    eval $1+=\$2
11609  }'
11610else
11611  as_fn_append ()
11612  {
11613    eval $1=\$$1\$2
11614  }
11615fi # as_fn_append
11616
11617# as_fn_arith ARG...
11618# ------------------
11619# Perform arithmetic evaluation on the ARGs, and store the result in the
11620# global $as_val. Take advantage of shells that can avoid forks. The arguments
11621# must be portable across $(()) and expr.
11622if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11623  eval 'as_fn_arith ()
11624  {
11625    as_val=$(( $* ))
11626  }'
11627else
11628  as_fn_arith ()
11629  {
11630    as_val=`expr "$@" || test $? -eq 1`
11631  }
11632fi # as_fn_arith
11633
11634
11635if expr a : '\(a\)' >/dev/null 2>&1 &&
11636   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11637  as_expr=expr
11638else
11639  as_expr=false
11640fi
11641
11642if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11643  as_basename=basename
11644else
11645  as_basename=false
11646fi
11647
11648if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11649  as_dirname=dirname
11650else
11651  as_dirname=false
11652fi
11653
11654as_me=`$as_basename -- "$0" ||
11655$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11656	 X"$0" : 'X\(//\)$' \| \
11657	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11658$as_echo X/"$0" |
11659    sed '/^.*\/\([^/][^/]*\)\/*$/{
11660	    s//\1/
11661	    q
11662	  }
11663	  /^X\/\(\/\/\)$/{
11664	    s//\1/
11665	    q
11666	  }
11667	  /^X\/\(\/\).*/{
11668	    s//\1/
11669	    q
11670	  }
11671	  s/.*/./; q'`
11672
11673# Avoid depending upon Character Ranges.
11674as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11675as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11676as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11677as_cr_digits='0123456789'
11678as_cr_alnum=$as_cr_Letters$as_cr_digits
11679
11680ECHO_C= ECHO_N= ECHO_T=
11681case `echo -n x` in #(((((
11682-n*)
11683  case `echo 'xy\c'` in
11684  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11685  xy)  ECHO_C='\c';;
11686  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11687       ECHO_T='	';;
11688  esac;;
11689*)
11690  ECHO_N='-n';;
11691esac
11692
11693rm -f conf$$ conf$$.exe conf$$.file
11694if test -d conf$$.dir; then
11695  rm -f conf$$.dir/conf$$.file
11696else
11697  rm -f conf$$.dir
11698  mkdir conf$$.dir 2>/dev/null
11699fi
11700if (echo >conf$$.file) 2>/dev/null; then
11701  if ln -s conf$$.file conf$$ 2>/dev/null; then
11702    as_ln_s='ln -s'
11703    # ... but there are two gotchas:
11704    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11705    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11706    # In both cases, we have to default to `cp -p'.
11707    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11708      as_ln_s='cp -p'
11709  elif ln conf$$.file conf$$ 2>/dev/null; then
11710    as_ln_s=ln
11711  else
11712    as_ln_s='cp -p'
11713  fi
11714else
11715  as_ln_s='cp -p'
11716fi
11717rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11718rmdir conf$$.dir 2>/dev/null
11719
11720
11721# as_fn_mkdir_p
11722# -------------
11723# Create "$as_dir" as a directory, including parents if necessary.
11724as_fn_mkdir_p ()
11725{
11726
11727  case $as_dir in #(
11728  -*) as_dir=./$as_dir;;
11729  esac
11730  test -d "$as_dir" || eval $as_mkdir_p || {
11731    as_dirs=
11732    while :; do
11733      case $as_dir in #(
11734      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11735      *) as_qdir=$as_dir;;
11736      esac
11737      as_dirs="'$as_qdir' $as_dirs"
11738      as_dir=`$as_dirname -- "$as_dir" ||
11739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11740	 X"$as_dir" : 'X\(//\)[^/]' \| \
11741	 X"$as_dir" : 'X\(//\)$' \| \
11742	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11743$as_echo X"$as_dir" |
11744    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11745	    s//\1/
11746	    q
11747	  }
11748	  /^X\(\/\/\)[^/].*/{
11749	    s//\1/
11750	    q
11751	  }
11752	  /^X\(\/\/\)$/{
11753	    s//\1/
11754	    q
11755	  }
11756	  /^X\(\/\).*/{
11757	    s//\1/
11758	    q
11759	  }
11760	  s/.*/./; q'`
11761      test -d "$as_dir" && break
11762    done
11763    test -z "$as_dirs" || eval "mkdir $as_dirs"
11764  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11765
11766
11767} # as_fn_mkdir_p
11768if mkdir -p . 2>/dev/null; then
11769  as_mkdir_p='mkdir -p "$as_dir"'
11770else
11771  test -d ./-p && rmdir ./-p
11772  as_mkdir_p=false
11773fi
11774
11775if test -x / >/dev/null 2>&1; then
11776  as_test_x='test -x'
11777else
11778  if ls -dL / >/dev/null 2>&1; then
11779    as_ls_L_option=L
11780  else
11781    as_ls_L_option=
11782  fi
11783  as_test_x='
11784    eval sh -c '\''
11785      if test -d "$1"; then
11786	test -d "$1/.";
11787      else
11788	case $1 in #(
11789	-*)set "./$1";;
11790	esac;
11791	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11792	???[sx]*):;;*)false;;esac;fi
11793    '\'' sh
11794  '
11795fi
11796as_executable_p=$as_test_x
11797
11798# Sed expression to map a string onto a valid CPP name.
11799as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11800
11801# Sed expression to map a string onto a valid variable name.
11802as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11803
11804
11805exec 6>&1
11806## ----------------------------------- ##
11807## Main body of $CONFIG_STATUS script. ##
11808## ----------------------------------- ##
11809_ASEOF
11810test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11811
11812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11813# Save the log message, to keep $0 and so on meaningful, and to
11814# report actual input values of CONFIG_FILES etc. instead of their
11815# values after options handling.
11816ac_log="
11817This file was extended by xclock $as_me 1.0.6, which was
11818generated by GNU Autoconf 2.68.  Invocation command line was
11819
11820  CONFIG_FILES    = $CONFIG_FILES
11821  CONFIG_HEADERS  = $CONFIG_HEADERS
11822  CONFIG_LINKS    = $CONFIG_LINKS
11823  CONFIG_COMMANDS = $CONFIG_COMMANDS
11824  $ $0 $@
11825
11826on `(hostname || uname -n) 2>/dev/null | sed 1q`
11827"
11828
11829_ACEOF
11830
11831case $ac_config_files in *"
11832"*) set x $ac_config_files; shift; ac_config_files=$*;;
11833esac
11834
11835case $ac_config_headers in *"
11836"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11837esac
11838
11839
11840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11841# Files that config.status was made for.
11842config_files="$ac_config_files"
11843config_headers="$ac_config_headers"
11844config_commands="$ac_config_commands"
11845
11846_ACEOF
11847
11848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11849ac_cs_usage="\
11850\`$as_me' instantiates files and other configuration actions
11851from templates according to the current configuration.  Unless the files
11852and actions are specified as TAGs, all are instantiated by default.
11853
11854Usage: $0 [OPTION]... [TAG]...
11855
11856  -h, --help       print this help, then exit
11857  -V, --version    print version number and configuration settings, then exit
11858      --config     print configuration, then exit
11859  -q, --quiet, --silent
11860                   do not print progress messages
11861  -d, --debug      don't remove temporary files
11862      --recheck    update $as_me by reconfiguring in the same conditions
11863      --file=FILE[:TEMPLATE]
11864                   instantiate the configuration file FILE
11865      --header=FILE[:TEMPLATE]
11866                   instantiate the configuration header FILE
11867
11868Configuration files:
11869$config_files
11870
11871Configuration headers:
11872$config_headers
11873
11874Configuration commands:
11875$config_commands
11876
11877Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11878
11879_ACEOF
11880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11881ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11882ac_cs_version="\\
11883xclock config.status 1.0.6
11884configured by $0, generated by GNU Autoconf 2.68,
11885  with options \\"\$ac_cs_config\\"
11886
11887Copyright (C) 2010 Free Software Foundation, Inc.
11888This config.status script is free software; the Free Software Foundation
11889gives unlimited permission to copy, distribute and modify it."
11890
11891ac_pwd='$ac_pwd'
11892srcdir='$srcdir'
11893INSTALL='$INSTALL'
11894MKDIR_P='$MKDIR_P'
11895AWK='$AWK'
11896test -n "\$AWK" || AWK=awk
11897_ACEOF
11898
11899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11900# The default lists apply if the user does not specify any file.
11901ac_need_defaults=:
11902while test $# != 0
11903do
11904  case $1 in
11905  --*=?*)
11906    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11907    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11908    ac_shift=:
11909    ;;
11910  --*=)
11911    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11912    ac_optarg=
11913    ac_shift=:
11914    ;;
11915  *)
11916    ac_option=$1
11917    ac_optarg=$2
11918    ac_shift=shift
11919    ;;
11920  esac
11921
11922  case $ac_option in
11923  # Handling of the options.
11924  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11925    ac_cs_recheck=: ;;
11926  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11927    $as_echo "$ac_cs_version"; exit ;;
11928  --config | --confi | --conf | --con | --co | --c )
11929    $as_echo "$ac_cs_config"; exit ;;
11930  --debug | --debu | --deb | --de | --d | -d )
11931    debug=: ;;
11932  --file | --fil | --fi | --f )
11933    $ac_shift
11934    case $ac_optarg in
11935    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11936    '') as_fn_error $? "missing file argument" ;;
11937    esac
11938    as_fn_append CONFIG_FILES " '$ac_optarg'"
11939    ac_need_defaults=false;;
11940  --header | --heade | --head | --hea )
11941    $ac_shift
11942    case $ac_optarg in
11943    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11944    esac
11945    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11946    ac_need_defaults=false;;
11947  --he | --h)
11948    # Conflict between --help and --header
11949    as_fn_error $? "ambiguous option: \`$1'
11950Try \`$0 --help' for more information.";;
11951  --help | --hel | -h )
11952    $as_echo "$ac_cs_usage"; exit ;;
11953  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11954  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11955    ac_cs_silent=: ;;
11956
11957  # This is an error.
11958  -*) as_fn_error $? "unrecognized option: \`$1'
11959Try \`$0 --help' for more information." ;;
11960
11961  *) as_fn_append ac_config_targets " $1"
11962     ac_need_defaults=false ;;
11963
11964  esac
11965  shift
11966done
11967
11968ac_configure_extra_args=
11969
11970if $ac_cs_silent; then
11971  exec 6>/dev/null
11972  ac_configure_extra_args="$ac_configure_extra_args --silent"
11973fi
11974
11975_ACEOF
11976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11977if \$ac_cs_recheck; then
11978  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11979  shift
11980  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11981  CONFIG_SHELL='$SHELL'
11982  export CONFIG_SHELL
11983  exec "\$@"
11984fi
11985
11986_ACEOF
11987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11988exec 5>>config.log
11989{
11990  echo
11991  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11992## Running $as_me. ##
11993_ASBOX
11994  $as_echo "$ac_log"
11995} >&5
11996
11997_ACEOF
11998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11999#
12000# INIT-COMMANDS
12001#
12002AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12003
12004_ACEOF
12005
12006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12007
12008# Handling of arguments.
12009for ac_config_target in $ac_config_targets
12010do
12011  case $ac_config_target in
12012    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12013    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12014    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12015    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12016
12017  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12018  esac
12019done
12020
12021
12022# If the user did not use the arguments to specify the items to instantiate,
12023# then the envvar interface is used.  Set only those that are not.
12024# We use the long form for the default assignment because of an extremely
12025# bizarre bug on SunOS 4.1.3.
12026if $ac_need_defaults; then
12027  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12028  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12029  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12030fi
12031
12032# Have a temporary directory for convenience.  Make it in the build tree
12033# simply because there is no reason against having it here, and in addition,
12034# creating and moving files from /tmp can sometimes cause problems.
12035# Hook for its removal unless debugging.
12036# Note that there is a small window in which the directory will not be cleaned:
12037# after its creation but before its name has been assigned to `$tmp'.
12038$debug ||
12039{
12040  tmp= ac_tmp=
12041  trap 'exit_status=$?
12042  : "${ac_tmp:=$tmp}"
12043  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12044' 0
12045  trap 'as_fn_exit 1' 1 2 13 15
12046}
12047# Create a (secure) tmp directory for tmp files.
12048
12049{
12050  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12051  test -d "$tmp"
12052}  ||
12053{
12054  tmp=./conf$$-$RANDOM
12055  (umask 077 && mkdir "$tmp")
12056} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12057ac_tmp=$tmp
12058
12059# Set up the scripts for CONFIG_FILES section.
12060# No need to generate them if there are no CONFIG_FILES.
12061# This happens for instance with `./config.status config.h'.
12062if test -n "$CONFIG_FILES"; then
12063
12064
12065ac_cr=`echo X | tr X '\015'`
12066# On cygwin, bash can eat \r inside `` if the user requested igncr.
12067# But we know of no other shell where ac_cr would be empty at this
12068# point, so we can use a bashism as a fallback.
12069if test "x$ac_cr" = x; then
12070  eval ac_cr=\$\'\\r\'
12071fi
12072ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12073if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12074  ac_cs_awk_cr='\\r'
12075else
12076  ac_cs_awk_cr=$ac_cr
12077fi
12078
12079echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12080_ACEOF
12081
12082
12083{
12084  echo "cat >conf$$subs.awk <<_ACEOF" &&
12085  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12086  echo "_ACEOF"
12087} >conf$$subs.sh ||
12088  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12089ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12090ac_delim='%!_!# '
12091for ac_last_try in false false false false false :; do
12092  . ./conf$$subs.sh ||
12093    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12094
12095  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12096  if test $ac_delim_n = $ac_delim_num; then
12097    break
12098  elif $ac_last_try; then
12099    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12100  else
12101    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12102  fi
12103done
12104rm -f conf$$subs.sh
12105
12106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12107cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12108_ACEOF
12109sed -n '
12110h
12111s/^/S["/; s/!.*/"]=/
12112p
12113g
12114s/^[^!]*!//
12115:repl
12116t repl
12117s/'"$ac_delim"'$//
12118t delim
12119:nl
12120h
12121s/\(.\{148\}\)..*/\1/
12122t more1
12123s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12124p
12125n
12126b repl
12127:more1
12128s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12129p
12130g
12131s/.\{148\}//
12132t nl
12133:delim
12134h
12135s/\(.\{148\}\)..*/\1/
12136t more2
12137s/["\\]/\\&/g; s/^/"/; s/$/"/
12138p
12139b
12140:more2
12141s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12142p
12143g
12144s/.\{148\}//
12145t delim
12146' <conf$$subs.awk | sed '
12147/^[^""]/{
12148  N
12149  s/\n//
12150}
12151' >>$CONFIG_STATUS || ac_write_fail=1
12152rm -f conf$$subs.awk
12153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12154_ACAWK
12155cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12156  for (key in S) S_is_set[key] = 1
12157  FS = ""
12158
12159}
12160{
12161  line = $ 0
12162  nfields = split(line, field, "@")
12163  substed = 0
12164  len = length(field[1])
12165  for (i = 2; i < nfields; i++) {
12166    key = field[i]
12167    keylen = length(key)
12168    if (S_is_set[key]) {
12169      value = S[key]
12170      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12171      len += length(value) + length(field[++i])
12172      substed = 1
12173    } else
12174      len += 1 + keylen
12175  }
12176
12177  print line
12178}
12179
12180_ACAWK
12181_ACEOF
12182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12183if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12184  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12185else
12186  cat
12187fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12188  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12189_ACEOF
12190
12191# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12192# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12193# trailing colons and then remove the whole line if VPATH becomes empty
12194# (actually we leave an empty line to preserve line numbers).
12195if test "x$srcdir" = x.; then
12196  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12197h
12198s///
12199s/^/:/
12200s/[	 ]*$/:/
12201s/:\$(srcdir):/:/g
12202s/:\${srcdir}:/:/g
12203s/:@srcdir@:/:/g
12204s/^:*//
12205s/:*$//
12206x
12207s/\(=[	 ]*\).*/\1/
12208G
12209s/\n//
12210s/^[^=]*=[	 ]*$//
12211}'
12212fi
12213
12214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12215fi # test -n "$CONFIG_FILES"
12216
12217# Set up the scripts for CONFIG_HEADERS section.
12218# No need to generate them if there are no CONFIG_HEADERS.
12219# This happens for instance with `./config.status Makefile'.
12220if test -n "$CONFIG_HEADERS"; then
12221cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12222BEGIN {
12223_ACEOF
12224
12225# Transform confdefs.h into an awk script `defines.awk', embedded as
12226# here-document in config.status, that substitutes the proper values into
12227# config.h.in to produce config.h.
12228
12229# Create a delimiter string that does not exist in confdefs.h, to ease
12230# handling of long lines.
12231ac_delim='%!_!# '
12232for ac_last_try in false false :; do
12233  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12234  if test -z "$ac_tt"; then
12235    break
12236  elif $ac_last_try; then
12237    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12238  else
12239    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12240  fi
12241done
12242
12243# For the awk script, D is an array of macro values keyed by name,
12244# likewise P contains macro parameters if any.  Preserve backslash
12245# newline sequences.
12246
12247ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12248sed -n '
12249s/.\{148\}/&'"$ac_delim"'/g
12250t rset
12251:rset
12252s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12253t def
12254d
12255:def
12256s/\\$//
12257t bsnl
12258s/["\\]/\\&/g
12259s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12260D["\1"]=" \3"/p
12261s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12262d
12263:bsnl
12264s/["\\]/\\&/g
12265s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12266D["\1"]=" \3\\\\\\n"\\/p
12267t cont
12268s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12269t cont
12270d
12271:cont
12272n
12273s/.\{148\}/&'"$ac_delim"'/g
12274t clear
12275:clear
12276s/\\$//
12277t bsnlc
12278s/["\\]/\\&/g; s/^/"/; s/$/"/p
12279d
12280:bsnlc
12281s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12282b cont
12283' <confdefs.h | sed '
12284s/'"$ac_delim"'/"\\\
12285"/g' >>$CONFIG_STATUS || ac_write_fail=1
12286
12287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12288  for (key in D) D_is_set[key] = 1
12289  FS = ""
12290}
12291/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12292  line = \$ 0
12293  split(line, arg, " ")
12294  if (arg[1] == "#") {
12295    defundef = arg[2]
12296    mac1 = arg[3]
12297  } else {
12298    defundef = substr(arg[1], 2)
12299    mac1 = arg[2]
12300  }
12301  split(mac1, mac2, "(") #)
12302  macro = mac2[1]
12303  prefix = substr(line, 1, index(line, defundef) - 1)
12304  if (D_is_set[macro]) {
12305    # Preserve the white space surrounding the "#".
12306    print prefix "define", macro P[macro] D[macro]
12307    next
12308  } else {
12309    # Replace #undef with comments.  This is necessary, for example,
12310    # in the case of _POSIX_SOURCE, which is predefined and required
12311    # on some systems where configure will not decide to define it.
12312    if (defundef == "undef") {
12313      print "/*", prefix defundef, macro, "*/"
12314      next
12315    }
12316  }
12317}
12318{ print }
12319_ACAWK
12320_ACEOF
12321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12322  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12323fi # test -n "$CONFIG_HEADERS"
12324
12325
12326eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12327shift
12328for ac_tag
12329do
12330  case $ac_tag in
12331  :[FHLC]) ac_mode=$ac_tag; continue;;
12332  esac
12333  case $ac_mode$ac_tag in
12334  :[FHL]*:*);;
12335  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12336  :[FH]-) ac_tag=-:-;;
12337  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12338  esac
12339  ac_save_IFS=$IFS
12340  IFS=:
12341  set x $ac_tag
12342  IFS=$ac_save_IFS
12343  shift
12344  ac_file=$1
12345  shift
12346
12347  case $ac_mode in
12348  :L) ac_source=$1;;
12349  :[FH])
12350    ac_file_inputs=
12351    for ac_f
12352    do
12353      case $ac_f in
12354      -) ac_f="$ac_tmp/stdin";;
12355      *) # Look for the file first in the build tree, then in the source tree
12356	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12357	 # because $ac_f cannot contain `:'.
12358	 test -f "$ac_f" ||
12359	   case $ac_f in
12360	   [\\/$]*) false;;
12361	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12362	   esac ||
12363	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12364      esac
12365      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12366      as_fn_append ac_file_inputs " '$ac_f'"
12367    done
12368
12369    # Let's still pretend it is `configure' which instantiates (i.e., don't
12370    # use $as_me), people would be surprised to read:
12371    #    /* config.h.  Generated by config.status.  */
12372    configure_input='Generated from '`
12373	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12374	`' by configure.'
12375    if test x"$ac_file" != x-; then
12376      configure_input="$ac_file.  $configure_input"
12377      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12378$as_echo "$as_me: creating $ac_file" >&6;}
12379    fi
12380    # Neutralize special characters interpreted by sed in replacement strings.
12381    case $configure_input in #(
12382    *\&* | *\|* | *\\* )
12383       ac_sed_conf_input=`$as_echo "$configure_input" |
12384       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12385    *) ac_sed_conf_input=$configure_input;;
12386    esac
12387
12388    case $ac_tag in
12389    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12390      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12391    esac
12392    ;;
12393  esac
12394
12395  ac_dir=`$as_dirname -- "$ac_file" ||
12396$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12397	 X"$ac_file" : 'X\(//\)[^/]' \| \
12398	 X"$ac_file" : 'X\(//\)$' \| \
12399	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12400$as_echo X"$ac_file" |
12401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12402	    s//\1/
12403	    q
12404	  }
12405	  /^X\(\/\/\)[^/].*/{
12406	    s//\1/
12407	    q
12408	  }
12409	  /^X\(\/\/\)$/{
12410	    s//\1/
12411	    q
12412	  }
12413	  /^X\(\/\).*/{
12414	    s//\1/
12415	    q
12416	  }
12417	  s/.*/./; q'`
12418  as_dir="$ac_dir"; as_fn_mkdir_p
12419  ac_builddir=.
12420
12421case "$ac_dir" in
12422.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12423*)
12424  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12425  # A ".." for each directory in $ac_dir_suffix.
12426  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12427  case $ac_top_builddir_sub in
12428  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12429  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12430  esac ;;
12431esac
12432ac_abs_top_builddir=$ac_pwd
12433ac_abs_builddir=$ac_pwd$ac_dir_suffix
12434# for backward compatibility:
12435ac_top_builddir=$ac_top_build_prefix
12436
12437case $srcdir in
12438  .)  # We are building in place.
12439    ac_srcdir=.
12440    ac_top_srcdir=$ac_top_builddir_sub
12441    ac_abs_top_srcdir=$ac_pwd ;;
12442  [\\/]* | ?:[\\/]* )  # Absolute name.
12443    ac_srcdir=$srcdir$ac_dir_suffix;
12444    ac_top_srcdir=$srcdir
12445    ac_abs_top_srcdir=$srcdir ;;
12446  *) # Relative name.
12447    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12448    ac_top_srcdir=$ac_top_build_prefix$srcdir
12449    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12450esac
12451ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12452
12453
12454  case $ac_mode in
12455  :F)
12456  #
12457  # CONFIG_FILE
12458  #
12459
12460  case $INSTALL in
12461  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12462  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12463  esac
12464  ac_MKDIR_P=$MKDIR_P
12465  case $MKDIR_P in
12466  [\\/$]* | ?:[\\/]* ) ;;
12467  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12468  esac
12469_ACEOF
12470
12471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12472# If the template does not know about datarootdir, expand it.
12473# FIXME: This hack should be removed a few years after 2.60.
12474ac_datarootdir_hack=; ac_datarootdir_seen=
12475ac_sed_dataroot='
12476/datarootdir/ {
12477  p
12478  q
12479}
12480/@datadir@/p
12481/@docdir@/p
12482/@infodir@/p
12483/@localedir@/p
12484/@mandir@/p'
12485case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12486*datarootdir*) ac_datarootdir_seen=yes;;
12487*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12488  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12489$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12490_ACEOF
12491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12492  ac_datarootdir_hack='
12493  s&@datadir@&$datadir&g
12494  s&@docdir@&$docdir&g
12495  s&@infodir@&$infodir&g
12496  s&@localedir@&$localedir&g
12497  s&@mandir@&$mandir&g
12498  s&\\\${datarootdir}&$datarootdir&g' ;;
12499esac
12500_ACEOF
12501
12502# Neutralize VPATH when `$srcdir' = `.'.
12503# Shell code in configure.ac might set extrasub.
12504# FIXME: do we really want to maintain this feature?
12505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12506ac_sed_extra="$ac_vpsub
12507$extrasub
12508_ACEOF
12509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12510:t
12511/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12512s|@configure_input@|$ac_sed_conf_input|;t t
12513s&@top_builddir@&$ac_top_builddir_sub&;t t
12514s&@top_build_prefix@&$ac_top_build_prefix&;t t
12515s&@srcdir@&$ac_srcdir&;t t
12516s&@abs_srcdir@&$ac_abs_srcdir&;t t
12517s&@top_srcdir@&$ac_top_srcdir&;t t
12518s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12519s&@builddir@&$ac_builddir&;t t
12520s&@abs_builddir@&$ac_abs_builddir&;t t
12521s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12522s&@INSTALL@&$ac_INSTALL&;t t
12523s&@MKDIR_P@&$ac_MKDIR_P&;t t
12524$ac_datarootdir_hack
12525"
12526eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12527  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12528
12529test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12530  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12531  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12532      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12533  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12534which seems to be undefined.  Please make sure it is defined" >&5
12535$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12536which seems to be undefined.  Please make sure it is defined" >&2;}
12537
12538  rm -f "$ac_tmp/stdin"
12539  case $ac_file in
12540  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12541  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12542  esac \
12543  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12544 ;;
12545  :H)
12546  #
12547  # CONFIG_HEADER
12548  #
12549  if test x"$ac_file" != x-; then
12550    {
12551      $as_echo "/* $configure_input  */" \
12552      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12553    } >"$ac_tmp/config.h" \
12554      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12555    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12556      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12557$as_echo "$as_me: $ac_file is unchanged" >&6;}
12558    else
12559      rm -f "$ac_file"
12560      mv "$ac_tmp/config.h" "$ac_file" \
12561	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12562    fi
12563  else
12564    $as_echo "/* $configure_input  */" \
12565      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12566      || as_fn_error $? "could not create -" "$LINENO" 5
12567  fi
12568# Compute "$ac_file"'s index in $config_headers.
12569_am_arg="$ac_file"
12570_am_stamp_count=1
12571for _am_header in $config_headers :; do
12572  case $_am_header in
12573    $_am_arg | $_am_arg:* )
12574      break ;;
12575    * )
12576      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12577  esac
12578done
12579echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12580$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12581	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12582	 X"$_am_arg" : 'X\(//\)$' \| \
12583	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12584$as_echo X"$_am_arg" |
12585    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12586	    s//\1/
12587	    q
12588	  }
12589	  /^X\(\/\/\)[^/].*/{
12590	    s//\1/
12591	    q
12592	  }
12593	  /^X\(\/\/\)$/{
12594	    s//\1/
12595	    q
12596	  }
12597	  /^X\(\/\).*/{
12598	    s//\1/
12599	    q
12600	  }
12601	  s/.*/./; q'`/stamp-h$_am_stamp_count
12602 ;;
12603
12604  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12605$as_echo "$as_me: executing $ac_file commands" >&6;}
12606 ;;
12607  esac
12608
12609
12610  case $ac_file$ac_mode in
12611    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12612  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12613  # are listed without --file.  Let's play safe and only enable the eval
12614  # if we detect the quoting.
12615  case $CONFIG_FILES in
12616  *\'*) eval set x "$CONFIG_FILES" ;;
12617  *)   set x $CONFIG_FILES ;;
12618  esac
12619  shift
12620  for mf
12621  do
12622    # Strip MF so we end up with the name of the file.
12623    mf=`echo "$mf" | sed -e 's/:.*$//'`
12624    # Check whether this is an Automake generated Makefile or not.
12625    # We used to match only the files named `Makefile.in', but
12626    # some people rename them; so instead we look at the file content.
12627    # Grep'ing the first line is not enough: some people post-process
12628    # each Makefile.in and add a new line on top of each file to say so.
12629    # Grep'ing the whole file is not good either: AIX grep has a line
12630    # limit of 2048, but all sed's we know have understand at least 4000.
12631    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12632      dirpart=`$as_dirname -- "$mf" ||
12633$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12634	 X"$mf" : 'X\(//\)[^/]' \| \
12635	 X"$mf" : 'X\(//\)$' \| \
12636	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12637$as_echo X"$mf" |
12638    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12639	    s//\1/
12640	    q
12641	  }
12642	  /^X\(\/\/\)[^/].*/{
12643	    s//\1/
12644	    q
12645	  }
12646	  /^X\(\/\/\)$/{
12647	    s//\1/
12648	    q
12649	  }
12650	  /^X\(\/\).*/{
12651	    s//\1/
12652	    q
12653	  }
12654	  s/.*/./; q'`
12655    else
12656      continue
12657    fi
12658    # Extract the definition of DEPDIR, am__include, and am__quote
12659    # from the Makefile without running `make'.
12660    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12661    test -z "$DEPDIR" && continue
12662    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12663    test -z "am__include" && continue
12664    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12665    # When using ansi2knr, U may be empty or an underscore; expand it
12666    U=`sed -n 's/^U = //p' < "$mf"`
12667    # Find all dependency output files, they are included files with
12668    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12669    # simplest approach to changing $(DEPDIR) to its actual value in the
12670    # expansion.
12671    for file in `sed -n "
12672      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12673	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12674      # Make sure the directory exists.
12675      test -f "$dirpart/$file" && continue
12676      fdir=`$as_dirname -- "$file" ||
12677$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12678	 X"$file" : 'X\(//\)[^/]' \| \
12679	 X"$file" : 'X\(//\)$' \| \
12680	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12681$as_echo X"$file" |
12682    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12683	    s//\1/
12684	    q
12685	  }
12686	  /^X\(\/\/\)[^/].*/{
12687	    s//\1/
12688	    q
12689	  }
12690	  /^X\(\/\/\)$/{
12691	    s//\1/
12692	    q
12693	  }
12694	  /^X\(\/\).*/{
12695	    s//\1/
12696	    q
12697	  }
12698	  s/.*/./; q'`
12699      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12700      # echo "creating $dirpart/$file"
12701      echo '# dummy' > "$dirpart/$file"
12702    done
12703  done
12704}
12705 ;;
12706
12707  esac
12708done # for ac_tag
12709
12710
12711as_fn_exit 0
12712_ACEOF
12713ac_clean_files=$ac_clean_files_save
12714
12715test $ac_write_fail = 0 ||
12716  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12717
12718
12719# configure is writing to config.log, and then calls config.status.
12720# config.status does its own redirection, appending to config.log.
12721# Unfortunately, on DOS this fails, as config.log is still kept open
12722# by configure, so config.status won't be able to write to it; its
12723# output is simply discarded.  So we exec the FD to /dev/null,
12724# effectively closing config.log, so it can be properly (re)opened and
12725# appended to by config.status.  When coming back to configure, we
12726# need to make the FD available again.
12727if test "$no_create" != yes; then
12728  ac_cs_success=:
12729  ac_config_status_args=
12730  test "$silent" = yes &&
12731    ac_config_status_args="$ac_config_status_args --quiet"
12732  exec 5>/dev/null
12733  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12734  exec 5>>config.log
12735  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12736  # would make configure fail if this is the last instruction.
12737  $ac_cs_success || as_fn_exit 1
12738fi
12739if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12740  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12741$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12742fi
12743
12744