configure revision 5dd5f640
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xclock 1.0.7.
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.7'
565PACKAGE_STRING='xclock 1.0.7'
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
620MAN_SUBSTS
621XORG_MAN_PAGE
622ADMIN_MAN_DIR
623DRIVER_MAN_DIR
624MISC_MAN_DIR
625FILE_MAN_DIR
626LIB_MAN_DIR
627APP_MAN_DIR
628ADMIN_MAN_SUFFIX
629DRIVER_MAN_SUFFIX
630MISC_MAN_SUFFIX
631FILE_MAN_SUFFIX
632LIB_MAN_SUFFIX
633APP_MAN_SUFFIX
634SED
635host_os
636host_vendor
637host_cpu
638host
639build_os
640build_vendor
641build_cpu
642build
643INSTALL_CMD
644PKG_CONFIG
645CHANGELOG_CMD
646STRICT_CFLAGS
647CWARNFLAGS
648BASE_CFLAGS
649EGREP
650GREP
651CPP
652am__fastdepCC_FALSE
653am__fastdepCC_TRUE
654CCDEPMODE
655am__nodep
656AMDEPBACKSLASH
657AMDEP_FALSE
658AMDEP_TRUE
659am__quote
660am__include
661DEPDIR
662OBJEXT
663EXEEXT
664ac_ct_CC
665CPPFLAGS
666LDFLAGS
667CFLAGS
668CC
669MAINT
670MAINTAINER_MODE_FALSE
671MAINTAINER_MODE_TRUE
672AM_BACKSLASH
673AM_DEFAULT_VERBOSITY
674AM_DEFAULT_V
675AM_V
676am__untar
677am__tar
678AMTAR
679am__leading_dot
680SET_MAKE
681AWK
682mkdir_p
683MKDIR_P
684INSTALL_STRIP_PROGRAM
685STRIP
686install_sh
687MAKEINFO
688AUTOHEADER
689AUTOMAKE
690AUTOCONF
691ACLOCAL
692VERSION
693PACKAGE
694CYGPATH_W
695am__isrc
696INSTALL_DATA
697INSTALL_SCRIPT
698INSTALL_PROGRAM
699target_alias
700host_alias
701build_alias
702LIBS
703ECHO_T
704ECHO_N
705ECHO_C
706DEFS
707mandir
708localedir
709libdir
710psdir
711pdfdir
712dvidir
713htmldir
714infodir
715docdir
716oldincludedir
717includedir
718localstatedir
719sharedstatedir
720sysconfdir
721datadir
722datarootdir
723libexecdir
724sbindir
725bindir
726program_transform_name
727prefix
728exec_prefix
729PACKAGE_URL
730PACKAGE_BUGREPORT
731PACKAGE_STRING
732PACKAGE_VERSION
733PACKAGE_TARNAME
734PACKAGE_NAME
735PATH_SEPARATOR
736SHELL'
737ac_subst_files=''
738ac_user_opts='
739enable_option_checking
740enable_silent_rules
741enable_maintainer_mode
742enable_dependency_tracking
743enable_selective_werror
744enable_strict_compilation
745with_gnu_ld
746enable_rpath
747with_libiconv_prefix
748with_xft
749with_xkb
750with_appdefaultdir
751'
752      ac_precious_vars='build_alias
753host_alias
754target_alias
755CC
756CFLAGS
757LDFLAGS
758LIBS
759CPPFLAGS
760CPP
761PKG_CONFIG
762XCLOCK_CFLAGS
763XCLOCK_LIBS
764XFT_CFLAGS
765XFT_LIBS
766XKB_CFLAGS
767XKB_LIBS
768APPDEFS_CFLAGS
769APPDEFS_LIBS'
770
771
772# Initialize some variables set by options.
773ac_init_help=
774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
777# The variables have the same names as the options, with
778# dashes changed to underlines.
779cache_file=/dev/null
780exec_prefix=NONE
781no_create=
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
790verbose=
791x_includes=NONE
792x_libraries=NONE
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
819
820ac_prev=
821ac_dashdash=
822for ac_option
823do
824  # If the previous option needs an argument, assign it.
825  if test -n "$ac_prev"; then
826    eval $ac_prev=\$ac_option
827    ac_prev=
828    continue
829  fi
830
831  case $ac_option in
832  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833  *=)   ac_optarg= ;;
834  *)    ac_optarg=yes ;;
835  esac
836
837  # Accept the important Cygnus configure options, so we can diagnose typos.
838
839  case $ac_dashdash$ac_option in
840  --)
841    ac_dashdash=yes ;;
842
843  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844    ac_prev=bindir ;;
845  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846    bindir=$ac_optarg ;;
847
848  -build | --build | --buil | --bui | --bu)
849    ac_prev=build_alias ;;
850  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851    build_alias=$ac_optarg ;;
852
853  -cache-file | --cache-file | --cache-fil | --cache-fi \
854  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855    ac_prev=cache_file ;;
856  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858    cache_file=$ac_optarg ;;
859
860  --config-cache | -C)
861    cache_file=config.cache ;;
862
863  -datadir | --datadir | --datadi | --datad)
864    ac_prev=datadir ;;
865  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866    datadir=$ac_optarg ;;
867
868  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869  | --dataroo | --dataro | --datar)
870    ac_prev=datarootdir ;;
871  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873    datarootdir=$ac_optarg ;;
874
875  -disable-* | --disable-*)
876    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877    # Reject names that are not valid shell variable names.
878    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879      as_fn_error $? "invalid feature name: $ac_useropt"
880    ac_useropt_orig=$ac_useropt
881    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882    case $ac_user_opts in
883      *"
884"enable_$ac_useropt"
885"*) ;;
886      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887	 ac_unrecognized_sep=', ';;
888    esac
889    eval enable_$ac_useropt=no ;;
890
891  -docdir | --docdir | --docdi | --doc | --do)
892    ac_prev=docdir ;;
893  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894    docdir=$ac_optarg ;;
895
896  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897    ac_prev=dvidir ;;
898  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899    dvidir=$ac_optarg ;;
900
901  -enable-* | --enable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=\$ac_optarg ;;
916
917  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919  | --exec | --exe | --ex)
920    ac_prev=exec_prefix ;;
921  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923  | --exec=* | --exe=* | --ex=*)
924    exec_prefix=$ac_optarg ;;
925
926  -gas | --gas | --ga | --g)
927    # Obsolete; use --with-gas.
928    with_gas=yes ;;
929
930  -help | --help | --hel | --he | -h)
931    ac_init_help=long ;;
932  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933    ac_init_help=recursive ;;
934  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935    ac_init_help=short ;;
936
937  -host | --host | --hos | --ho)
938    ac_prev=host_alias ;;
939  -host=* | --host=* | --hos=* | --ho=*)
940    host_alias=$ac_optarg ;;
941
942  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943    ac_prev=htmldir ;;
944  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945  | --ht=*)
946    htmldir=$ac_optarg ;;
947
948  -includedir | --includedir | --includedi | --included | --include \
949  | --includ | --inclu | --incl | --inc)
950    ac_prev=includedir ;;
951  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952  | --includ=* | --inclu=* | --incl=* | --inc=*)
953    includedir=$ac_optarg ;;
954
955  -infodir | --infodir | --infodi | --infod | --info | --inf)
956    ac_prev=infodir ;;
957  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958    infodir=$ac_optarg ;;
959
960  -libdir | --libdir | --libdi | --libd)
961    ac_prev=libdir ;;
962  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963    libdir=$ac_optarg ;;
964
965  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966  | --libexe | --libex | --libe)
967    ac_prev=libexecdir ;;
968  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969  | --libexe=* | --libex=* | --libe=*)
970    libexecdir=$ac_optarg ;;
971
972  -localedir | --localedir | --localedi | --localed | --locale)
973    ac_prev=localedir ;;
974  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975    localedir=$ac_optarg ;;
976
977  -localstatedir | --localstatedir | --localstatedi | --localstated \
978  | --localstate | --localstat | --localsta | --localst | --locals)
979    ac_prev=localstatedir ;;
980  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982    localstatedir=$ac_optarg ;;
983
984  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985    ac_prev=mandir ;;
986  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987    mandir=$ac_optarg ;;
988
989  -nfp | --nfp | --nf)
990    # Obsolete; use --without-fp.
991    with_fp=no ;;
992
993  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994  | --no-cr | --no-c | -n)
995    no_create=yes ;;
996
997  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999    no_recursion=yes ;;
1000
1001  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003  | --oldin | --oldi | --old | --ol | --o)
1004    ac_prev=oldincludedir ;;
1005  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008    oldincludedir=$ac_optarg ;;
1009
1010  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011    ac_prev=prefix ;;
1012  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013    prefix=$ac_optarg ;;
1014
1015  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016  | --program-pre | --program-pr | --program-p)
1017    ac_prev=program_prefix ;;
1018  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020    program_prefix=$ac_optarg ;;
1021
1022  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023  | --program-suf | --program-su | --program-s)
1024    ac_prev=program_suffix ;;
1025  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027    program_suffix=$ac_optarg ;;
1028
1029  -program-transform-name | --program-transform-name \
1030  | --program-transform-nam | --program-transform-na \
1031  | --program-transform-n | --program-transform- \
1032  | --program-transform | --program-transfor \
1033  | --program-transfo | --program-transf \
1034  | --program-trans | --program-tran \
1035  | --progr-tra | --program-tr | --program-t)
1036    ac_prev=program_transform_name ;;
1037  -program-transform-name=* | --program-transform-name=* \
1038  | --program-transform-nam=* | --program-transform-na=* \
1039  | --program-transform-n=* | --program-transform-=* \
1040  | --program-transform=* | --program-transfor=* \
1041  | --program-transfo=* | --program-transf=* \
1042  | --program-trans=* | --program-tran=* \
1043  | --progr-tra=* | --program-tr=* | --program-t=*)
1044    program_transform_name=$ac_optarg ;;
1045
1046  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047    ac_prev=pdfdir ;;
1048  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049    pdfdir=$ac_optarg ;;
1050
1051  -psdir | --psdir | --psdi | --psd | --ps)
1052    ac_prev=psdir ;;
1053  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054    psdir=$ac_optarg ;;
1055
1056  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057  | -silent | --silent | --silen | --sile | --sil)
1058    silent=yes ;;
1059
1060  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061    ac_prev=sbindir ;;
1062  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063  | --sbi=* | --sb=*)
1064    sbindir=$ac_optarg ;;
1065
1066  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068  | --sharedst | --shareds | --shared | --share | --shar \
1069  | --sha | --sh)
1070    ac_prev=sharedstatedir ;;
1071  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074  | --sha=* | --sh=*)
1075    sharedstatedir=$ac_optarg ;;
1076
1077  -site | --site | --sit)
1078    ac_prev=site ;;
1079  -site=* | --site=* | --sit=*)
1080    site=$ac_optarg ;;
1081
1082  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083    ac_prev=srcdir ;;
1084  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085    srcdir=$ac_optarg ;;
1086
1087  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088  | --syscon | --sysco | --sysc | --sys | --sy)
1089    ac_prev=sysconfdir ;;
1090  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092    sysconfdir=$ac_optarg ;;
1093
1094  -target | --target | --targe | --targ | --tar | --ta | --t)
1095    ac_prev=target_alias ;;
1096  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097    target_alias=$ac_optarg ;;
1098
1099  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100    verbose=yes ;;
1101
1102  -version | --version | --versio | --versi | --vers | -V)
1103    ac_init_version=: ;;
1104
1105  -with-* | --with-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=\$ac_optarg ;;
1120
1121  -without-* | --without-*)
1122    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123    # Reject names that are not valid shell variable names.
1124    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125      as_fn_error $? "invalid package name: $ac_useropt"
1126    ac_useropt_orig=$ac_useropt
1127    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128    case $ac_user_opts in
1129      *"
1130"with_$ac_useropt"
1131"*) ;;
1132      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133	 ac_unrecognized_sep=', ';;
1134    esac
1135    eval with_$ac_useropt=no ;;
1136
1137  --x)
1138    # Obsolete; use --with-x.
1139    with_x=yes ;;
1140
1141  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142  | --x-incl | --x-inc | --x-in | --x-i)
1143    ac_prev=x_includes ;;
1144  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146    x_includes=$ac_optarg ;;
1147
1148  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150    ac_prev=x_libraries ;;
1151  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153    x_libraries=$ac_optarg ;;
1154
1155  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156Try \`$0 --help' for more information"
1157    ;;
1158
1159  *=*)
1160    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161    # Reject names that are not valid shell variable names.
1162    case $ac_envvar in #(
1163      '' | [0-9]* | *[!_$as_cr_alnum]* )
1164      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165    esac
1166    eval $ac_envvar=\$ac_optarg
1167    export $ac_envvar ;;
1168
1169  *)
1170    # FIXME: should be removed in autoconf 3.0.
1171    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175    ;;
1176
1177  esac
1178done
1179
1180if test -n "$ac_prev"; then
1181  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182  as_fn_error $? "missing argument to $ac_option"
1183fi
1184
1185if test -n "$ac_unrecognized_opts"; then
1186  case $enable_option_checking in
1187    no) ;;
1188    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190  esac
1191fi
1192
1193# Check all directory arguments for consistency.
1194for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195		datadir sysconfdir sharedstatedir localstatedir includedir \
1196		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197		libdir localedir mandir
1198do
1199  eval ac_val=\$$ac_var
1200  # Remove trailing slashes.
1201  case $ac_val in
1202    */ )
1203      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204      eval $ac_var=\$ac_val;;
1205  esac
1206  # Be sure to have absolute directory names.
1207  case $ac_val in
1208    [\\/$]* | ?:[\\/]* )  continue;;
1209    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210  esac
1211  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223  if test "x$build_alias" = x; then
1224    cross_compiling=maybe
1225    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1226    If a cross compiler is detected then cross compile mode will be used" >&2
1227  elif test "x$build_alias" != "x$host_alias"; then
1228    cross_compiling=yes
1229  fi
1230fi
1231
1232ac_tool_prefix=
1233test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235test "$silent" = yes && exec 6>/dev/null
1236
1237
1238ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239ac_ls_di=`ls -di .` &&
1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241  as_fn_error $? "working directory cannot be determined"
1242test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243  as_fn_error $? "pwd does not report name of working directory"
1244
1245
1246# Find the source files, if location was not specified.
1247if test -z "$srcdir"; then
1248  ac_srcdir_defaulted=yes
1249  # Try the directory containing this script, then the parent directory.
1250  ac_confdir=`$as_dirname -- "$as_myself" ||
1251$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252	 X"$as_myself" : 'X\(//\)[^/]' \| \
1253	 X"$as_myself" : 'X\(//\)$' \| \
1254	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255$as_echo X"$as_myself" |
1256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257	    s//\1/
1258	    q
1259	  }
1260	  /^X\(\/\/\)[^/].*/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\/\)$/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\).*/{
1269	    s//\1/
1270	    q
1271	  }
1272	  s/.*/./; q'`
1273  srcdir=$ac_confdir
1274  if test ! -r "$srcdir/$ac_unique_file"; then
1275    srcdir=..
1276  fi
1277else
1278  ac_srcdir_defaulted=no
1279fi
1280if test ! -r "$srcdir/$ac_unique_file"; then
1281  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283fi
1284ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285ac_abs_confdir=`(
1286	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287	pwd)`
1288# When building in place, set srcdir=.
1289if test "$ac_abs_confdir" = "$ac_pwd"; then
1290  srcdir=.
1291fi
1292# Remove unnecessary trailing slashes from srcdir.
1293# Double slashes in file names in object file debugging info
1294# mess up M-x gdb in Emacs.
1295case $srcdir in
1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297esac
1298for ac_var in $ac_precious_vars; do
1299  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300  eval ac_env_${ac_var}_value=\$${ac_var}
1301  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303done
1304
1305#
1306# Report the --help message.
1307#
1308if test "$ac_init_help" = "long"; then
1309  # Omit some internal or obsolete options to make the list less imposing.
1310  # This message is too long to be a string in the A/UX 3.1 sh.
1311  cat <<_ACEOF
1312\`configure' configures xclock 1.0.7 to adapt to many kinds of systems.
1313
1314Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
1319Defaults for the options are specified in brackets.
1320
1321Configuration:
1322  -h, --help              display this help and exit
1323      --help=short        display options specific to this package
1324      --help=recursive    display the short help of all the included packages
1325  -V, --version           display version information and exit
1326  -q, --quiet, --silent   do not print \`checking ...' messages
1327      --cache-file=FILE   cache test results in FILE [disabled]
1328  -C, --config-cache      alias for \`--cache-file=config.cache'
1329  -n, --no-create         do not create output files
1330      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
1332Installation directories:
1333  --prefix=PREFIX         install architecture-independent files in PREFIX
1334                          [$ac_default_prefix]
1335  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336                          [PREFIX]
1337
1338By default, \`make install' will install all the files in
1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341for instance \`--prefix=\$HOME'.
1342
1343For better control, use the options below.
1344
1345Fine tuning of the installation directories:
1346  --bindir=DIR            user executables [EPREFIX/bin]
1347  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1348  --libexecdir=DIR        program executables [EPREFIX/libexec]
1349  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1350  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1351  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1352  --libdir=DIR            object code libraries [EPREFIX/lib]
1353  --includedir=DIR        C header files [PREFIX/include]
1354  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357  --infodir=DIR           info documentation [DATAROOTDIR/info]
1358  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359  --mandir=DIR            man documentation [DATAROOTDIR/man]
1360  --docdir=DIR            documentation root [DATAROOTDIR/doc/xclock]
1361  --htmldir=DIR           html documentation [DOCDIR]
1362  --dvidir=DIR            dvi documentation [DOCDIR]
1363  --pdfdir=DIR            pdf documentation [DOCDIR]
1364  --psdir=DIR             ps documentation [DOCDIR]
1365_ACEOF
1366
1367  cat <<\_ACEOF
1368
1369Program names:
1370  --program-prefix=PREFIX            prepend PREFIX to installed program names
1371  --program-suffix=SUFFIX            append SUFFIX to installed program names
1372  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1373
1374System types:
1375  --build=BUILD     configure for building on BUILD [guessed]
1376  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377_ACEOF
1378fi
1379
1380if test -n "$ac_init_help"; then
1381  case $ac_init_help in
1382     short | recursive ) echo "Configuration of xclock 1.0.7:";;
1383   esac
1384  cat <<\_ACEOF
1385
1386Optional Features:
1387  --disable-option-checking  ignore unrecognized --enable/--with options
1388  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390  --enable-silent-rules   less verbose build output (undo: "make V=1")
1391  --disable-silent-rules  verbose build output (undo: "make V=0")
1392  --enable-maintainer-mode
1393                          enable make rules and dependencies not useful (and
1394                          sometimes confusing) to the casual installer
1395  --enable-dependency-tracking
1396                          do not reject slow dependency extractors
1397  --disable-dependency-tracking
1398                          speeds up one-time build
1399  --disable-selective-werror
1400                          Turn off selective compiler errors. (default:
1401                          enabled)
1402  --enable-strict-compilation
1403                          Enable all warnings from compiler and make them
1404                          errors (default: disabled)
1405  --disable-rpath         do not hardcode runtime library paths
1406
1407Optional Packages:
1408  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1409  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1410  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1411  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1412  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1413  --with-xft              Use Xft2 and Xrender for rendering (Default is YES)
1414  --with-xkb              Use XKB to sound bells (Default is YES)
1415  --with-appdefaultdir=<pathname>
1416                          specify directory for app-defaults files (default is
1417                          autodetected)
1418
1419Some influential environment variables:
1420  CC          C compiler command
1421  CFLAGS      C compiler flags
1422  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1423              nonstandard directory <lib dir>
1424  LIBS        libraries to pass to the linker, e.g. -l<library>
1425  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426              you have headers in a nonstandard directory <include dir>
1427  CPP         C preprocessor
1428  PKG_CONFIG  path to pkg-config utility
1429  XCLOCK_CFLAGS
1430              C compiler flags for XCLOCK, overriding pkg-config
1431  XCLOCK_LIBS linker flags for XCLOCK, overriding pkg-config
1432  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1433  XFT_LIBS    linker flags for XFT, overriding pkg-config
1434  XKB_CFLAGS  C compiler flags for XKB, overriding pkg-config
1435  XKB_LIBS    linker flags for XKB, overriding pkg-config
1436  APPDEFS_CFLAGS
1437              C compiler flags for APPDEFS, overriding pkg-config
1438  APPDEFS_LIBS
1439              linker flags for APPDEFS, overriding pkg-config
1440
1441Use these variables to override the choices made by `configure' or to help
1442it to find libraries and programs with nonstandard names/locations.
1443
1444Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1445_ACEOF
1446ac_status=$?
1447fi
1448
1449if test "$ac_init_help" = "recursive"; then
1450  # If there are subdirs, report their specific --help.
1451  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452    test -d "$ac_dir" ||
1453      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454      continue
1455    ac_builddir=.
1456
1457case "$ac_dir" in
1458.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459*)
1460  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461  # A ".." for each directory in $ac_dir_suffix.
1462  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463  case $ac_top_builddir_sub in
1464  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466  esac ;;
1467esac
1468ac_abs_top_builddir=$ac_pwd
1469ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470# for backward compatibility:
1471ac_top_builddir=$ac_top_build_prefix
1472
1473case $srcdir in
1474  .)  # We are building in place.
1475    ac_srcdir=.
1476    ac_top_srcdir=$ac_top_builddir_sub
1477    ac_abs_top_srcdir=$ac_pwd ;;
1478  [\\/]* | ?:[\\/]* )  # Absolute name.
1479    ac_srcdir=$srcdir$ac_dir_suffix;
1480    ac_top_srcdir=$srcdir
1481    ac_abs_top_srcdir=$srcdir ;;
1482  *) # Relative name.
1483    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484    ac_top_srcdir=$ac_top_build_prefix$srcdir
1485    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486esac
1487ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489    cd "$ac_dir" || { ac_status=$?; continue; }
1490    # Check for guested configure.
1491    if test -f "$ac_srcdir/configure.gnu"; then
1492      echo &&
1493      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494    elif test -f "$ac_srcdir/configure"; then
1495      echo &&
1496      $SHELL "$ac_srcdir/configure" --help=recursive
1497    else
1498      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499    fi || ac_status=$?
1500    cd "$ac_pwd" || { ac_status=$?; break; }
1501  done
1502fi
1503
1504test -n "$ac_init_help" && exit $ac_status
1505if $ac_init_version; then
1506  cat <<\_ACEOF
1507xclock configure 1.0.7
1508generated by GNU Autoconf 2.68
1509
1510Copyright (C) 2010 Free Software Foundation, Inc.
1511This configure script is free software; the Free Software Foundation
1512gives unlimited permission to copy, distribute and modify it.
1513_ACEOF
1514  exit
1515fi
1516
1517## ------------------------ ##
1518## Autoconf initialization. ##
1519## ------------------------ ##
1520
1521# ac_fn_c_try_compile LINENO
1522# --------------------------
1523# Try to compile conftest.$ac_ext, and return whether this succeeded.
1524ac_fn_c_try_compile ()
1525{
1526  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527  rm -f conftest.$ac_objext
1528  if { { ac_try="$ac_compile"
1529case "(($ac_try" in
1530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531  *) ac_try_echo=$ac_try;;
1532esac
1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534$as_echo "$ac_try_echo"; } >&5
1535  (eval "$ac_compile") 2>conftest.err
1536  ac_status=$?
1537  if test -s conftest.err; then
1538    grep -v '^ *+' conftest.err >conftest.er1
1539    cat conftest.er1 >&5
1540    mv -f conftest.er1 conftest.err
1541  fi
1542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543  test $ac_status = 0; } && {
1544	 test -z "$ac_c_werror_flag" ||
1545	 test ! -s conftest.err
1546       } && test -s conftest.$ac_objext; then :
1547  ac_retval=0
1548else
1549  $as_echo "$as_me: failed program was:" >&5
1550sed 's/^/| /' conftest.$ac_ext >&5
1551
1552	ac_retval=1
1553fi
1554  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555  as_fn_set_status $ac_retval
1556
1557} # ac_fn_c_try_compile
1558
1559# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1560# ---------------------------------------------
1561# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1562# accordingly.
1563ac_fn_c_check_decl ()
1564{
1565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566  as_decl_name=`echo $2|sed 's/ *(.*//'`
1567  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1569$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1570if eval \${$3+:} false; then :
1571  $as_echo_n "(cached) " >&6
1572else
1573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574/* end confdefs.h.  */
1575$4
1576int
1577main ()
1578{
1579#ifndef $as_decl_name
1580#ifdef __cplusplus
1581  (void) $as_decl_use;
1582#else
1583  (void) $as_decl_name;
1584#endif
1585#endif
1586
1587  ;
1588  return 0;
1589}
1590_ACEOF
1591if ac_fn_c_try_compile "$LINENO"; then :
1592  eval "$3=yes"
1593else
1594  eval "$3=no"
1595fi
1596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1597fi
1598eval ac_res=\$$3
1599	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600$as_echo "$ac_res" >&6; }
1601  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602
1603} # ac_fn_c_check_decl
1604
1605# ac_fn_c_try_cpp LINENO
1606# ----------------------
1607# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_cpp ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  if { { ac_try="$ac_cpp conftest.$ac_ext"
1612case "(($ac_try" in
1613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614  *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1619  ac_status=$?
1620  if test -s conftest.err; then
1621    grep -v '^ *+' conftest.err >conftest.er1
1622    cat conftest.er1 >&5
1623    mv -f conftest.er1 conftest.err
1624  fi
1625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626  test $ac_status = 0; } > conftest.i && {
1627	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1628	 test ! -s conftest.err
1629       }; then :
1630  ac_retval=0
1631else
1632  $as_echo "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
1634
1635    ac_retval=1
1636fi
1637  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638  as_fn_set_status $ac_retval
1639
1640} # ac_fn_c_try_cpp
1641
1642# ac_fn_c_try_run LINENO
1643# ----------------------
1644# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1645# that executables *can* be run.
1646ac_fn_c_try_run ()
1647{
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  if { { ac_try="$ac_link"
1650case "(($ac_try" in
1651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652  *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656  (eval "$ac_link") 2>&5
1657  ac_status=$?
1658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1660  { { case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_try") 2>&5
1667  ac_status=$?
1668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; }; }; then :
1670  ac_retval=0
1671else
1672  $as_echo "$as_me: program exited with status $ac_status" >&5
1673       $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676       ac_retval=$ac_status
1677fi
1678  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_run
1683
1684# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685# -------------------------------------------------------
1686# Tests whether HEADER exists and can be compiled using the include files in
1687# INCLUDES, setting the cache variable VAR accordingly.
1688ac_fn_c_check_header_compile ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692$as_echo_n "checking for $2... " >&6; }
1693if eval \${$3+:} false; then :
1694  $as_echo_n "(cached) " >&6
1695else
1696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h.  */
1698$4
1699#include <$2>
1700_ACEOF
1701if ac_fn_c_try_compile "$LINENO"; then :
1702  eval "$3=yes"
1703else
1704  eval "$3=no"
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707fi
1708eval ac_res=\$$3
1709	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713} # ac_fn_c_check_header_compile
1714
1715# ac_fn_c_try_link LINENO
1716# -----------------------
1717# Try to link conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_link ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  rm -f conftest.$ac_objext conftest$ac_exeext
1722  if { { ac_try="$ac_link"
1723case "(($ac_try" in
1724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725  *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729  (eval "$ac_link") 2>conftest.err
1730  ac_status=$?
1731  if test -s conftest.err; then
1732    grep -v '^ *+' conftest.err >conftest.er1
1733    cat conftest.er1 >&5
1734    mv -f conftest.er1 conftest.err
1735  fi
1736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737  test $ac_status = 0; } && {
1738	 test -z "$ac_c_werror_flag" ||
1739	 test ! -s conftest.err
1740       } && test -s conftest$ac_exeext && {
1741	 test "$cross_compiling" = yes ||
1742	 $as_test_x conftest$ac_exeext
1743       }; then :
1744  ac_retval=0
1745else
1746  $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749	ac_retval=1
1750fi
1751  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753  # interfere with the next link command; also delete a directory that is
1754  # left behind by Apple's compiler.  We do this before executing the actions.
1755  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757  as_fn_set_status $ac_retval
1758
1759} # ac_fn_c_try_link
1760
1761# ac_fn_c_check_func LINENO FUNC VAR
1762# ----------------------------------
1763# Tests whether FUNC exists, setting the cache variable VAR accordingly
1764ac_fn_c_check_func ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if eval \${$3+:} false; then :
1770  $as_echo_n "(cached) " >&6
1771else
1772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1775   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1776#define $2 innocuous_$2
1777
1778/* System header to define __stub macros and hopefully few prototypes,
1779    which can conflict with char $2 (); below.
1780    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1781    <limits.h> exists even on freestanding compilers.  */
1782
1783#ifdef __STDC__
1784# include <limits.h>
1785#else
1786# include <assert.h>
1787#endif
1788
1789#undef $2
1790
1791/* Override any GCC internal prototype to avoid an error.
1792   Use char because int might match the return type of a GCC
1793   builtin and then its argument prototype would still apply.  */
1794#ifdef __cplusplus
1795extern "C"
1796#endif
1797char $2 ();
1798/* The GNU C library defines this for functions which it implements
1799    to always fail with ENOSYS.  Some functions are actually named
1800    something starting with __ and the normal name is an alias.  */
1801#if defined __stub_$2 || defined __stub___$2
1802choke me
1803#endif
1804
1805int
1806main ()
1807{
1808return $2 ();
1809  ;
1810  return 0;
1811}
1812_ACEOF
1813if ac_fn_c_try_link "$LINENO"; then :
1814  eval "$3=yes"
1815else
1816  eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext \
1819    conftest$ac_exeext conftest.$ac_ext
1820fi
1821eval ac_res=\$$3
1822	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823$as_echo "$ac_res" >&6; }
1824  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826} # ac_fn_c_check_func
1827cat >config.log <<_ACEOF
1828This file contains any messages produced by compilers while
1829running configure, to aid debugging if configure makes a mistake.
1830
1831It was created by xclock $as_me 1.0.7, which was
1832generated by GNU Autoconf 2.68.  Invocation command line was
1833
1834  $ $0 $@
1835
1836_ACEOF
1837exec 5>>config.log
1838{
1839cat <<_ASUNAME
1840## --------- ##
1841## Platform. ##
1842## --------- ##
1843
1844hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1845uname -m = `(uname -m) 2>/dev/null || echo unknown`
1846uname -r = `(uname -r) 2>/dev/null || echo unknown`
1847uname -s = `(uname -s) 2>/dev/null || echo unknown`
1848uname -v = `(uname -v) 2>/dev/null || echo unknown`
1849
1850/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1851/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1852
1853/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1854/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1855/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1856/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1857/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1858/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1859/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1860
1861_ASUNAME
1862
1863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864for as_dir in $PATH
1865do
1866  IFS=$as_save_IFS
1867  test -z "$as_dir" && as_dir=.
1868    $as_echo "PATH: $as_dir"
1869  done
1870IFS=$as_save_IFS
1871
1872} >&5
1873
1874cat >&5 <<_ACEOF
1875
1876
1877## ----------- ##
1878## Core tests. ##
1879## ----------- ##
1880
1881_ACEOF
1882
1883
1884# Keep a trace of the command line.
1885# Strip out --no-create and --no-recursion so they do not pile up.
1886# Strip out --silent because we don't want to record it for future runs.
1887# Also quote any args containing shell meta-characters.
1888# Make two passes to allow for proper duplicate-argument suppression.
1889ac_configure_args=
1890ac_configure_args0=
1891ac_configure_args1=
1892ac_must_keep_next=false
1893for ac_pass in 1 2
1894do
1895  for ac_arg
1896  do
1897    case $ac_arg in
1898    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1899    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1900    | -silent | --silent | --silen | --sile | --sil)
1901      continue ;;
1902    *\'*)
1903      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1904    esac
1905    case $ac_pass in
1906    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1907    2)
1908      as_fn_append ac_configure_args1 " '$ac_arg'"
1909      if test $ac_must_keep_next = true; then
1910	ac_must_keep_next=false # Got value, back to normal.
1911      else
1912	case $ac_arg in
1913	  *=* | --config-cache | -C | -disable-* | --disable-* \
1914	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1915	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1916	  | -with-* | --with-* | -without-* | --without-* | --x)
1917	    case "$ac_configure_args0 " in
1918	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1919	    esac
1920	    ;;
1921	  -* ) ac_must_keep_next=true ;;
1922	esac
1923      fi
1924      as_fn_append ac_configure_args " '$ac_arg'"
1925      ;;
1926    esac
1927  done
1928done
1929{ ac_configure_args0=; unset ac_configure_args0;}
1930{ ac_configure_args1=; unset ac_configure_args1;}
1931
1932# When interrupted or exit'd, cleanup temporary files, and complete
1933# config.log.  We remove comments because anyway the quotes in there
1934# would cause problems or look ugly.
1935# WARNING: Use '\'' to represent an apostrophe within the trap.
1936# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1937trap 'exit_status=$?
1938  # Save into config.log some information that might help in debugging.
1939  {
1940    echo
1941
1942    $as_echo "## ---------------- ##
1943## Cache variables. ##
1944## ---------------- ##"
1945    echo
1946    # The following way of writing the cache mishandles newlines in values,
1947(
1948  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1949    eval ac_val=\$$ac_var
1950    case $ac_val in #(
1951    *${as_nl}*)
1952      case $ac_var in #(
1953      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1954$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1955      esac
1956      case $ac_var in #(
1957      _ | IFS | as_nl) ;; #(
1958      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1959      *) { eval $ac_var=; unset $ac_var;} ;;
1960      esac ;;
1961    esac
1962  done
1963  (set) 2>&1 |
1964    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1965    *${as_nl}ac_space=\ *)
1966      sed -n \
1967	"s/'\''/'\''\\\\'\'''\''/g;
1968	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1969      ;; #(
1970    *)
1971      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1972      ;;
1973    esac |
1974    sort
1975)
1976    echo
1977
1978    $as_echo "## ----------------- ##
1979## Output variables. ##
1980## ----------------- ##"
1981    echo
1982    for ac_var in $ac_subst_vars
1983    do
1984      eval ac_val=\$$ac_var
1985      case $ac_val in
1986      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987      esac
1988      $as_echo "$ac_var='\''$ac_val'\''"
1989    done | sort
1990    echo
1991
1992    if test -n "$ac_subst_files"; then
1993      $as_echo "## ------------------- ##
1994## File substitutions. ##
1995## ------------------- ##"
1996      echo
1997      for ac_var in $ac_subst_files
1998      do
1999	eval ac_val=\$$ac_var
2000	case $ac_val in
2001	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002	esac
2003	$as_echo "$ac_var='\''$ac_val'\''"
2004      done | sort
2005      echo
2006    fi
2007
2008    if test -s confdefs.h; then
2009      $as_echo "## ----------- ##
2010## confdefs.h. ##
2011## ----------- ##"
2012      echo
2013      cat confdefs.h
2014      echo
2015    fi
2016    test "$ac_signal" != 0 &&
2017      $as_echo "$as_me: caught signal $ac_signal"
2018    $as_echo "$as_me: exit $exit_status"
2019  } >&5
2020  rm -f core *.core core.conftest.* &&
2021    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2022    exit $exit_status
2023' 0
2024for ac_signal in 1 2 13 15; do
2025  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2026done
2027ac_signal=0
2028
2029# confdefs.h avoids OS command line length limits that DEFS can exceed.
2030rm -f -r conftest* confdefs.h
2031
2032$as_echo "/* confdefs.h */" > confdefs.h
2033
2034# Predefined preprocessor variables.
2035
2036cat >>confdefs.h <<_ACEOF
2037#define PACKAGE_NAME "$PACKAGE_NAME"
2038_ACEOF
2039
2040cat >>confdefs.h <<_ACEOF
2041#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2042_ACEOF
2043
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_VERSION "$PACKAGE_VERSION"
2046_ACEOF
2047
2048cat >>confdefs.h <<_ACEOF
2049#define PACKAGE_STRING "$PACKAGE_STRING"
2050_ACEOF
2051
2052cat >>confdefs.h <<_ACEOF
2053#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2054_ACEOF
2055
2056cat >>confdefs.h <<_ACEOF
2057#define PACKAGE_URL "$PACKAGE_URL"
2058_ACEOF
2059
2060
2061# Let the site file select an alternate cache file if it wants to.
2062# Prefer an explicitly selected file to automatically selected ones.
2063ac_site_file1=NONE
2064ac_site_file2=NONE
2065if test -n "$CONFIG_SITE"; then
2066  # We do not want a PATH search for config.site.
2067  case $CONFIG_SITE in #((
2068    -*)  ac_site_file1=./$CONFIG_SITE;;
2069    */*) ac_site_file1=$CONFIG_SITE;;
2070    *)   ac_site_file1=./$CONFIG_SITE;;
2071  esac
2072elif test "x$prefix" != xNONE; then
2073  ac_site_file1=$prefix/share/config.site
2074  ac_site_file2=$prefix/etc/config.site
2075else
2076  ac_site_file1=$ac_default_prefix/share/config.site
2077  ac_site_file2=$ac_default_prefix/etc/config.site
2078fi
2079for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2080do
2081  test "x$ac_site_file" = xNONE && continue
2082  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2083    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2084$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2085    sed 's/^/| /' "$ac_site_file" >&5
2086    . "$ac_site_file" \
2087      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089as_fn_error $? "failed to load site script $ac_site_file
2090See \`config.log' for more details" "$LINENO" 5; }
2091  fi
2092done
2093
2094if test -r "$cache_file"; then
2095  # Some versions of bash will fail to source /dev/null (special files
2096  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2097  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2098    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2099$as_echo "$as_me: loading cache $cache_file" >&6;}
2100    case $cache_file in
2101      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2102      *)                      . "./$cache_file";;
2103    esac
2104  fi
2105else
2106  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2107$as_echo "$as_me: creating cache $cache_file" >&6;}
2108  >$cache_file
2109fi
2110
2111# Check that the precious variables saved in the cache have kept the same
2112# value.
2113ac_cache_corrupted=false
2114for ac_var in $ac_precious_vars; do
2115  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2116  eval ac_new_set=\$ac_env_${ac_var}_set
2117  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2118  eval ac_new_val=\$ac_env_${ac_var}_value
2119  case $ac_old_set,$ac_new_set in
2120    set,)
2121      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2122$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2123      ac_cache_corrupted=: ;;
2124    ,set)
2125      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2126$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2127      ac_cache_corrupted=: ;;
2128    ,);;
2129    *)
2130      if test "x$ac_old_val" != "x$ac_new_val"; then
2131	# differences in whitespace do not lead to failure.
2132	ac_old_val_w=`echo x $ac_old_val`
2133	ac_new_val_w=`echo x $ac_new_val`
2134	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2135	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2136$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2137	  ac_cache_corrupted=:
2138	else
2139	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2140$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2141	  eval $ac_var=\$ac_old_val
2142	fi
2143	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2144$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2145	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2146$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2147      fi;;
2148  esac
2149  # Pass precious variables to config.status.
2150  if test "$ac_new_set" = set; then
2151    case $ac_new_val in
2152    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2153    *) ac_arg=$ac_var=$ac_new_val ;;
2154    esac
2155    case " $ac_configure_args " in
2156      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2157      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2158    esac
2159  fi
2160done
2161if $ac_cache_corrupted; then
2162  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2165$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2166  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2167fi
2168## -------------------- ##
2169## Main body of script. ##
2170## -------------------- ##
2171
2172ac_ext=c
2173ac_cpp='$CPP $CPPFLAGS'
2174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2176ac_compiler_gnu=$ac_cv_c_compiler_gnu
2177
2178
2179am__api_version='1.14'
2180
2181ac_aux_dir=
2182for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2183  if test -f "$ac_dir/install-sh"; then
2184    ac_aux_dir=$ac_dir
2185    ac_install_sh="$ac_aux_dir/install-sh -c"
2186    break
2187  elif test -f "$ac_dir/install.sh"; then
2188    ac_aux_dir=$ac_dir
2189    ac_install_sh="$ac_aux_dir/install.sh -c"
2190    break
2191  elif test -f "$ac_dir/shtool"; then
2192    ac_aux_dir=$ac_dir
2193    ac_install_sh="$ac_aux_dir/shtool install -c"
2194    break
2195  fi
2196done
2197if test -z "$ac_aux_dir"; then
2198  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2199fi
2200
2201# These three variables are undocumented and unsupported,
2202# and are intended to be withdrawn in a future Autoconf release.
2203# They can cause serious problems if a builder's source tree is in a directory
2204# whose full name contains unusual characters.
2205ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2206ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2207ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2208
2209
2210# Find a good install program.  We prefer a C program (faster),
2211# so one script is as good as another.  But avoid the broken or
2212# incompatible versions:
2213# SysV /etc/install, /usr/sbin/install
2214# SunOS /usr/etc/install
2215# IRIX /sbin/install
2216# AIX /bin/install
2217# AmigaOS /C/install, which installs bootblocks on floppy discs
2218# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2219# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2220# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2221# OS/2's system install, which has a completely different semantic
2222# ./install, which can be erroneously created by make from ./install.sh.
2223# Reject install programs that cannot install multiple files.
2224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2225$as_echo_n "checking for a BSD-compatible install... " >&6; }
2226if test -z "$INSTALL"; then
2227if ${ac_cv_path_install+:} false; then :
2228  $as_echo_n "(cached) " >&6
2229else
2230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231for as_dir in $PATH
2232do
2233  IFS=$as_save_IFS
2234  test -z "$as_dir" && as_dir=.
2235    # Account for people who put trailing slashes in PATH elements.
2236case $as_dir/ in #((
2237  ./ | .// | /[cC]/* | \
2238  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2239  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2240  /usr/ucb/* ) ;;
2241  *)
2242    # OSF1 and SCO ODT 3.0 have their own names for install.
2243    # Don't use installbsd from OSF since it installs stuff as root
2244    # by default.
2245    for ac_prog in ginstall scoinst install; do
2246      for ac_exec_ext in '' $ac_executable_extensions; do
2247	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2248	  if test $ac_prog = install &&
2249	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2250	    # AIX install.  It has an incompatible calling convention.
2251	    :
2252	  elif test $ac_prog = install &&
2253	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2254	    # program-specific install script used by HP pwplus--don't use.
2255	    :
2256	  else
2257	    rm -rf conftest.one conftest.two conftest.dir
2258	    echo one > conftest.one
2259	    echo two > conftest.two
2260	    mkdir conftest.dir
2261	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2262	      test -s conftest.one && test -s conftest.two &&
2263	      test -s conftest.dir/conftest.one &&
2264	      test -s conftest.dir/conftest.two
2265	    then
2266	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2267	      break 3
2268	    fi
2269	  fi
2270	fi
2271      done
2272    done
2273    ;;
2274esac
2275
2276  done
2277IFS=$as_save_IFS
2278
2279rm -rf conftest.one conftest.two conftest.dir
2280
2281fi
2282  if test "${ac_cv_path_install+set}" = set; then
2283    INSTALL=$ac_cv_path_install
2284  else
2285    # As a last resort, use the slow shell script.  Don't cache a
2286    # value for INSTALL within a source directory, because that will
2287    # break other packages using the cache if that directory is
2288    # removed, or if the value is a relative name.
2289    INSTALL=$ac_install_sh
2290  fi
2291fi
2292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2293$as_echo "$INSTALL" >&6; }
2294
2295# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2296# It thinks the first close brace ends the variable substitution.
2297test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2298
2299test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2300
2301test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2302
2303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2304$as_echo_n "checking whether build environment is sane... " >&6; }
2305# Reject unsafe characters in $srcdir or the absolute working directory
2306# name.  Accept space and tab only in the latter.
2307am_lf='
2308'
2309case `pwd` in
2310  *[\\\"\#\$\&\'\`$am_lf]*)
2311    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2312esac
2313case $srcdir in
2314  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2315    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2316esac
2317
2318# Do 'set' in a subshell so we don't clobber the current shell's
2319# arguments.  Must try -L first in case configure is actually a
2320# symlink; some systems play weird games with the mod time of symlinks
2321# (eg FreeBSD returns the mod time of the symlink's containing
2322# directory).
2323if (
2324   am_has_slept=no
2325   for am_try in 1 2; do
2326     echo "timestamp, slept: $am_has_slept" > conftest.file
2327     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2328     if test "$*" = "X"; then
2329	# -L didn't work.
2330	set X `ls -t "$srcdir/configure" conftest.file`
2331     fi
2332     if test "$*" != "X $srcdir/configure conftest.file" \
2333	&& test "$*" != "X conftest.file $srcdir/configure"; then
2334
2335	# If neither matched, then we have a broken ls.  This can happen
2336	# if, for instance, CONFIG_SHELL is bash and it inherits a
2337	# broken ls alias from the environment.  This has actually
2338	# happened.  Such a system could not be considered "sane".
2339	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2340  alias in your environment" "$LINENO" 5
2341     fi
2342     if test "$2" = conftest.file || test $am_try -eq 2; then
2343       break
2344     fi
2345     # Just in case.
2346     sleep 1
2347     am_has_slept=yes
2348   done
2349   test "$2" = conftest.file
2350   )
2351then
2352   # Ok.
2353   :
2354else
2355   as_fn_error $? "newly created file is older than distributed files!
2356Check your system clock" "$LINENO" 5
2357fi
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2359$as_echo "yes" >&6; }
2360# If we didn't sleep, we still need to ensure time stamps of config.status and
2361# generated files are strictly newer.
2362am_sleep_pid=
2363if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2364  ( sleep 1 ) &
2365  am_sleep_pid=$!
2366fi
2367
2368rm -f conftest.file
2369
2370test "$program_prefix" != NONE &&
2371  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2372# Use a double $ so make ignores it.
2373test "$program_suffix" != NONE &&
2374  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2375# Double any \ or $.
2376# By default was `s,x,x', remove it if useless.
2377ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2378program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2379
2380# expand $ac_aux_dir to an absolute path
2381am_aux_dir=`cd $ac_aux_dir && pwd`
2382
2383if test x"${MISSING+set}" != xset; then
2384  case $am_aux_dir in
2385  *\ * | *\	*)
2386    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2387  *)
2388    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2389  esac
2390fi
2391# Use eval to expand $SHELL
2392if eval "$MISSING --is-lightweight"; then
2393  am_missing_run="$MISSING "
2394else
2395  am_missing_run=
2396  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2397$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2398fi
2399
2400if test x"${install_sh}" != xset; then
2401  case $am_aux_dir in
2402  *\ * | *\	*)
2403    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2404  *)
2405    install_sh="\${SHELL} $am_aux_dir/install-sh"
2406  esac
2407fi
2408
2409# Installed binaries are usually stripped using 'strip' when the user
2410# run "make install-strip".  However 'strip' might not be the right
2411# tool to use in cross-compilation environments, therefore Automake
2412# will honor the 'STRIP' environment variable to overrule this program.
2413if test "$cross_compiling" != no; then
2414  if test -n "$ac_tool_prefix"; then
2415  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2416set dummy ${ac_tool_prefix}strip; ac_word=$2
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2418$as_echo_n "checking for $ac_word... " >&6; }
2419if ${ac_cv_prog_STRIP+:} false; then :
2420  $as_echo_n "(cached) " >&6
2421else
2422  if test -n "$STRIP"; then
2423  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2424else
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428  IFS=$as_save_IFS
2429  test -z "$as_dir" && as_dir=.
2430    for ac_exec_ext in '' $ac_executable_extensions; do
2431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2432    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2434    break 2
2435  fi
2436done
2437  done
2438IFS=$as_save_IFS
2439
2440fi
2441fi
2442STRIP=$ac_cv_prog_STRIP
2443if test -n "$STRIP"; then
2444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2445$as_echo "$STRIP" >&6; }
2446else
2447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2448$as_echo "no" >&6; }
2449fi
2450
2451
2452fi
2453if test -z "$ac_cv_prog_STRIP"; then
2454  ac_ct_STRIP=$STRIP
2455  # Extract the first word of "strip", so it can be a program name with args.
2456set dummy strip; ac_word=$2
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2458$as_echo_n "checking for $ac_word... " >&6; }
2459if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2460  $as_echo_n "(cached) " >&6
2461else
2462  if test -n "$ac_ct_STRIP"; then
2463  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2464else
2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468  IFS=$as_save_IFS
2469  test -z "$as_dir" && as_dir=.
2470    for ac_exec_ext in '' $ac_executable_extensions; do
2471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472    ac_cv_prog_ac_ct_STRIP="strip"
2473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2474    break 2
2475  fi
2476done
2477  done
2478IFS=$as_save_IFS
2479
2480fi
2481fi
2482ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2483if test -n "$ac_ct_STRIP"; then
2484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2485$as_echo "$ac_ct_STRIP" >&6; }
2486else
2487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2488$as_echo "no" >&6; }
2489fi
2490
2491  if test "x$ac_ct_STRIP" = x; then
2492    STRIP=":"
2493  else
2494    case $cross_compiling:$ac_tool_warned in
2495yes:)
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2498ac_tool_warned=yes ;;
2499esac
2500    STRIP=$ac_ct_STRIP
2501  fi
2502else
2503  STRIP="$ac_cv_prog_STRIP"
2504fi
2505
2506fi
2507INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2508
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2510$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2511if test -z "$MKDIR_P"; then
2512  if ${ac_cv_path_mkdir+:} false; then :
2513  $as_echo_n "(cached) " >&6
2514else
2515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2517do
2518  IFS=$as_save_IFS
2519  test -z "$as_dir" && as_dir=.
2520    for ac_prog in mkdir gmkdir; do
2521	 for ac_exec_ext in '' $ac_executable_extensions; do
2522	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2523	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2524	     'mkdir (GNU coreutils) '* | \
2525	     'mkdir (coreutils) '* | \
2526	     'mkdir (fileutils) '4.1*)
2527	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2528	       break 3;;
2529	   esac
2530	 done
2531       done
2532  done
2533IFS=$as_save_IFS
2534
2535fi
2536
2537  test -d ./--version && rmdir ./--version
2538  if test "${ac_cv_path_mkdir+set}" = set; then
2539    MKDIR_P="$ac_cv_path_mkdir -p"
2540  else
2541    # As a last resort, use the slow shell script.  Don't cache a
2542    # value for MKDIR_P within a source directory, because that will
2543    # break other packages using the cache if that directory is
2544    # removed, or if the value is a relative name.
2545    MKDIR_P="$ac_install_sh -d"
2546  fi
2547fi
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2549$as_echo "$MKDIR_P" >&6; }
2550
2551for ac_prog in gawk mawk nawk awk
2552do
2553  # Extract the first word of "$ac_prog", so it can be a program name with args.
2554set dummy $ac_prog; ac_word=$2
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556$as_echo_n "checking for $ac_word... " >&6; }
2557if ${ac_cv_prog_AWK+:} false; then :
2558  $as_echo_n "(cached) " >&6
2559else
2560  if test -n "$AWK"; then
2561  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2562else
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566  IFS=$as_save_IFS
2567  test -z "$as_dir" && as_dir=.
2568    for ac_exec_ext in '' $ac_executable_extensions; do
2569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570    ac_cv_prog_AWK="$ac_prog"
2571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572    break 2
2573  fi
2574done
2575  done
2576IFS=$as_save_IFS
2577
2578fi
2579fi
2580AWK=$ac_cv_prog_AWK
2581if test -n "$AWK"; then
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2583$as_echo "$AWK" >&6; }
2584else
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586$as_echo "no" >&6; }
2587fi
2588
2589
2590  test -n "$AWK" && break
2591done
2592
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2594$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2595set x ${MAKE-make}
2596ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2597if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2598  $as_echo_n "(cached) " >&6
2599else
2600  cat >conftest.make <<\_ACEOF
2601SHELL = /bin/sh
2602all:
2603	@echo '@@@%%%=$(MAKE)=@@@%%%'
2604_ACEOF
2605# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2606case `${MAKE-make} -f conftest.make 2>/dev/null` in
2607  *@@@%%%=?*=@@@%%%*)
2608    eval ac_cv_prog_make_${ac_make}_set=yes;;
2609  *)
2610    eval ac_cv_prog_make_${ac_make}_set=no;;
2611esac
2612rm -f conftest.make
2613fi
2614if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616$as_echo "yes" >&6; }
2617  SET_MAKE=
2618else
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620$as_echo "no" >&6; }
2621  SET_MAKE="MAKE=${MAKE-make}"
2622fi
2623
2624rm -rf .tst 2>/dev/null
2625mkdir .tst 2>/dev/null
2626if test -d .tst; then
2627  am__leading_dot=.
2628else
2629  am__leading_dot=_
2630fi
2631rmdir .tst 2>/dev/null
2632
2633# Check whether --enable-silent-rules was given.
2634if test "${enable_silent_rules+set}" = set; then :
2635  enableval=$enable_silent_rules;
2636fi
2637
2638case $enable_silent_rules in # (((
2639  yes) AM_DEFAULT_VERBOSITY=0;;
2640   no) AM_DEFAULT_VERBOSITY=1;;
2641    *) AM_DEFAULT_VERBOSITY=1;;
2642esac
2643am_make=${MAKE-make}
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2645$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2646if ${am_cv_make_support_nested_variables+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  if $as_echo 'TRUE=$(BAR$(V))
2650BAR0=false
2651BAR1=true
2652V=1
2653am__doit:
2654	@$(TRUE)
2655.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2656  am_cv_make_support_nested_variables=yes
2657else
2658  am_cv_make_support_nested_variables=no
2659fi
2660fi
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2662$as_echo "$am_cv_make_support_nested_variables" >&6; }
2663if test $am_cv_make_support_nested_variables = yes; then
2664    AM_V='$(V)'
2665  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2666else
2667  AM_V=$AM_DEFAULT_VERBOSITY
2668  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2669fi
2670AM_BACKSLASH='\'
2671
2672if test "`cd $srcdir && pwd`" != "`pwd`"; then
2673  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2674  # is not polluted with repeated "-I."
2675  am__isrc=' -I$(srcdir)'
2676  # test to see if srcdir already configured
2677  if test -f $srcdir/config.status; then
2678    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2679  fi
2680fi
2681
2682# test whether we have cygpath
2683if test -z "$CYGPATH_W"; then
2684  if (cygpath --version) >/dev/null 2>/dev/null; then
2685    CYGPATH_W='cygpath -w'
2686  else
2687    CYGPATH_W=echo
2688  fi
2689fi
2690
2691
2692# Define the identity of the package.
2693 PACKAGE='xclock'
2694 VERSION='1.0.7'
2695
2696
2697cat >>confdefs.h <<_ACEOF
2698#define PACKAGE "$PACKAGE"
2699_ACEOF
2700
2701
2702cat >>confdefs.h <<_ACEOF
2703#define VERSION "$VERSION"
2704_ACEOF
2705
2706# Some tools Automake needs.
2707
2708ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2709
2710
2711AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2712
2713
2714AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2715
2716
2717AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2718
2719
2720MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2721
2722# For better backward compatibility.  To be removed once Automake 1.9.x
2723# dies out for good.  For more background, see:
2724# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2725# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2726mkdir_p='$(MKDIR_P)'
2727
2728# We need awk for the "check" target.  The system "awk" is bad on
2729# some platforms.
2730# Always define AMTAR for backward compatibility.  Yes, it's still used
2731# in the wild :-(  We should find a proper way to deprecate it ...
2732AMTAR='$${TAR-tar}'
2733
2734
2735# We'll loop over all known methods to create a tar archive until one works.
2736_am_tools='gnutar  pax cpio none'
2737
2738am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2739
2740
2741
2742
2743
2744
2745# POSIX will say in a future version that running "rm -f" with no argument
2746# is OK; and we want to be able to make that assumption in our Makefile
2747# recipes.  So use an aggressive probe to check that the usage we want is
2748# actually supported "in the wild" to an acceptable degree.
2749# See automake bug#10828.
2750# To make any issue more visible, cause the running configure to be aborted
2751# by default if the 'rm' program in use doesn't match our expectations; the
2752# user can still override this though.
2753if rm -f && rm -fr && rm -rf; then : OK; else
2754  cat >&2 <<'END'
2755Oops!
2756
2757Your 'rm' program seems unable to run without file operands specified
2758on the command line, even when the '-f' option is present.  This is contrary
2759to the behaviour of most rm programs out there, and not conforming with
2760the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2761
2762Please tell bug-automake@gnu.org about your system, including the value
2763of your $PATH and any error possibly output before this message.  This
2764can help us improve future automake versions.
2765
2766END
2767  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2768    echo 'Configuration will proceed anyway, since you have set the' >&2
2769    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2770    echo >&2
2771  else
2772    cat >&2 <<'END'
2773Aborting the configuration process, to ensure you take notice of the issue.
2774
2775You can download and install GNU coreutils to get an 'rm' implementation
2776that behaves properly: <http://www.gnu.org/software/coreutils/>.
2777
2778If you want to complete the configuration process using your problematic
2779'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2780to "yes", and re-run configure.
2781
2782END
2783    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2784  fi
2785fi
2786
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2788$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2789    # Check whether --enable-maintainer-mode was given.
2790if test "${enable_maintainer_mode+set}" = set; then :
2791  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2792else
2793  USE_MAINTAINER_MODE=no
2794fi
2795
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2797$as_echo "$USE_MAINTAINER_MODE" >&6; }
2798   if test $USE_MAINTAINER_MODE = yes; then
2799  MAINTAINER_MODE_TRUE=
2800  MAINTAINER_MODE_FALSE='#'
2801else
2802  MAINTAINER_MODE_TRUE='#'
2803  MAINTAINER_MODE_FALSE=
2804fi
2805
2806  MAINT=$MAINTAINER_MODE_TRUE
2807
2808
2809
2810# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822DEPDIR="${am__leading_dot}deps"
2823
2824ac_config_commands="$ac_config_commands depfiles"
2825
2826
2827am_make=${MAKE-make}
2828cat > confinc << 'END'
2829am__doit:
2830	@echo this is the am__doit target
2831.PHONY: am__doit
2832END
2833# If we don't find an include directive, just comment out the code.
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2835$as_echo_n "checking for style of include used by $am_make... " >&6; }
2836am__include="#"
2837am__quote=
2838_am_result=none
2839# First try GNU make style include.
2840echo "include confinc" > confmf
2841# Ignore all kinds of additional output from 'make'.
2842case `$am_make -s -f confmf 2> /dev/null` in #(
2843*the\ am__doit\ target*)
2844  am__include=include
2845  am__quote=
2846  _am_result=GNU
2847  ;;
2848esac
2849# Now try BSD make style include.
2850if test "$am__include" = "#"; then
2851   echo '.include "confinc"' > confmf
2852   case `$am_make -s -f confmf 2> /dev/null` in #(
2853   *the\ am__doit\ target*)
2854     am__include=.include
2855     am__quote="\""
2856     _am_result=BSD
2857     ;;
2858   esac
2859fi
2860
2861
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2863$as_echo "$_am_result" >&6; }
2864rm -f confinc confmf
2865
2866# Check whether --enable-dependency-tracking was given.
2867if test "${enable_dependency_tracking+set}" = set; then :
2868  enableval=$enable_dependency_tracking;
2869fi
2870
2871if test "x$enable_dependency_tracking" != xno; then
2872  am_depcomp="$ac_aux_dir/depcomp"
2873  AMDEPBACKSLASH='\'
2874  am__nodep='_no'
2875fi
2876 if test "x$enable_dependency_tracking" != xno; then
2877  AMDEP_TRUE=
2878  AMDEP_FALSE='#'
2879else
2880  AMDEP_TRUE='#'
2881  AMDEP_FALSE=
2882fi
2883
2884
2885ac_ext=c
2886ac_cpp='$CPP $CPPFLAGS'
2887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890if test -n "$ac_tool_prefix"; then
2891  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892set dummy ${ac_tool_prefix}gcc; ac_word=$2
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894$as_echo_n "checking for $ac_word... " >&6; }
2895if ${ac_cv_prog_CC+:} false; then :
2896  $as_echo_n "(cached) " >&6
2897else
2898  if test -n "$CC"; then
2899  ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904  IFS=$as_save_IFS
2905  test -z "$as_dir" && as_dir=.
2906    for ac_exec_ext in '' $ac_executable_extensions; do
2907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910    break 2
2911  fi
2912done
2913  done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918CC=$ac_cv_prog_CC
2919if test -n "$CC"; then
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921$as_echo "$CC" >&6; }
2922else
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924$as_echo "no" >&6; }
2925fi
2926
2927
2928fi
2929if test -z "$ac_cv_prog_CC"; then
2930  ac_ct_CC=$CC
2931  # Extract the first word of "gcc", so it can be a program name with args.
2932set dummy gcc; ac_word=$2
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934$as_echo_n "checking for $ac_word... " >&6; }
2935if ${ac_cv_prog_ac_ct_CC+:} false; then :
2936  $as_echo_n "(cached) " >&6
2937else
2938  if test -n "$ac_ct_CC"; then
2939  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944  IFS=$as_save_IFS
2945  test -z "$as_dir" && as_dir=.
2946    for ac_exec_ext in '' $ac_executable_extensions; do
2947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948    ac_cv_prog_ac_ct_CC="gcc"
2949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950    break 2
2951  fi
2952done
2953  done
2954IFS=$as_save_IFS
2955
2956fi
2957fi
2958ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959if test -n "$ac_ct_CC"; then
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2961$as_echo "$ac_ct_CC" >&6; }
2962else
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964$as_echo "no" >&6; }
2965fi
2966
2967  if test "x$ac_ct_CC" = x; then
2968    CC=""
2969  else
2970    case $cross_compiling:$ac_tool_warned in
2971yes:)
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2974ac_tool_warned=yes ;;
2975esac
2976    CC=$ac_ct_CC
2977  fi
2978else
2979  CC="$ac_cv_prog_CC"
2980fi
2981
2982if test -z "$CC"; then
2983          if test -n "$ac_tool_prefix"; then
2984    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2985set dummy ${ac_tool_prefix}cc; ac_word=$2
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
2988if ${ac_cv_prog_CC+:} false; then :
2989  $as_echo_n "(cached) " >&6
2990else
2991  if test -n "$CC"; then
2992  ac_cv_prog_CC="$CC" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997  IFS=$as_save_IFS
2998  test -z "$as_dir" && as_dir=.
2999    for ac_exec_ext in '' $ac_executable_extensions; do
3000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001    ac_cv_prog_CC="${ac_tool_prefix}cc"
3002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003    break 2
3004  fi
3005done
3006  done
3007IFS=$as_save_IFS
3008
3009fi
3010fi
3011CC=$ac_cv_prog_CC
3012if test -n "$CC"; then
3013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014$as_echo "$CC" >&6; }
3015else
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017$as_echo "no" >&6; }
3018fi
3019
3020
3021  fi
3022fi
3023if test -z "$CC"; then
3024  # Extract the first word of "cc", so it can be a program name with args.
3025set dummy cc; ac_word=$2
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027$as_echo_n "checking for $ac_word... " >&6; }
3028if ${ac_cv_prog_CC+:} false; then :
3029  $as_echo_n "(cached) " >&6
3030else
3031  if test -n "$CC"; then
3032  ac_cv_prog_CC="$CC" # Let the user override the test.
3033else
3034  ac_prog_rejected=no
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038  IFS=$as_save_IFS
3039  test -z "$as_dir" && as_dir=.
3040    for ac_exec_ext in '' $ac_executable_extensions; do
3041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3043       ac_prog_rejected=yes
3044       continue
3045     fi
3046    ac_cv_prog_CC="cc"
3047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048    break 2
3049  fi
3050done
3051  done
3052IFS=$as_save_IFS
3053
3054if test $ac_prog_rejected = yes; then
3055  # We found a bogon in the path, so make sure we never use it.
3056  set dummy $ac_cv_prog_CC
3057  shift
3058  if test $# != 0; then
3059    # We chose a different compiler from the bogus one.
3060    # However, it has the same basename, so the bogon will be chosen
3061    # first if we set CC to just the basename; use the full file name.
3062    shift
3063    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3064  fi
3065fi
3066fi
3067fi
3068CC=$ac_cv_prog_CC
3069if test -n "$CC"; then
3070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071$as_echo "$CC" >&6; }
3072else
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075fi
3076
3077
3078fi
3079if test -z "$CC"; then
3080  if test -n "$ac_tool_prefix"; then
3081  for ac_prog in cl.exe
3082  do
3083    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086$as_echo_n "checking for $ac_word... " >&6; }
3087if ${ac_cv_prog_CC+:} false; then :
3088  $as_echo_n "(cached) " >&6
3089else
3090  if test -n "$CC"; then
3091  ac_cv_prog_CC="$CC" # Let the user override the test.
3092else
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096  IFS=$as_save_IFS
3097  test -z "$as_dir" && as_dir=.
3098    for ac_exec_ext in '' $ac_executable_extensions; do
3099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102    break 2
3103  fi
3104done
3105  done
3106IFS=$as_save_IFS
3107
3108fi
3109fi
3110CC=$ac_cv_prog_CC
3111if test -n "$CC"; then
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113$as_echo "$CC" >&6; }
3114else
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116$as_echo "no" >&6; }
3117fi
3118
3119
3120    test -n "$CC" && break
3121  done
3122fi
3123if test -z "$CC"; then
3124  ac_ct_CC=$CC
3125  for ac_prog in cl.exe
3126do
3127  # Extract the first word of "$ac_prog", so it can be a program name with args.
3128set dummy $ac_prog; ac_word=$2
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130$as_echo_n "checking for $ac_word... " >&6; }
3131if ${ac_cv_prog_ac_ct_CC+:} false; then :
3132  $as_echo_n "(cached) " >&6
3133else
3134  if test -n "$ac_ct_CC"; then
3135  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140  IFS=$as_save_IFS
3141  test -z "$as_dir" && as_dir=.
3142    for ac_exec_ext in '' $ac_executable_extensions; do
3143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144    ac_cv_prog_ac_ct_CC="$ac_prog"
3145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146    break 2
3147  fi
3148done
3149  done
3150IFS=$as_save_IFS
3151
3152fi
3153fi
3154ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155if test -n "$ac_ct_CC"; then
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157$as_echo "$ac_ct_CC" >&6; }
3158else
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160$as_echo "no" >&6; }
3161fi
3162
3163
3164  test -n "$ac_ct_CC" && break
3165done
3166
3167  if test "x$ac_ct_CC" = x; then
3168    CC=""
3169  else
3170    case $cross_compiling:$ac_tool_warned in
3171yes:)
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174ac_tool_warned=yes ;;
3175esac
3176    CC=$ac_ct_CC
3177  fi
3178fi
3179
3180fi
3181
3182
3183test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185as_fn_error $? "no acceptable C compiler found in \$PATH
3186See \`config.log' for more details" "$LINENO" 5; }
3187
3188# Provide some information about the compiler.
3189$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3190set X $ac_compile
3191ac_compiler=$2
3192for ac_option in --version -v -V -qversion; do
3193  { { ac_try="$ac_compiler $ac_option >&5"
3194case "(($ac_try" in
3195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196  *) ac_try_echo=$ac_try;;
3197esac
3198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199$as_echo "$ac_try_echo"; } >&5
3200  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3201  ac_status=$?
3202  if test -s conftest.err; then
3203    sed '10a\
3204... rest of stderr output deleted ...
3205         10q' conftest.err >conftest.er1
3206    cat conftest.er1 >&5
3207  fi
3208  rm -f conftest.er1 conftest.err
3209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210  test $ac_status = 0; }
3211done
3212
3213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214/* end confdefs.h.  */
3215
3216int
3217main ()
3218{
3219
3220  ;
3221  return 0;
3222}
3223_ACEOF
3224ac_clean_files_save=$ac_clean_files
3225ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3226# Try to create an executable without -o first, disregard a.out.
3227# It will help us diagnose broken compilers, and finding out an intuition
3228# of exeext.
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3230$as_echo_n "checking whether the C compiler works... " >&6; }
3231ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232
3233# The possible output files:
3234ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235
3236ac_rmfiles=
3237for ac_file in $ac_files
3238do
3239  case $ac_file in
3240    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3241    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242  esac
3243done
3244rm -f $ac_rmfiles
3245
3246if { { ac_try="$ac_link_default"
3247case "(($ac_try" in
3248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249  *) ac_try_echo=$ac_try;;
3250esac
3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
3253  (eval "$ac_link_default") 2>&5
3254  ac_status=$?
3255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256  test $ac_status = 0; }; then :
3257  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3260# so that the user can short-circuit this test for compilers unknown to
3261# Autoconf.
3262for ac_file in $ac_files ''
3263do
3264  test -f "$ac_file" || continue
3265  case $ac_file in
3266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3267	;;
3268    [ab].out )
3269	# We found the default executable, but exeext='' is most
3270	# certainly right.
3271	break;;
3272    *.* )
3273	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3274	then :; else
3275	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276	fi
3277	# We set ac_cv_exeext here because the later test for it is not
3278	# safe: cross compilers may not add the suffix if given an `-o'
3279	# argument, so we may need to know it at that point already.
3280	# Even if this section looks crufty: it has the advantage of
3281	# actually working.
3282	break;;
3283    * )
3284	break;;
3285  esac
3286done
3287test "$ac_cv_exeext" = no && ac_cv_exeext=
3288
3289else
3290  ac_file=''
3291fi
3292if test -z "$ac_file"; then :
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295$as_echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300as_fn_error 77 "C compiler cannot create executables
3301See \`config.log' for more details" "$LINENO" 5; }
3302else
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304$as_echo "yes" >&6; }
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307$as_echo_n "checking for C compiler default output file name... " >&6; }
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309$as_echo "$ac_file" >&6; }
3310ac_exeext=$ac_cv_exeext
3311
3312rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3313ac_clean_files=$ac_clean_files_save
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3315$as_echo_n "checking for suffix of executables... " >&6; }
3316if { { ac_try="$ac_link"
3317case "(($ac_try" in
3318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319  *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323  (eval "$ac_link") 2>&5
3324  ac_status=$?
3325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326  test $ac_status = 0; }; then :
3327  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3329# work properly (i.e., refer to `conftest.exe'), while it won't with
3330# `rm'.
3331for ac_file in conftest.exe conftest conftest.*; do
3332  test -f "$ac_file" || continue
3333  case $ac_file in
3334    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3335    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336	  break;;
3337    * ) break;;
3338  esac
3339done
3340else
3341  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3344See \`config.log' for more details" "$LINENO" 5; }
3345fi
3346rm -f conftest conftest$ac_cv_exeext
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3348$as_echo "$ac_cv_exeext" >&6; }
3349
3350rm -f conftest.$ac_ext
3351EXEEXT=$ac_cv_exeext
3352ac_exeext=$EXEEXT
3353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h.  */
3355#include <stdio.h>
3356int
3357main ()
3358{
3359FILE *f = fopen ("conftest.out", "w");
3360 return ferror (f) || fclose (f) != 0;
3361
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366ac_clean_files="$ac_clean_files conftest.out"
3367# Check that the compiler produces executables we can run.  If not, either
3368# the compiler is broken, or we cross compile.
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3370$as_echo_n "checking whether we are cross compiling... " >&6; }
3371if test "$cross_compiling" != yes; then
3372  { { ac_try="$ac_link"
3373case "(($ac_try" in
3374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375  *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379  (eval "$ac_link") 2>&5
3380  ac_status=$?
3381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382  test $ac_status = 0; }
3383  if { ac_try='./conftest$ac_cv_exeext'
3384  { { case "(($ac_try" in
3385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386  *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390  (eval "$ac_try") 2>&5
3391  ac_status=$?
3392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393  test $ac_status = 0; }; }; then
3394    cross_compiling=no
3395  else
3396    if test "$cross_compiling" = maybe; then
3397	cross_compiling=yes
3398    else
3399	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401as_fn_error $? "cannot run C compiled programs.
3402If you meant to cross compile, use \`--host'.
3403See \`config.log' for more details" "$LINENO" 5; }
3404    fi
3405  fi
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408$as_echo "$cross_compiling" >&6; }
3409
3410rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3411ac_clean_files=$ac_clean_files_save
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3413$as_echo_n "checking for suffix of object files... " >&6; }
3414if ${ac_cv_objext+:} false; then :
3415  $as_echo_n "(cached) " >&6
3416else
3417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h.  */
3419
3420int
3421main ()
3422{
3423
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428rm -f conftest.o conftest.obj
3429if { { ac_try="$ac_compile"
3430case "(($ac_try" in
3431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432  *) ac_try_echo=$ac_try;;
3433esac
3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
3436  (eval "$ac_compile") 2>&5
3437  ac_status=$?
3438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439  test $ac_status = 0; }; then :
3440  for ac_file in conftest.o conftest.obj conftest.*; do
3441  test -f "$ac_file" || continue;
3442  case $ac_file in
3443    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3444    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445       break;;
3446  esac
3447done
3448else
3449  $as_echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454as_fn_error $? "cannot compute suffix of object files: cannot compile
3455See \`config.log' for more details" "$LINENO" 5; }
3456fi
3457rm -f conftest.$ac_cv_objext conftest.$ac_ext
3458fi
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3460$as_echo "$ac_cv_objext" >&6; }
3461OBJEXT=$ac_cv_objext
3462ac_objext=$OBJEXT
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3464$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3465if ${ac_cv_c_compiler_gnu+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470
3471int
3472main ()
3473{
3474#ifndef __GNUC__
3475       choke me
3476#endif
3477
3478  ;
3479  return 0;
3480}
3481_ACEOF
3482if ac_fn_c_try_compile "$LINENO"; then :
3483  ac_compiler_gnu=yes
3484else
3485  ac_compiler_gnu=no
3486fi
3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488ac_cv_c_compiler_gnu=$ac_compiler_gnu
3489
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3492$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3493if test $ac_compiler_gnu = yes; then
3494  GCC=yes
3495else
3496  GCC=
3497fi
3498ac_test_CFLAGS=${CFLAGS+set}
3499ac_save_CFLAGS=$CFLAGS
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3501$as_echo_n "checking whether $CC accepts -g... " >&6; }
3502if ${ac_cv_prog_cc_g+:} false; then :
3503  $as_echo_n "(cached) " >&6
3504else
3505  ac_save_c_werror_flag=$ac_c_werror_flag
3506   ac_c_werror_flag=yes
3507   ac_cv_prog_cc_g=no
3508   CFLAGS="-g"
3509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h.  */
3511
3512int
3513main ()
3514{
3515
3516  ;
3517  return 0;
3518}
3519_ACEOF
3520if ac_fn_c_try_compile "$LINENO"; then :
3521  ac_cv_prog_cc_g=yes
3522else
3523  CFLAGS=""
3524      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526
3527int
3528main ()
3529{
3530
3531  ;
3532  return 0;
3533}
3534_ACEOF
3535if ac_fn_c_try_compile "$LINENO"; then :
3536
3537else
3538  ac_c_werror_flag=$ac_save_c_werror_flag
3539	 CFLAGS="-g"
3540	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542
3543int
3544main ()
3545{
3546
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551if ac_fn_c_try_compile "$LINENO"; then :
3552  ac_cv_prog_cc_g=yes
3553fi
3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555fi
3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557fi
3558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559   ac_c_werror_flag=$ac_save_c_werror_flag
3560fi
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3562$as_echo "$ac_cv_prog_cc_g" >&6; }
3563if test "$ac_test_CFLAGS" = set; then
3564  CFLAGS=$ac_save_CFLAGS
3565elif test $ac_cv_prog_cc_g = yes; then
3566  if test "$GCC" = yes; then
3567    CFLAGS="-g -O2"
3568  else
3569    CFLAGS="-g"
3570  fi
3571else
3572  if test "$GCC" = yes; then
3573    CFLAGS="-O2"
3574  else
3575    CFLAGS=
3576  fi
3577fi
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3579$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3580if ${ac_cv_prog_cc_c89+:} false; then :
3581  $as_echo_n "(cached) " >&6
3582else
3583  ac_cv_prog_cc_c89=no
3584ac_save_CC=$CC
3585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586/* end confdefs.h.  */
3587#include <stdarg.h>
3588#include <stdio.h>
3589#include <sys/types.h>
3590#include <sys/stat.h>
3591/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3592struct buf { int x; };
3593FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594static char *e (p, i)
3595     char **p;
3596     int i;
3597{
3598  return p[i];
3599}
3600static char *f (char * (*g) (char **, int), char **p, ...)
3601{
3602  char *s;
3603  va_list v;
3604  va_start (v,p);
3605  s = g (p, va_arg (v,int));
3606  va_end (v);
3607  return s;
3608}
3609
3610/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3611   function prototypes and stuff, but not '\xHH' hex character constants.
3612   These don't provoke an error unfortunately, instead are silently treated
3613   as 'x'.  The following induces an error, until -std is added to get
3614   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3615   array size at least.  It's necessary to write '\x00'==0 to get something
3616   that's true only with -std.  */
3617int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3618
3619/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3620   inside strings and character constants.  */
3621#define FOO(x) 'x'
3622int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3623
3624int test (int i, double x);
3625struct s1 {int (*f) (int a);};
3626struct s2 {int (*f) (double a);};
3627int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628int argc;
3629char **argv;
3630int
3631main ()
3632{
3633return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3634  ;
3635  return 0;
3636}
3637_ACEOF
3638for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3639	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3640do
3641  CC="$ac_save_CC $ac_arg"
3642  if ac_fn_c_try_compile "$LINENO"; then :
3643  ac_cv_prog_cc_c89=$ac_arg
3644fi
3645rm -f core conftest.err conftest.$ac_objext
3646  test "x$ac_cv_prog_cc_c89" != "xno" && break
3647done
3648rm -f conftest.$ac_ext
3649CC=$ac_save_CC
3650
3651fi
3652# AC_CACHE_VAL
3653case "x$ac_cv_prog_cc_c89" in
3654  x)
3655    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3656$as_echo "none needed" >&6; } ;;
3657  xno)
3658    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3659$as_echo "unsupported" >&6; } ;;
3660  *)
3661    CC="$CC $ac_cv_prog_cc_c89"
3662    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3663$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3664esac
3665if test "x$ac_cv_prog_cc_c89" != xno; then :
3666
3667fi
3668
3669ac_ext=c
3670ac_cpp='$CPP $CPPFLAGS'
3671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
3675ac_ext=c
3676ac_cpp='$CPP $CPPFLAGS'
3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3681$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3682if ${am_cv_prog_cc_c_o+:} false; then :
3683  $as_echo_n "(cached) " >&6
3684else
3685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h.  */
3687
3688int
3689main ()
3690{
3691
3692  ;
3693  return 0;
3694}
3695_ACEOF
3696  # Make sure it works both with $CC and with simple cc.
3697  # Following AC_PROG_CC_C_O, we do the test twice because some
3698  # compilers refuse to overwrite an existing .o file with -o,
3699  # though they will create one.
3700  am_cv_prog_cc_c_o=yes
3701  for am_i in 1 2; do
3702    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3703   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3704   ac_status=$?
3705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); } \
3707         && test -f conftest2.$ac_objext; then
3708      : OK
3709    else
3710      am_cv_prog_cc_c_o=no
3711      break
3712    fi
3713  done
3714  rm -f core conftest*
3715  unset am_i
3716fi
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3718$as_echo "$am_cv_prog_cc_c_o" >&6; }
3719if test "$am_cv_prog_cc_c_o" != yes; then
3720   # Losing compiler, so override with the script.
3721   # FIXME: It is wrong to rewrite CC.
3722   # But if we don't then we get into trouble of one sort or another.
3723   # A longer-term fix would be to have automake use am__CC in this case,
3724   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3725   CC="$am_aux_dir/compile $CC"
3726fi
3727ac_ext=c
3728ac_cpp='$CPP $CPPFLAGS'
3729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732
3733
3734depcc="$CC"   am_compiler_list=
3735
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3737$as_echo_n "checking dependency style of $depcc... " >&6; }
3738if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3739  $as_echo_n "(cached) " >&6
3740else
3741  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3742  # We make a subdir and do the tests there.  Otherwise we can end up
3743  # making bogus files that we don't know about and never remove.  For
3744  # instance it was reported that on HP-UX the gcc test will end up
3745  # making a dummy file named 'D' -- because '-MD' means "put the output
3746  # in D".
3747  rm -rf conftest.dir
3748  mkdir conftest.dir
3749  # Copy depcomp to subdir because otherwise we won't find it if we're
3750  # using a relative directory.
3751  cp "$am_depcomp" conftest.dir
3752  cd conftest.dir
3753  # We will build objects and dependencies in a subdirectory because
3754  # it helps to detect inapplicable dependency modes.  For instance
3755  # both Tru64's cc and ICC support -MD to output dependencies as a
3756  # side effect of compilation, but ICC will put the dependencies in
3757  # the current directory while Tru64 will put them in the object
3758  # directory.
3759  mkdir sub
3760
3761  am_cv_CC_dependencies_compiler_type=none
3762  if test "$am_compiler_list" = ""; then
3763     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3764  fi
3765  am__universal=false
3766  case " $depcc " in #(
3767     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3768     esac
3769
3770  for depmode in $am_compiler_list; do
3771    # Setup a source with many dependencies, because some compilers
3772    # like to wrap large dependency lists on column 80 (with \), and
3773    # we should not choose a depcomp mode which is confused by this.
3774    #
3775    # We need to recreate these files for each test, as the compiler may
3776    # overwrite some of them when testing with obscure command lines.
3777    # This happens at least with the AIX C compiler.
3778    : > sub/conftest.c
3779    for i in 1 2 3 4 5 6; do
3780      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3781      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3782      # Solaris 10 /bin/sh.
3783      echo '/* dummy */' > sub/conftst$i.h
3784    done
3785    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3786
3787    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3788    # mode.  It turns out that the SunPro C++ compiler does not properly
3789    # handle '-M -o', and we need to detect this.  Also, some Intel
3790    # versions had trouble with output in subdirs.
3791    am__obj=sub/conftest.${OBJEXT-o}
3792    am__minus_obj="-o $am__obj"
3793    case $depmode in
3794    gcc)
3795      # This depmode causes a compiler race in universal mode.
3796      test "$am__universal" = false || continue
3797      ;;
3798    nosideeffect)
3799      # After this tag, mechanisms are not by side-effect, so they'll
3800      # only be used when explicitly requested.
3801      if test "x$enable_dependency_tracking" = xyes; then
3802	continue
3803      else
3804	break
3805      fi
3806      ;;
3807    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3808      # This compiler won't grok '-c -o', but also, the minuso test has
3809      # not run yet.  These depmodes are late enough in the game, and
3810      # so weak that their functioning should not be impacted.
3811      am__obj=conftest.${OBJEXT-o}
3812      am__minus_obj=
3813      ;;
3814    none) break ;;
3815    esac
3816    if depmode=$depmode \
3817       source=sub/conftest.c object=$am__obj \
3818       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3819       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3820         >/dev/null 2>conftest.err &&
3821       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3822       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3823       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3824       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3825      # icc doesn't choke on unknown options, it will just issue warnings
3826      # or remarks (even with -Werror).  So we grep stderr for any message
3827      # that says an option was ignored or not supported.
3828      # When given -MP, icc 7.0 and 7.1 complain thusly:
3829      #   icc: Command line warning: ignoring option '-M'; no argument required
3830      # The diagnosis changed in icc 8.0:
3831      #   icc: Command line remark: option '-MP' not supported
3832      if (grep 'ignoring option' conftest.err ||
3833          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3834        am_cv_CC_dependencies_compiler_type=$depmode
3835        break
3836      fi
3837    fi
3838  done
3839
3840  cd ..
3841  rm -rf conftest.dir
3842else
3843  am_cv_CC_dependencies_compiler_type=none
3844fi
3845
3846fi
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3848$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3849CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3850
3851 if
3852  test "x$enable_dependency_tracking" != xno \
3853  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3854  am__fastdepCC_TRUE=
3855  am__fastdepCC_FALSE='#'
3856else
3857  am__fastdepCC_TRUE='#'
3858  am__fastdepCC_FALSE=
3859fi
3860
3861
3862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3863$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3864if ${ac_cv_prog_cc_c99+:} false; then :
3865  $as_echo_n "(cached) " >&6
3866else
3867  ac_cv_prog_cc_c99=no
3868ac_save_CC=$CC
3869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870/* end confdefs.h.  */
3871#include <stdarg.h>
3872#include <stdbool.h>
3873#include <stdlib.h>
3874#include <wchar.h>
3875#include <stdio.h>
3876
3877// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3878#define debug(...) fprintf (stderr, __VA_ARGS__)
3879#define showlist(...) puts (#__VA_ARGS__)
3880#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3881static void
3882test_varargs_macros (void)
3883{
3884  int x = 1234;
3885  int y = 5678;
3886  debug ("Flag");
3887  debug ("X = %d\n", x);
3888  showlist (The first, second, and third items.);
3889  report (x>y, "x is %d but y is %d", x, y);
3890}
3891
3892// Check long long types.
3893#define BIG64 18446744073709551615ull
3894#define BIG32 4294967295ul
3895#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3896#if !BIG_OK
3897  your preprocessor is broken;
3898#endif
3899#if BIG_OK
3900#else
3901  your preprocessor is broken;
3902#endif
3903static long long int bignum = -9223372036854775807LL;
3904static unsigned long long int ubignum = BIG64;
3905
3906struct incomplete_array
3907{
3908  int datasize;
3909  double data[];
3910};
3911
3912struct named_init {
3913  int number;
3914  const wchar_t *name;
3915  double average;
3916};
3917
3918typedef const char *ccp;
3919
3920static inline int
3921test_restrict (ccp restrict text)
3922{
3923  // See if C++-style comments work.
3924  // Iterate through items via the restricted pointer.
3925  // Also check for declarations in for loops.
3926  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3927    continue;
3928  return 0;
3929}
3930
3931// Check varargs and va_copy.
3932static void
3933test_varargs (const char *format, ...)
3934{
3935  va_list args;
3936  va_start (args, format);
3937  va_list args_copy;
3938  va_copy (args_copy, args);
3939
3940  const char *str;
3941  int number;
3942  float fnumber;
3943
3944  while (*format)
3945    {
3946      switch (*format++)
3947	{
3948	case 's': // string
3949	  str = va_arg (args_copy, const char *);
3950	  break;
3951	case 'd': // int
3952	  number = va_arg (args_copy, int);
3953	  break;
3954	case 'f': // float
3955	  fnumber = va_arg (args_copy, double);
3956	  break;
3957	default:
3958	  break;
3959	}
3960    }
3961  va_end (args_copy);
3962  va_end (args);
3963}
3964
3965int
3966main ()
3967{
3968
3969  // Check bool.
3970  _Bool success = false;
3971
3972  // Check restrict.
3973  if (test_restrict ("String literal") == 0)
3974    success = true;
3975  char *restrict newvar = "Another string";
3976
3977  // Check varargs.
3978  test_varargs ("s, d' f .", "string", 65, 34.234);
3979  test_varargs_macros ();
3980
3981  // Check flexible array members.
3982  struct incomplete_array *ia =
3983    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3984  ia->datasize = 10;
3985  for (int i = 0; i < ia->datasize; ++i)
3986    ia->data[i] = i * 1.234;
3987
3988  // Check named initializers.
3989  struct named_init ni = {
3990    .number = 34,
3991    .name = L"Test wide string",
3992    .average = 543.34343,
3993  };
3994
3995  ni.number = 58;
3996
3997  int dynamic_array[ni.number];
3998  dynamic_array[ni.number - 1] = 543;
3999
4000  // work around unused variable warnings
4001  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4002	  || dynamic_array[ni.number - 1] != 543);
4003
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4009do
4010  CC="$ac_save_CC $ac_arg"
4011  if ac_fn_c_try_compile "$LINENO"; then :
4012  ac_cv_prog_cc_c99=$ac_arg
4013fi
4014rm -f core conftest.err conftest.$ac_objext
4015  test "x$ac_cv_prog_cc_c99" != "xno" && break
4016done
4017rm -f conftest.$ac_ext
4018CC=$ac_save_CC
4019
4020fi
4021# AC_CACHE_VAL
4022case "x$ac_cv_prog_cc_c99" in
4023  x)
4024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4025$as_echo "none needed" >&6; } ;;
4026  xno)
4027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4028$as_echo "unsupported" >&6; } ;;
4029  *)
4030    CC="$CC $ac_cv_prog_cc_c99"
4031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4032$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4033esac
4034if test "x$ac_cv_prog_cc_c99" != xno; then :
4035
4036fi
4037
4038
4039
4040ac_ext=c
4041ac_cpp='$CPP $CPPFLAGS'
4042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4046$as_echo_n "checking how to run the C preprocessor... " >&6; }
4047# On Suns, sometimes $CPP names a directory.
4048if test -n "$CPP" && test -d "$CPP"; then
4049  CPP=
4050fi
4051if test -z "$CPP"; then
4052  if ${ac_cv_prog_CPP+:} false; then :
4053  $as_echo_n "(cached) " >&6
4054else
4055      # Double quotes because CPP needs to be expanded
4056    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4057    do
4058      ac_preproc_ok=false
4059for ac_c_preproc_warn_flag in '' yes
4060do
4061  # Use a header file that comes with gcc, so configuring glibc
4062  # with a fresh cross-compiler works.
4063  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064  # <limits.h> exists even on freestanding compilers.
4065  # On the NeXT, cc -E runs the code through the compiler's parser,
4066  # not just through cpp. "Syntax error" is here to catch this case.
4067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068/* end confdefs.h.  */
4069#ifdef __STDC__
4070# include <limits.h>
4071#else
4072# include <assert.h>
4073#endif
4074		     Syntax error
4075_ACEOF
4076if ac_fn_c_try_cpp "$LINENO"; then :
4077
4078else
4079  # Broken: fails on valid input.
4080continue
4081fi
4082rm -f conftest.err conftest.i conftest.$ac_ext
4083
4084  # OK, works on sane cases.  Now check whether nonexistent headers
4085  # can be detected and how.
4086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h.  */
4088#include <ac_nonexistent.h>
4089_ACEOF
4090if ac_fn_c_try_cpp "$LINENO"; then :
4091  # Broken: success on invalid input.
4092continue
4093else
4094  # Passes both tests.
4095ac_preproc_ok=:
4096break
4097fi
4098rm -f conftest.err conftest.i conftest.$ac_ext
4099
4100done
4101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4102rm -f conftest.i conftest.err conftest.$ac_ext
4103if $ac_preproc_ok; then :
4104  break
4105fi
4106
4107    done
4108    ac_cv_prog_CPP=$CPP
4109
4110fi
4111  CPP=$ac_cv_prog_CPP
4112else
4113  ac_cv_prog_CPP=$CPP
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4116$as_echo "$CPP" >&6; }
4117ac_preproc_ok=false
4118for ac_c_preproc_warn_flag in '' yes
4119do
4120  # Use a header file that comes with gcc, so configuring glibc
4121  # with a fresh cross-compiler works.
4122  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4123  # <limits.h> exists even on freestanding compilers.
4124  # On the NeXT, cc -E runs the code through the compiler's parser,
4125  # not just through cpp. "Syntax error" is here to catch this case.
4126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127/* end confdefs.h.  */
4128#ifdef __STDC__
4129# include <limits.h>
4130#else
4131# include <assert.h>
4132#endif
4133		     Syntax error
4134_ACEOF
4135if ac_fn_c_try_cpp "$LINENO"; then :
4136
4137else
4138  # Broken: fails on valid input.
4139continue
4140fi
4141rm -f conftest.err conftest.i conftest.$ac_ext
4142
4143  # OK, works on sane cases.  Now check whether nonexistent headers
4144  # can be detected and how.
4145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h.  */
4147#include <ac_nonexistent.h>
4148_ACEOF
4149if ac_fn_c_try_cpp "$LINENO"; then :
4150  # Broken: success on invalid input.
4151continue
4152else
4153  # Passes both tests.
4154ac_preproc_ok=:
4155break
4156fi
4157rm -f conftest.err conftest.i conftest.$ac_ext
4158
4159done
4160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4161rm -f conftest.i conftest.err conftest.$ac_ext
4162if $ac_preproc_ok; then :
4163
4164else
4165  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4167as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4168See \`config.log' for more details" "$LINENO" 5; }
4169fi
4170
4171ac_ext=c
4172ac_cpp='$CPP $CPPFLAGS'
4173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176
4177
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4179$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4180if ${ac_cv_path_GREP+:} false; then :
4181  $as_echo_n "(cached) " >&6
4182else
4183  if test -z "$GREP"; then
4184  ac_path_GREP_found=false
4185  # Loop through the user's path and test for each of PROGNAME-LIST
4186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188do
4189  IFS=$as_save_IFS
4190  test -z "$as_dir" && as_dir=.
4191    for ac_prog in grep ggrep; do
4192    for ac_exec_ext in '' $ac_executable_extensions; do
4193      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4194      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4195# Check for GNU ac_path_GREP and select it if it is found.
4196  # Check for GNU $ac_path_GREP
4197case `"$ac_path_GREP" --version 2>&1` in
4198*GNU*)
4199  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4200*)
4201  ac_count=0
4202  $as_echo_n 0123456789 >"conftest.in"
4203  while :
4204  do
4205    cat "conftest.in" "conftest.in" >"conftest.tmp"
4206    mv "conftest.tmp" "conftest.in"
4207    cp "conftest.in" "conftest.nl"
4208    $as_echo 'GREP' >> "conftest.nl"
4209    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211    as_fn_arith $ac_count + 1 && ac_count=$as_val
4212    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4213      # Best one so far, save it but keep looking for a better one
4214      ac_cv_path_GREP="$ac_path_GREP"
4215      ac_path_GREP_max=$ac_count
4216    fi
4217    # 10*(2^10) chars as input seems more than enough
4218    test $ac_count -gt 10 && break
4219  done
4220  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221esac
4222
4223      $ac_path_GREP_found && break 3
4224    done
4225  done
4226  done
4227IFS=$as_save_IFS
4228  if test -z "$ac_cv_path_GREP"; then
4229    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4230  fi
4231else
4232  ac_cv_path_GREP=$GREP
4233fi
4234
4235fi
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4237$as_echo "$ac_cv_path_GREP" >&6; }
4238 GREP="$ac_cv_path_GREP"
4239
4240
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4242$as_echo_n "checking for egrep... " >&6; }
4243if ${ac_cv_path_EGREP+:} false; then :
4244  $as_echo_n "(cached) " >&6
4245else
4246  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4247   then ac_cv_path_EGREP="$GREP -E"
4248   else
4249     if test -z "$EGREP"; then
4250  ac_path_EGREP_found=false
4251  # Loop through the user's path and test for each of PROGNAME-LIST
4252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4254do
4255  IFS=$as_save_IFS
4256  test -z "$as_dir" && as_dir=.
4257    for ac_prog in egrep; do
4258    for ac_exec_ext in '' $ac_executable_extensions; do
4259      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4260      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4261# Check for GNU ac_path_EGREP and select it if it is found.
4262  # Check for GNU $ac_path_EGREP
4263case `"$ac_path_EGREP" --version 2>&1` in
4264*GNU*)
4265  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4266*)
4267  ac_count=0
4268  $as_echo_n 0123456789 >"conftest.in"
4269  while :
4270  do
4271    cat "conftest.in" "conftest.in" >"conftest.tmp"
4272    mv "conftest.tmp" "conftest.in"
4273    cp "conftest.in" "conftest.nl"
4274    $as_echo 'EGREP' >> "conftest.nl"
4275    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277    as_fn_arith $ac_count + 1 && ac_count=$as_val
4278    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4279      # Best one so far, save it but keep looking for a better one
4280      ac_cv_path_EGREP="$ac_path_EGREP"
4281      ac_path_EGREP_max=$ac_count
4282    fi
4283    # 10*(2^10) chars as input seems more than enough
4284    test $ac_count -gt 10 && break
4285  done
4286  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4287esac
4288
4289      $ac_path_EGREP_found && break 3
4290    done
4291  done
4292  done
4293IFS=$as_save_IFS
4294  if test -z "$ac_cv_path_EGREP"; then
4295    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4296  fi
4297else
4298  ac_cv_path_EGREP=$EGREP
4299fi
4300
4301   fi
4302fi
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4304$as_echo "$ac_cv_path_EGREP" >&6; }
4305 EGREP="$ac_cv_path_EGREP"
4306
4307
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4309$as_echo_n "checking for ANSI C header files... " >&6; }
4310if ${ac_cv_header_stdc+:} false; then :
4311  $as_echo_n "(cached) " >&6
4312else
4313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314/* end confdefs.h.  */
4315#include <stdlib.h>
4316#include <stdarg.h>
4317#include <string.h>
4318#include <float.h>
4319
4320int
4321main ()
4322{
4323
4324  ;
4325  return 0;
4326}
4327_ACEOF
4328if ac_fn_c_try_compile "$LINENO"; then :
4329  ac_cv_header_stdc=yes
4330else
4331  ac_cv_header_stdc=no
4332fi
4333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334
4335if test $ac_cv_header_stdc = yes; then
4336  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338/* end confdefs.h.  */
4339#include <string.h>
4340
4341_ACEOF
4342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343  $EGREP "memchr" >/dev/null 2>&1; then :
4344
4345else
4346  ac_cv_header_stdc=no
4347fi
4348rm -f conftest*
4349
4350fi
4351
4352if test $ac_cv_header_stdc = yes; then
4353  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355/* end confdefs.h.  */
4356#include <stdlib.h>
4357
4358_ACEOF
4359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4360  $EGREP "free" >/dev/null 2>&1; then :
4361
4362else
4363  ac_cv_header_stdc=no
4364fi
4365rm -f conftest*
4366
4367fi
4368
4369if test $ac_cv_header_stdc = yes; then
4370  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4371  if test "$cross_compiling" = yes; then :
4372  :
4373else
4374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375/* end confdefs.h.  */
4376#include <ctype.h>
4377#include <stdlib.h>
4378#if ((' ' & 0x0FF) == 0x020)
4379# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4380# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4381#else
4382# define ISLOWER(c) \
4383		   (('a' <= (c) && (c) <= 'i') \
4384		     || ('j' <= (c) && (c) <= 'r') \
4385		     || ('s' <= (c) && (c) <= 'z'))
4386# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4387#endif
4388
4389#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4390int
4391main ()
4392{
4393  int i;
4394  for (i = 0; i < 256; i++)
4395    if (XOR (islower (i), ISLOWER (i))
4396	|| toupper (i) != TOUPPER (i))
4397      return 2;
4398  return 0;
4399}
4400_ACEOF
4401if ac_fn_c_try_run "$LINENO"; then :
4402
4403else
4404  ac_cv_header_stdc=no
4405fi
4406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4407  conftest.$ac_objext conftest.beam conftest.$ac_ext
4408fi
4409
4410fi
4411fi
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4413$as_echo "$ac_cv_header_stdc" >&6; }
4414if test $ac_cv_header_stdc = yes; then
4415
4416$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4417
4418fi
4419
4420# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4421for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4422		  inttypes.h stdint.h unistd.h
4423do :
4424  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4425ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4426"
4427if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4428  cat >>confdefs.h <<_ACEOF
4429#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4430_ACEOF
4431
4432fi
4433
4434done
4435
4436
4437
4438
4439
4440
4441ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4442if test "x$ac_cv_have_decl___clang__" = xyes; then :
4443  CLANGCC="yes"
4444else
4445  CLANGCC="no"
4446fi
4447
4448ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4449if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4450  INTELCC="yes"
4451else
4452  INTELCC="no"
4453fi
4454
4455ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4456if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4457  SUNCC="yes"
4458else
4459  SUNCC="no"
4460fi
4461
4462
4463
4464
4465if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4466	if test -n "$ac_tool_prefix"; then
4467  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4468set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470$as_echo_n "checking for $ac_word... " >&6; }
4471if ${ac_cv_path_PKG_CONFIG+:} false; then :
4472  $as_echo_n "(cached) " >&6
4473else
4474  case $PKG_CONFIG in
4475  [\\/]* | ?:[\\/]*)
4476  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4477  ;;
4478  *)
4479  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH
4481do
4482  IFS=$as_save_IFS
4483  test -z "$as_dir" && as_dir=.
4484    for ac_exec_ext in '' $ac_executable_extensions; do
4485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488    break 2
4489  fi
4490done
4491  done
4492IFS=$as_save_IFS
4493
4494  ;;
4495esac
4496fi
4497PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4498if test -n "$PKG_CONFIG"; then
4499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4500$as_echo "$PKG_CONFIG" >&6; }
4501else
4502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503$as_echo "no" >&6; }
4504fi
4505
4506
4507fi
4508if test -z "$ac_cv_path_PKG_CONFIG"; then
4509  ac_pt_PKG_CONFIG=$PKG_CONFIG
4510  # Extract the first word of "pkg-config", so it can be a program name with args.
4511set dummy pkg-config; ac_word=$2
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513$as_echo_n "checking for $ac_word... " >&6; }
4514if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4515  $as_echo_n "(cached) " >&6
4516else
4517  case $ac_pt_PKG_CONFIG in
4518  [\\/]* | ?:[\\/]*)
4519  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4520  ;;
4521  *)
4522  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525  IFS=$as_save_IFS
4526  test -z "$as_dir" && as_dir=.
4527    for ac_exec_ext in '' $ac_executable_extensions; do
4528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531    break 2
4532  fi
4533done
4534  done
4535IFS=$as_save_IFS
4536
4537  ;;
4538esac
4539fi
4540ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4541if test -n "$ac_pt_PKG_CONFIG"; then
4542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4543$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4544else
4545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546$as_echo "no" >&6; }
4547fi
4548
4549  if test "x$ac_pt_PKG_CONFIG" = x; then
4550    PKG_CONFIG=""
4551  else
4552    case $cross_compiling:$ac_tool_warned in
4553yes:)
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556ac_tool_warned=yes ;;
4557esac
4558    PKG_CONFIG=$ac_pt_PKG_CONFIG
4559  fi
4560else
4561  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4562fi
4563
4564fi
4565if test -n "$PKG_CONFIG"; then
4566	_pkg_min_version=0.9.0
4567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4568$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4569	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4570		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4571$as_echo "yes" >&6; }
4572	else
4573		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574$as_echo "no" >&6; }
4575		PKG_CONFIG=""
4576	fi
4577
4578fi
4579# Make sure we can run config.sub.
4580$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4581  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4582
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4584$as_echo_n "checking build system type... " >&6; }
4585if ${ac_cv_build+:} false; then :
4586  $as_echo_n "(cached) " >&6
4587else
4588  ac_build_alias=$build_alias
4589test "x$ac_build_alias" = x &&
4590  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4591test "x$ac_build_alias" = x &&
4592  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4593ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4594  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4595
4596fi
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4598$as_echo "$ac_cv_build" >&6; }
4599case $ac_cv_build in
4600*-*-*) ;;
4601*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4602esac
4603build=$ac_cv_build
4604ac_save_IFS=$IFS; IFS='-'
4605set x $ac_cv_build
4606shift
4607build_cpu=$1
4608build_vendor=$2
4609shift; shift
4610# Remember, the first character of IFS is used to create $*,
4611# except with old shells:
4612build_os=$*
4613IFS=$ac_save_IFS
4614case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4615
4616
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4618$as_echo_n "checking host system type... " >&6; }
4619if ${ac_cv_host+:} false; then :
4620  $as_echo_n "(cached) " >&6
4621else
4622  if test "x$host_alias" = x; then
4623  ac_cv_host=$ac_cv_build
4624else
4625  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4626    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4627fi
4628
4629fi
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4631$as_echo "$ac_cv_host" >&6; }
4632case $ac_cv_host in
4633*-*-*) ;;
4634*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4635esac
4636host=$ac_cv_host
4637ac_save_IFS=$IFS; IFS='-'
4638set x $ac_cv_host
4639shift
4640host_cpu=$1
4641host_vendor=$2
4642shift; shift
4643# Remember, the first character of IFS is used to create $*,
4644# except with old shells:
4645host_os=$*
4646IFS=$ac_save_IFS
4647case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4648
4649
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4651$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4652if ${ac_cv_path_SED+:} false; then :
4653  $as_echo_n "(cached) " >&6
4654else
4655            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4656     for ac_i in 1 2 3 4 5 6 7; do
4657       ac_script="$ac_script$as_nl$ac_script"
4658     done
4659     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4660     { ac_script=; unset ac_script;}
4661     if test -z "$SED"; then
4662  ac_path_SED_found=false
4663  # Loop through the user's path and test for each of PROGNAME-LIST
4664  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH
4666do
4667  IFS=$as_save_IFS
4668  test -z "$as_dir" && as_dir=.
4669    for ac_prog in sed gsed; do
4670    for ac_exec_ext in '' $ac_executable_extensions; do
4671      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4672      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4673# Check for GNU ac_path_SED and select it if it is found.
4674  # Check for GNU $ac_path_SED
4675case `"$ac_path_SED" --version 2>&1` in
4676*GNU*)
4677  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4678*)
4679  ac_count=0
4680  $as_echo_n 0123456789 >"conftest.in"
4681  while :
4682  do
4683    cat "conftest.in" "conftest.in" >"conftest.tmp"
4684    mv "conftest.tmp" "conftest.in"
4685    cp "conftest.in" "conftest.nl"
4686    $as_echo '' >> "conftest.nl"
4687    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689    as_fn_arith $ac_count + 1 && ac_count=$as_val
4690    if test $ac_count -gt ${ac_path_SED_max-0}; then
4691      # Best one so far, save it but keep looking for a better one
4692      ac_cv_path_SED="$ac_path_SED"
4693      ac_path_SED_max=$ac_count
4694    fi
4695    # 10*(2^10) chars as input seems more than enough
4696    test $ac_count -gt 10 && break
4697  done
4698  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4699esac
4700
4701      $ac_path_SED_found && break 3
4702    done
4703  done
4704  done
4705IFS=$as_save_IFS
4706  if test -z "$ac_cv_path_SED"; then
4707    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4708  fi
4709else
4710  ac_cv_path_SED=$SED
4711fi
4712
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4715$as_echo "$ac_cv_path_SED" >&6; }
4716 SED="$ac_cv_path_SED"
4717  rm -f conftest.sed
4718
4719
4720
4721
4722
4723
4724# Check whether --enable-selective-werror was given.
4725if test "${enable_selective_werror+set}" = set; then :
4726  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4727else
4728  SELECTIVE_WERROR=yes
4729fi
4730
4731
4732
4733
4734
4735# -v is too short to test reliably with XORG_TESTSET_CFLAG
4736if test "x$SUNCC" = "xyes"; then
4737    BASE_CFLAGS="-v"
4738else
4739    BASE_CFLAGS=""
4740fi
4741
4742# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756xorg_testset_save_CFLAGS="$CFLAGS"
4757
4758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4759	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766/* end confdefs.h.  */
4767int i;
4768_ACEOF
4769if ac_fn_c_try_compile "$LINENO"; then :
4770  xorg_cv_cc_flag_unknown_warning_option=yes
4771else
4772  xorg_cv_cc_flag_unknown_warning_option=no
4773fi
4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775fi
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4778	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4779	CFLAGS="$xorg_testset_save_CFLAGS"
4780fi
4781
4782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4783	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4784		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4785	fi
4786	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4787	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4790  $as_echo_n "(cached) " >&6
4791else
4792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793/* end confdefs.h.  */
4794int i;
4795_ACEOF
4796if ac_fn_c_try_compile "$LINENO"; then :
4797  xorg_cv_cc_flag_unused_command_line_argument=yes
4798else
4799  xorg_cv_cc_flag_unused_command_line_argument=no
4800fi
4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802fi
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4805	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4806	CFLAGS="$xorg_testset_save_CFLAGS"
4807fi
4808
4809found="no"
4810
4811	if test $found = "no" ; then
4812		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4813			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4814		fi
4815
4816		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4817			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4818		fi
4819
4820		CFLAGS="$CFLAGS -Wall"
4821
4822		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4823$as_echo_n "checking if $CC supports -Wall... " >&6; }
4824		cacheid=xorg_cv_cc_flag__Wall
4825		if eval \${$cacheid+:} false; then :
4826  $as_echo_n "(cached) " >&6
4827else
4828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829/* end confdefs.h.  */
4830int i;
4831int
4832main ()
4833{
4834
4835  ;
4836  return 0;
4837}
4838_ACEOF
4839if ac_fn_c_try_link "$LINENO"; then :
4840  eval $cacheid=yes
4841else
4842  eval $cacheid=no
4843fi
4844rm -f core conftest.err conftest.$ac_objext \
4845    conftest$ac_exeext conftest.$ac_ext
4846fi
4847
4848
4849		CFLAGS="$xorg_testset_save_CFLAGS"
4850
4851		eval supported=\$$cacheid
4852		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4853$as_echo "$supported" >&6; }
4854		if test "$supported" = "yes" ; then
4855			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4856			found="yes"
4857		fi
4858	fi
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874xorg_testset_save_CFLAGS="$CFLAGS"
4875
4876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4877	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4881  $as_echo_n "(cached) " >&6
4882else
4883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h.  */
4885int i;
4886_ACEOF
4887if ac_fn_c_try_compile "$LINENO"; then :
4888  xorg_cv_cc_flag_unknown_warning_option=yes
4889else
4890  xorg_cv_cc_flag_unknown_warning_option=no
4891fi
4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893fi
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4896	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4897	CFLAGS="$xorg_testset_save_CFLAGS"
4898fi
4899
4900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4901	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4902		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903	fi
4904	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4908  $as_echo_n "(cached) " >&6
4909else
4910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h.  */
4912int i;
4913_ACEOF
4914if ac_fn_c_try_compile "$LINENO"; then :
4915  xorg_cv_cc_flag_unused_command_line_argument=yes
4916else
4917  xorg_cv_cc_flag_unused_command_line_argument=no
4918fi
4919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4923	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4924	CFLAGS="$xorg_testset_save_CFLAGS"
4925fi
4926
4927found="no"
4928
4929	if test $found = "no" ; then
4930		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4931			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4932		fi
4933
4934		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4935			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4936		fi
4937
4938		CFLAGS="$CFLAGS -Wpointer-arith"
4939
4940		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4941$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4942		cacheid=xorg_cv_cc_flag__Wpointer_arith
4943		if eval \${$cacheid+:} false; then :
4944  $as_echo_n "(cached) " >&6
4945else
4946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947/* end confdefs.h.  */
4948int i;
4949int
4950main ()
4951{
4952
4953  ;
4954  return 0;
4955}
4956_ACEOF
4957if ac_fn_c_try_link "$LINENO"; then :
4958  eval $cacheid=yes
4959else
4960  eval $cacheid=no
4961fi
4962rm -f core conftest.err conftest.$ac_objext \
4963    conftest$ac_exeext conftest.$ac_ext
4964fi
4965
4966
4967		CFLAGS="$xorg_testset_save_CFLAGS"
4968
4969		eval supported=\$$cacheid
4970		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4971$as_echo "$supported" >&6; }
4972		if test "$supported" = "yes" ; then
4973			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4974			found="yes"
4975		fi
4976	fi
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992xorg_testset_save_CFLAGS="$CFLAGS"
4993
4994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4995	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4997$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4998if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4999  $as_echo_n "(cached) " >&6
5000else
5001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002/* end confdefs.h.  */
5003int i;
5004_ACEOF
5005if ac_fn_c_try_compile "$LINENO"; then :
5006  xorg_cv_cc_flag_unknown_warning_option=yes
5007else
5008  xorg_cv_cc_flag_unknown_warning_option=no
5009fi
5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011fi
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5013$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5014	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5015	CFLAGS="$xorg_testset_save_CFLAGS"
5016fi
5017
5018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5019	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5020		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5021	fi
5022	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5023	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5024$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5025if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h.  */
5030int i;
5031_ACEOF
5032if ac_fn_c_try_compile "$LINENO"; then :
5033  xorg_cv_cc_flag_unused_command_line_argument=yes
5034else
5035  xorg_cv_cc_flag_unused_command_line_argument=no
5036fi
5037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038fi
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5040$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5041	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5042	CFLAGS="$xorg_testset_save_CFLAGS"
5043fi
5044
5045found="no"
5046
5047	if test $found = "no" ; then
5048		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5050		fi
5051
5052		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5054		fi
5055
5056		CFLAGS="$CFLAGS -Wmissing-declarations"
5057
5058		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5059$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5060		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5061		if eval \${$cacheid+:} false; then :
5062  $as_echo_n "(cached) " >&6
5063else
5064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065/* end confdefs.h.  */
5066int i;
5067int
5068main ()
5069{
5070
5071  ;
5072  return 0;
5073}
5074_ACEOF
5075if ac_fn_c_try_link "$LINENO"; then :
5076  eval $cacheid=yes
5077else
5078  eval $cacheid=no
5079fi
5080rm -f core conftest.err conftest.$ac_objext \
5081    conftest$ac_exeext conftest.$ac_ext
5082fi
5083
5084
5085		CFLAGS="$xorg_testset_save_CFLAGS"
5086
5087		eval supported=\$$cacheid
5088		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5089$as_echo "$supported" >&6; }
5090		if test "$supported" = "yes" ; then
5091			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5092			found="yes"
5093		fi
5094	fi
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110xorg_testset_save_CFLAGS="$CFLAGS"
5111
5112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5113	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5115$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5116if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h.  */
5121int i;
5122_ACEOF
5123if ac_fn_c_try_compile "$LINENO"; then :
5124  xorg_cv_cc_flag_unknown_warning_option=yes
5125else
5126  xorg_cv_cc_flag_unknown_warning_option=no
5127fi
5128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129fi
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5131$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5132	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5133	CFLAGS="$xorg_testset_save_CFLAGS"
5134fi
5135
5136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5137	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139	fi
5140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5142$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5143if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5144  $as_echo_n "(cached) " >&6
5145else
5146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147/* end confdefs.h.  */
5148int i;
5149_ACEOF
5150if ac_fn_c_try_compile "$LINENO"; then :
5151  xorg_cv_cc_flag_unused_command_line_argument=yes
5152else
5153  xorg_cv_cc_flag_unused_command_line_argument=no
5154fi
5155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156fi
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5158$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5160	CFLAGS="$xorg_testset_save_CFLAGS"
5161fi
5162
5163found="no"
5164
5165	if test $found = "no" ; then
5166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5168		fi
5169
5170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5172		fi
5173
5174		CFLAGS="$CFLAGS -Wformat=2"
5175
5176		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5177$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5178		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5179		if eval \${$cacheid+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183/* end confdefs.h.  */
5184int i;
5185int
5186main ()
5187{
5188
5189  ;
5190  return 0;
5191}
5192_ACEOF
5193if ac_fn_c_try_link "$LINENO"; then :
5194  eval $cacheid=yes
5195else
5196  eval $cacheid=no
5197fi
5198rm -f core conftest.err conftest.$ac_objext \
5199    conftest$ac_exeext conftest.$ac_ext
5200fi
5201
5202
5203		CFLAGS="$xorg_testset_save_CFLAGS"
5204
5205		eval supported=\$$cacheid
5206		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5207$as_echo "$supported" >&6; }
5208		if test "$supported" = "yes" ; then
5209			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5210			found="yes"
5211		fi
5212	fi
5213
5214	if test $found = "no" ; then
5215		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5216			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5217		fi
5218
5219		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5220			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5221		fi
5222
5223		CFLAGS="$CFLAGS -Wformat"
5224
5225		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5226$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5227		cacheid=xorg_cv_cc_flag__Wformat
5228		if eval \${$cacheid+:} false; then :
5229  $as_echo_n "(cached) " >&6
5230else
5231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232/* end confdefs.h.  */
5233int i;
5234int
5235main ()
5236{
5237
5238  ;
5239  return 0;
5240}
5241_ACEOF
5242if ac_fn_c_try_link "$LINENO"; then :
5243  eval $cacheid=yes
5244else
5245  eval $cacheid=no
5246fi
5247rm -f core conftest.err conftest.$ac_objext \
5248    conftest$ac_exeext conftest.$ac_ext
5249fi
5250
5251
5252		CFLAGS="$xorg_testset_save_CFLAGS"
5253
5254		eval supported=\$$cacheid
5255		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5256$as_echo "$supported" >&6; }
5257		if test "$supported" = "yes" ; then
5258			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5259			found="yes"
5260		fi
5261	fi
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279xorg_testset_save_CFLAGS="$CFLAGS"
5280
5281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5282	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5284$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5285if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289/* end confdefs.h.  */
5290int i;
5291_ACEOF
5292if ac_fn_c_try_compile "$LINENO"; then :
5293  xorg_cv_cc_flag_unknown_warning_option=yes
5294else
5295  xorg_cv_cc_flag_unknown_warning_option=no
5296fi
5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5300$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5301	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5302	CFLAGS="$xorg_testset_save_CFLAGS"
5303fi
5304
5305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5306	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5307		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308	fi
5309	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5310	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5311$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5312if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5313  $as_echo_n "(cached) " >&6
5314else
5315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h.  */
5317int i;
5318_ACEOF
5319if ac_fn_c_try_compile "$LINENO"; then :
5320  xorg_cv_cc_flag_unused_command_line_argument=yes
5321else
5322  xorg_cv_cc_flag_unused_command_line_argument=no
5323fi
5324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5327$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5328	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5329	CFLAGS="$xorg_testset_save_CFLAGS"
5330fi
5331
5332found="no"
5333
5334	if test $found = "no" ; then
5335		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5336			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5337		fi
5338
5339		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5340			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5341		fi
5342
5343		CFLAGS="$CFLAGS -Wstrict-prototypes"
5344
5345		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5346$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5347		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5348		if eval \${$cacheid+:} false; then :
5349  $as_echo_n "(cached) " >&6
5350else
5351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352/* end confdefs.h.  */
5353int i;
5354int
5355main ()
5356{
5357
5358  ;
5359  return 0;
5360}
5361_ACEOF
5362if ac_fn_c_try_link "$LINENO"; then :
5363  eval $cacheid=yes
5364else
5365  eval $cacheid=no
5366fi
5367rm -f core conftest.err conftest.$ac_objext \
5368    conftest$ac_exeext conftest.$ac_ext
5369fi
5370
5371
5372		CFLAGS="$xorg_testset_save_CFLAGS"
5373
5374		eval supported=\$$cacheid
5375		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5376$as_echo "$supported" >&6; }
5377		if test "$supported" = "yes" ; then
5378			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5379			found="yes"
5380		fi
5381	fi
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397xorg_testset_save_CFLAGS="$CFLAGS"
5398
5399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5402$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5403if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h.  */
5408int i;
5409_ACEOF
5410if ac_fn_c_try_compile "$LINENO"; then :
5411  xorg_cv_cc_flag_unknown_warning_option=yes
5412else
5413  xorg_cv_cc_flag_unknown_warning_option=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5418$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5420	CFLAGS="$xorg_testset_save_CFLAGS"
5421fi
5422
5423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5426	fi
5427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5428	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5429$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5430if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5431  $as_echo_n "(cached) " >&6
5432else
5433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h.  */
5435int i;
5436_ACEOF
5437if ac_fn_c_try_compile "$LINENO"; then :
5438  xorg_cv_cc_flag_unused_command_line_argument=yes
5439else
5440  xorg_cv_cc_flag_unused_command_line_argument=no
5441fi
5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5445$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5446	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5447	CFLAGS="$xorg_testset_save_CFLAGS"
5448fi
5449
5450found="no"
5451
5452	if test $found = "no" ; then
5453		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5454			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455		fi
5456
5457		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5458			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5459		fi
5460
5461		CFLAGS="$CFLAGS -Wmissing-prototypes"
5462
5463		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5464$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5465		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5466		if eval \${$cacheid+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h.  */
5471int i;
5472int
5473main ()
5474{
5475
5476  ;
5477  return 0;
5478}
5479_ACEOF
5480if ac_fn_c_try_link "$LINENO"; then :
5481  eval $cacheid=yes
5482else
5483  eval $cacheid=no
5484fi
5485rm -f core conftest.err conftest.$ac_objext \
5486    conftest$ac_exeext conftest.$ac_ext
5487fi
5488
5489
5490		CFLAGS="$xorg_testset_save_CFLAGS"
5491
5492		eval supported=\$$cacheid
5493		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5494$as_echo "$supported" >&6; }
5495		if test "$supported" = "yes" ; then
5496			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5497			found="yes"
5498		fi
5499	fi
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515xorg_testset_save_CFLAGS="$CFLAGS"
5516
5517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5518	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5520$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5521if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526int i;
5527_ACEOF
5528if ac_fn_c_try_compile "$LINENO"; then :
5529  xorg_cv_cc_flag_unknown_warning_option=yes
5530else
5531  xorg_cv_cc_flag_unknown_warning_option=no
5532fi
5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534fi
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5536$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5537	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5538	CFLAGS="$xorg_testset_save_CFLAGS"
5539fi
5540
5541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5542	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5543		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544	fi
5545	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5547$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5548if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5549  $as_echo_n "(cached) " >&6
5550else
5551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553int i;
5554_ACEOF
5555if ac_fn_c_try_compile "$LINENO"; then :
5556  xorg_cv_cc_flag_unused_command_line_argument=yes
5557else
5558  xorg_cv_cc_flag_unused_command_line_argument=no
5559fi
5560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5563$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5564	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5565	CFLAGS="$xorg_testset_save_CFLAGS"
5566fi
5567
5568found="no"
5569
5570	if test $found = "no" ; then
5571		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5572			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573		fi
5574
5575		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5576			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5577		fi
5578
5579		CFLAGS="$CFLAGS -Wnested-externs"
5580
5581		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5582$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5583		cacheid=xorg_cv_cc_flag__Wnested_externs
5584		if eval \${$cacheid+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h.  */
5589int i;
5590int
5591main ()
5592{
5593
5594  ;
5595  return 0;
5596}
5597_ACEOF
5598if ac_fn_c_try_link "$LINENO"; then :
5599  eval $cacheid=yes
5600else
5601  eval $cacheid=no
5602fi
5603rm -f core conftest.err conftest.$ac_objext \
5604    conftest$ac_exeext conftest.$ac_ext
5605fi
5606
5607
5608		CFLAGS="$xorg_testset_save_CFLAGS"
5609
5610		eval supported=\$$cacheid
5611		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5612$as_echo "$supported" >&6; }
5613		if test "$supported" = "yes" ; then
5614			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5615			found="yes"
5616		fi
5617	fi
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633xorg_testset_save_CFLAGS="$CFLAGS"
5634
5635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5636	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5638$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5639if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h.  */
5644int i;
5645_ACEOF
5646if ac_fn_c_try_compile "$LINENO"; then :
5647  xorg_cv_cc_flag_unknown_warning_option=yes
5648else
5649  xorg_cv_cc_flag_unknown_warning_option=no
5650fi
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652fi
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5654$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5655	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5656	CFLAGS="$xorg_testset_save_CFLAGS"
5657fi
5658
5659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5660	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5661		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5662	fi
5663	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5664	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5665$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5666if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h.  */
5671int i;
5672_ACEOF
5673if ac_fn_c_try_compile "$LINENO"; then :
5674  xorg_cv_cc_flag_unused_command_line_argument=yes
5675else
5676  xorg_cv_cc_flag_unused_command_line_argument=no
5677fi
5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679fi
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5681$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5682	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5683	CFLAGS="$xorg_testset_save_CFLAGS"
5684fi
5685
5686found="no"
5687
5688	if test $found = "no" ; then
5689		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5690			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5691		fi
5692
5693		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5694			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5695		fi
5696
5697		CFLAGS="$CFLAGS -Wbad-function-cast"
5698
5699		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5700$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5701		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5702		if eval \${$cacheid+:} false; then :
5703  $as_echo_n "(cached) " >&6
5704else
5705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706/* end confdefs.h.  */
5707int i;
5708int
5709main ()
5710{
5711
5712  ;
5713  return 0;
5714}
5715_ACEOF
5716if ac_fn_c_try_link "$LINENO"; then :
5717  eval $cacheid=yes
5718else
5719  eval $cacheid=no
5720fi
5721rm -f core conftest.err conftest.$ac_objext \
5722    conftest$ac_exeext conftest.$ac_ext
5723fi
5724
5725
5726		CFLAGS="$xorg_testset_save_CFLAGS"
5727
5728		eval supported=\$$cacheid
5729		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5730$as_echo "$supported" >&6; }
5731		if test "$supported" = "yes" ; then
5732			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5733			found="yes"
5734		fi
5735	fi
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751xorg_testset_save_CFLAGS="$CFLAGS"
5752
5753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5754	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5756$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5757if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761/* end confdefs.h.  */
5762int i;
5763_ACEOF
5764if ac_fn_c_try_compile "$LINENO"; then :
5765  xorg_cv_cc_flag_unknown_warning_option=yes
5766else
5767  xorg_cv_cc_flag_unknown_warning_option=no
5768fi
5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770fi
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5772$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5774	CFLAGS="$xorg_testset_save_CFLAGS"
5775fi
5776
5777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780	fi
5781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5783$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5784if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788/* end confdefs.h.  */
5789int i;
5790_ACEOF
5791if ac_fn_c_try_compile "$LINENO"; then :
5792  xorg_cv_cc_flag_unused_command_line_argument=yes
5793else
5794  xorg_cv_cc_flag_unused_command_line_argument=no
5795fi
5796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797fi
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5799$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5800	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5801	CFLAGS="$xorg_testset_save_CFLAGS"
5802fi
5803
5804found="no"
5805
5806	if test $found = "no" ; then
5807		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5809		fi
5810
5811		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5813		fi
5814
5815		CFLAGS="$CFLAGS -Wold-style-definition"
5816
5817		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5818$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5819		cacheid=xorg_cv_cc_flag__Wold_style_definition
5820		if eval \${$cacheid+:} false; then :
5821  $as_echo_n "(cached) " >&6
5822else
5823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824/* end confdefs.h.  */
5825int i;
5826int
5827main ()
5828{
5829
5830  ;
5831  return 0;
5832}
5833_ACEOF
5834if ac_fn_c_try_link "$LINENO"; then :
5835  eval $cacheid=yes
5836else
5837  eval $cacheid=no
5838fi
5839rm -f core conftest.err conftest.$ac_objext \
5840    conftest$ac_exeext conftest.$ac_ext
5841fi
5842
5843
5844		CFLAGS="$xorg_testset_save_CFLAGS"
5845
5846		eval supported=\$$cacheid
5847		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5848$as_echo "$supported" >&6; }
5849		if test "$supported" = "yes" ; then
5850			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5851			found="yes"
5852		fi
5853	fi
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869xorg_testset_save_CFLAGS="$CFLAGS"
5870
5871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5872	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5874$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5875if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5876  $as_echo_n "(cached) " >&6
5877else
5878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879/* end confdefs.h.  */
5880int i;
5881_ACEOF
5882if ac_fn_c_try_compile "$LINENO"; then :
5883  xorg_cv_cc_flag_unknown_warning_option=yes
5884else
5885  xorg_cv_cc_flag_unknown_warning_option=no
5886fi
5887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888fi
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5890$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5891	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5892	CFLAGS="$xorg_testset_save_CFLAGS"
5893fi
5894
5895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5896	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5897		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5898	fi
5899	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5900	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5901$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5902if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5903  $as_echo_n "(cached) " >&6
5904else
5905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h.  */
5907int i;
5908_ACEOF
5909if ac_fn_c_try_compile "$LINENO"; then :
5910  xorg_cv_cc_flag_unused_command_line_argument=yes
5911else
5912  xorg_cv_cc_flag_unused_command_line_argument=no
5913fi
5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915fi
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5917$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5918	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5919	CFLAGS="$xorg_testset_save_CFLAGS"
5920fi
5921
5922found="no"
5923
5924	if test $found = "no" ; then
5925		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5926			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5927		fi
5928
5929		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5930			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5931		fi
5932
5933		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5934
5935		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5936$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5937		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5938		if eval \${$cacheid+:} false; then :
5939  $as_echo_n "(cached) " >&6
5940else
5941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942/* end confdefs.h.  */
5943int i;
5944int
5945main ()
5946{
5947
5948  ;
5949  return 0;
5950}
5951_ACEOF
5952if ac_fn_c_try_link "$LINENO"; then :
5953  eval $cacheid=yes
5954else
5955  eval $cacheid=no
5956fi
5957rm -f core conftest.err conftest.$ac_objext \
5958    conftest$ac_exeext conftest.$ac_ext
5959fi
5960
5961
5962		CFLAGS="$xorg_testset_save_CFLAGS"
5963
5964		eval supported=\$$cacheid
5965		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5966$as_echo "$supported" >&6; }
5967		if test "$supported" = "yes" ; then
5968			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5969			found="yes"
5970		fi
5971	fi
5972
5973
5974
5975
5976
5977# This chunk adds additional warnings that could catch undesired effects.
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991xorg_testset_save_CFLAGS="$CFLAGS"
5992
5993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5994	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5998  $as_echo_n "(cached) " >&6
5999else
6000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001/* end confdefs.h.  */
6002int i;
6003_ACEOF
6004if ac_fn_c_try_compile "$LINENO"; then :
6005  xorg_cv_cc_flag_unknown_warning_option=yes
6006else
6007  xorg_cv_cc_flag_unknown_warning_option=no
6008fi
6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6013	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6014	CFLAGS="$xorg_testset_save_CFLAGS"
6015fi
6016
6017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6018	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6019		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020	fi
6021	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6025  $as_echo_n "(cached) " >&6
6026else
6027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028/* end confdefs.h.  */
6029int i;
6030_ACEOF
6031if ac_fn_c_try_compile "$LINENO"; then :
6032  xorg_cv_cc_flag_unused_command_line_argument=yes
6033else
6034  xorg_cv_cc_flag_unused_command_line_argument=no
6035fi
6036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6040	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6041	CFLAGS="$xorg_testset_save_CFLAGS"
6042fi
6043
6044found="no"
6045
6046	if test $found = "no" ; then
6047		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6049		fi
6050
6051		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6053		fi
6054
6055		CFLAGS="$CFLAGS -Wunused"
6056
6057		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6058$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6059		cacheid=xorg_cv_cc_flag__Wunused
6060		if eval \${$cacheid+:} false; then :
6061  $as_echo_n "(cached) " >&6
6062else
6063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h.  */
6065int i;
6066int
6067main ()
6068{
6069
6070  ;
6071  return 0;
6072}
6073_ACEOF
6074if ac_fn_c_try_link "$LINENO"; then :
6075  eval $cacheid=yes
6076else
6077  eval $cacheid=no
6078fi
6079rm -f core conftest.err conftest.$ac_objext \
6080    conftest$ac_exeext conftest.$ac_ext
6081fi
6082
6083
6084		CFLAGS="$xorg_testset_save_CFLAGS"
6085
6086		eval supported=\$$cacheid
6087		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6088$as_echo "$supported" >&6; }
6089		if test "$supported" = "yes" ; then
6090			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6091			found="yes"
6092		fi
6093	fi
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109xorg_testset_save_CFLAGS="$CFLAGS"
6110
6111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6112	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6114$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6115if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6116  $as_echo_n "(cached) " >&6
6117else
6118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119/* end confdefs.h.  */
6120int i;
6121_ACEOF
6122if ac_fn_c_try_compile "$LINENO"; then :
6123  xorg_cv_cc_flag_unknown_warning_option=yes
6124else
6125  xorg_cv_cc_flag_unknown_warning_option=no
6126fi
6127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128fi
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6130$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6131	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6132	CFLAGS="$xorg_testset_save_CFLAGS"
6133fi
6134
6135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6136	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6137		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138	fi
6139	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6141$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6142if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146/* end confdefs.h.  */
6147int i;
6148_ACEOF
6149if ac_fn_c_try_compile "$LINENO"; then :
6150  xorg_cv_cc_flag_unused_command_line_argument=yes
6151else
6152  xorg_cv_cc_flag_unused_command_line_argument=no
6153fi
6154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155fi
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6157$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6159	CFLAGS="$xorg_testset_save_CFLAGS"
6160fi
6161
6162found="no"
6163
6164	if test $found = "no" ; then
6165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6167		fi
6168
6169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6171		fi
6172
6173		CFLAGS="$CFLAGS -Wuninitialized"
6174
6175		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6176$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6177		cacheid=xorg_cv_cc_flag__Wuninitialized
6178		if eval \${$cacheid+:} false; then :
6179  $as_echo_n "(cached) " >&6
6180else
6181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182/* end confdefs.h.  */
6183int i;
6184int
6185main ()
6186{
6187
6188  ;
6189  return 0;
6190}
6191_ACEOF
6192if ac_fn_c_try_link "$LINENO"; then :
6193  eval $cacheid=yes
6194else
6195  eval $cacheid=no
6196fi
6197rm -f core conftest.err conftest.$ac_objext \
6198    conftest$ac_exeext conftest.$ac_ext
6199fi
6200
6201
6202		CFLAGS="$xorg_testset_save_CFLAGS"
6203
6204		eval supported=\$$cacheid
6205		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6206$as_echo "$supported" >&6; }
6207		if test "$supported" = "yes" ; then
6208			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6209			found="yes"
6210		fi
6211	fi
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227xorg_testset_save_CFLAGS="$CFLAGS"
6228
6229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6232$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6233if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6234  $as_echo_n "(cached) " >&6
6235else
6236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237/* end confdefs.h.  */
6238int i;
6239_ACEOF
6240if ac_fn_c_try_compile "$LINENO"; then :
6241  xorg_cv_cc_flag_unknown_warning_option=yes
6242else
6243  xorg_cv_cc_flag_unknown_warning_option=no
6244fi
6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246fi
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6248$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6250	CFLAGS="$xorg_testset_save_CFLAGS"
6251fi
6252
6253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256	fi
6257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6259$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6260if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6261  $as_echo_n "(cached) " >&6
6262else
6263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264/* end confdefs.h.  */
6265int i;
6266_ACEOF
6267if ac_fn_c_try_compile "$LINENO"; then :
6268  xorg_cv_cc_flag_unused_command_line_argument=yes
6269else
6270  xorg_cv_cc_flag_unused_command_line_argument=no
6271fi
6272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273fi
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6275$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6276	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6277	CFLAGS="$xorg_testset_save_CFLAGS"
6278fi
6279
6280found="no"
6281
6282	if test $found = "no" ; then
6283		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6284			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6285		fi
6286
6287		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6288			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6289		fi
6290
6291		CFLAGS="$CFLAGS -Wshadow"
6292
6293		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6294$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6295		cacheid=xorg_cv_cc_flag__Wshadow
6296		if eval \${$cacheid+:} false; then :
6297  $as_echo_n "(cached) " >&6
6298else
6299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300/* end confdefs.h.  */
6301int i;
6302int
6303main ()
6304{
6305
6306  ;
6307  return 0;
6308}
6309_ACEOF
6310if ac_fn_c_try_link "$LINENO"; then :
6311  eval $cacheid=yes
6312else
6313  eval $cacheid=no
6314fi
6315rm -f core conftest.err conftest.$ac_objext \
6316    conftest$ac_exeext conftest.$ac_ext
6317fi
6318
6319
6320		CFLAGS="$xorg_testset_save_CFLAGS"
6321
6322		eval supported=\$$cacheid
6323		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6324$as_echo "$supported" >&6; }
6325		if test "$supported" = "yes" ; then
6326			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6327			found="yes"
6328		fi
6329	fi
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345xorg_testset_save_CFLAGS="$CFLAGS"
6346
6347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6348	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6350$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6351if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355/* end confdefs.h.  */
6356int i;
6357_ACEOF
6358if ac_fn_c_try_compile "$LINENO"; then :
6359  xorg_cv_cc_flag_unknown_warning_option=yes
6360else
6361  xorg_cv_cc_flag_unknown_warning_option=no
6362fi
6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364fi
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6366$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6367	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6368	CFLAGS="$xorg_testset_save_CFLAGS"
6369fi
6370
6371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6372	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6373		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6374	fi
6375	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6377$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6378if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6379  $as_echo_n "(cached) " >&6
6380else
6381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h.  */
6383int i;
6384_ACEOF
6385if ac_fn_c_try_compile "$LINENO"; then :
6386  xorg_cv_cc_flag_unused_command_line_argument=yes
6387else
6388  xorg_cv_cc_flag_unused_command_line_argument=no
6389fi
6390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391fi
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6393$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6394	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6395	CFLAGS="$xorg_testset_save_CFLAGS"
6396fi
6397
6398found="no"
6399
6400	if test $found = "no" ; then
6401		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6402			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6403		fi
6404
6405		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6406			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6407		fi
6408
6409		CFLAGS="$CFLAGS -Wcast-qual"
6410
6411		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6412$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6413		cacheid=xorg_cv_cc_flag__Wcast_qual
6414		if eval \${$cacheid+:} false; then :
6415  $as_echo_n "(cached) " >&6
6416else
6417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418/* end confdefs.h.  */
6419int i;
6420int
6421main ()
6422{
6423
6424  ;
6425  return 0;
6426}
6427_ACEOF
6428if ac_fn_c_try_link "$LINENO"; then :
6429  eval $cacheid=yes
6430else
6431  eval $cacheid=no
6432fi
6433rm -f core conftest.err conftest.$ac_objext \
6434    conftest$ac_exeext conftest.$ac_ext
6435fi
6436
6437
6438		CFLAGS="$xorg_testset_save_CFLAGS"
6439
6440		eval supported=\$$cacheid
6441		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6442$as_echo "$supported" >&6; }
6443		if test "$supported" = "yes" ; then
6444			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6445			found="yes"
6446		fi
6447	fi
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463xorg_testset_save_CFLAGS="$CFLAGS"
6464
6465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6466	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6468$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6469if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6470  $as_echo_n "(cached) " >&6
6471else
6472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473/* end confdefs.h.  */
6474int i;
6475_ACEOF
6476if ac_fn_c_try_compile "$LINENO"; then :
6477  xorg_cv_cc_flag_unknown_warning_option=yes
6478else
6479  xorg_cv_cc_flag_unknown_warning_option=no
6480fi
6481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482fi
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6484$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6485	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6486	CFLAGS="$xorg_testset_save_CFLAGS"
6487fi
6488
6489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6490	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6491		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6492	fi
6493	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6496if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500/* end confdefs.h.  */
6501int i;
6502_ACEOF
6503if ac_fn_c_try_compile "$LINENO"; then :
6504  xorg_cv_cc_flag_unused_command_line_argument=yes
6505else
6506  xorg_cv_cc_flag_unused_command_line_argument=no
6507fi
6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509fi
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6511$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6513	CFLAGS="$xorg_testset_save_CFLAGS"
6514fi
6515
6516found="no"
6517
6518	if test $found = "no" ; then
6519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6521		fi
6522
6523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6525		fi
6526
6527		CFLAGS="$CFLAGS -Wmissing-noreturn"
6528
6529		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6530$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6531		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6532		if eval \${$cacheid+:} false; then :
6533  $as_echo_n "(cached) " >&6
6534else
6535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536/* end confdefs.h.  */
6537int i;
6538int
6539main ()
6540{
6541
6542  ;
6543  return 0;
6544}
6545_ACEOF
6546if ac_fn_c_try_link "$LINENO"; then :
6547  eval $cacheid=yes
6548else
6549  eval $cacheid=no
6550fi
6551rm -f core conftest.err conftest.$ac_objext \
6552    conftest$ac_exeext conftest.$ac_ext
6553fi
6554
6555
6556		CFLAGS="$xorg_testset_save_CFLAGS"
6557
6558		eval supported=\$$cacheid
6559		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6560$as_echo "$supported" >&6; }
6561		if test "$supported" = "yes" ; then
6562			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6563			found="yes"
6564		fi
6565	fi
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581xorg_testset_save_CFLAGS="$CFLAGS"
6582
6583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6584	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h.  */
6592int i;
6593_ACEOF
6594if ac_fn_c_try_compile "$LINENO"; then :
6595  xorg_cv_cc_flag_unknown_warning_option=yes
6596else
6597  xorg_cv_cc_flag_unknown_warning_option=no
6598fi
6599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600fi
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6604	CFLAGS="$xorg_testset_save_CFLAGS"
6605fi
6606
6607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610	fi
6611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6615  $as_echo_n "(cached) " >&6
6616else
6617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h.  */
6619int i;
6620_ACEOF
6621if ac_fn_c_try_compile "$LINENO"; then :
6622  xorg_cv_cc_flag_unused_command_line_argument=yes
6623else
6624  xorg_cv_cc_flag_unused_command_line_argument=no
6625fi
6626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627fi
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6630	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6631	CFLAGS="$xorg_testset_save_CFLAGS"
6632fi
6633
6634found="no"
6635
6636	if test $found = "no" ; then
6637		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6638			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6639		fi
6640
6641		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6642			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6643		fi
6644
6645		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6646
6647		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6648$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6649		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6650		if eval \${$cacheid+:} false; then :
6651  $as_echo_n "(cached) " >&6
6652else
6653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654/* end confdefs.h.  */
6655int i;
6656int
6657main ()
6658{
6659
6660  ;
6661  return 0;
6662}
6663_ACEOF
6664if ac_fn_c_try_link "$LINENO"; then :
6665  eval $cacheid=yes
6666else
6667  eval $cacheid=no
6668fi
6669rm -f core conftest.err conftest.$ac_objext \
6670    conftest$ac_exeext conftest.$ac_ext
6671fi
6672
6673
6674		CFLAGS="$xorg_testset_save_CFLAGS"
6675
6676		eval supported=\$$cacheid
6677		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6678$as_echo "$supported" >&6; }
6679		if test "$supported" = "yes" ; then
6680			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6681			found="yes"
6682		fi
6683	fi
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699xorg_testset_save_CFLAGS="$CFLAGS"
6700
6701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709/* end confdefs.h.  */
6710int i;
6711_ACEOF
6712if ac_fn_c_try_compile "$LINENO"; then :
6713  xorg_cv_cc_flag_unknown_warning_option=yes
6714else
6715  xorg_cv_cc_flag_unknown_warning_option=no
6716fi
6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718fi
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6722	CFLAGS="$xorg_testset_save_CFLAGS"
6723fi
6724
6725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6728	fi
6729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736/* end confdefs.h.  */
6737int i;
6738_ACEOF
6739if ac_fn_c_try_compile "$LINENO"; then :
6740  xorg_cv_cc_flag_unused_command_line_argument=yes
6741else
6742  xorg_cv_cc_flag_unused_command_line_argument=no
6743fi
6744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745fi
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6748	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6749	CFLAGS="$xorg_testset_save_CFLAGS"
6750fi
6751
6752found="no"
6753
6754	if test $found = "no" ; then
6755		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6757		fi
6758
6759		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6761		fi
6762
6763		CFLAGS="$CFLAGS -Wredundant-decls"
6764
6765		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6766$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6767		cacheid=xorg_cv_cc_flag__Wredundant_decls
6768		if eval \${$cacheid+:} false; then :
6769  $as_echo_n "(cached) " >&6
6770else
6771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772/* end confdefs.h.  */
6773int i;
6774int
6775main ()
6776{
6777
6778  ;
6779  return 0;
6780}
6781_ACEOF
6782if ac_fn_c_try_link "$LINENO"; then :
6783  eval $cacheid=yes
6784else
6785  eval $cacheid=no
6786fi
6787rm -f core conftest.err conftest.$ac_objext \
6788    conftest$ac_exeext conftest.$ac_ext
6789fi
6790
6791
6792		CFLAGS="$xorg_testset_save_CFLAGS"
6793
6794		eval supported=\$$cacheid
6795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6796$as_echo "$supported" >&6; }
6797		if test "$supported" = "yes" ; then
6798			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6799			found="yes"
6800		fi
6801	fi
6802
6803
6804
6805# These are currently disabled because they are noisy.  They will be enabled
6806# in the future once the codebase is sufficiently modernized to silence
6807# them.  For now, I don't want them to drown out the other warnings.
6808# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6809# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6810# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6811
6812# Turn some warnings into errors, so we don't accidently get successful builds
6813# when there are problems that should be fixed.
6814
6815if test "x$SELECTIVE_WERROR" = "xyes" ; then
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829xorg_testset_save_CFLAGS="$CFLAGS"
6830
6831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839/* end confdefs.h.  */
6840int i;
6841_ACEOF
6842if ac_fn_c_try_compile "$LINENO"; then :
6843  xorg_cv_cc_flag_unknown_warning_option=yes
6844else
6845  xorg_cv_cc_flag_unknown_warning_option=no
6846fi
6847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848fi
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6852	CFLAGS="$xorg_testset_save_CFLAGS"
6853fi
6854
6855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858	fi
6859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6863  $as_echo_n "(cached) " >&6
6864else
6865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866/* end confdefs.h.  */
6867int i;
6868_ACEOF
6869if ac_fn_c_try_compile "$LINENO"; then :
6870  xorg_cv_cc_flag_unused_command_line_argument=yes
6871else
6872  xorg_cv_cc_flag_unused_command_line_argument=no
6873fi
6874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875fi
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6879	CFLAGS="$xorg_testset_save_CFLAGS"
6880fi
6881
6882found="no"
6883
6884	if test $found = "no" ; then
6885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6887		fi
6888
6889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6891		fi
6892
6893		CFLAGS="$CFLAGS -Werror=implicit"
6894
6895		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6896$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6897		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6898		if eval \${$cacheid+:} false; then :
6899  $as_echo_n "(cached) " >&6
6900else
6901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902/* end confdefs.h.  */
6903int i;
6904int
6905main ()
6906{
6907
6908  ;
6909  return 0;
6910}
6911_ACEOF
6912if ac_fn_c_try_link "$LINENO"; then :
6913  eval $cacheid=yes
6914else
6915  eval $cacheid=no
6916fi
6917rm -f core conftest.err conftest.$ac_objext \
6918    conftest$ac_exeext conftest.$ac_ext
6919fi
6920
6921
6922		CFLAGS="$xorg_testset_save_CFLAGS"
6923
6924		eval supported=\$$cacheid
6925		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6926$as_echo "$supported" >&6; }
6927		if test "$supported" = "yes" ; then
6928			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6929			found="yes"
6930		fi
6931	fi
6932
6933	if test $found = "no" ; then
6934		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6935			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6936		fi
6937
6938		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6939			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6940		fi
6941
6942		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6943
6944		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6945$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6946		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6947		if eval \${$cacheid+:} false; then :
6948  $as_echo_n "(cached) " >&6
6949else
6950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951/* end confdefs.h.  */
6952int i;
6953int
6954main ()
6955{
6956
6957  ;
6958  return 0;
6959}
6960_ACEOF
6961if ac_fn_c_try_link "$LINENO"; then :
6962  eval $cacheid=yes
6963else
6964  eval $cacheid=no
6965fi
6966rm -f core conftest.err conftest.$ac_objext \
6967    conftest$ac_exeext conftest.$ac_ext
6968fi
6969
6970
6971		CFLAGS="$xorg_testset_save_CFLAGS"
6972
6973		eval supported=\$$cacheid
6974		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6975$as_echo "$supported" >&6; }
6976		if test "$supported" = "yes" ; then
6977			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6978			found="yes"
6979		fi
6980	fi
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996xorg_testset_save_CFLAGS="$CFLAGS"
6997
6998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6999	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h.  */
7007int i;
7008_ACEOF
7009if ac_fn_c_try_compile "$LINENO"; then :
7010  xorg_cv_cc_flag_unknown_warning_option=yes
7011else
7012  xorg_cv_cc_flag_unknown_warning_option=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7019	CFLAGS="$xorg_testset_save_CFLAGS"
7020fi
7021
7022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025	fi
7026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7030  $as_echo_n "(cached) " >&6
7031else
7032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033/* end confdefs.h.  */
7034int i;
7035_ACEOF
7036if ac_fn_c_try_compile "$LINENO"; then :
7037  xorg_cv_cc_flag_unused_command_line_argument=yes
7038else
7039  xorg_cv_cc_flag_unused_command_line_argument=no
7040fi
7041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042fi
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7045	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7046	CFLAGS="$xorg_testset_save_CFLAGS"
7047fi
7048
7049found="no"
7050
7051	if test $found = "no" ; then
7052		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7053			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7054		fi
7055
7056		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7057			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7058		fi
7059
7060		CFLAGS="$CFLAGS -Werror=nonnull"
7061
7062		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7063$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7064		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7065		if eval \${$cacheid+:} false; then :
7066  $as_echo_n "(cached) " >&6
7067else
7068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070int i;
7071int
7072main ()
7073{
7074
7075  ;
7076  return 0;
7077}
7078_ACEOF
7079if ac_fn_c_try_link "$LINENO"; then :
7080  eval $cacheid=yes
7081else
7082  eval $cacheid=no
7083fi
7084rm -f core conftest.err conftest.$ac_objext \
7085    conftest$ac_exeext conftest.$ac_ext
7086fi
7087
7088
7089		CFLAGS="$xorg_testset_save_CFLAGS"
7090
7091		eval supported=\$$cacheid
7092		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7093$as_echo "$supported" >&6; }
7094		if test "$supported" = "yes" ; then
7095			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7096			found="yes"
7097		fi
7098	fi
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114xorg_testset_save_CFLAGS="$CFLAGS"
7115
7116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7117	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7118	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7119$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7120if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h.  */
7125int i;
7126_ACEOF
7127if ac_fn_c_try_compile "$LINENO"; then :
7128  xorg_cv_cc_flag_unknown_warning_option=yes
7129else
7130  xorg_cv_cc_flag_unknown_warning_option=no
7131fi
7132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133fi
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7135$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7136	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7137	CFLAGS="$xorg_testset_save_CFLAGS"
7138fi
7139
7140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7141	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7142		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143	fi
7144	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7146$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7147if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7148  $as_echo_n "(cached) " >&6
7149else
7150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151/* end confdefs.h.  */
7152int i;
7153_ACEOF
7154if ac_fn_c_try_compile "$LINENO"; then :
7155  xorg_cv_cc_flag_unused_command_line_argument=yes
7156else
7157  xorg_cv_cc_flag_unused_command_line_argument=no
7158fi
7159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160fi
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7162$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7163	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7164	CFLAGS="$xorg_testset_save_CFLAGS"
7165fi
7166
7167found="no"
7168
7169	if test $found = "no" ; then
7170		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7171			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7172		fi
7173
7174		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7175			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7176		fi
7177
7178		CFLAGS="$CFLAGS -Werror=init-self"
7179
7180		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7181$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7182		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7183		if eval \${$cacheid+:} false; then :
7184  $as_echo_n "(cached) " >&6
7185else
7186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187/* end confdefs.h.  */
7188int i;
7189int
7190main ()
7191{
7192
7193  ;
7194  return 0;
7195}
7196_ACEOF
7197if ac_fn_c_try_link "$LINENO"; then :
7198  eval $cacheid=yes
7199else
7200  eval $cacheid=no
7201fi
7202rm -f core conftest.err conftest.$ac_objext \
7203    conftest$ac_exeext conftest.$ac_ext
7204fi
7205
7206
7207		CFLAGS="$xorg_testset_save_CFLAGS"
7208
7209		eval supported=\$$cacheid
7210		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7211$as_echo "$supported" >&6; }
7212		if test "$supported" = "yes" ; then
7213			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7214			found="yes"
7215		fi
7216	fi
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232xorg_testset_save_CFLAGS="$CFLAGS"
7233
7234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7235	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7237$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7238if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7239  $as_echo_n "(cached) " >&6
7240else
7241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h.  */
7243int i;
7244_ACEOF
7245if ac_fn_c_try_compile "$LINENO"; then :
7246  xorg_cv_cc_flag_unknown_warning_option=yes
7247else
7248  xorg_cv_cc_flag_unknown_warning_option=no
7249fi
7250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251fi
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7253$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7254	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7255	CFLAGS="$xorg_testset_save_CFLAGS"
7256fi
7257
7258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7259	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7260		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261	fi
7262	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7263	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7264$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7265if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7266  $as_echo_n "(cached) " >&6
7267else
7268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h.  */
7270int i;
7271_ACEOF
7272if ac_fn_c_try_compile "$LINENO"; then :
7273  xorg_cv_cc_flag_unused_command_line_argument=yes
7274else
7275  xorg_cv_cc_flag_unused_command_line_argument=no
7276fi
7277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278fi
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7280$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7281	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7282	CFLAGS="$xorg_testset_save_CFLAGS"
7283fi
7284
7285found="no"
7286
7287	if test $found = "no" ; then
7288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7290		fi
7291
7292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7294		fi
7295
7296		CFLAGS="$CFLAGS -Werror=main"
7297
7298		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7299$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7300		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7301		if eval \${$cacheid+:} false; then :
7302  $as_echo_n "(cached) " >&6
7303else
7304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305/* end confdefs.h.  */
7306int i;
7307int
7308main ()
7309{
7310
7311  ;
7312  return 0;
7313}
7314_ACEOF
7315if ac_fn_c_try_link "$LINENO"; then :
7316  eval $cacheid=yes
7317else
7318  eval $cacheid=no
7319fi
7320rm -f core conftest.err conftest.$ac_objext \
7321    conftest$ac_exeext conftest.$ac_ext
7322fi
7323
7324
7325		CFLAGS="$xorg_testset_save_CFLAGS"
7326
7327		eval supported=\$$cacheid
7328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7329$as_echo "$supported" >&6; }
7330		if test "$supported" = "yes" ; then
7331			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7332			found="yes"
7333		fi
7334	fi
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350xorg_testset_save_CFLAGS="$CFLAGS"
7351
7352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7353	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7355$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7356if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360/* end confdefs.h.  */
7361int i;
7362_ACEOF
7363if ac_fn_c_try_compile "$LINENO"; then :
7364  xorg_cv_cc_flag_unknown_warning_option=yes
7365else
7366  xorg_cv_cc_flag_unknown_warning_option=no
7367fi
7368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369fi
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7371$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7372	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7373	CFLAGS="$xorg_testset_save_CFLAGS"
7374fi
7375
7376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7377	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7378		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379	fi
7380	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7382$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7383if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
7392else
7393  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
7398$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7400	CFLAGS="$xorg_testset_save_CFLAGS"
7401fi
7402
7403found="no"
7404
7405	if test $found = "no" ; then
7406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7408		fi
7409
7410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7412		fi
7413
7414		CFLAGS="$CFLAGS -Werror=missing-braces"
7415
7416		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7417$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7418		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7419		if eval \${$cacheid+:} false; then :
7420  $as_echo_n "(cached) " >&6
7421else
7422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423/* end confdefs.h.  */
7424int i;
7425int
7426main ()
7427{
7428
7429  ;
7430  return 0;
7431}
7432_ACEOF
7433if ac_fn_c_try_link "$LINENO"; then :
7434  eval $cacheid=yes
7435else
7436  eval $cacheid=no
7437fi
7438rm -f core conftest.err conftest.$ac_objext \
7439    conftest$ac_exeext conftest.$ac_ext
7440fi
7441
7442
7443		CFLAGS="$xorg_testset_save_CFLAGS"
7444
7445		eval supported=\$$cacheid
7446		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7447$as_echo "$supported" >&6; }
7448		if test "$supported" = "yes" ; then
7449			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7450			found="yes"
7451		fi
7452	fi
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468xorg_testset_save_CFLAGS="$CFLAGS"
7469
7470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7471	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7473$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7474if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478/* end confdefs.h.  */
7479int i;
7480_ACEOF
7481if ac_fn_c_try_compile "$LINENO"; then :
7482  xorg_cv_cc_flag_unknown_warning_option=yes
7483else
7484  xorg_cv_cc_flag_unknown_warning_option=no
7485fi
7486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487fi
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7489$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7490	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7491	CFLAGS="$xorg_testset_save_CFLAGS"
7492fi
7493
7494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7495	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7496		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497	fi
7498	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7499	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7500$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7501if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7502  $as_echo_n "(cached) " >&6
7503else
7504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h.  */
7506int i;
7507_ACEOF
7508if ac_fn_c_try_compile "$LINENO"; then :
7509  xorg_cv_cc_flag_unused_command_line_argument=yes
7510else
7511  xorg_cv_cc_flag_unused_command_line_argument=no
7512fi
7513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514fi
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7516$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7517	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7518	CFLAGS="$xorg_testset_save_CFLAGS"
7519fi
7520
7521found="no"
7522
7523	if test $found = "no" ; then
7524		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7525			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7526		fi
7527
7528		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7529			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7530		fi
7531
7532		CFLAGS="$CFLAGS -Werror=sequence-point"
7533
7534		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7535$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7536		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7537		if eval \${$cacheid+:} false; then :
7538  $as_echo_n "(cached) " >&6
7539else
7540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541/* end confdefs.h.  */
7542int i;
7543int
7544main ()
7545{
7546
7547  ;
7548  return 0;
7549}
7550_ACEOF
7551if ac_fn_c_try_link "$LINENO"; then :
7552  eval $cacheid=yes
7553else
7554  eval $cacheid=no
7555fi
7556rm -f core conftest.err conftest.$ac_objext \
7557    conftest$ac_exeext conftest.$ac_ext
7558fi
7559
7560
7561		CFLAGS="$xorg_testset_save_CFLAGS"
7562
7563		eval supported=\$$cacheid
7564		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7565$as_echo "$supported" >&6; }
7566		if test "$supported" = "yes" ; then
7567			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7568			found="yes"
7569		fi
7570	fi
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586xorg_testset_save_CFLAGS="$CFLAGS"
7587
7588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7589	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7591$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7592if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597int i;
7598_ACEOF
7599if ac_fn_c_try_compile "$LINENO"; then :
7600  xorg_cv_cc_flag_unknown_warning_option=yes
7601else
7602  xorg_cv_cc_flag_unknown_warning_option=no
7603fi
7604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605fi
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7607$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7608	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7609	CFLAGS="$xorg_testset_save_CFLAGS"
7610fi
7611
7612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7613	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7614		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615	fi
7616	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7618$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7619if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7620  $as_echo_n "(cached) " >&6
7621else
7622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623/* end confdefs.h.  */
7624int i;
7625_ACEOF
7626if ac_fn_c_try_compile "$LINENO"; then :
7627  xorg_cv_cc_flag_unused_command_line_argument=yes
7628else
7629  xorg_cv_cc_flag_unused_command_line_argument=no
7630fi
7631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632fi
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7634$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7635	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7636	CFLAGS="$xorg_testset_save_CFLAGS"
7637fi
7638
7639found="no"
7640
7641	if test $found = "no" ; then
7642		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7643			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7644		fi
7645
7646		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7647			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7648		fi
7649
7650		CFLAGS="$CFLAGS -Werror=return-type"
7651
7652		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7653$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7654		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7655		if eval \${$cacheid+:} false; then :
7656  $as_echo_n "(cached) " >&6
7657else
7658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659/* end confdefs.h.  */
7660int i;
7661int
7662main ()
7663{
7664
7665  ;
7666  return 0;
7667}
7668_ACEOF
7669if ac_fn_c_try_link "$LINENO"; then :
7670  eval $cacheid=yes
7671else
7672  eval $cacheid=no
7673fi
7674rm -f core conftest.err conftest.$ac_objext \
7675    conftest$ac_exeext conftest.$ac_ext
7676fi
7677
7678
7679		CFLAGS="$xorg_testset_save_CFLAGS"
7680
7681		eval supported=\$$cacheid
7682		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7683$as_echo "$supported" >&6; }
7684		if test "$supported" = "yes" ; then
7685			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7686			found="yes"
7687		fi
7688	fi
7689
7690	if test $found = "no" ; then
7691		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7692			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7693		fi
7694
7695		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7696			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7697		fi
7698
7699		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7700
7701		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7702$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7703		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7704		if eval \${$cacheid+:} false; then :
7705  $as_echo_n "(cached) " >&6
7706else
7707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708/* end confdefs.h.  */
7709int i;
7710int
7711main ()
7712{
7713
7714  ;
7715  return 0;
7716}
7717_ACEOF
7718if ac_fn_c_try_link "$LINENO"; then :
7719  eval $cacheid=yes
7720else
7721  eval $cacheid=no
7722fi
7723rm -f core conftest.err conftest.$ac_objext \
7724    conftest$ac_exeext conftest.$ac_ext
7725fi
7726
7727
7728		CFLAGS="$xorg_testset_save_CFLAGS"
7729
7730		eval supported=\$$cacheid
7731		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7732$as_echo "$supported" >&6; }
7733		if test "$supported" = "yes" ; then
7734			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7735			found="yes"
7736		fi
7737	fi
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753xorg_testset_save_CFLAGS="$CFLAGS"
7754
7755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7756	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7760  $as_echo_n "(cached) " >&6
7761else
7762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763/* end confdefs.h.  */
7764int i;
7765_ACEOF
7766if ac_fn_c_try_compile "$LINENO"; then :
7767  xorg_cv_cc_flag_unknown_warning_option=yes
7768else
7769  xorg_cv_cc_flag_unknown_warning_option=no
7770fi
7771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7775	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7776	CFLAGS="$xorg_testset_save_CFLAGS"
7777fi
7778
7779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7780	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7781		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7782	fi
7783	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7787  $as_echo_n "(cached) " >&6
7788else
7789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790/* end confdefs.h.  */
7791int i;
7792_ACEOF
7793if ac_fn_c_try_compile "$LINENO"; then :
7794  xorg_cv_cc_flag_unused_command_line_argument=yes
7795else
7796  xorg_cv_cc_flag_unused_command_line_argument=no
7797fi
7798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799fi
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7803	CFLAGS="$xorg_testset_save_CFLAGS"
7804fi
7805
7806found="no"
7807
7808	if test $found = "no" ; then
7809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7811		fi
7812
7813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7815		fi
7816
7817		CFLAGS="$CFLAGS -Werror=trigraphs"
7818
7819		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7820$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7821		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7822		if eval \${$cacheid+:} false; then :
7823  $as_echo_n "(cached) " >&6
7824else
7825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h.  */
7827int i;
7828int
7829main ()
7830{
7831
7832  ;
7833  return 0;
7834}
7835_ACEOF
7836if ac_fn_c_try_link "$LINENO"; then :
7837  eval $cacheid=yes
7838else
7839  eval $cacheid=no
7840fi
7841rm -f core conftest.err conftest.$ac_objext \
7842    conftest$ac_exeext conftest.$ac_ext
7843fi
7844
7845
7846		CFLAGS="$xorg_testset_save_CFLAGS"
7847
7848		eval supported=\$$cacheid
7849		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7850$as_echo "$supported" >&6; }
7851		if test "$supported" = "yes" ; then
7852			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7853			found="yes"
7854		fi
7855	fi
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871xorg_testset_save_CFLAGS="$CFLAGS"
7872
7873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7874	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7878  $as_echo_n "(cached) " >&6
7879else
7880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881/* end confdefs.h.  */
7882int i;
7883_ACEOF
7884if ac_fn_c_try_compile "$LINENO"; then :
7885  xorg_cv_cc_flag_unknown_warning_option=yes
7886else
7887  xorg_cv_cc_flag_unknown_warning_option=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890fi
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7893	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7894	CFLAGS="$xorg_testset_save_CFLAGS"
7895fi
7896
7897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7898	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7899		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900	fi
7901	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7902	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7905  $as_echo_n "(cached) " >&6
7906else
7907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908/* end confdefs.h.  */
7909int i;
7910_ACEOF
7911if ac_fn_c_try_compile "$LINENO"; then :
7912  xorg_cv_cc_flag_unused_command_line_argument=yes
7913else
7914  xorg_cv_cc_flag_unused_command_line_argument=no
7915fi
7916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7917fi
7918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7920	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7921	CFLAGS="$xorg_testset_save_CFLAGS"
7922fi
7923
7924found="no"
7925
7926	if test $found = "no" ; then
7927		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7928			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7929		fi
7930
7931		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7932			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7933		fi
7934
7935		CFLAGS="$CFLAGS -Werror=array-bounds"
7936
7937		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7938$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7939		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7940		if eval \${$cacheid+:} false; then :
7941  $as_echo_n "(cached) " >&6
7942else
7943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944/* end confdefs.h.  */
7945int i;
7946int
7947main ()
7948{
7949
7950  ;
7951  return 0;
7952}
7953_ACEOF
7954if ac_fn_c_try_link "$LINENO"; then :
7955  eval $cacheid=yes
7956else
7957  eval $cacheid=no
7958fi
7959rm -f core conftest.err conftest.$ac_objext \
7960    conftest$ac_exeext conftest.$ac_ext
7961fi
7962
7963
7964		CFLAGS="$xorg_testset_save_CFLAGS"
7965
7966		eval supported=\$$cacheid
7967		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7968$as_echo "$supported" >&6; }
7969		if test "$supported" = "yes" ; then
7970			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7971			found="yes"
7972		fi
7973	fi
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989xorg_testset_save_CFLAGS="$CFLAGS"
7990
7991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7992	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7994$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7995if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999/* end confdefs.h.  */
8000int i;
8001_ACEOF
8002if ac_fn_c_try_compile "$LINENO"; then :
8003  xorg_cv_cc_flag_unknown_warning_option=yes
8004else
8005  xorg_cv_cc_flag_unknown_warning_option=no
8006fi
8007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008fi
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8010$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8011	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8012	CFLAGS="$xorg_testset_save_CFLAGS"
8013fi
8014
8015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8016	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8017		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8018	fi
8019	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8021$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8022if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8023  $as_echo_n "(cached) " >&6
8024else
8025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h.  */
8027int i;
8028_ACEOF
8029if ac_fn_c_try_compile "$LINENO"; then :
8030  xorg_cv_cc_flag_unused_command_line_argument=yes
8031else
8032  xorg_cv_cc_flag_unused_command_line_argument=no
8033fi
8034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035fi
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8037$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8038	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8039	CFLAGS="$xorg_testset_save_CFLAGS"
8040fi
8041
8042found="no"
8043
8044	if test $found = "no" ; then
8045		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8046			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8047		fi
8048
8049		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8050			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8051		fi
8052
8053		CFLAGS="$CFLAGS -Werror=write-strings"
8054
8055		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8056$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8057		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8058		if eval \${$cacheid+:} false; then :
8059  $as_echo_n "(cached) " >&6
8060else
8061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062/* end confdefs.h.  */
8063int i;
8064int
8065main ()
8066{
8067
8068  ;
8069  return 0;
8070}
8071_ACEOF
8072if ac_fn_c_try_link "$LINENO"; then :
8073  eval $cacheid=yes
8074else
8075  eval $cacheid=no
8076fi
8077rm -f core conftest.err conftest.$ac_objext \
8078    conftest$ac_exeext conftest.$ac_ext
8079fi
8080
8081
8082		CFLAGS="$xorg_testset_save_CFLAGS"
8083
8084		eval supported=\$$cacheid
8085		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8086$as_echo "$supported" >&6; }
8087		if test "$supported" = "yes" ; then
8088			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8089			found="yes"
8090		fi
8091	fi
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107xorg_testset_save_CFLAGS="$CFLAGS"
8108
8109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8110	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8112$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8113if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8114  $as_echo_n "(cached) " >&6
8115else
8116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117/* end confdefs.h.  */
8118int i;
8119_ACEOF
8120if ac_fn_c_try_compile "$LINENO"; then :
8121  xorg_cv_cc_flag_unknown_warning_option=yes
8122else
8123  xorg_cv_cc_flag_unknown_warning_option=no
8124fi
8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126fi
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8128$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8130	CFLAGS="$xorg_testset_save_CFLAGS"
8131fi
8132
8133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8136	fi
8137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8139$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8140if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8141  $as_echo_n "(cached) " >&6
8142else
8143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144/* end confdefs.h.  */
8145int i;
8146_ACEOF
8147if ac_fn_c_try_compile "$LINENO"; then :
8148  xorg_cv_cc_flag_unused_command_line_argument=yes
8149else
8150  xorg_cv_cc_flag_unused_command_line_argument=no
8151fi
8152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153fi
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8155$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8156	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8157	CFLAGS="$xorg_testset_save_CFLAGS"
8158fi
8159
8160found="no"
8161
8162	if test $found = "no" ; then
8163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8165		fi
8166
8167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8169		fi
8170
8171		CFLAGS="$CFLAGS -Werror=address"
8172
8173		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8174$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8175		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8176		if eval \${$cacheid+:} false; then :
8177  $as_echo_n "(cached) " >&6
8178else
8179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180/* end confdefs.h.  */
8181int i;
8182int
8183main ()
8184{
8185
8186  ;
8187  return 0;
8188}
8189_ACEOF
8190if ac_fn_c_try_link "$LINENO"; then :
8191  eval $cacheid=yes
8192else
8193  eval $cacheid=no
8194fi
8195rm -f core conftest.err conftest.$ac_objext \
8196    conftest$ac_exeext conftest.$ac_ext
8197fi
8198
8199
8200		CFLAGS="$xorg_testset_save_CFLAGS"
8201
8202		eval supported=\$$cacheid
8203		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8204$as_echo "$supported" >&6; }
8205		if test "$supported" = "yes" ; then
8206			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8207			found="yes"
8208		fi
8209	fi
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225xorg_testset_save_CFLAGS="$CFLAGS"
8226
8227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8232  $as_echo_n "(cached) " >&6
8233else
8234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235/* end confdefs.h.  */
8236int i;
8237_ACEOF
8238if ac_fn_c_try_compile "$LINENO"; then :
8239  xorg_cv_cc_flag_unknown_warning_option=yes
8240else
8241  xorg_cv_cc_flag_unknown_warning_option=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244fi
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8247	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8248	CFLAGS="$xorg_testset_save_CFLAGS"
8249fi
8250
8251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8252	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8253		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254	fi
8255	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8259  $as_echo_n "(cached) " >&6
8260else
8261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262/* end confdefs.h.  */
8263int i;
8264_ACEOF
8265if ac_fn_c_try_compile "$LINENO"; then :
8266  xorg_cv_cc_flag_unused_command_line_argument=yes
8267else
8268  xorg_cv_cc_flag_unused_command_line_argument=no
8269fi
8270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271fi
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8274	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8275	CFLAGS="$xorg_testset_save_CFLAGS"
8276fi
8277
8278found="no"
8279
8280	if test $found = "no" ; then
8281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8283		fi
8284
8285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8287		fi
8288
8289		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8290
8291		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8292$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8293		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8294		if eval \${$cacheid+:} false; then :
8295  $as_echo_n "(cached) " >&6
8296else
8297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298/* end confdefs.h.  */
8299int i;
8300int
8301main ()
8302{
8303
8304  ;
8305  return 0;
8306}
8307_ACEOF
8308if ac_fn_c_try_link "$LINENO"; then :
8309  eval $cacheid=yes
8310else
8311  eval $cacheid=no
8312fi
8313rm -f core conftest.err conftest.$ac_objext \
8314    conftest$ac_exeext conftest.$ac_ext
8315fi
8316
8317
8318		CFLAGS="$xorg_testset_save_CFLAGS"
8319
8320		eval supported=\$$cacheid
8321		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8322$as_echo "$supported" >&6; }
8323		if test "$supported" = "yes" ; then
8324			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8325			found="yes"
8326		fi
8327	fi
8328
8329	if test $found = "no" ; then
8330		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8331			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8332		fi
8333
8334		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8335			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8336		fi
8337
8338		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8339
8340		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8341$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8342		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8343		if eval \${$cacheid+:} false; then :
8344  $as_echo_n "(cached) " >&6
8345else
8346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347/* end confdefs.h.  */
8348int i;
8349int
8350main ()
8351{
8352
8353  ;
8354  return 0;
8355}
8356_ACEOF
8357if ac_fn_c_try_link "$LINENO"; then :
8358  eval $cacheid=yes
8359else
8360  eval $cacheid=no
8361fi
8362rm -f core conftest.err conftest.$ac_objext \
8363    conftest$ac_exeext conftest.$ac_ext
8364fi
8365
8366
8367		CFLAGS="$xorg_testset_save_CFLAGS"
8368
8369		eval supported=\$$cacheid
8370		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8371$as_echo "$supported" >&6; }
8372		if test "$supported" = "yes" ; then
8373			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8374			found="yes"
8375		fi
8376	fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392xorg_testset_save_CFLAGS="$CFLAGS"
8393
8394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8395	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8397$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8398if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8399  $as_echo_n "(cached) " >&6
8400else
8401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402/* end confdefs.h.  */
8403int i;
8404_ACEOF
8405if ac_fn_c_try_compile "$LINENO"; then :
8406  xorg_cv_cc_flag_unknown_warning_option=yes
8407else
8408  xorg_cv_cc_flag_unknown_warning_option=no
8409fi
8410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411fi
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8413$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8414	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8415	CFLAGS="$xorg_testset_save_CFLAGS"
8416fi
8417
8418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8419	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8420		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421	fi
8422	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8423	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8424$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8425if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
8434else
8435  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
8440$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8441	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8442	CFLAGS="$xorg_testset_save_CFLAGS"
8443fi
8444
8445found="no"
8446
8447	if test $found = "no" ; then
8448		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8449			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450		fi
8451
8452		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8453			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8454		fi
8455
8456		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8457
8458		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8459$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8460		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8461		if eval \${$cacheid+:} false; then :
8462  $as_echo_n "(cached) " >&6
8463else
8464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465/* end confdefs.h.  */
8466int i;
8467int
8468main ()
8469{
8470
8471  ;
8472  return 0;
8473}
8474_ACEOF
8475if ac_fn_c_try_link "$LINENO"; then :
8476  eval $cacheid=yes
8477else
8478  eval $cacheid=no
8479fi
8480rm -f core conftest.err conftest.$ac_objext \
8481    conftest$ac_exeext conftest.$ac_ext
8482fi
8483
8484
8485		CFLAGS="$xorg_testset_save_CFLAGS"
8486
8487		eval supported=\$$cacheid
8488		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8489$as_echo "$supported" >&6; }
8490		if test "$supported" = "yes" ; then
8491			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8492			found="yes"
8493		fi
8494	fi
8495
8496 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8497else
8498{ $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
8499$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;}
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513xorg_testset_save_CFLAGS="$CFLAGS"
8514
8515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8518$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8519if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8520  $as_echo_n "(cached) " >&6
8521else
8522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523/* end confdefs.h.  */
8524int i;
8525_ACEOF
8526if ac_fn_c_try_compile "$LINENO"; then :
8527  xorg_cv_cc_flag_unknown_warning_option=yes
8528else
8529  xorg_cv_cc_flag_unknown_warning_option=no
8530fi
8531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532fi
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8534$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8535	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8536	CFLAGS="$xorg_testset_save_CFLAGS"
8537fi
8538
8539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8540	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8541		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542	fi
8543	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8545$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8546if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8547  $as_echo_n "(cached) " >&6
8548else
8549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550/* end confdefs.h.  */
8551int i;
8552_ACEOF
8553if ac_fn_c_try_compile "$LINENO"; then :
8554  xorg_cv_cc_flag_unused_command_line_argument=yes
8555else
8556  xorg_cv_cc_flag_unused_command_line_argument=no
8557fi
8558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559fi
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8561$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8562	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8563	CFLAGS="$xorg_testset_save_CFLAGS"
8564fi
8565
8566found="no"
8567
8568	if test $found = "no" ; then
8569		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8570			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8571		fi
8572
8573		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8574			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8575		fi
8576
8577		CFLAGS="$CFLAGS -Wimplicit"
8578
8579		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8580$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8581		cacheid=xorg_cv_cc_flag__Wimplicit
8582		if eval \${$cacheid+:} false; then :
8583  $as_echo_n "(cached) " >&6
8584else
8585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586/* end confdefs.h.  */
8587int i;
8588int
8589main ()
8590{
8591
8592  ;
8593  return 0;
8594}
8595_ACEOF
8596if ac_fn_c_try_link "$LINENO"; then :
8597  eval $cacheid=yes
8598else
8599  eval $cacheid=no
8600fi
8601rm -f core conftest.err conftest.$ac_objext \
8602    conftest$ac_exeext conftest.$ac_ext
8603fi
8604
8605
8606		CFLAGS="$xorg_testset_save_CFLAGS"
8607
8608		eval supported=\$$cacheid
8609		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8610$as_echo "$supported" >&6; }
8611		if test "$supported" = "yes" ; then
8612			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8613			found="yes"
8614		fi
8615	fi
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631xorg_testset_save_CFLAGS="$CFLAGS"
8632
8633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8634	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8636$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8637if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8638  $as_echo_n "(cached) " >&6
8639else
8640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641/* end confdefs.h.  */
8642int i;
8643_ACEOF
8644if ac_fn_c_try_compile "$LINENO"; then :
8645  xorg_cv_cc_flag_unknown_warning_option=yes
8646else
8647  xorg_cv_cc_flag_unknown_warning_option=no
8648fi
8649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650fi
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8652$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8653	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8654	CFLAGS="$xorg_testset_save_CFLAGS"
8655fi
8656
8657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8658	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8659		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8660	fi
8661	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8663$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8664if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8665  $as_echo_n "(cached) " >&6
8666else
8667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668/* end confdefs.h.  */
8669int i;
8670_ACEOF
8671if ac_fn_c_try_compile "$LINENO"; then :
8672  xorg_cv_cc_flag_unused_command_line_argument=yes
8673else
8674  xorg_cv_cc_flag_unused_command_line_argument=no
8675fi
8676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677fi
8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8679$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8680	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8681	CFLAGS="$xorg_testset_save_CFLAGS"
8682fi
8683
8684found="no"
8685
8686	if test $found = "no" ; then
8687		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8688			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8689		fi
8690
8691		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8692			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8693		fi
8694
8695		CFLAGS="$CFLAGS -Wnonnull"
8696
8697		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8698$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8699		cacheid=xorg_cv_cc_flag__Wnonnull
8700		if eval \${$cacheid+:} false; then :
8701  $as_echo_n "(cached) " >&6
8702else
8703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704/* end confdefs.h.  */
8705int i;
8706int
8707main ()
8708{
8709
8710  ;
8711  return 0;
8712}
8713_ACEOF
8714if ac_fn_c_try_link "$LINENO"; then :
8715  eval $cacheid=yes
8716else
8717  eval $cacheid=no
8718fi
8719rm -f core conftest.err conftest.$ac_objext \
8720    conftest$ac_exeext conftest.$ac_ext
8721fi
8722
8723
8724		CFLAGS="$xorg_testset_save_CFLAGS"
8725
8726		eval supported=\$$cacheid
8727		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8728$as_echo "$supported" >&6; }
8729		if test "$supported" = "yes" ; then
8730			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8731			found="yes"
8732		fi
8733	fi
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749xorg_testset_save_CFLAGS="$CFLAGS"
8750
8751if test "x$xorg_testset_cc_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_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8772	CFLAGS="$xorg_testset_save_CFLAGS"
8773fi
8774
8775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8776	if test "x$xorg_testset_cc_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_cc_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_cc_unknown_warning_option" = "xyes" ; then
8806			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8807		fi
8808
8809		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8810			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8811		fi
8812
8813		CFLAGS="$CFLAGS -Winit-self"
8814
8815		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8816$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8817		cacheid=xorg_cv_cc_flag__Winit_self
8818		if eval \${$cacheid+:} 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 $cacheid=yes
8834else
8835  eval $cacheid=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=\$$cacheid
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 -Winit-self"
8849			found="yes"
8850		fi
8851	fi
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867xorg_testset_save_CFLAGS="$CFLAGS"
8868
8869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8870	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8872$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8873if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877/* end confdefs.h.  */
8878int i;
8879_ACEOF
8880if ac_fn_c_try_compile "$LINENO"; then :
8881  xorg_cv_cc_flag_unknown_warning_option=yes
8882else
8883  xorg_cv_cc_flag_unknown_warning_option=no
8884fi
8885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886fi
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8888$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8889	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8890	CFLAGS="$xorg_testset_save_CFLAGS"
8891fi
8892
8893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8894	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8895		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896	fi
8897	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8899$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8900if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8901  $as_echo_n "(cached) " >&6
8902else
8903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h.  */
8905int i;
8906_ACEOF
8907if ac_fn_c_try_compile "$LINENO"; then :
8908  xorg_cv_cc_flag_unused_command_line_argument=yes
8909else
8910  xorg_cv_cc_flag_unused_command_line_argument=no
8911fi
8912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913fi
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8915$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8916	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8917	CFLAGS="$xorg_testset_save_CFLAGS"
8918fi
8919
8920found="no"
8921
8922	if test $found = "no" ; then
8923		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8924			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8925		fi
8926
8927		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8928			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8929		fi
8930
8931		CFLAGS="$CFLAGS -Wmain"
8932
8933		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8934$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8935		cacheid=xorg_cv_cc_flag__Wmain
8936		if eval \${$cacheid+:} false; then :
8937  $as_echo_n "(cached) " >&6
8938else
8939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940/* end confdefs.h.  */
8941int i;
8942int
8943main ()
8944{
8945
8946  ;
8947  return 0;
8948}
8949_ACEOF
8950if ac_fn_c_try_link "$LINENO"; then :
8951  eval $cacheid=yes
8952else
8953  eval $cacheid=no
8954fi
8955rm -f core conftest.err conftest.$ac_objext \
8956    conftest$ac_exeext conftest.$ac_ext
8957fi
8958
8959
8960		CFLAGS="$xorg_testset_save_CFLAGS"
8961
8962		eval supported=\$$cacheid
8963		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8964$as_echo "$supported" >&6; }
8965		if test "$supported" = "yes" ; then
8966			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8967			found="yes"
8968		fi
8969	fi
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985xorg_testset_save_CFLAGS="$CFLAGS"
8986
8987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8990$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8991if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8992  $as_echo_n "(cached) " >&6
8993else
8994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h.  */
8996int i;
8997_ACEOF
8998if ac_fn_c_try_compile "$LINENO"; then :
8999  xorg_cv_cc_flag_unknown_warning_option=yes
9000else
9001  xorg_cv_cc_flag_unknown_warning_option=no
9002fi
9003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004fi
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9006$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9007	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9008	CFLAGS="$xorg_testset_save_CFLAGS"
9009fi
9010
9011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9012	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9013		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9014	fi
9015	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9016	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9017$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9018if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9019  $as_echo_n "(cached) " >&6
9020else
9021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022/* end confdefs.h.  */
9023int i;
9024_ACEOF
9025if ac_fn_c_try_compile "$LINENO"; then :
9026  xorg_cv_cc_flag_unused_command_line_argument=yes
9027else
9028  xorg_cv_cc_flag_unused_command_line_argument=no
9029fi
9030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031fi
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9033$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9034	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9035	CFLAGS="$xorg_testset_save_CFLAGS"
9036fi
9037
9038found="no"
9039
9040	if test $found = "no" ; then
9041		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9042			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9043		fi
9044
9045		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9046			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9047		fi
9048
9049		CFLAGS="$CFLAGS -Wmissing-braces"
9050
9051		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9052$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9053		cacheid=xorg_cv_cc_flag__Wmissing_braces
9054		if eval \${$cacheid+:} false; then :
9055  $as_echo_n "(cached) " >&6
9056else
9057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058/* end confdefs.h.  */
9059int i;
9060int
9061main ()
9062{
9063
9064  ;
9065  return 0;
9066}
9067_ACEOF
9068if ac_fn_c_try_link "$LINENO"; then :
9069  eval $cacheid=yes
9070else
9071  eval $cacheid=no
9072fi
9073rm -f core conftest.err conftest.$ac_objext \
9074    conftest$ac_exeext conftest.$ac_ext
9075fi
9076
9077
9078		CFLAGS="$xorg_testset_save_CFLAGS"
9079
9080		eval supported=\$$cacheid
9081		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9082$as_echo "$supported" >&6; }
9083		if test "$supported" = "yes" ; then
9084			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9085			found="yes"
9086		fi
9087	fi
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103xorg_testset_save_CFLAGS="$CFLAGS"
9104
9105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9106	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9107	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9108$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9109if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9110  $as_echo_n "(cached) " >&6
9111else
9112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113/* end confdefs.h.  */
9114int i;
9115_ACEOF
9116if ac_fn_c_try_compile "$LINENO"; then :
9117  xorg_cv_cc_flag_unknown_warning_option=yes
9118else
9119  xorg_cv_cc_flag_unknown_warning_option=no
9120fi
9121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9122fi
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9124$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9125	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9126	CFLAGS="$xorg_testset_save_CFLAGS"
9127fi
9128
9129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9130	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9131		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132	fi
9133	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9134	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9135$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9136if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9137  $as_echo_n "(cached) " >&6
9138else
9139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140/* end confdefs.h.  */
9141int i;
9142_ACEOF
9143if ac_fn_c_try_compile "$LINENO"; then :
9144  xorg_cv_cc_flag_unused_command_line_argument=yes
9145else
9146  xorg_cv_cc_flag_unused_command_line_argument=no
9147fi
9148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9149fi
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9151$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9152	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9153	CFLAGS="$xorg_testset_save_CFLAGS"
9154fi
9155
9156found="no"
9157
9158	if test $found = "no" ; then
9159		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9160			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9161		fi
9162
9163		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9164			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9165		fi
9166
9167		CFLAGS="$CFLAGS -Wsequence-point"
9168
9169		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9170$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9171		cacheid=xorg_cv_cc_flag__Wsequence_point
9172		if eval \${$cacheid+:} false; then :
9173  $as_echo_n "(cached) " >&6
9174else
9175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176/* end confdefs.h.  */
9177int i;
9178int
9179main ()
9180{
9181
9182  ;
9183  return 0;
9184}
9185_ACEOF
9186if ac_fn_c_try_link "$LINENO"; then :
9187  eval $cacheid=yes
9188else
9189  eval $cacheid=no
9190fi
9191rm -f core conftest.err conftest.$ac_objext \
9192    conftest$ac_exeext conftest.$ac_ext
9193fi
9194
9195
9196		CFLAGS="$xorg_testset_save_CFLAGS"
9197
9198		eval supported=\$$cacheid
9199		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9200$as_echo "$supported" >&6; }
9201		if test "$supported" = "yes" ; then
9202			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9203			found="yes"
9204		fi
9205	fi
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221xorg_testset_save_CFLAGS="$CFLAGS"
9222
9223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9224	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9226$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9227if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9228  $as_echo_n "(cached) " >&6
9229else
9230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231/* end confdefs.h.  */
9232int i;
9233_ACEOF
9234if ac_fn_c_try_compile "$LINENO"; then :
9235  xorg_cv_cc_flag_unknown_warning_option=yes
9236else
9237  xorg_cv_cc_flag_unknown_warning_option=no
9238fi
9239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240fi
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9242$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9243	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9244	CFLAGS="$xorg_testset_save_CFLAGS"
9245fi
9246
9247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9248	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9249		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9250	fi
9251	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9252	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9253$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9254if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9255  $as_echo_n "(cached) " >&6
9256else
9257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258/* end confdefs.h.  */
9259int i;
9260_ACEOF
9261if ac_fn_c_try_compile "$LINENO"; then :
9262  xorg_cv_cc_flag_unused_command_line_argument=yes
9263else
9264  xorg_cv_cc_flag_unused_command_line_argument=no
9265fi
9266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9267fi
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9269$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9270	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9271	CFLAGS="$xorg_testset_save_CFLAGS"
9272fi
9273
9274found="no"
9275
9276	if test $found = "no" ; then
9277		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9278			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9279		fi
9280
9281		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9282			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9283		fi
9284
9285		CFLAGS="$CFLAGS -Wreturn-type"
9286
9287		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9288$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9289		cacheid=xorg_cv_cc_flag__Wreturn_type
9290		if eval \${$cacheid+:} false; then :
9291  $as_echo_n "(cached) " >&6
9292else
9293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294/* end confdefs.h.  */
9295int i;
9296int
9297main ()
9298{
9299
9300  ;
9301  return 0;
9302}
9303_ACEOF
9304if ac_fn_c_try_link "$LINENO"; then :
9305  eval $cacheid=yes
9306else
9307  eval $cacheid=no
9308fi
9309rm -f core conftest.err conftest.$ac_objext \
9310    conftest$ac_exeext conftest.$ac_ext
9311fi
9312
9313
9314		CFLAGS="$xorg_testset_save_CFLAGS"
9315
9316		eval supported=\$$cacheid
9317		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9318$as_echo "$supported" >&6; }
9319		if test "$supported" = "yes" ; then
9320			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9321			found="yes"
9322		fi
9323	fi
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339xorg_testset_save_CFLAGS="$CFLAGS"
9340
9341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9342	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9346  $as_echo_n "(cached) " >&6
9347else
9348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349/* end confdefs.h.  */
9350int i;
9351_ACEOF
9352if ac_fn_c_try_compile "$LINENO"; then :
9353  xorg_cv_cc_flag_unknown_warning_option=yes
9354else
9355  xorg_cv_cc_flag_unknown_warning_option=no
9356fi
9357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9358fi
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9362	CFLAGS="$xorg_testset_save_CFLAGS"
9363fi
9364
9365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368	fi
9369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9373  $as_echo_n "(cached) " >&6
9374else
9375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376/* end confdefs.h.  */
9377int i;
9378_ACEOF
9379if ac_fn_c_try_compile "$LINENO"; then :
9380  xorg_cv_cc_flag_unused_command_line_argument=yes
9381else
9382  xorg_cv_cc_flag_unused_command_line_argument=no
9383fi
9384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385fi
9386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9389	CFLAGS="$xorg_testset_save_CFLAGS"
9390fi
9391
9392found="no"
9393
9394	if test $found = "no" ; then
9395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9397		fi
9398
9399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9401		fi
9402
9403		CFLAGS="$CFLAGS -Wtrigraphs"
9404
9405		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9406$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9407		cacheid=xorg_cv_cc_flag__Wtrigraphs
9408		if eval \${$cacheid+:} false; then :
9409  $as_echo_n "(cached) " >&6
9410else
9411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412/* end confdefs.h.  */
9413int i;
9414int
9415main ()
9416{
9417
9418  ;
9419  return 0;
9420}
9421_ACEOF
9422if ac_fn_c_try_link "$LINENO"; then :
9423  eval $cacheid=yes
9424else
9425  eval $cacheid=no
9426fi
9427rm -f core conftest.err conftest.$ac_objext \
9428    conftest$ac_exeext conftest.$ac_ext
9429fi
9430
9431
9432		CFLAGS="$xorg_testset_save_CFLAGS"
9433
9434		eval supported=\$$cacheid
9435		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9436$as_echo "$supported" >&6; }
9437		if test "$supported" = "yes" ; then
9438			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9439			found="yes"
9440		fi
9441	fi
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457xorg_testset_save_CFLAGS="$CFLAGS"
9458
9459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9460	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9462$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9463if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9464  $as_echo_n "(cached) " >&6
9465else
9466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467/* end confdefs.h.  */
9468int i;
9469_ACEOF
9470if ac_fn_c_try_compile "$LINENO"; then :
9471  xorg_cv_cc_flag_unknown_warning_option=yes
9472else
9473  xorg_cv_cc_flag_unknown_warning_option=no
9474fi
9475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9476fi
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9478$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9479	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9480	CFLAGS="$xorg_testset_save_CFLAGS"
9481fi
9482
9483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9484	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9485		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9486	fi
9487	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9489$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9490if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9491  $as_echo_n "(cached) " >&6
9492else
9493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494/* end confdefs.h.  */
9495int i;
9496_ACEOF
9497if ac_fn_c_try_compile "$LINENO"; then :
9498  xorg_cv_cc_flag_unused_command_line_argument=yes
9499else
9500  xorg_cv_cc_flag_unused_command_line_argument=no
9501fi
9502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9503fi
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9505$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9506	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9507	CFLAGS="$xorg_testset_save_CFLAGS"
9508fi
9509
9510found="no"
9511
9512	if test $found = "no" ; then
9513		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9514			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9515		fi
9516
9517		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9518			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9519		fi
9520
9521		CFLAGS="$CFLAGS -Warray-bounds"
9522
9523		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9524$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9525		cacheid=xorg_cv_cc_flag__Warray_bounds
9526		if eval \${$cacheid+:} false; then :
9527  $as_echo_n "(cached) " >&6
9528else
9529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530/* end confdefs.h.  */
9531int i;
9532int
9533main ()
9534{
9535
9536  ;
9537  return 0;
9538}
9539_ACEOF
9540if ac_fn_c_try_link "$LINENO"; then :
9541  eval $cacheid=yes
9542else
9543  eval $cacheid=no
9544fi
9545rm -f core conftest.err conftest.$ac_objext \
9546    conftest$ac_exeext conftest.$ac_ext
9547fi
9548
9549
9550		CFLAGS="$xorg_testset_save_CFLAGS"
9551
9552		eval supported=\$$cacheid
9553		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9554$as_echo "$supported" >&6; }
9555		if test "$supported" = "yes" ; then
9556			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9557			found="yes"
9558		fi
9559	fi
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575xorg_testset_save_CFLAGS="$CFLAGS"
9576
9577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9578	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9580$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9581if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9582  $as_echo_n "(cached) " >&6
9583else
9584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h.  */
9586int i;
9587_ACEOF
9588if ac_fn_c_try_compile "$LINENO"; then :
9589  xorg_cv_cc_flag_unknown_warning_option=yes
9590else
9591  xorg_cv_cc_flag_unknown_warning_option=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594fi
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9596$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9597	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9598	CFLAGS="$xorg_testset_save_CFLAGS"
9599fi
9600
9601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9602	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9603		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604	fi
9605	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9607$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9608if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9609  $as_echo_n "(cached) " >&6
9610else
9611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612/* end confdefs.h.  */
9613int i;
9614_ACEOF
9615if ac_fn_c_try_compile "$LINENO"; then :
9616  xorg_cv_cc_flag_unused_command_line_argument=yes
9617else
9618  xorg_cv_cc_flag_unused_command_line_argument=no
9619fi
9620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621fi
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9623$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9624	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9625	CFLAGS="$xorg_testset_save_CFLAGS"
9626fi
9627
9628found="no"
9629
9630	if test $found = "no" ; then
9631		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9632			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9633		fi
9634
9635		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9636			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9637		fi
9638
9639		CFLAGS="$CFLAGS -Wwrite-strings"
9640
9641		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9642$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9643		cacheid=xorg_cv_cc_flag__Wwrite_strings
9644		if eval \${$cacheid+:} false; then :
9645  $as_echo_n "(cached) " >&6
9646else
9647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648/* end confdefs.h.  */
9649int i;
9650int
9651main ()
9652{
9653
9654  ;
9655  return 0;
9656}
9657_ACEOF
9658if ac_fn_c_try_link "$LINENO"; then :
9659  eval $cacheid=yes
9660else
9661  eval $cacheid=no
9662fi
9663rm -f core conftest.err conftest.$ac_objext \
9664    conftest$ac_exeext conftest.$ac_ext
9665fi
9666
9667
9668		CFLAGS="$xorg_testset_save_CFLAGS"
9669
9670		eval supported=\$$cacheid
9671		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9672$as_echo "$supported" >&6; }
9673		if test "$supported" = "yes" ; then
9674			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9675			found="yes"
9676		fi
9677	fi
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693xorg_testset_save_CFLAGS="$CFLAGS"
9694
9695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9696	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9698$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9699if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9700  $as_echo_n "(cached) " >&6
9701else
9702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h.  */
9704int i;
9705_ACEOF
9706if ac_fn_c_try_compile "$LINENO"; then :
9707  xorg_cv_cc_flag_unknown_warning_option=yes
9708else
9709  xorg_cv_cc_flag_unknown_warning_option=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712fi
9713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9714$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9715	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9716	CFLAGS="$xorg_testset_save_CFLAGS"
9717fi
9718
9719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9720	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9721		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722	fi
9723	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9725$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9726if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9727  $as_echo_n "(cached) " >&6
9728else
9729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730/* end confdefs.h.  */
9731int i;
9732_ACEOF
9733if ac_fn_c_try_compile "$LINENO"; then :
9734  xorg_cv_cc_flag_unused_command_line_argument=yes
9735else
9736  xorg_cv_cc_flag_unused_command_line_argument=no
9737fi
9738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9739fi
9740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9741$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9742	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9743	CFLAGS="$xorg_testset_save_CFLAGS"
9744fi
9745
9746found="no"
9747
9748	if test $found = "no" ; then
9749		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9750			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9751		fi
9752
9753		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9754			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9755		fi
9756
9757		CFLAGS="$CFLAGS -Waddress"
9758
9759		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9760$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9761		cacheid=xorg_cv_cc_flag__Waddress
9762		if eval \${$cacheid+:} false; then :
9763  $as_echo_n "(cached) " >&6
9764else
9765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766/* end confdefs.h.  */
9767int i;
9768int
9769main ()
9770{
9771
9772  ;
9773  return 0;
9774}
9775_ACEOF
9776if ac_fn_c_try_link "$LINENO"; then :
9777  eval $cacheid=yes
9778else
9779  eval $cacheid=no
9780fi
9781rm -f core conftest.err conftest.$ac_objext \
9782    conftest$ac_exeext conftest.$ac_ext
9783fi
9784
9785
9786		CFLAGS="$xorg_testset_save_CFLAGS"
9787
9788		eval supported=\$$cacheid
9789		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9790$as_echo "$supported" >&6; }
9791		if test "$supported" = "yes" ; then
9792			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9793			found="yes"
9794		fi
9795	fi
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811xorg_testset_save_CFLAGS="$CFLAGS"
9812
9813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9814	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9816$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9817if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9818  $as_echo_n "(cached) " >&6
9819else
9820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h.  */
9822int i;
9823_ACEOF
9824if ac_fn_c_try_compile "$LINENO"; then :
9825  xorg_cv_cc_flag_unknown_warning_option=yes
9826else
9827  xorg_cv_cc_flag_unknown_warning_option=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830fi
9831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9832$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9833	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9834	CFLAGS="$xorg_testset_save_CFLAGS"
9835fi
9836
9837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9838	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9839		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9840	fi
9841	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9843$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9844if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9845  $as_echo_n "(cached) " >&6
9846else
9847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848/* end confdefs.h.  */
9849int i;
9850_ACEOF
9851if ac_fn_c_try_compile "$LINENO"; then :
9852  xorg_cv_cc_flag_unused_command_line_argument=yes
9853else
9854  xorg_cv_cc_flag_unused_command_line_argument=no
9855fi
9856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9857fi
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9859$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9860	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9861	CFLAGS="$xorg_testset_save_CFLAGS"
9862fi
9863
9864found="no"
9865
9866	if test $found = "no" ; then
9867		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9868			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9869		fi
9870
9871		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9872			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9873		fi
9874
9875		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9876
9877		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9878$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9879		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9880		if eval \${$cacheid+:} false; then :
9881  $as_echo_n "(cached) " >&6
9882else
9883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884/* end confdefs.h.  */
9885int i;
9886int
9887main ()
9888{
9889
9890  ;
9891  return 0;
9892}
9893_ACEOF
9894if ac_fn_c_try_link "$LINENO"; then :
9895  eval $cacheid=yes
9896else
9897  eval $cacheid=no
9898fi
9899rm -f core conftest.err conftest.$ac_objext \
9900    conftest$ac_exeext conftest.$ac_ext
9901fi
9902
9903
9904		CFLAGS="$xorg_testset_save_CFLAGS"
9905
9906		eval supported=\$$cacheid
9907		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9908$as_echo "$supported" >&6; }
9909		if test "$supported" = "yes" ; then
9910			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9911			found="yes"
9912		fi
9913	fi
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929xorg_testset_save_CFLAGS="$CFLAGS"
9930
9931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9932	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9934$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9935if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9936  $as_echo_n "(cached) " >&6
9937else
9938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939/* end confdefs.h.  */
9940int i;
9941_ACEOF
9942if ac_fn_c_try_compile "$LINENO"; then :
9943  xorg_cv_cc_flag_unknown_warning_option=yes
9944else
9945  xorg_cv_cc_flag_unknown_warning_option=no
9946fi
9947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9948fi
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9950$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9951	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9952	CFLAGS="$xorg_testset_save_CFLAGS"
9953fi
9954
9955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9956	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9957		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9958	fi
9959	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9961$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9962if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9963  $as_echo_n "(cached) " >&6
9964else
9965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966/* end confdefs.h.  */
9967int i;
9968_ACEOF
9969if ac_fn_c_try_compile "$LINENO"; then :
9970  xorg_cv_cc_flag_unused_command_line_argument=yes
9971else
9972  xorg_cv_cc_flag_unused_command_line_argument=no
9973fi
9974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975fi
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9977$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9978	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9979	CFLAGS="$xorg_testset_save_CFLAGS"
9980fi
9981
9982found="no"
9983
9984	if test $found = "no" ; then
9985		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9986			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9987		fi
9988
9989		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9990			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9991		fi
9992
9993		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9994
9995		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9996$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9997		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9998		if eval \${$cacheid+:} false; then :
9999  $as_echo_n "(cached) " >&6
10000else
10001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002/* end confdefs.h.  */
10003int i;
10004int
10005main ()
10006{
10007
10008  ;
10009  return 0;
10010}
10011_ACEOF
10012if ac_fn_c_try_link "$LINENO"; then :
10013  eval $cacheid=yes
10014else
10015  eval $cacheid=no
10016fi
10017rm -f core conftest.err conftest.$ac_objext \
10018    conftest$ac_exeext conftest.$ac_ext
10019fi
10020
10021
10022		CFLAGS="$xorg_testset_save_CFLAGS"
10023
10024		eval supported=\$$cacheid
10025		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10026$as_echo "$supported" >&6; }
10027		if test "$supported" = "yes" ; then
10028			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10029			found="yes"
10030		fi
10031	fi
10032
10033
10034fi
10035
10036
10037
10038
10039
10040
10041
10042		CWARNFLAGS="$BASE_CFLAGS"
10043		if  test "x$GCC" = xyes ; then
10044		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10045		fi
10046
10047
10048
10049
10050
10051
10052
10053
10054# Check whether --enable-strict-compilation was given.
10055if test "${enable_strict_compilation+set}" = set; then :
10056  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10057else
10058  STRICT_COMPILE=no
10059fi
10060
10061
10062
10063
10064
10065
10066STRICT_CFLAGS=""
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080xorg_testset_save_CFLAGS="$CFLAGS"
10081
10082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10087  $as_echo_n "(cached) " >&6
10088else
10089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090/* end confdefs.h.  */
10091int i;
10092_ACEOF
10093if ac_fn_c_try_compile "$LINENO"; then :
10094  xorg_cv_cc_flag_unknown_warning_option=yes
10095else
10096  xorg_cv_cc_flag_unknown_warning_option=no
10097fi
10098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099fi
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10103	CFLAGS="$xorg_testset_save_CFLAGS"
10104fi
10105
10106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10109	fi
10110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10114  $as_echo_n "(cached) " >&6
10115else
10116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117/* end confdefs.h.  */
10118int i;
10119_ACEOF
10120if ac_fn_c_try_compile "$LINENO"; then :
10121  xorg_cv_cc_flag_unused_command_line_argument=yes
10122else
10123  xorg_cv_cc_flag_unused_command_line_argument=no
10124fi
10125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126fi
10127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10130	CFLAGS="$xorg_testset_save_CFLAGS"
10131fi
10132
10133found="no"
10134
10135	if test $found = "no" ; then
10136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10138		fi
10139
10140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10142		fi
10143
10144		CFLAGS="$CFLAGS -pedantic"
10145
10146		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10147$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10148		cacheid=xorg_cv_cc_flag__pedantic
10149		if eval \${$cacheid+:} false; then :
10150  $as_echo_n "(cached) " >&6
10151else
10152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h.  */
10154int i;
10155int
10156main ()
10157{
10158
10159  ;
10160  return 0;
10161}
10162_ACEOF
10163if ac_fn_c_try_link "$LINENO"; then :
10164  eval $cacheid=yes
10165else
10166  eval $cacheid=no
10167fi
10168rm -f core conftest.err conftest.$ac_objext \
10169    conftest$ac_exeext conftest.$ac_ext
10170fi
10171
10172
10173		CFLAGS="$xorg_testset_save_CFLAGS"
10174
10175		eval supported=\$$cacheid
10176		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10177$as_echo "$supported" >&6; }
10178		if test "$supported" = "yes" ; then
10179			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10180			found="yes"
10181		fi
10182	fi
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198xorg_testset_save_CFLAGS="$CFLAGS"
10199
10200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10205  $as_echo_n "(cached) " >&6
10206else
10207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208/* end confdefs.h.  */
10209int i;
10210_ACEOF
10211if ac_fn_c_try_compile "$LINENO"; then :
10212  xorg_cv_cc_flag_unknown_warning_option=yes
10213else
10214  xorg_cv_cc_flag_unknown_warning_option=no
10215fi
10216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10217fi
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10221	CFLAGS="$xorg_testset_save_CFLAGS"
10222fi
10223
10224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10227	fi
10228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10232  $as_echo_n "(cached) " >&6
10233else
10234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235/* end confdefs.h.  */
10236int i;
10237_ACEOF
10238if ac_fn_c_try_compile "$LINENO"; then :
10239  xorg_cv_cc_flag_unused_command_line_argument=yes
10240else
10241  xorg_cv_cc_flag_unused_command_line_argument=no
10242fi
10243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244fi
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10248	CFLAGS="$xorg_testset_save_CFLAGS"
10249fi
10250
10251found="no"
10252
10253	if test $found = "no" ; then
10254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10256		fi
10257
10258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10260		fi
10261
10262		CFLAGS="$CFLAGS -Werror"
10263
10264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10265$as_echo_n "checking if $CC supports -Werror... " >&6; }
10266		cacheid=xorg_cv_cc_flag__Werror
10267		if eval \${$cacheid+:} false; then :
10268  $as_echo_n "(cached) " >&6
10269else
10270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271/* end confdefs.h.  */
10272int i;
10273int
10274main ()
10275{
10276
10277  ;
10278  return 0;
10279}
10280_ACEOF
10281if ac_fn_c_try_link "$LINENO"; then :
10282  eval $cacheid=yes
10283else
10284  eval $cacheid=no
10285fi
10286rm -f core conftest.err conftest.$ac_objext \
10287    conftest$ac_exeext conftest.$ac_ext
10288fi
10289
10290
10291		CFLAGS="$xorg_testset_save_CFLAGS"
10292
10293		eval supported=\$$cacheid
10294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10295$as_echo "$supported" >&6; }
10296		if test "$supported" = "yes" ; then
10297			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10298			found="yes"
10299		fi
10300	fi
10301
10302	if test $found = "no" ; then
10303		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10305		fi
10306
10307		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10309		fi
10310
10311		CFLAGS="$CFLAGS -errwarn"
10312
10313		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10314$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10315		cacheid=xorg_cv_cc_flag__errwarn
10316		if eval \${$cacheid+:} false; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320/* end confdefs.h.  */
10321int i;
10322int
10323main ()
10324{
10325
10326  ;
10327  return 0;
10328}
10329_ACEOF
10330if ac_fn_c_try_link "$LINENO"; then :
10331  eval $cacheid=yes
10332else
10333  eval $cacheid=no
10334fi
10335rm -f core conftest.err conftest.$ac_objext \
10336    conftest$ac_exeext conftest.$ac_ext
10337fi
10338
10339
10340		CFLAGS="$xorg_testset_save_CFLAGS"
10341
10342		eval supported=\$$cacheid
10343		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10344$as_echo "$supported" >&6; }
10345		if test "$supported" = "yes" ; then
10346			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10347			found="yes"
10348		fi
10349	fi
10350
10351
10352
10353# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10354# activate it with -Werror, so we add it here explicitly.
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368xorg_testset_save_CFLAGS="$CFLAGS"
10369
10370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10375  $as_echo_n "(cached) " >&6
10376else
10377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h.  */
10379int i;
10380_ACEOF
10381if ac_fn_c_try_compile "$LINENO"; then :
10382  xorg_cv_cc_flag_unknown_warning_option=yes
10383else
10384  xorg_cv_cc_flag_unknown_warning_option=no
10385fi
10386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10387fi
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10391	CFLAGS="$xorg_testset_save_CFLAGS"
10392fi
10393
10394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10397	fi
10398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10402  $as_echo_n "(cached) " >&6
10403else
10404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405/* end confdefs.h.  */
10406int i;
10407_ACEOF
10408if ac_fn_c_try_compile "$LINENO"; then :
10409  xorg_cv_cc_flag_unused_command_line_argument=yes
10410else
10411  xorg_cv_cc_flag_unused_command_line_argument=no
10412fi
10413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10414fi
10415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10417	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10418	CFLAGS="$xorg_testset_save_CFLAGS"
10419fi
10420
10421found="no"
10422
10423	if test $found = "no" ; then
10424		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10426		fi
10427
10428		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10430		fi
10431
10432		CFLAGS="$CFLAGS -Werror=attributes"
10433
10434		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10435$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10436		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10437		if eval \${$cacheid+:} false; then :
10438  $as_echo_n "(cached) " >&6
10439else
10440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441/* end confdefs.h.  */
10442int i;
10443int
10444main ()
10445{
10446
10447  ;
10448  return 0;
10449}
10450_ACEOF
10451if ac_fn_c_try_link "$LINENO"; then :
10452  eval $cacheid=yes
10453else
10454  eval $cacheid=no
10455fi
10456rm -f core conftest.err conftest.$ac_objext \
10457    conftest$ac_exeext conftest.$ac_ext
10458fi
10459
10460
10461		CFLAGS="$xorg_testset_save_CFLAGS"
10462
10463		eval supported=\$$cacheid
10464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10465$as_echo "$supported" >&6; }
10466		if test "$supported" = "yes" ; then
10467			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10468			found="yes"
10469		fi
10470	fi
10471
10472
10473
10474if test "x$STRICT_COMPILE" = "xyes"; then
10475    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10476    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10477fi
10478
10479
10480
10481
10482
10483
10484cat >>confdefs.h <<_ACEOF
10485#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10486_ACEOF
10487
10488	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10489	if test "x$PVM" = "x"; then
10490		PVM="0"
10491	fi
10492
10493cat >>confdefs.h <<_ACEOF
10494#define PACKAGE_VERSION_MINOR $PVM
10495_ACEOF
10496
10497	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10498	if test "x$PVP" = "x"; then
10499		PVP="0"
10500	fi
10501
10502cat >>confdefs.h <<_ACEOF
10503#define PACKAGE_VERSION_PATCHLEVEL $PVP
10504_ACEOF
10505
10506
10507
10508CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10509mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10510|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10511echo 'git directory not found: installing possibly empty changelog.' >&2)"
10512
10513
10514
10515
10516macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10517INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10518mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10519|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10520echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10521
10522
10523
10524
10525
10526
10527if test x$APP_MAN_SUFFIX = x    ; then
10528    APP_MAN_SUFFIX=1
10529fi
10530if test x$APP_MAN_DIR = x    ; then
10531    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10532fi
10533
10534if test x$LIB_MAN_SUFFIX = x    ; then
10535    LIB_MAN_SUFFIX=3
10536fi
10537if test x$LIB_MAN_DIR = x    ; then
10538    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10539fi
10540
10541if test x$FILE_MAN_SUFFIX = x    ; then
10542    case $host_os in
10543	solaris*)	FILE_MAN_SUFFIX=4  ;;
10544	*)		FILE_MAN_SUFFIX=5  ;;
10545    esac
10546fi
10547if test x$FILE_MAN_DIR = x    ; then
10548    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10549fi
10550
10551if test x$MISC_MAN_SUFFIX = x    ; then
10552    case $host_os in
10553	solaris*)	MISC_MAN_SUFFIX=5  ;;
10554	*)		MISC_MAN_SUFFIX=7  ;;
10555    esac
10556fi
10557if test x$MISC_MAN_DIR = x    ; then
10558    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10559fi
10560
10561if test x$DRIVER_MAN_SUFFIX = x    ; then
10562    case $host_os in
10563	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10564	*)		DRIVER_MAN_SUFFIX=4  ;;
10565    esac
10566fi
10567if test x$DRIVER_MAN_DIR = x    ; then
10568    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10569fi
10570
10571if test x$ADMIN_MAN_SUFFIX = x    ; then
10572    case $host_os in
10573	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10574	*)		ADMIN_MAN_SUFFIX=8  ;;
10575    esac
10576fi
10577if test x$ADMIN_MAN_DIR = x    ; then
10578    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10579fi
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595XORG_MAN_PAGE="X Version 11"
10596
10597MAN_SUBSTS="\
10598	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10599	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10600	-e 's|__xservername__|Xorg|g' \
10601	-e 's|__xconfigfile__|xorg.conf|g' \
10602	-e 's|__projectroot__|\$(prefix)|g' \
10603	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10604	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10605	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10606	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10607	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10608	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10609	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10610
10611
10612
10613# Check whether --enable-silent-rules was given.
10614if test "${enable_silent_rules+set}" = set; then :
10615  enableval=$enable_silent_rules;
10616fi
10617
10618case $enable_silent_rules in # (((
10619  yes) AM_DEFAULT_VERBOSITY=0;;
10620   no) AM_DEFAULT_VERBOSITY=1;;
10621    *) AM_DEFAULT_VERBOSITY=0;;
10622esac
10623am_make=${MAKE-make}
10624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10625$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10626if ${am_cv_make_support_nested_variables+:} false; then :
10627  $as_echo_n "(cached) " >&6
10628else
10629  if $as_echo 'TRUE=$(BAR$(V))
10630BAR0=false
10631BAR1=true
10632V=1
10633am__doit:
10634	@$(TRUE)
10635.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10636  am_cv_make_support_nested_variables=yes
10637else
10638  am_cv_make_support_nested_variables=no
10639fi
10640fi
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10642$as_echo "$am_cv_make_support_nested_variables" >&6; }
10643if test $am_cv_make_support_nested_variables = yes; then
10644    AM_V='$(V)'
10645  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10646else
10647  AM_V=$AM_DEFAULT_VERBOSITY
10648  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10649fi
10650AM_BACKSLASH='\'
10651
10652
10653
10654ac_config_headers="$ac_config_headers config.h"
10655
10656
10657
10658
10659for ac_func in strlcpy getpid
10660do :
10661  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10662ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10663if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10664  cat >>confdefs.h <<_ACEOF
10665#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10666_ACEOF
10667
10668fi
10669done
10670
10671
10672
10673      if test "X$prefix" = "XNONE"; then
10674    acl_final_prefix="$ac_default_prefix"
10675  else
10676    acl_final_prefix="$prefix"
10677  fi
10678  if test "X$exec_prefix" = "XNONE"; then
10679    acl_final_exec_prefix='${prefix}'
10680  else
10681    acl_final_exec_prefix="$exec_prefix"
10682  fi
10683  acl_save_prefix="$prefix"
10684  prefix="$acl_final_prefix"
10685  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10686  prefix="$acl_save_prefix"
10687
10688
10689# Check whether --with-gnu-ld was given.
10690if test "${with_gnu_ld+set}" = set; then :
10691  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10692else
10693  with_gnu_ld=no
10694fi
10695
10696# Prepare PATH_SEPARATOR.
10697# The user is always right.
10698if test "${PATH_SEPARATOR+set}" != set; then
10699  echo "#! /bin/sh" >conf$$.sh
10700  echo  "exit 0"   >>conf$$.sh
10701  chmod +x conf$$.sh
10702  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10703    PATH_SEPARATOR=';'
10704  else
10705    PATH_SEPARATOR=:
10706  fi
10707  rm -f conf$$.sh
10708fi
10709ac_prog=ld
10710if test "$GCC" = yes; then
10711  # Check if gcc -print-prog-name=ld gives a path.
10712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10713$as_echo_n "checking for ld used by GCC... " >&6; }
10714  case $host in
10715  *-*-mingw*)
10716    # gcc leaves a trailing carriage return which upsets mingw
10717    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10718  *)
10719    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10720  esac
10721  case $ac_prog in
10722    # Accept absolute paths.
10723    [\\/]* | [A-Za-z]:[\\/]*)
10724      re_direlt='/[^/][^/]*/\.\./'
10725      # Canonicalize the path of ld
10726      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10727      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10728	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10729      done
10730      test -z "$LD" && LD="$ac_prog"
10731      ;;
10732  "")
10733    # If it fails, then pretend we aren't using GCC.
10734    ac_prog=ld
10735    ;;
10736  *)
10737    # If it is relative, then search for the first ld in PATH.
10738    with_gnu_ld=unknown
10739    ;;
10740  esac
10741elif test "$with_gnu_ld" = yes; then
10742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10743$as_echo_n "checking for GNU ld... " >&6; }
10744else
10745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10746$as_echo_n "checking for non-GNU ld... " >&6; }
10747fi
10748if ${acl_cv_path_LD+:} false; then :
10749  $as_echo_n "(cached) " >&6
10750else
10751  if test -z "$LD"; then
10752  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10753  for ac_dir in $PATH; do
10754    test -z "$ac_dir" && ac_dir=.
10755    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10756      acl_cv_path_LD="$ac_dir/$ac_prog"
10757      # Check to see if the program is GNU ld.  I'd rather use --version,
10758      # but apparently some GNU ld's only accept -v.
10759      # Break only if it was the GNU/non-GNU ld that we prefer.
10760      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10761      *GNU* | *'with BFD'*)
10762	test "$with_gnu_ld" != no && break ;;
10763      *)
10764	test "$with_gnu_ld" != yes && break ;;
10765      esac
10766    fi
10767  done
10768  IFS="$ac_save_ifs"
10769else
10770  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10771fi
10772fi
10773
10774LD="$acl_cv_path_LD"
10775if test -n "$LD"; then
10776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10777$as_echo "$LD" >&6; }
10778else
10779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10780$as_echo "no" >&6; }
10781fi
10782test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10784$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10785if ${acl_cv_prog_gnu_ld+:} false; then :
10786  $as_echo_n "(cached) " >&6
10787else
10788  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10789case `$LD -v 2>&1 </dev/null` in
10790*GNU* | *'with BFD'*)
10791  acl_cv_prog_gnu_ld=yes ;;
10792*)
10793  acl_cv_prog_gnu_ld=no ;;
10794esac
10795fi
10796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10797$as_echo "$acl_cv_prog_gnu_ld" >&6; }
10798with_gnu_ld=$acl_cv_prog_gnu_ld
10799
10800
10801
10802
10803                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10804$as_echo_n "checking for shared library run path origin... " >&6; }
10805if ${acl_cv_rpath+:} false; then :
10806  $as_echo_n "(cached) " >&6
10807else
10808
10809    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10810    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10811    . ./conftest.sh
10812    rm -f ./conftest.sh
10813    acl_cv_rpath=done
10814
10815fi
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10817$as_echo "$acl_cv_rpath" >&6; }
10818  wl="$acl_cv_wl"
10819  libext="$acl_cv_libext"
10820  shlibext="$acl_cv_shlibext"
10821  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10822  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10823  hardcode_direct="$acl_cv_hardcode_direct"
10824  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10825    # Check whether --enable-rpath was given.
10826if test "${enable_rpath+set}" = set; then :
10827  enableval=$enable_rpath; :
10828else
10829  enable_rpath=yes
10830fi
10831
10832
10833
10834                  acl_libdirstem=lib
10835  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10836  if test -n "$searchpath"; then
10837    acl_save_IFS="${IFS= 	}"; IFS=":"
10838    for searchdir in $searchpath; do
10839      if test -d "$searchdir"; then
10840        case "$searchdir" in
10841          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10842          *) searchdir=`cd "$searchdir" && pwd`
10843             case "$searchdir" in
10844               */lib64 ) acl_libdirstem=lib64 ;;
10845             esac ;;
10846        esac
10847      fi
10848    done
10849    IFS="$acl_save_IFS"
10850  fi
10851
10852
10853
10854
10855
10856
10857
10858
10859    use_additional=yes
10860
10861  acl_save_prefix="$prefix"
10862  prefix="$acl_final_prefix"
10863  acl_save_exec_prefix="$exec_prefix"
10864  exec_prefix="$acl_final_exec_prefix"
10865
10866    eval additional_includedir=\"$includedir\"
10867    eval additional_libdir=\"$libdir\"
10868
10869  exec_prefix="$acl_save_exec_prefix"
10870  prefix="$acl_save_prefix"
10871
10872
10873# Check whether --with-libiconv-prefix was given.
10874if test "${with_libiconv_prefix+set}" = set; then :
10875  withval=$with_libiconv_prefix;
10876    if test "X$withval" = "Xno"; then
10877      use_additional=no
10878    else
10879      if test "X$withval" = "X"; then
10880
10881  acl_save_prefix="$prefix"
10882  prefix="$acl_final_prefix"
10883  acl_save_exec_prefix="$exec_prefix"
10884  exec_prefix="$acl_final_exec_prefix"
10885
10886          eval additional_includedir=\"$includedir\"
10887          eval additional_libdir=\"$libdir\"
10888
10889  exec_prefix="$acl_save_exec_prefix"
10890  prefix="$acl_save_prefix"
10891
10892      else
10893        additional_includedir="$withval/include"
10894        additional_libdir="$withval/$acl_libdirstem"
10895      fi
10896    fi
10897
10898fi
10899
10900      LIBICONV=
10901  LTLIBICONV=
10902  INCICONV=
10903  rpathdirs=
10904  ltrpathdirs=
10905  names_already_handled=
10906  names_next_round='iconv '
10907  while test -n "$names_next_round"; do
10908    names_this_round="$names_next_round"
10909    names_next_round=
10910    for name in $names_this_round; do
10911      already_handled=
10912      for n in $names_already_handled; do
10913        if test "$n" = "$name"; then
10914          already_handled=yes
10915          break
10916        fi
10917      done
10918      if test -z "$already_handled"; then
10919        names_already_handled="$names_already_handled $name"
10920                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10921        eval value=\"\$HAVE_LIB$uppername\"
10922        if test -n "$value"; then
10923          if test "$value" = yes; then
10924            eval value=\"\$LIB$uppername\"
10925            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10926            eval value=\"\$LTLIB$uppername\"
10927            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10928          else
10929                                    :
10930          fi
10931        else
10932                              found_dir=
10933          found_la=
10934          found_so=
10935          found_a=
10936          if test $use_additional = yes; then
10937            if test -n "$shlibext" \
10938               && { test -f "$additional_libdir/lib$name.$shlibext" \
10939                    || { test "$shlibext" = dll \
10940                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
10941              found_dir="$additional_libdir"
10942              if test -f "$additional_libdir/lib$name.$shlibext"; then
10943                found_so="$additional_libdir/lib$name.$shlibext"
10944              else
10945                found_so="$additional_libdir/lib$name.dll.a"
10946              fi
10947              if test -f "$additional_libdir/lib$name.la"; then
10948                found_la="$additional_libdir/lib$name.la"
10949              fi
10950            else
10951              if test -f "$additional_libdir/lib$name.$libext"; then
10952                found_dir="$additional_libdir"
10953                found_a="$additional_libdir/lib$name.$libext"
10954                if test -f "$additional_libdir/lib$name.la"; then
10955                  found_la="$additional_libdir/lib$name.la"
10956                fi
10957              fi
10958            fi
10959          fi
10960          if test "X$found_dir" = "X"; then
10961            for x in $LDFLAGS $LTLIBICONV; do
10962
10963  acl_save_prefix="$prefix"
10964  prefix="$acl_final_prefix"
10965  acl_save_exec_prefix="$exec_prefix"
10966  exec_prefix="$acl_final_exec_prefix"
10967  eval x=\"$x\"
10968  exec_prefix="$acl_save_exec_prefix"
10969  prefix="$acl_save_prefix"
10970
10971              case "$x" in
10972                -L*)
10973                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10974                  if test -n "$shlibext" \
10975                     && { test -f "$dir/lib$name.$shlibext" \
10976                          || { test "$shlibext" = dll \
10977                               && test -f "$dir/lib$name.dll.a"; }; }; then
10978                    found_dir="$dir"
10979                    if test -f "$dir/lib$name.$shlibext"; then
10980                      found_so="$dir/lib$name.$shlibext"
10981                    else
10982                      found_so="$dir/lib$name.dll.a"
10983                    fi
10984                    if test -f "$dir/lib$name.la"; then
10985                      found_la="$dir/lib$name.la"
10986                    fi
10987                  else
10988                    if test -f "$dir/lib$name.$libext"; then
10989                      found_dir="$dir"
10990                      found_a="$dir/lib$name.$libext"
10991                      if test -f "$dir/lib$name.la"; then
10992                        found_la="$dir/lib$name.la"
10993                      fi
10994                    fi
10995                  fi
10996                  ;;
10997              esac
10998              if test "X$found_dir" != "X"; then
10999                break
11000              fi
11001            done
11002          fi
11003          if test "X$found_dir" != "X"; then
11004                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11005            if test "X$found_so" != "X"; then
11006                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11007                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11008              else
11009                                                                                haveit=
11010                for x in $ltrpathdirs; do
11011                  if test "X$x" = "X$found_dir"; then
11012                    haveit=yes
11013                    break
11014                  fi
11015                done
11016                if test -z "$haveit"; then
11017                  ltrpathdirs="$ltrpathdirs $found_dir"
11018                fi
11019                                if test "$hardcode_direct" = yes; then
11020                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11021                else
11022                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11023                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11024                                                            haveit=
11025                    for x in $rpathdirs; do
11026                      if test "X$x" = "X$found_dir"; then
11027                        haveit=yes
11028                        break
11029                      fi
11030                    done
11031                    if test -z "$haveit"; then
11032                      rpathdirs="$rpathdirs $found_dir"
11033                    fi
11034                  else
11035                                                                                haveit=
11036                    for x in $LDFLAGS $LIBICONV; do
11037
11038  acl_save_prefix="$prefix"
11039  prefix="$acl_final_prefix"
11040  acl_save_exec_prefix="$exec_prefix"
11041  exec_prefix="$acl_final_exec_prefix"
11042  eval x=\"$x\"
11043  exec_prefix="$acl_save_exec_prefix"
11044  prefix="$acl_save_prefix"
11045
11046                      if test "X$x" = "X-L$found_dir"; then
11047                        haveit=yes
11048                        break
11049                      fi
11050                    done
11051                    if test -z "$haveit"; then
11052                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11053                    fi
11054                    if test "$hardcode_minus_L" != no; then
11055                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11056                    else
11057                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11058                    fi
11059                  fi
11060                fi
11061              fi
11062            else
11063              if test "X$found_a" != "X"; then
11064                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11065              else
11066                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11067              fi
11068            fi
11069                        additional_includedir=
11070            case "$found_dir" in
11071              */$acl_libdirstem | */$acl_libdirstem/)
11072                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11073                additional_includedir="$basedir/include"
11074                ;;
11075            esac
11076            if test "X$additional_includedir" != "X"; then
11077                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11078                haveit=
11079                if test "X$additional_includedir" = "X/usr/local/include"; then
11080                  if test -n "$GCC"; then
11081                    case $host_os in
11082                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11083                    esac
11084                  fi
11085                fi
11086                if test -z "$haveit"; then
11087                  for x in $CPPFLAGS $INCICONV; do
11088
11089  acl_save_prefix="$prefix"
11090  prefix="$acl_final_prefix"
11091  acl_save_exec_prefix="$exec_prefix"
11092  exec_prefix="$acl_final_exec_prefix"
11093  eval x=\"$x\"
11094  exec_prefix="$acl_save_exec_prefix"
11095  prefix="$acl_save_prefix"
11096
11097                    if test "X$x" = "X-I$additional_includedir"; then
11098                      haveit=yes
11099                      break
11100                    fi
11101                  done
11102                  if test -z "$haveit"; then
11103                    if test -d "$additional_includedir"; then
11104                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11105                    fi
11106                  fi
11107                fi
11108              fi
11109            fi
11110                        if test -n "$found_la"; then
11111                                                        save_libdir="$libdir"
11112              case "$found_la" in
11113                */* | *\\*) . "$found_la" ;;
11114                *) . "./$found_la" ;;
11115              esac
11116              libdir="$save_libdir"
11117                            for dep in $dependency_libs; do
11118                case "$dep" in
11119                  -L*)
11120                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11121                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11122                      haveit=
11123                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11124                        if test -n "$GCC"; then
11125                          case $host_os in
11126                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11127                          esac
11128                        fi
11129                      fi
11130                      if test -z "$haveit"; then
11131                        haveit=
11132                        for x in $LDFLAGS $LIBICONV; do
11133
11134  acl_save_prefix="$prefix"
11135  prefix="$acl_final_prefix"
11136  acl_save_exec_prefix="$exec_prefix"
11137  exec_prefix="$acl_final_exec_prefix"
11138  eval x=\"$x\"
11139  exec_prefix="$acl_save_exec_prefix"
11140  prefix="$acl_save_prefix"
11141
11142                          if test "X$x" = "X-L$additional_libdir"; then
11143                            haveit=yes
11144                            break
11145                          fi
11146                        done
11147                        if test -z "$haveit"; then
11148                          if test -d "$additional_libdir"; then
11149                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11150                          fi
11151                        fi
11152                        haveit=
11153                        for x in $LDFLAGS $LTLIBICONV; do
11154
11155  acl_save_prefix="$prefix"
11156  prefix="$acl_final_prefix"
11157  acl_save_exec_prefix="$exec_prefix"
11158  exec_prefix="$acl_final_exec_prefix"
11159  eval x=\"$x\"
11160  exec_prefix="$acl_save_exec_prefix"
11161  prefix="$acl_save_prefix"
11162
11163                          if test "X$x" = "X-L$additional_libdir"; then
11164                            haveit=yes
11165                            break
11166                          fi
11167                        done
11168                        if test -z "$haveit"; then
11169                          if test -d "$additional_libdir"; then
11170                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11171                          fi
11172                        fi
11173                      fi
11174                    fi
11175                    ;;
11176                  -R*)
11177                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11178                    if test "$enable_rpath" != no; then
11179                                                                  haveit=
11180                      for x in $rpathdirs; do
11181                        if test "X$x" = "X$dir"; then
11182                          haveit=yes
11183                          break
11184                        fi
11185                      done
11186                      if test -z "$haveit"; then
11187                        rpathdirs="$rpathdirs $dir"
11188                      fi
11189                                                                  haveit=
11190                      for x in $ltrpathdirs; do
11191                        if test "X$x" = "X$dir"; then
11192                          haveit=yes
11193                          break
11194                        fi
11195                      done
11196                      if test -z "$haveit"; then
11197                        ltrpathdirs="$ltrpathdirs $dir"
11198                      fi
11199                    fi
11200                    ;;
11201                  -l*)
11202                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11203                    ;;
11204                  *.la)
11205                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11206                    ;;
11207                  *)
11208                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11209                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11210                    ;;
11211                esac
11212              done
11213            fi
11214          else
11215                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11216            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11217          fi
11218        fi
11219      fi
11220    done
11221  done
11222  if test "X$rpathdirs" != "X"; then
11223    if test -n "$hardcode_libdir_separator"; then
11224                        alldirs=
11225      for found_dir in $rpathdirs; do
11226        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11227      done
11228            acl_save_libdir="$libdir"
11229      libdir="$alldirs"
11230      eval flag=\"$hardcode_libdir_flag_spec\"
11231      libdir="$acl_save_libdir"
11232      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11233    else
11234            for found_dir in $rpathdirs; do
11235        acl_save_libdir="$libdir"
11236        libdir="$found_dir"
11237        eval flag=\"$hardcode_libdir_flag_spec\"
11238        libdir="$acl_save_libdir"
11239        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11240      done
11241    fi
11242  fi
11243  if test "X$ltrpathdirs" != "X"; then
11244            for found_dir in $ltrpathdirs; do
11245      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11246    done
11247  fi
11248
11249
11250
11251
11252
11253
11254
11255          am_save_CPPFLAGS="$CPPFLAGS"
11256
11257  for element in $INCICONV; do
11258    haveit=
11259    for x in $CPPFLAGS; do
11260
11261  acl_save_prefix="$prefix"
11262  prefix="$acl_final_prefix"
11263  acl_save_exec_prefix="$exec_prefix"
11264  exec_prefix="$acl_final_exec_prefix"
11265  eval x=\"$x\"
11266  exec_prefix="$acl_save_exec_prefix"
11267  prefix="$acl_save_prefix"
11268
11269      if test "X$x" = "X$element"; then
11270        haveit=yes
11271        break
11272      fi
11273    done
11274    if test -z "$haveit"; then
11275      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11276    fi
11277  done
11278
11279
11280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11281$as_echo_n "checking for iconv... " >&6; }
11282if ${am_cv_func_iconv+:} false; then :
11283  $as_echo_n "(cached) " >&6
11284else
11285
11286    am_cv_func_iconv="no, consider installing GNU libiconv"
11287    am_cv_lib_iconv=no
11288    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289/* end confdefs.h.  */
11290#include <stdlib.h>
11291#include <iconv.h>
11292int
11293main ()
11294{
11295iconv_t cd = iconv_open("","");
11296       iconv(cd,NULL,NULL,NULL,NULL);
11297       iconv_close(cd);
11298  ;
11299  return 0;
11300}
11301_ACEOF
11302if ac_fn_c_try_link "$LINENO"; then :
11303  am_cv_func_iconv=yes
11304fi
11305rm -f core conftest.err conftest.$ac_objext \
11306    conftest$ac_exeext conftest.$ac_ext
11307    if test "$am_cv_func_iconv" != yes; then
11308      am_save_LIBS="$LIBS"
11309      LIBS="$LIBS $LIBICONV"
11310      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311/* end confdefs.h.  */
11312#include <stdlib.h>
11313#include <iconv.h>
11314int
11315main ()
11316{
11317iconv_t cd = iconv_open("","");
11318         iconv(cd,NULL,NULL,NULL,NULL);
11319         iconv_close(cd);
11320  ;
11321  return 0;
11322}
11323_ACEOF
11324if ac_fn_c_try_link "$LINENO"; then :
11325  am_cv_lib_iconv=yes
11326        am_cv_func_iconv=yes
11327fi
11328rm -f core conftest.err conftest.$ac_objext \
11329    conftest$ac_exeext conftest.$ac_ext
11330      LIBS="$am_save_LIBS"
11331    fi
11332
11333fi
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11335$as_echo "$am_cv_func_iconv" >&6; }
11336  if test "$am_cv_func_iconv" = yes; then
11337
11338$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11339
11340  fi
11341  if test "$am_cv_lib_iconv" = yes; then
11342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11343$as_echo_n "checking how to link with libiconv... " >&6; }
11344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11345$as_echo "$LIBICONV" >&6; }
11346  else
11347            CPPFLAGS="$am_save_CPPFLAGS"
11348    LIBICONV=
11349    LTLIBICONV=
11350  fi
11351
11352
11353
11354  if test "$am_cv_func_iconv" = yes; then
11355    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11356$as_echo_n "checking for iconv declaration... " >&6; }
11357    if ${am_cv_proto_iconv+:} false; then :
11358  $as_echo_n "(cached) " >&6
11359else
11360
11361      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362/* end confdefs.h.  */
11363
11364#include <stdlib.h>
11365#include <iconv.h>
11366extern
11367#ifdef __cplusplus
11368"C"
11369#endif
11370#if defined(__STDC__) || defined(__cplusplus)
11371size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11372#else
11373size_t iconv();
11374#endif
11375
11376int
11377main ()
11378{
11379
11380  ;
11381  return 0;
11382}
11383_ACEOF
11384if ac_fn_c_try_compile "$LINENO"; then :
11385  am_cv_proto_iconv_arg1=""
11386else
11387  am_cv_proto_iconv_arg1="const"
11388fi
11389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390      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);"
11391fi
11392
11393    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11395         }$am_cv_proto_iconv" >&5
11396$as_echo "${ac_t:-
11397         }$am_cv_proto_iconv" >&6; }
11398
11399cat >>confdefs.h <<_ACEOF
11400#define ICONV_CONST $am_cv_proto_iconv_arg1
11401_ACEOF
11402
11403  fi
11404
11405
11406
11407pkg_failed=no
11408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCLOCK" >&5
11409$as_echo_n "checking for XCLOCK... " >&6; }
11410
11411if test -n "$XCLOCK_CFLAGS"; then
11412    pkg_cv_XCLOCK_CFLAGS="$XCLOCK_CFLAGS"
11413 elif test -n "$PKG_CONFIG"; then
11414    if test -n "$PKG_CONFIG" && \
11415    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11 xproto >= 7.0.17\""; } >&5
11416  ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11 xproto >= 7.0.17") 2>&5
11417  ac_status=$?
11418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11419  test $ac_status = 0; }; then
11420  pkg_cv_XCLOCK_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu x11 xproto >= 7.0.17" 2>/dev/null`
11421else
11422  pkg_failed=yes
11423fi
11424 else
11425    pkg_failed=untried
11426fi
11427if test -n "$XCLOCK_LIBS"; then
11428    pkg_cv_XCLOCK_LIBS="$XCLOCK_LIBS"
11429 elif test -n "$PKG_CONFIG"; then
11430    if test -n "$PKG_CONFIG" && \
11431    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11 xproto >= 7.0.17\""; } >&5
11432  ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11 xproto >= 7.0.17") 2>&5
11433  ac_status=$?
11434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11435  test $ac_status = 0; }; then
11436  pkg_cv_XCLOCK_LIBS=`$PKG_CONFIG --libs "xaw7 xmu x11 xproto >= 7.0.17" 2>/dev/null`
11437else
11438  pkg_failed=yes
11439fi
11440 else
11441    pkg_failed=untried
11442fi
11443
11444
11445
11446if test $pkg_failed = yes; then
11447
11448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11449        _pkg_short_errors_supported=yes
11450else
11451        _pkg_short_errors_supported=no
11452fi
11453        if test $_pkg_short_errors_supported = yes; then
11454	        XCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu x11 xproto >= 7.0.17" 2>&1`
11455        else
11456	        XCLOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu x11 xproto >= 7.0.17" 2>&1`
11457        fi
11458	# Put the nasty error message in config.log where it belongs
11459	echo "$XCLOCK_PKG_ERRORS" >&5
11460
11461	as_fn_error $? "Package requirements (xaw7 xmu x11 xproto >= 7.0.17) were not met:
11462
11463$XCLOCK_PKG_ERRORS
11464
11465Consider adjusting the PKG_CONFIG_PATH environment variable if you
11466installed software in a non-standard prefix.
11467
11468Alternatively, you may set the environment variables XCLOCK_CFLAGS
11469and XCLOCK_LIBS to avoid the need to call pkg-config.
11470See the pkg-config man page for more details.
11471" "$LINENO" 5
11472elif test $pkg_failed = untried; then
11473	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11475as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11476is in your PATH or set the PKG_CONFIG environment variable to the full
11477path to pkg-config.
11478
11479Alternatively, you may set the environment variables XCLOCK_CFLAGS
11480and XCLOCK_LIBS to avoid the need to call pkg-config.
11481See the pkg-config man page for more details.
11482
11483To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11484See \`config.log' for more details" "$LINENO" 5; }
11485else
11486	XCLOCK_CFLAGS=$pkg_cv_XCLOCK_CFLAGS
11487	XCLOCK_LIBS=$pkg_cv_XCLOCK_LIBS
11488        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11489$as_echo "yes" >&6; }
11490	:
11491fi
11492XCLOCK_LIBS="$XCLOCK_LIBS $LIBICONV"
11493
11494
11495# Check whether --with-xft was given.
11496if test "${with_xft+set}" = set; then :
11497  withval=$with_xft; use_xft="$withval"
11498else
11499  use_xft="try"
11500fi
11501
11502if test x$use_xft != xno ; then
11503
11504pkg_failed=no
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
11506$as_echo_n "checking for XFT... " >&6; }
11507
11508if test -n "$XFT_CFLAGS"; then
11509    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
11510 elif test -n "$PKG_CONFIG"; then
11511    if test -n "$PKG_CONFIG" && \
11512    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
11513  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
11514  ac_status=$?
11515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11516  test $ac_status = 0; }; then
11517  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xrender xft" 2>/dev/null`
11518else
11519  pkg_failed=yes
11520fi
11521 else
11522    pkg_failed=untried
11523fi
11524if test -n "$XFT_LIBS"; then
11525    pkg_cv_XFT_LIBS="$XFT_LIBS"
11526 elif test -n "$PKG_CONFIG"; then
11527    if test -n "$PKG_CONFIG" && \
11528    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
11529  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
11530  ac_status=$?
11531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11532  test $ac_status = 0; }; then
11533  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xrender xft" 2>/dev/null`
11534else
11535  pkg_failed=yes
11536fi
11537 else
11538    pkg_failed=untried
11539fi
11540
11541
11542
11543if test $pkg_failed = yes; then
11544
11545if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11546        _pkg_short_errors_supported=yes
11547else
11548        _pkg_short_errors_supported=no
11549fi
11550        if test $_pkg_short_errors_supported = yes; then
11551	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender xft" 2>&1`
11552        else
11553	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender xft" 2>&1`
11554        fi
11555	# Put the nasty error message in config.log where it belongs
11556	echo "$XFT_PKG_ERRORS" >&5
11557
11558	as_fn_error $? "Package requirements (xrender xft) were not met:
11559
11560$XFT_PKG_ERRORS
11561
11562Consider adjusting the PKG_CONFIG_PATH environment variable if you
11563installed software in a non-standard prefix.
11564
11565Alternatively, you may set the environment variables XFT_CFLAGS
11566and XFT_LIBS to avoid the need to call pkg-config.
11567See the pkg-config man page for more details.
11568" "$LINENO" 5
11569elif test $pkg_failed = untried; then
11570	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11572as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11573is in your PATH or set the PKG_CONFIG environment variable to the full
11574path to pkg-config.
11575
11576Alternatively, you may set the environment variables XFT_CFLAGS
11577and XFT_LIBS to avoid the need to call pkg-config.
11578See the pkg-config man page for more details.
11579
11580To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11581See \`config.log' for more details" "$LINENO" 5; }
11582else
11583	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
11584	XFT_LIBS=$pkg_cv_XFT_LIBS
11585        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11586$as_echo "yes" >&6; }
11587	:
11588fi
11589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
11590$as_echo_n "checking for library containing sqrt... " >&6; }
11591if ${ac_cv_search_sqrt+:} false; then :
11592  $as_echo_n "(cached) " >&6
11593else
11594  ac_func_search_save_LIBS=$LIBS
11595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596/* end confdefs.h.  */
11597
11598/* Override any GCC internal prototype to avoid an error.
11599   Use char because int might match the return type of a GCC
11600   builtin and then its argument prototype would still apply.  */
11601#ifdef __cplusplus
11602extern "C"
11603#endif
11604char sqrt ();
11605int
11606main ()
11607{
11608return sqrt ();
11609  ;
11610  return 0;
11611}
11612_ACEOF
11613for ac_lib in '' m; do
11614  if test -z "$ac_lib"; then
11615    ac_res="none required"
11616  else
11617    ac_res=-l$ac_lib
11618    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11619  fi
11620  if ac_fn_c_try_link "$LINENO"; then :
11621  ac_cv_search_sqrt=$ac_res
11622fi
11623rm -f core conftest.err conftest.$ac_objext \
11624    conftest$ac_exeext
11625  if ${ac_cv_search_sqrt+:} false; then :
11626  break
11627fi
11628done
11629if ${ac_cv_search_sqrt+:} false; then :
11630
11631else
11632  ac_cv_search_sqrt=no
11633fi
11634rm conftest.$ac_ext
11635LIBS=$ac_func_search_save_LIBS
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
11638$as_echo "$ac_cv_search_sqrt" >&6; }
11639ac_res=$ac_cv_search_sqrt
11640if test "$ac_res" != no; then :
11641  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11642
11643fi
11644
11645	XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XFT_CFLAGS"
11646	XCLOCK_LIBS="$XCLOCK_LIBS $XFT_LIBS"
11647
11648$as_echo "#define XRENDER 1" >>confdefs.h
11649
11650
11651$as_echo "#define XFREE86_FT2 1" >>confdefs.h
11652
11653fi
11654
11655
11656# Check whether --with-xkb was given.
11657if test "${with_xkb+set}" = set; then :
11658  withval=$with_xkb; use_xkb="$withval"
11659else
11660  use_xkb="try"
11661fi
11662
11663if test x$use_xkb != xno ; then
11664
11665pkg_failed=no
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKB" >&5
11667$as_echo_n "checking for XKB... " >&6; }
11668
11669if test -n "$XKB_CFLAGS"; then
11670    pkg_cv_XKB_CFLAGS="$XKB_CFLAGS"
11671 elif test -n "$PKG_CONFIG"; then
11672    if test -n "$PKG_CONFIG" && \
11673    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
11674  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
11675  ac_status=$?
11676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11677  test $ac_status = 0; }; then
11678  pkg_cv_XKB_CFLAGS=`$PKG_CONFIG --cflags "xkbfile" 2>/dev/null`
11679else
11680  pkg_failed=yes
11681fi
11682 else
11683    pkg_failed=untried
11684fi
11685if test -n "$XKB_LIBS"; then
11686    pkg_cv_XKB_LIBS="$XKB_LIBS"
11687 elif test -n "$PKG_CONFIG"; then
11688    if test -n "$PKG_CONFIG" && \
11689    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
11690  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
11691  ac_status=$?
11692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11693  test $ac_status = 0; }; then
11694  pkg_cv_XKB_LIBS=`$PKG_CONFIG --libs "xkbfile" 2>/dev/null`
11695else
11696  pkg_failed=yes
11697fi
11698 else
11699    pkg_failed=untried
11700fi
11701
11702
11703
11704if test $pkg_failed = yes; then
11705
11706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11707        _pkg_short_errors_supported=yes
11708else
11709        _pkg_short_errors_supported=no
11710fi
11711        if test $_pkg_short_errors_supported = yes; then
11712	        XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xkbfile" 2>&1`
11713        else
11714	        XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xkbfile" 2>&1`
11715        fi
11716	# Put the nasty error message in config.log where it belongs
11717	echo "$XKB_PKG_ERRORS" >&5
11718
11719	as_fn_error $? "Package requirements (xkbfile) were not met:
11720
11721$XKB_PKG_ERRORS
11722
11723Consider adjusting the PKG_CONFIG_PATH environment variable if you
11724installed software in a non-standard prefix.
11725
11726Alternatively, you may set the environment variables XKB_CFLAGS
11727and XKB_LIBS to avoid the need to call pkg-config.
11728See the pkg-config man page for more details.
11729" "$LINENO" 5
11730elif test $pkg_failed = untried; then
11731	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11733as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11734is in your PATH or set the PKG_CONFIG environment variable to the full
11735path to pkg-config.
11736
11737Alternatively, you may set the environment variables XKB_CFLAGS
11738and XKB_LIBS to avoid the need to call pkg-config.
11739See the pkg-config man page for more details.
11740
11741To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11742See \`config.log' for more details" "$LINENO" 5; }
11743else
11744	XKB_CFLAGS=$pkg_cv_XKB_CFLAGS
11745	XKB_LIBS=$pkg_cv_XKB_LIBS
11746        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11747$as_echo "yes" >&6; }
11748	:
11749fi
11750	XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XKB_CFLAGS"
11751	XCLOCK_LIBS="$XCLOCK_LIBS $XKB_LIBS"
11752
11753$as_echo "#define XKB 1" >>confdefs.h
11754
11755fi
11756
11757
11758
11759pkg_failed=no
11760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11761$as_echo_n "checking for APPDEFS... " >&6; }
11762
11763if test -n "$APPDEFS_CFLAGS"; then
11764    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11765 elif test -n "$PKG_CONFIG"; then
11766    if test -n "$PKG_CONFIG" && \
11767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11768  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11769  ac_status=$?
11770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11771  test $ac_status = 0; }; then
11772  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11773else
11774  pkg_failed=yes
11775fi
11776 else
11777    pkg_failed=untried
11778fi
11779if test -n "$APPDEFS_LIBS"; then
11780    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11781 elif test -n "$PKG_CONFIG"; then
11782    if test -n "$PKG_CONFIG" && \
11783    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11784  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11785  ac_status=$?
11786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11787  test $ac_status = 0; }; then
11788  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11789else
11790  pkg_failed=yes
11791fi
11792 else
11793    pkg_failed=untried
11794fi
11795
11796
11797
11798if test $pkg_failed = yes; then
11799
11800if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11801        _pkg_short_errors_supported=yes
11802else
11803        _pkg_short_errors_supported=no
11804fi
11805        if test $_pkg_short_errors_supported = yes; then
11806	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
11807        else
11808	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
11809        fi
11810	# Put the nasty error message in config.log where it belongs
11811	echo "$APPDEFS_PKG_ERRORS" >&5
11812
11813	as_fn_error $? "Package requirements (xt) were not met:
11814
11815$APPDEFS_PKG_ERRORS
11816
11817Consider adjusting the PKG_CONFIG_PATH environment variable if you
11818installed software in a non-standard prefix.
11819
11820Alternatively, you may set the environment variables APPDEFS_CFLAGS
11821and APPDEFS_LIBS to avoid the need to call pkg-config.
11822See the pkg-config man page for more details.
11823" "$LINENO" 5
11824elif test $pkg_failed = untried; then
11825	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11827as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11828is in your PATH or set the PKG_CONFIG environment variable to the full
11829path to pkg-config.
11830
11831Alternatively, you may set the environment variables APPDEFS_CFLAGS
11832and APPDEFS_LIBS to avoid the need to call pkg-config.
11833See the pkg-config man page for more details.
11834
11835To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11836See \`config.log' for more details" "$LINENO" 5; }
11837else
11838	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11839	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11840        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11841$as_echo "yes" >&6; }
11842	:
11843fi
11844xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11845
11846# Check whether --with-appdefaultdir was given.
11847if test "${with_appdefaultdir+set}" = set; then :
11848  withval=$with_appdefaultdir; appdefaultdir="$withval"
11849else
11850  appdefaultdir="${xt_appdefaultdir}"
11851fi
11852
11853
11854
11855ac_config_files="$ac_config_files Makefile man/Makefile"
11856
11857cat >confcache <<\_ACEOF
11858# This file is a shell script that caches the results of configure
11859# tests run on this system so they can be shared between configure
11860# scripts and configure runs, see configure's option --config-cache.
11861# It is not useful on other systems.  If it contains results you don't
11862# want to keep, you may remove or edit it.
11863#
11864# config.status only pays attention to the cache file if you give it
11865# the --recheck option to rerun configure.
11866#
11867# `ac_cv_env_foo' variables (set or unset) will be overridden when
11868# loading this file, other *unset* `ac_cv_foo' will be assigned the
11869# following values.
11870
11871_ACEOF
11872
11873# The following way of writing the cache mishandles newlines in values,
11874# but we know of no workaround that is simple, portable, and efficient.
11875# So, we kill variables containing newlines.
11876# Ultrix sh set writes to stderr and can't be redirected directly,
11877# and sets the high bit in the cache file unless we assign to the vars.
11878(
11879  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11880    eval ac_val=\$$ac_var
11881    case $ac_val in #(
11882    *${as_nl}*)
11883      case $ac_var in #(
11884      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11885$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11886      esac
11887      case $ac_var in #(
11888      _ | IFS | as_nl) ;; #(
11889      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11890      *) { eval $ac_var=; unset $ac_var;} ;;
11891      esac ;;
11892    esac
11893  done
11894
11895  (set) 2>&1 |
11896    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11897    *${as_nl}ac_space=\ *)
11898      # `set' does not quote correctly, so add quotes: double-quote
11899      # substitution turns \\\\ into \\, and sed turns \\ into \.
11900      sed -n \
11901	"s/'/'\\\\''/g;
11902	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11903      ;; #(
11904    *)
11905      # `set' quotes correctly as required by POSIX, so do not add quotes.
11906      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11907      ;;
11908    esac |
11909    sort
11910) |
11911  sed '
11912     /^ac_cv_env_/b end
11913     t clear
11914     :clear
11915     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11916     t end
11917     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11918     :end' >>confcache
11919if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11920  if test -w "$cache_file"; then
11921    if test "x$cache_file" != "x/dev/null"; then
11922      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11923$as_echo "$as_me: updating cache $cache_file" >&6;}
11924      if test ! -f "$cache_file" || test -h "$cache_file"; then
11925	cat confcache >"$cache_file"
11926      else
11927        case $cache_file in #(
11928        */* | ?:*)
11929	  mv -f confcache "$cache_file"$$ &&
11930	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11931        *)
11932	  mv -f confcache "$cache_file" ;;
11933	esac
11934      fi
11935    fi
11936  else
11937    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11938$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11939  fi
11940fi
11941rm -f confcache
11942
11943test "x$prefix" = xNONE && prefix=$ac_default_prefix
11944# Let make expand exec_prefix.
11945test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11946
11947DEFS=-DHAVE_CONFIG_H
11948
11949ac_libobjs=
11950ac_ltlibobjs=
11951U=
11952for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11953  # 1. Remove the extension, and $U if already installed.
11954  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11955  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11956  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11957  #    will be set to the directory where LIBOBJS objects are built.
11958  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11959  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11960done
11961LIBOBJS=$ac_libobjs
11962
11963LTLIBOBJS=$ac_ltlibobjs
11964
11965
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11967$as_echo_n "checking that generated files are newer than configure... " >&6; }
11968   if test -n "$am_sleep_pid"; then
11969     # Hide warnings about reused PIDs.
11970     wait $am_sleep_pid 2>/dev/null
11971   fi
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11973$as_echo "done" >&6; }
11974 if test -n "$EXEEXT"; then
11975  am__EXEEXT_TRUE=
11976  am__EXEEXT_FALSE='#'
11977else
11978  am__EXEEXT_TRUE='#'
11979  am__EXEEXT_FALSE=
11980fi
11981
11982if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11983  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11984Usually this means the macro was only invoked conditionally." "$LINENO" 5
11985fi
11986if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11987  as_fn_error $? "conditional \"AMDEP\" was never defined.
11988Usually this means the macro was only invoked conditionally." "$LINENO" 5
11989fi
11990if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11991  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11992Usually this means the macro was only invoked conditionally." "$LINENO" 5
11993fi
11994
11995: "${CONFIG_STATUS=./config.status}"
11996ac_write_fail=0
11997ac_clean_files_save=$ac_clean_files
11998ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11999{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12000$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12001as_write_fail=0
12002cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12003#! $SHELL
12004# Generated by $as_me.
12005# Run this file to recreate the current configuration.
12006# Compiler output produced by configure, useful for debugging
12007# configure, is in config.log if it exists.
12008
12009debug=false
12010ac_cs_recheck=false
12011ac_cs_silent=false
12012
12013SHELL=\${CONFIG_SHELL-$SHELL}
12014export SHELL
12015_ASEOF
12016cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12017## -------------------- ##
12018## M4sh Initialization. ##
12019## -------------------- ##
12020
12021# Be more Bourne compatible
12022DUALCASE=1; export DUALCASE # for MKS sh
12023if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12024  emulate sh
12025  NULLCMD=:
12026  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12027  # is contrary to our usage.  Disable this feature.
12028  alias -g '${1+"$@"}'='"$@"'
12029  setopt NO_GLOB_SUBST
12030else
12031  case `(set -o) 2>/dev/null` in #(
12032  *posix*) :
12033    set -o posix ;; #(
12034  *) :
12035     ;;
12036esac
12037fi
12038
12039
12040as_nl='
12041'
12042export as_nl
12043# Printing a long string crashes Solaris 7 /usr/bin/printf.
12044as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12045as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12046as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12047# Prefer a ksh shell builtin over an external printf program on Solaris,
12048# but without wasting forks for bash or zsh.
12049if test -z "$BASH_VERSION$ZSH_VERSION" \
12050    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12051  as_echo='print -r --'
12052  as_echo_n='print -rn --'
12053elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12054  as_echo='printf %s\n'
12055  as_echo_n='printf %s'
12056else
12057  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12058    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12059    as_echo_n='/usr/ucb/echo -n'
12060  else
12061    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12062    as_echo_n_body='eval
12063      arg=$1;
12064      case $arg in #(
12065      *"$as_nl"*)
12066	expr "X$arg" : "X\\(.*\\)$as_nl";
12067	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12068      esac;
12069      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12070    '
12071    export as_echo_n_body
12072    as_echo_n='sh -c $as_echo_n_body as_echo'
12073  fi
12074  export as_echo_body
12075  as_echo='sh -c $as_echo_body as_echo'
12076fi
12077
12078# The user is always right.
12079if test "${PATH_SEPARATOR+set}" != set; then
12080  PATH_SEPARATOR=:
12081  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12082    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12083      PATH_SEPARATOR=';'
12084  }
12085fi
12086
12087
12088# IFS
12089# We need space, tab and new line, in precisely that order.  Quoting is
12090# there to prevent editors from complaining about space-tab.
12091# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12092# splitting by setting IFS to empty value.)
12093IFS=" ""	$as_nl"
12094
12095# Find who we are.  Look in the path if we contain no directory separator.
12096as_myself=
12097case $0 in #((
12098  *[\\/]* ) as_myself=$0 ;;
12099  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100for as_dir in $PATH
12101do
12102  IFS=$as_save_IFS
12103  test -z "$as_dir" && as_dir=.
12104    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12105  done
12106IFS=$as_save_IFS
12107
12108     ;;
12109esac
12110# We did not find ourselves, most probably we were run as `sh COMMAND'
12111# in which case we are not to be found in the path.
12112if test "x$as_myself" = x; then
12113  as_myself=$0
12114fi
12115if test ! -f "$as_myself"; then
12116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12117  exit 1
12118fi
12119
12120# Unset variables that we do not need and which cause bugs (e.g. in
12121# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12122# suppresses any "Segmentation fault" message there.  '((' could
12123# trigger a bug in pdksh 5.2.14.
12124for as_var in BASH_ENV ENV MAIL MAILPATH
12125do eval test x\${$as_var+set} = xset \
12126  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12127done
12128PS1='$ '
12129PS2='> '
12130PS4='+ '
12131
12132# NLS nuisances.
12133LC_ALL=C
12134export LC_ALL
12135LANGUAGE=C
12136export LANGUAGE
12137
12138# CDPATH.
12139(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12140
12141
12142# as_fn_error STATUS ERROR [LINENO LOG_FD]
12143# ----------------------------------------
12144# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12145# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12146# script with STATUS, using 1 if that was 0.
12147as_fn_error ()
12148{
12149  as_status=$1; test $as_status -eq 0 && as_status=1
12150  if test "$4"; then
12151    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12152    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12153  fi
12154  $as_echo "$as_me: error: $2" >&2
12155  as_fn_exit $as_status
12156} # as_fn_error
12157
12158
12159# as_fn_set_status STATUS
12160# -----------------------
12161# Set $? to STATUS, without forking.
12162as_fn_set_status ()
12163{
12164  return $1
12165} # as_fn_set_status
12166
12167# as_fn_exit STATUS
12168# -----------------
12169# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12170as_fn_exit ()
12171{
12172  set +e
12173  as_fn_set_status $1
12174  exit $1
12175} # as_fn_exit
12176
12177# as_fn_unset VAR
12178# ---------------
12179# Portably unset VAR.
12180as_fn_unset ()
12181{
12182  { eval $1=; unset $1;}
12183}
12184as_unset=as_fn_unset
12185# as_fn_append VAR VALUE
12186# ----------------------
12187# Append the text in VALUE to the end of the definition contained in VAR. Take
12188# advantage of any shell optimizations that allow amortized linear growth over
12189# repeated appends, instead of the typical quadratic growth present in naive
12190# implementations.
12191if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12192  eval 'as_fn_append ()
12193  {
12194    eval $1+=\$2
12195  }'
12196else
12197  as_fn_append ()
12198  {
12199    eval $1=\$$1\$2
12200  }
12201fi # as_fn_append
12202
12203# as_fn_arith ARG...
12204# ------------------
12205# Perform arithmetic evaluation on the ARGs, and store the result in the
12206# global $as_val. Take advantage of shells that can avoid forks. The arguments
12207# must be portable across $(()) and expr.
12208if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12209  eval 'as_fn_arith ()
12210  {
12211    as_val=$(( $* ))
12212  }'
12213else
12214  as_fn_arith ()
12215  {
12216    as_val=`expr "$@" || test $? -eq 1`
12217  }
12218fi # as_fn_arith
12219
12220
12221if expr a : '\(a\)' >/dev/null 2>&1 &&
12222   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12223  as_expr=expr
12224else
12225  as_expr=false
12226fi
12227
12228if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12229  as_basename=basename
12230else
12231  as_basename=false
12232fi
12233
12234if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12235  as_dirname=dirname
12236else
12237  as_dirname=false
12238fi
12239
12240as_me=`$as_basename -- "$0" ||
12241$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12242	 X"$0" : 'X\(//\)$' \| \
12243	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12244$as_echo X/"$0" |
12245    sed '/^.*\/\([^/][^/]*\)\/*$/{
12246	    s//\1/
12247	    q
12248	  }
12249	  /^X\/\(\/\/\)$/{
12250	    s//\1/
12251	    q
12252	  }
12253	  /^X\/\(\/\).*/{
12254	    s//\1/
12255	    q
12256	  }
12257	  s/.*/./; q'`
12258
12259# Avoid depending upon Character Ranges.
12260as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12261as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12262as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12263as_cr_digits='0123456789'
12264as_cr_alnum=$as_cr_Letters$as_cr_digits
12265
12266ECHO_C= ECHO_N= ECHO_T=
12267case `echo -n x` in #(((((
12268-n*)
12269  case `echo 'xy\c'` in
12270  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12271  xy)  ECHO_C='\c';;
12272  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12273       ECHO_T='	';;
12274  esac;;
12275*)
12276  ECHO_N='-n';;
12277esac
12278
12279rm -f conf$$ conf$$.exe conf$$.file
12280if test -d conf$$.dir; then
12281  rm -f conf$$.dir/conf$$.file
12282else
12283  rm -f conf$$.dir
12284  mkdir conf$$.dir 2>/dev/null
12285fi
12286if (echo >conf$$.file) 2>/dev/null; then
12287  if ln -s conf$$.file conf$$ 2>/dev/null; then
12288    as_ln_s='ln -s'
12289    # ... but there are two gotchas:
12290    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12291    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12292    # In both cases, we have to default to `cp -p'.
12293    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12294      as_ln_s='cp -p'
12295  elif ln conf$$.file conf$$ 2>/dev/null; then
12296    as_ln_s=ln
12297  else
12298    as_ln_s='cp -p'
12299  fi
12300else
12301  as_ln_s='cp -p'
12302fi
12303rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12304rmdir conf$$.dir 2>/dev/null
12305
12306
12307# as_fn_mkdir_p
12308# -------------
12309# Create "$as_dir" as a directory, including parents if necessary.
12310as_fn_mkdir_p ()
12311{
12312
12313  case $as_dir in #(
12314  -*) as_dir=./$as_dir;;
12315  esac
12316  test -d "$as_dir" || eval $as_mkdir_p || {
12317    as_dirs=
12318    while :; do
12319      case $as_dir in #(
12320      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12321      *) as_qdir=$as_dir;;
12322      esac
12323      as_dirs="'$as_qdir' $as_dirs"
12324      as_dir=`$as_dirname -- "$as_dir" ||
12325$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12326	 X"$as_dir" : 'X\(//\)[^/]' \| \
12327	 X"$as_dir" : 'X\(//\)$' \| \
12328	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12329$as_echo X"$as_dir" |
12330    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12331	    s//\1/
12332	    q
12333	  }
12334	  /^X\(\/\/\)[^/].*/{
12335	    s//\1/
12336	    q
12337	  }
12338	  /^X\(\/\/\)$/{
12339	    s//\1/
12340	    q
12341	  }
12342	  /^X\(\/\).*/{
12343	    s//\1/
12344	    q
12345	  }
12346	  s/.*/./; q'`
12347      test -d "$as_dir" && break
12348    done
12349    test -z "$as_dirs" || eval "mkdir $as_dirs"
12350  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12351
12352
12353} # as_fn_mkdir_p
12354if mkdir -p . 2>/dev/null; then
12355  as_mkdir_p='mkdir -p "$as_dir"'
12356else
12357  test -d ./-p && rmdir ./-p
12358  as_mkdir_p=false
12359fi
12360
12361if test -x / >/dev/null 2>&1; then
12362  as_test_x='test -x'
12363else
12364  if ls -dL / >/dev/null 2>&1; then
12365    as_ls_L_option=L
12366  else
12367    as_ls_L_option=
12368  fi
12369  as_test_x='
12370    eval sh -c '\''
12371      if test -d "$1"; then
12372	test -d "$1/.";
12373      else
12374	case $1 in #(
12375	-*)set "./$1";;
12376	esac;
12377	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12378	???[sx]*):;;*)false;;esac;fi
12379    '\'' sh
12380  '
12381fi
12382as_executable_p=$as_test_x
12383
12384# Sed expression to map a string onto a valid CPP name.
12385as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12386
12387# Sed expression to map a string onto a valid variable name.
12388as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12389
12390
12391exec 6>&1
12392## ----------------------------------- ##
12393## Main body of $CONFIG_STATUS script. ##
12394## ----------------------------------- ##
12395_ASEOF
12396test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12397
12398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12399# Save the log message, to keep $0 and so on meaningful, and to
12400# report actual input values of CONFIG_FILES etc. instead of their
12401# values after options handling.
12402ac_log="
12403This file was extended by xclock $as_me 1.0.7, which was
12404generated by GNU Autoconf 2.68.  Invocation command line was
12405
12406  CONFIG_FILES    = $CONFIG_FILES
12407  CONFIG_HEADERS  = $CONFIG_HEADERS
12408  CONFIG_LINKS    = $CONFIG_LINKS
12409  CONFIG_COMMANDS = $CONFIG_COMMANDS
12410  $ $0 $@
12411
12412on `(hostname || uname -n) 2>/dev/null | sed 1q`
12413"
12414
12415_ACEOF
12416
12417case $ac_config_files in *"
12418"*) set x $ac_config_files; shift; ac_config_files=$*;;
12419esac
12420
12421case $ac_config_headers in *"
12422"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12423esac
12424
12425
12426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12427# Files that config.status was made for.
12428config_files="$ac_config_files"
12429config_headers="$ac_config_headers"
12430config_commands="$ac_config_commands"
12431
12432_ACEOF
12433
12434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12435ac_cs_usage="\
12436\`$as_me' instantiates files and other configuration actions
12437from templates according to the current configuration.  Unless the files
12438and actions are specified as TAGs, all are instantiated by default.
12439
12440Usage: $0 [OPTION]... [TAG]...
12441
12442  -h, --help       print this help, then exit
12443  -V, --version    print version number and configuration settings, then exit
12444      --config     print configuration, then exit
12445  -q, --quiet, --silent
12446                   do not print progress messages
12447  -d, --debug      don't remove temporary files
12448      --recheck    update $as_me by reconfiguring in the same conditions
12449      --file=FILE[:TEMPLATE]
12450                   instantiate the configuration file FILE
12451      --header=FILE[:TEMPLATE]
12452                   instantiate the configuration header FILE
12453
12454Configuration files:
12455$config_files
12456
12457Configuration headers:
12458$config_headers
12459
12460Configuration commands:
12461$config_commands
12462
12463Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12464
12465_ACEOF
12466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12467ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12468ac_cs_version="\\
12469xclock config.status 1.0.7
12470configured by $0, generated by GNU Autoconf 2.68,
12471  with options \\"\$ac_cs_config\\"
12472
12473Copyright (C) 2010 Free Software Foundation, Inc.
12474This config.status script is free software; the Free Software Foundation
12475gives unlimited permission to copy, distribute and modify it."
12476
12477ac_pwd='$ac_pwd'
12478srcdir='$srcdir'
12479INSTALL='$INSTALL'
12480MKDIR_P='$MKDIR_P'
12481AWK='$AWK'
12482test -n "\$AWK" || AWK=awk
12483_ACEOF
12484
12485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12486# The default lists apply if the user does not specify any file.
12487ac_need_defaults=:
12488while test $# != 0
12489do
12490  case $1 in
12491  --*=?*)
12492    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12493    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12494    ac_shift=:
12495    ;;
12496  --*=)
12497    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12498    ac_optarg=
12499    ac_shift=:
12500    ;;
12501  *)
12502    ac_option=$1
12503    ac_optarg=$2
12504    ac_shift=shift
12505    ;;
12506  esac
12507
12508  case $ac_option in
12509  # Handling of the options.
12510  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12511    ac_cs_recheck=: ;;
12512  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12513    $as_echo "$ac_cs_version"; exit ;;
12514  --config | --confi | --conf | --con | --co | --c )
12515    $as_echo "$ac_cs_config"; exit ;;
12516  --debug | --debu | --deb | --de | --d | -d )
12517    debug=: ;;
12518  --file | --fil | --fi | --f )
12519    $ac_shift
12520    case $ac_optarg in
12521    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12522    '') as_fn_error $? "missing file argument" ;;
12523    esac
12524    as_fn_append CONFIG_FILES " '$ac_optarg'"
12525    ac_need_defaults=false;;
12526  --header | --heade | --head | --hea )
12527    $ac_shift
12528    case $ac_optarg in
12529    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12530    esac
12531    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12532    ac_need_defaults=false;;
12533  --he | --h)
12534    # Conflict between --help and --header
12535    as_fn_error $? "ambiguous option: \`$1'
12536Try \`$0 --help' for more information.";;
12537  --help | --hel | -h )
12538    $as_echo "$ac_cs_usage"; exit ;;
12539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12540  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12541    ac_cs_silent=: ;;
12542
12543  # This is an error.
12544  -*) as_fn_error $? "unrecognized option: \`$1'
12545Try \`$0 --help' for more information." ;;
12546
12547  *) as_fn_append ac_config_targets " $1"
12548     ac_need_defaults=false ;;
12549
12550  esac
12551  shift
12552done
12553
12554ac_configure_extra_args=
12555
12556if $ac_cs_silent; then
12557  exec 6>/dev/null
12558  ac_configure_extra_args="$ac_configure_extra_args --silent"
12559fi
12560
12561_ACEOF
12562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12563if \$ac_cs_recheck; then
12564  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12565  shift
12566  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12567  CONFIG_SHELL='$SHELL'
12568  export CONFIG_SHELL
12569  exec "\$@"
12570fi
12571
12572_ACEOF
12573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12574exec 5>>config.log
12575{
12576  echo
12577  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12578## Running $as_me. ##
12579_ASBOX
12580  $as_echo "$ac_log"
12581} >&5
12582
12583_ACEOF
12584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12585#
12586# INIT-COMMANDS
12587#
12588AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12589
12590_ACEOF
12591
12592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12593
12594# Handling of arguments.
12595for ac_config_target in $ac_config_targets
12596do
12597  case $ac_config_target in
12598    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12599    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12600    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12601    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12602
12603  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12604  esac
12605done
12606
12607
12608# If the user did not use the arguments to specify the items to instantiate,
12609# then the envvar interface is used.  Set only those that are not.
12610# We use the long form for the default assignment because of an extremely
12611# bizarre bug on SunOS 4.1.3.
12612if $ac_need_defaults; then
12613  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12614  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12615  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12616fi
12617
12618# Have a temporary directory for convenience.  Make it in the build tree
12619# simply because there is no reason against having it here, and in addition,
12620# creating and moving files from /tmp can sometimes cause problems.
12621# Hook for its removal unless debugging.
12622# Note that there is a small window in which the directory will not be cleaned:
12623# after its creation but before its name has been assigned to `$tmp'.
12624$debug ||
12625{
12626  tmp= ac_tmp=
12627  trap 'exit_status=$?
12628  : "${ac_tmp:=$tmp}"
12629  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12630' 0
12631  trap 'as_fn_exit 1' 1 2 13 15
12632}
12633# Create a (secure) tmp directory for tmp files.
12634
12635{
12636  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12637  test -d "$tmp"
12638}  ||
12639{
12640  tmp=./conf$$-$RANDOM
12641  (umask 077 && mkdir "$tmp")
12642} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12643ac_tmp=$tmp
12644
12645# Set up the scripts for CONFIG_FILES section.
12646# No need to generate them if there are no CONFIG_FILES.
12647# This happens for instance with `./config.status config.h'.
12648if test -n "$CONFIG_FILES"; then
12649
12650
12651ac_cr=`echo X | tr X '\015'`
12652# On cygwin, bash can eat \r inside `` if the user requested igncr.
12653# But we know of no other shell where ac_cr would be empty at this
12654# point, so we can use a bashism as a fallback.
12655if test "x$ac_cr" = x; then
12656  eval ac_cr=\$\'\\r\'
12657fi
12658ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12659if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12660  ac_cs_awk_cr='\\r'
12661else
12662  ac_cs_awk_cr=$ac_cr
12663fi
12664
12665echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12666_ACEOF
12667
12668
12669{
12670  echo "cat >conf$$subs.awk <<_ACEOF" &&
12671  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12672  echo "_ACEOF"
12673} >conf$$subs.sh ||
12674  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12675ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12676ac_delim='%!_!# '
12677for ac_last_try in false false false false false :; do
12678  . ./conf$$subs.sh ||
12679    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12680
12681  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12682  if test $ac_delim_n = $ac_delim_num; then
12683    break
12684  elif $ac_last_try; then
12685    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12686  else
12687    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12688  fi
12689done
12690rm -f conf$$subs.sh
12691
12692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12693cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12694_ACEOF
12695sed -n '
12696h
12697s/^/S["/; s/!.*/"]=/
12698p
12699g
12700s/^[^!]*!//
12701:repl
12702t repl
12703s/'"$ac_delim"'$//
12704t delim
12705:nl
12706h
12707s/\(.\{148\}\)..*/\1/
12708t more1
12709s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12710p
12711n
12712b repl
12713:more1
12714s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12715p
12716g
12717s/.\{148\}//
12718t nl
12719:delim
12720h
12721s/\(.\{148\}\)..*/\1/
12722t more2
12723s/["\\]/\\&/g; s/^/"/; s/$/"/
12724p
12725b
12726:more2
12727s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12728p
12729g
12730s/.\{148\}//
12731t delim
12732' <conf$$subs.awk | sed '
12733/^[^""]/{
12734  N
12735  s/\n//
12736}
12737' >>$CONFIG_STATUS || ac_write_fail=1
12738rm -f conf$$subs.awk
12739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12740_ACAWK
12741cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12742  for (key in S) S_is_set[key] = 1
12743  FS = ""
12744
12745}
12746{
12747  line = $ 0
12748  nfields = split(line, field, "@")
12749  substed = 0
12750  len = length(field[1])
12751  for (i = 2; i < nfields; i++) {
12752    key = field[i]
12753    keylen = length(key)
12754    if (S_is_set[key]) {
12755      value = S[key]
12756      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12757      len += length(value) + length(field[++i])
12758      substed = 1
12759    } else
12760      len += 1 + keylen
12761  }
12762
12763  print line
12764}
12765
12766_ACAWK
12767_ACEOF
12768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12769if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12770  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12771else
12772  cat
12773fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12774  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12775_ACEOF
12776
12777# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12778# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12779# trailing colons and then remove the whole line if VPATH becomes empty
12780# (actually we leave an empty line to preserve line numbers).
12781if test "x$srcdir" = x.; then
12782  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12783h
12784s///
12785s/^/:/
12786s/[	 ]*$/:/
12787s/:\$(srcdir):/:/g
12788s/:\${srcdir}:/:/g
12789s/:@srcdir@:/:/g
12790s/^:*//
12791s/:*$//
12792x
12793s/\(=[	 ]*\).*/\1/
12794G
12795s/\n//
12796s/^[^=]*=[	 ]*$//
12797}'
12798fi
12799
12800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12801fi # test -n "$CONFIG_FILES"
12802
12803# Set up the scripts for CONFIG_HEADERS section.
12804# No need to generate them if there are no CONFIG_HEADERS.
12805# This happens for instance with `./config.status Makefile'.
12806if test -n "$CONFIG_HEADERS"; then
12807cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12808BEGIN {
12809_ACEOF
12810
12811# Transform confdefs.h into an awk script `defines.awk', embedded as
12812# here-document in config.status, that substitutes the proper values into
12813# config.h.in to produce config.h.
12814
12815# Create a delimiter string that does not exist in confdefs.h, to ease
12816# handling of long lines.
12817ac_delim='%!_!# '
12818for ac_last_try in false false :; do
12819  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12820  if test -z "$ac_tt"; then
12821    break
12822  elif $ac_last_try; then
12823    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12824  else
12825    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12826  fi
12827done
12828
12829# For the awk script, D is an array of macro values keyed by name,
12830# likewise P contains macro parameters if any.  Preserve backslash
12831# newline sequences.
12832
12833ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12834sed -n '
12835s/.\{148\}/&'"$ac_delim"'/g
12836t rset
12837:rset
12838s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12839t def
12840d
12841:def
12842s/\\$//
12843t bsnl
12844s/["\\]/\\&/g
12845s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12846D["\1"]=" \3"/p
12847s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12848d
12849:bsnl
12850s/["\\]/\\&/g
12851s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12852D["\1"]=" \3\\\\\\n"\\/p
12853t cont
12854s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12855t cont
12856d
12857:cont
12858n
12859s/.\{148\}/&'"$ac_delim"'/g
12860t clear
12861:clear
12862s/\\$//
12863t bsnlc
12864s/["\\]/\\&/g; s/^/"/; s/$/"/p
12865d
12866:bsnlc
12867s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12868b cont
12869' <confdefs.h | sed '
12870s/'"$ac_delim"'/"\\\
12871"/g' >>$CONFIG_STATUS || ac_write_fail=1
12872
12873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12874  for (key in D) D_is_set[key] = 1
12875  FS = ""
12876}
12877/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12878  line = \$ 0
12879  split(line, arg, " ")
12880  if (arg[1] == "#") {
12881    defundef = arg[2]
12882    mac1 = arg[3]
12883  } else {
12884    defundef = substr(arg[1], 2)
12885    mac1 = arg[2]
12886  }
12887  split(mac1, mac2, "(") #)
12888  macro = mac2[1]
12889  prefix = substr(line, 1, index(line, defundef) - 1)
12890  if (D_is_set[macro]) {
12891    # Preserve the white space surrounding the "#".
12892    print prefix "define", macro P[macro] D[macro]
12893    next
12894  } else {
12895    # Replace #undef with comments.  This is necessary, for example,
12896    # in the case of _POSIX_SOURCE, which is predefined and required
12897    # on some systems where configure will not decide to define it.
12898    if (defundef == "undef") {
12899      print "/*", prefix defundef, macro, "*/"
12900      next
12901    }
12902  }
12903}
12904{ print }
12905_ACAWK
12906_ACEOF
12907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12908  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12909fi # test -n "$CONFIG_HEADERS"
12910
12911
12912eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12913shift
12914for ac_tag
12915do
12916  case $ac_tag in
12917  :[FHLC]) ac_mode=$ac_tag; continue;;
12918  esac
12919  case $ac_mode$ac_tag in
12920  :[FHL]*:*);;
12921  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12922  :[FH]-) ac_tag=-:-;;
12923  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12924  esac
12925  ac_save_IFS=$IFS
12926  IFS=:
12927  set x $ac_tag
12928  IFS=$ac_save_IFS
12929  shift
12930  ac_file=$1
12931  shift
12932
12933  case $ac_mode in
12934  :L) ac_source=$1;;
12935  :[FH])
12936    ac_file_inputs=
12937    for ac_f
12938    do
12939      case $ac_f in
12940      -) ac_f="$ac_tmp/stdin";;
12941      *) # Look for the file first in the build tree, then in the source tree
12942	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12943	 # because $ac_f cannot contain `:'.
12944	 test -f "$ac_f" ||
12945	   case $ac_f in
12946	   [\\/$]*) false;;
12947	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12948	   esac ||
12949	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12950      esac
12951      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12952      as_fn_append ac_file_inputs " '$ac_f'"
12953    done
12954
12955    # Let's still pretend it is `configure' which instantiates (i.e., don't
12956    # use $as_me), people would be surprised to read:
12957    #    /* config.h.  Generated by config.status.  */
12958    configure_input='Generated from '`
12959	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12960	`' by configure.'
12961    if test x"$ac_file" != x-; then
12962      configure_input="$ac_file.  $configure_input"
12963      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12964$as_echo "$as_me: creating $ac_file" >&6;}
12965    fi
12966    # Neutralize special characters interpreted by sed in replacement strings.
12967    case $configure_input in #(
12968    *\&* | *\|* | *\\* )
12969       ac_sed_conf_input=`$as_echo "$configure_input" |
12970       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12971    *) ac_sed_conf_input=$configure_input;;
12972    esac
12973
12974    case $ac_tag in
12975    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12976      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12977    esac
12978    ;;
12979  esac
12980
12981  ac_dir=`$as_dirname -- "$ac_file" ||
12982$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12983	 X"$ac_file" : 'X\(//\)[^/]' \| \
12984	 X"$ac_file" : 'X\(//\)$' \| \
12985	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12986$as_echo X"$ac_file" |
12987    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12988	    s//\1/
12989	    q
12990	  }
12991	  /^X\(\/\/\)[^/].*/{
12992	    s//\1/
12993	    q
12994	  }
12995	  /^X\(\/\/\)$/{
12996	    s//\1/
12997	    q
12998	  }
12999	  /^X\(\/\).*/{
13000	    s//\1/
13001	    q
13002	  }
13003	  s/.*/./; q'`
13004  as_dir="$ac_dir"; as_fn_mkdir_p
13005  ac_builddir=.
13006
13007case "$ac_dir" in
13008.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13009*)
13010  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13011  # A ".." for each directory in $ac_dir_suffix.
13012  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13013  case $ac_top_builddir_sub in
13014  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13015  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13016  esac ;;
13017esac
13018ac_abs_top_builddir=$ac_pwd
13019ac_abs_builddir=$ac_pwd$ac_dir_suffix
13020# for backward compatibility:
13021ac_top_builddir=$ac_top_build_prefix
13022
13023case $srcdir in
13024  .)  # We are building in place.
13025    ac_srcdir=.
13026    ac_top_srcdir=$ac_top_builddir_sub
13027    ac_abs_top_srcdir=$ac_pwd ;;
13028  [\\/]* | ?:[\\/]* )  # Absolute name.
13029    ac_srcdir=$srcdir$ac_dir_suffix;
13030    ac_top_srcdir=$srcdir
13031    ac_abs_top_srcdir=$srcdir ;;
13032  *) # Relative name.
13033    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13034    ac_top_srcdir=$ac_top_build_prefix$srcdir
13035    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13036esac
13037ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13038
13039
13040  case $ac_mode in
13041  :F)
13042  #
13043  # CONFIG_FILE
13044  #
13045
13046  case $INSTALL in
13047  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13048  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13049  esac
13050  ac_MKDIR_P=$MKDIR_P
13051  case $MKDIR_P in
13052  [\\/$]* | ?:[\\/]* ) ;;
13053  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13054  esac
13055_ACEOF
13056
13057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13058# If the template does not know about datarootdir, expand it.
13059# FIXME: This hack should be removed a few years after 2.60.
13060ac_datarootdir_hack=; ac_datarootdir_seen=
13061ac_sed_dataroot='
13062/datarootdir/ {
13063  p
13064  q
13065}
13066/@datadir@/p
13067/@docdir@/p
13068/@infodir@/p
13069/@localedir@/p
13070/@mandir@/p'
13071case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13072*datarootdir*) ac_datarootdir_seen=yes;;
13073*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13074  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13075$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13076_ACEOF
13077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13078  ac_datarootdir_hack='
13079  s&@datadir@&$datadir&g
13080  s&@docdir@&$docdir&g
13081  s&@infodir@&$infodir&g
13082  s&@localedir@&$localedir&g
13083  s&@mandir@&$mandir&g
13084  s&\\\${datarootdir}&$datarootdir&g' ;;
13085esac
13086_ACEOF
13087
13088# Neutralize VPATH when `$srcdir' = `.'.
13089# Shell code in configure.ac might set extrasub.
13090# FIXME: do we really want to maintain this feature?
13091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13092ac_sed_extra="$ac_vpsub
13093$extrasub
13094_ACEOF
13095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13096:t
13097/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13098s|@configure_input@|$ac_sed_conf_input|;t t
13099s&@top_builddir@&$ac_top_builddir_sub&;t t
13100s&@top_build_prefix@&$ac_top_build_prefix&;t t
13101s&@srcdir@&$ac_srcdir&;t t
13102s&@abs_srcdir@&$ac_abs_srcdir&;t t
13103s&@top_srcdir@&$ac_top_srcdir&;t t
13104s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13105s&@builddir@&$ac_builddir&;t t
13106s&@abs_builddir@&$ac_abs_builddir&;t t
13107s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13108s&@INSTALL@&$ac_INSTALL&;t t
13109s&@MKDIR_P@&$ac_MKDIR_P&;t t
13110$ac_datarootdir_hack
13111"
13112eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13113  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13114
13115test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13116  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13117  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13118      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13119  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13120which seems to be undefined.  Please make sure it is defined" >&5
13121$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13122which seems to be undefined.  Please make sure it is defined" >&2;}
13123
13124  rm -f "$ac_tmp/stdin"
13125  case $ac_file in
13126  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13127  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13128  esac \
13129  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13130 ;;
13131  :H)
13132  #
13133  # CONFIG_HEADER
13134  #
13135  if test x"$ac_file" != x-; then
13136    {
13137      $as_echo "/* $configure_input  */" \
13138      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13139    } >"$ac_tmp/config.h" \
13140      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13141    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13142      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13143$as_echo "$as_me: $ac_file is unchanged" >&6;}
13144    else
13145      rm -f "$ac_file"
13146      mv "$ac_tmp/config.h" "$ac_file" \
13147	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13148    fi
13149  else
13150    $as_echo "/* $configure_input  */" \
13151      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13152      || as_fn_error $? "could not create -" "$LINENO" 5
13153  fi
13154# Compute "$ac_file"'s index in $config_headers.
13155_am_arg="$ac_file"
13156_am_stamp_count=1
13157for _am_header in $config_headers :; do
13158  case $_am_header in
13159    $_am_arg | $_am_arg:* )
13160      break ;;
13161    * )
13162      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13163  esac
13164done
13165echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13166$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13167	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13168	 X"$_am_arg" : 'X\(//\)$' \| \
13169	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13170$as_echo X"$_am_arg" |
13171    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13172	    s//\1/
13173	    q
13174	  }
13175	  /^X\(\/\/\)[^/].*/{
13176	    s//\1/
13177	    q
13178	  }
13179	  /^X\(\/\/\)$/{
13180	    s//\1/
13181	    q
13182	  }
13183	  /^X\(\/\).*/{
13184	    s//\1/
13185	    q
13186	  }
13187	  s/.*/./; q'`/stamp-h$_am_stamp_count
13188 ;;
13189
13190  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13191$as_echo "$as_me: executing $ac_file commands" >&6;}
13192 ;;
13193  esac
13194
13195
13196  case $ac_file$ac_mode in
13197    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13198  # Older Autoconf quotes --file arguments for eval, but not when files
13199  # are listed without --file.  Let's play safe and only enable the eval
13200  # if we detect the quoting.
13201  case $CONFIG_FILES in
13202  *\'*) eval set x "$CONFIG_FILES" ;;
13203  *)   set x $CONFIG_FILES ;;
13204  esac
13205  shift
13206  for mf
13207  do
13208    # Strip MF so we end up with the name of the file.
13209    mf=`echo "$mf" | sed -e 's/:.*$//'`
13210    # Check whether this is an Automake generated Makefile or not.
13211    # We used to match only the files named 'Makefile.in', but
13212    # some people rename them; so instead we look at the file content.
13213    # Grep'ing the first line is not enough: some people post-process
13214    # each Makefile.in and add a new line on top of each file to say so.
13215    # Grep'ing the whole file is not good either: AIX grep has a line
13216    # limit of 2048, but all sed's we know have understand at least 4000.
13217    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13218      dirpart=`$as_dirname -- "$mf" ||
13219$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13220	 X"$mf" : 'X\(//\)[^/]' \| \
13221	 X"$mf" : 'X\(//\)$' \| \
13222	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13223$as_echo X"$mf" |
13224    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13225	    s//\1/
13226	    q
13227	  }
13228	  /^X\(\/\/\)[^/].*/{
13229	    s//\1/
13230	    q
13231	  }
13232	  /^X\(\/\/\)$/{
13233	    s//\1/
13234	    q
13235	  }
13236	  /^X\(\/\).*/{
13237	    s//\1/
13238	    q
13239	  }
13240	  s/.*/./; q'`
13241    else
13242      continue
13243    fi
13244    # Extract the definition of DEPDIR, am__include, and am__quote
13245    # from the Makefile without running 'make'.
13246    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13247    test -z "$DEPDIR" && continue
13248    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13249    test -z "$am__include" && continue
13250    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13251    # Find all dependency output files, they are included files with
13252    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13253    # simplest approach to changing $(DEPDIR) to its actual value in the
13254    # expansion.
13255    for file in `sed -n "
13256      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13257	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13258      # Make sure the directory exists.
13259      test -f "$dirpart/$file" && continue
13260      fdir=`$as_dirname -- "$file" ||
13261$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13262	 X"$file" : 'X\(//\)[^/]' \| \
13263	 X"$file" : 'X\(//\)$' \| \
13264	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13265$as_echo X"$file" |
13266    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13267	    s//\1/
13268	    q
13269	  }
13270	  /^X\(\/\/\)[^/].*/{
13271	    s//\1/
13272	    q
13273	  }
13274	  /^X\(\/\/\)$/{
13275	    s//\1/
13276	    q
13277	  }
13278	  /^X\(\/\).*/{
13279	    s//\1/
13280	    q
13281	  }
13282	  s/.*/./; q'`
13283      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13284      # echo "creating $dirpart/$file"
13285      echo '# dummy' > "$dirpart/$file"
13286    done
13287  done
13288}
13289 ;;
13290
13291  esac
13292done # for ac_tag
13293
13294
13295as_fn_exit 0
13296_ACEOF
13297ac_clean_files=$ac_clean_files_save
13298
13299test $ac_write_fail = 0 ||
13300  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13301
13302
13303# configure is writing to config.log, and then calls config.status.
13304# config.status does its own redirection, appending to config.log.
13305# Unfortunately, on DOS this fails, as config.log is still kept open
13306# by configure, so config.status won't be able to write to it; its
13307# output is simply discarded.  So we exec the FD to /dev/null,
13308# effectively closing config.log, so it can be properly (re)opened and
13309# appended to by config.status.  When coming back to configure, we
13310# need to make the FD available again.
13311if test "$no_create" != yes; then
13312  ac_cs_success=:
13313  ac_config_status_args=
13314  test "$silent" = yes &&
13315    ac_config_status_args="$ac_config_status_args --quiet"
13316  exec 5>/dev/null
13317  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13318  exec 5>>config.log
13319  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13320  # would make configure fail if this is the last instruction.
13321  $ac_cs_success || as_fn_exit 1
13322fi
13323if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13324  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13325$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13326fi
13327
13328